/* =========================================================
   Sarah Jenkinson Counselling — Blog Stylesheet
   Matches the warm, calm aesthetic of jenkinsoncounselling.ca
   ========================================================= */

:root {
  --cream:      #f7f4ef;
  --cream-dark: #ede9e2;
  --white:      #ffffff;
  --dark:       #2e2c2a;
  --mid:        #6b6560;
  --sage:       #7a9478;
  --sage-dark:  #5c7560;
  --sage-light: #e8f0e8;
  --border:     #e0dbd3;
  --shadow:     rgba(46, 44, 42, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.7;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.25rem; }

p:last-child { margin-bottom: 0; }

a {
  color: var(--sage-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--sage); }

blockquote {
  border-left: 3px solid var(--sage);
  margin: 1.75rem 0;
  padding: 0.5rem 1.5rem;
  font-style: italic;
  color: var(--mid);
}

/* ── Header / Nav ───────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-header .logo span {
  color: var(--sage);
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--sage-dark);
}

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--sage-dark) !important;
  color: var(--white) !important;
}

/* ── Page hero ──────────────────────────────────────────── */

.page-hero {
  background: var(--cream-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero .subtitle {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Layout wrapper ─────────────────────────────────────── */

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Blog index grid ────────────────────────────────────── */

.blog-index {
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px var(--shadow);
  border-color: var(--sage);
}

.post-card .post-meta {
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.post-card h2 a {
  color: var(--dark);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--sage-dark);
}

.post-card .excerpt {
  color: var(--mid);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--sage-dark);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.read-more::after {
  content: "→";
  transition: transform 0.2s;
}

.read-more:hover::after {
  transform: translateX(4px);
}

/* ── Single post ────────────────────────────────────────── */

.post-header {
  background: var(--cream-dark);
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.post-header .post-meta {
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.post-header h1 {
  max-width: 680px;
  margin: 0 auto 1rem;
}

.post-header .post-intro {
  color: var(--mid);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  font-style: italic;
}

.post-body {
  padding: 3.5rem 0 5rem;
}

.post-body > * + * {
  margin-top: 1.25rem;
}

.post-body h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--sage-dark);
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li {
  margin-bottom: 0.4rem;
}

.post-body img {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Back nav ───────────────────────────────────────────── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  color: var(--sage-dark);
}

/* ── Closing note / bio ─────────────────────────────────── */

.author-note {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  margin-top: 3rem;
}

.author-note p {
  font-size: 0.95rem;
  color: var(--mid);
  margin: 0;
}

.author-note strong {
  color: var(--dark);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.8;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .footer-name {
  color: var(--white);
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }

  .site-header { flex-direction: column; gap: 1rem; text-align: center; position: static; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .page-hero,
  .post-header { padding: 3rem 1.5rem 2.5rem; }

  .post-card { padding: 1.5rem; }
}
