/* ─────────────────────────────────────────────────────────────
   Blog section styles — shared by /blog and every /blog/* post.
   The rest of the site inlines its CSS per page, but the seven
   blog pages share one layout, so they share one stylesheet
   rather than repeating ~400 lines seven times.
   Palette and type scale are identical to the rest of the site.
   ───────────────────────────────────────────────────────────── */

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

:root {
  --terracotta: #C4673A;
  --terracotta-light: #D98B68;
  --sand: #F0E6D3;
  --sand-deep: #E0CEB4;
  --olive: #6B7A4E;
  --olive-dark: #4E5A38;
  --bark: #3D2E1E;
  --cream: #FAF6EF;
  --stone: #8C7B6B;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--bark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
/* Scoped to .site-nav on purpose: the in-article "more posts" block is also a
   <nav>, and a bare element selector would pin it to the top of the viewport. */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(250,246,239,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-deep);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--bark);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--terracotta); }
.nav-links a[aria-current="page"] { color: var(--bark); }
.nav-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--terracotta);
  color: var(--terracotta) !important;
  border-radius: 2px;
  transition: all 0.3s !important;
}
.nav-cta:hover {
  background: var(--terracotta) !important;
  border-color: var(--terracotta) !important;
  color: var(--cream) !important;
}

/* ── SHARED BITS ── */
.section-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}
.section-rule {
  width: 48px; height: 1px;
  background: var(--terracotta);
  opacity: 0.7;
}

/* ── PAGE HEADER (index) ── */
.page-header {
  padding: 9rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bark);
  margin-bottom: 1.25rem;
}
.page-header h1 em { font-style: italic; color: var(--terracotta); }
.page-header p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  max-width: 580px;
  margin: 0 auto;
}

/* ── FEATURED POST (index) ── */
.featured { padding: 2rem 3rem 5rem; max-width: 1200px; margin: 0 auto; }
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--sand);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.featured-media { overflow: hidden; min-height: 380px; }
.featured-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.featured-card:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.post-date {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.featured-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.featured-body h2 em { font-style: italic; color: var(--terracotta); }
.featured-body p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
  margin-bottom: 1.75rem;
}
.read-more {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.featured-card:hover .read-more,
.post-card:hover .read-more { opacity: 0.65; }

/* ── POST GRID (index) ── */
.archive { background: var(--sand); padding: 5rem 3rem 7rem; }
.archive-inner { max-width: 1200px; margin: 0 auto; }
.archive-head {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.archive-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem; font-weight: 300;
}
.archive-head .archive-count {
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--cream);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(61,46,30,0.12);
}
.post-card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.post-card-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { padding: 1.85rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.post-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.post-card-body p {
  font-size: 0.88rem; font-weight: 300;
  line-height: 1.8;
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.post-card-body .read-more { margin-top: auto; }

/* ── ARTICLE ── */
.article-header {
  position: relative;
  padding: 11rem 2rem 4.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.article-breadcrumb {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--stone);
}
.article-breadcrumb a { color: var(--terracotta); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--bark); }
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 1.5rem;
}
.article-header h1 em { font-style: italic; color: var(--terracotta); }
.article-meta {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}

.article-hero { max-width: 1080px; margin: 0 auto 4rem; padding: 0 2rem; }
.article-hero img {
  width: 100%;
  /* height:auto is required — the intrinsic width/height attributes map to CSS
     height and would otherwise beat aspect-ratio, rendering the hero uncropped. */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.article-hero figcaption {
  font-size: 0.72rem; font-weight: 300;
  font-style: italic;
  color: var(--stone);
  margin-top: 0.75rem;
  text-align: center;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.article-body > p {
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--bark);
}
.article-body > p + p { margin-top: 1.5rem; }
.article-body p em { font-style: italic; }
.article-body .lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--bark);
}
.article-body .lede em { color: var(--terracotta); }
.article-body a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,103,58,0.4);
  transition: border-color 0.25s, color 0.25s;
}
.article-body a:hover { color: var(--bark); border-color: var(--bark); }
.article-body .kicker {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--olive-dark);
  border-left: 2px solid var(--terracotta);
  padding-left: 1.5rem;
  margin: 2.75rem 0;
}
.article-rule {
  width: 48px; height: 1px;
  background: var(--terracotta);
  opacity: 0.7;
  margin: 3.5rem auto 0;
}

/* ── POST FOOTER NAV ── */
.post-nav { background: var(--sand); padding: 4rem 3rem; }
.post-nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.post-nav-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.75rem 0;
  border-top: 1px solid var(--sand-deep);
}
.post-nav-link.next { text-align: right; }
.post-nav-label {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.65rem;
}
.post-nav-link h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  line-height: 1.3;
  color: var(--bark);
  transition: color 0.25s;
}
.post-nav-link:hover h4 { color: var(--terracotta); }
.post-nav-empty { padding: 1.75rem 0; }

/* ── CTA ── */
.page-cta {
  padding: 7rem 3rem;
  text-align: center;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.page-cta::before {
  content: 'Journey';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22vw;
  font-weight: 300;
  color: var(--sand);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
}
.cta-inner { position: relative; z-index: 2; }
.cta-inner .section-label { margin-bottom: 1rem; }
.cta-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.cta-inner h2 em { font-style: italic; color: var(--terracotta); }
.cta-inner p {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--stone);
  max-width: 520px; margin: 0 auto 2.5rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--terracotta);
  color: var(--cream); text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: var(--bark); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--bark);
  color: var(--bark); text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-secondary:hover { background: var(--bark); color: var(--cream); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--bark); padding: 4rem 3rem 2.5rem; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240,230,211,0.1);
  margin-bottom: 2rem;
}
.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--cream); margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.75rem; font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(240,230,211,0.4);
}
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.82rem; font-weight: 300;
  color: rgba(240,230,211,0.5);
  text-decoration: none; margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }
/* The Connect column carries no social links by design — this line says so out loud. */
.footer-no-social {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem; font-weight: 300;
  line-height: 1.45;
  color: rgba(240,230,211,0.45);
  max-width: 13rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(240,230,211,0.12);
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p {
  font-size: 0.72rem; font-weight: 300;
  color: rgba(240,230,211,0.3);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .featured-body { padding: 2.5rem 2rem 3rem; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .page-header { padding: 7.5rem 1.5rem 3rem; }
  .featured { padding: 1rem 1.5rem 3.5rem; }
  .archive { padding: 4rem 1.5rem 5rem; }
  .article-header { padding: 8.5rem 1.5rem 3rem; }
  .article-hero { padding: 0 1.5rem; margin-bottom: 3rem; }
  .article-body { padding: 0 1.5rem 3rem; }
  .post-nav { padding: 3rem 1.5rem; }
  .page-cta { padding: 5rem 1.5rem; }
  footer { padding: 3.5rem 1.5rem 2rem; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-links { gap: 2rem; flex-wrap: wrap; }
  /* Narrow columns squeeze the statement into a sliver — let it wrap onto its own line. */
  .footer-no-social { max-width: 20rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-hero img { aspect-ratio: 4 / 3; }
  .post-nav-inner { grid-template-columns: 1fr; gap: 0; }
  .post-nav-link.next { text-align: left; }
  .post-nav-empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .post-card, .featured-media img, .post-card-media img { transition: none; }
}
