/* ============================================================
   ESCAPE PELOTON — Journal / Blog stylesheet
   Shared by blog.html + all article pages.
   Tokens lifted verbatim from the landing page design system.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --cream:      #F4EFE6;
  --sand:       #DDD0BD;
  --olive-dark: #3F4A38;
  --ink:        #1F211B;
  --olive:      #6B7D5E;
  --terracotta: #C2604A;
  --terracotta-dark: #a94f3c;
  --muted:      #5C5C52;
  --line-sand:  #cdbfa8;

  --accent: var(--terracotta);
  --accent-hover: #a94f3c;
  --headline-font: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --body-font: "DM Sans", "Inter", system-ui, sans-serif;
  --section-pad: 100px;
  --grain-opacity: 0.06;

  --maxw: 1200px;
  --radius-card: 8px;
  --radius-btn: 6px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 124px; }

body {
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

section.band { padding: var(--section-pad) 0; position: relative; }

.bg-cream { background: var(--cream); }
.bg-sand  { background: var(--sand); }
.bg-olive { background: var(--olive-dark); color: #F4EFE6; }
.bg-terra { background: var(--accent); color: #fff; }
.bg-ink   { background: var(--ink); color: #fff; }

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  z-index: 0;
}
.grain > * { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
.serif { font-family: var(--headline-font); }

.section-label {
  font-family: var(--body-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 22px;
}
.bg-olive .section-label,
.bg-ink   .section-label { color: #b9c4a8; }
.bg-terra .section-label { color: rgba(255,255,255,0.85); }

h1, h2, h3 { font-family: var(--headline-font); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.bg-olive .lede, .bg-ink .lede { color: #d7d1c4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body-font);
  font-size: 16px; font-weight: 600;
  border: none; cursor: pointer;
  border-radius: var(--radius-btn);
  padding: 15px 26px;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease, color .25s ease;
  line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-invert { background: #fff; color: var(--accent); }
.btn-invert:hover { background: #f3e9e2; transform: translateY(-1px); }
.btn-olive { background: var(--olive); color: #fff; }
.btn-olive:hover { background: #5a6b4f; transform: translateY(-1px); }

/* ---------- Header: banner + nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }

.announce {
  background: var(--olive-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 9px 16px;
}
.announce a { color: #fff; text-decoration: none; }
.announce strong { font-weight: 600; }

.nav {
  background: rgba(244,239,230,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(31,33,27,0.06);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); background: rgba(244,239,230,0.96); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; color: var(--ink); text-decoration: none;
  letter-spacing: 0.2px; transition: color .2s ease; position: relative;
}
.nav-links a:not(.btn):hover { color: var(--olive); }
.nav-links a:not(.btn).active { color: var(--olive); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--olive); transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }

.nav-toggle { display: none; }

/* ---------- Footer ---------- */
.footer { padding-top: 70px; padding-bottom: 50px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; flex-wrap: wrap; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer .logo-mark .dot { fill: rgba(255,255,255,0.85); }
.footer .logo-mark .dot-accent { fill: var(--terracotta); }
.fb-name { font-size: 22px; letter-spacing: 3px; }
.fb-tag { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.72); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 30px; max-width: 70ch; line-height: 1.7; }

/* ============================================================
   JOURNAL INDEX
   ============================================================ */
.journal-hero { padding-top: 76px; padding-bottom: 64px; }
.journal-hero h1 {
  font-size: clamp(40px, 5.4vw, 76px);
  max-width: 16ch; margin-bottom: 24px; text-wrap: balance;
}
.journal-hero .lede { font-size: 20px; }

.featured-post {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 0; border-radius: var(--radius-card); overflow: hidden;
  background: var(--olive-dark); color: #F4EFE6;
  box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.featured-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.featured-post .fp-img { position: relative; min-height: 420px; }
.featured-post .fp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: 52px 52px 56px; display: flex; flex-direction: column; justify-content: center; }
.fp-kicker {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #b9c4a8; font-weight: 600; margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.fp-kicker .feat-tag {
  background: var(--terracotta); color:#fff; padding: 4px 10px; border-radius: 100px;
  letter-spacing: 1.5px;
}
.featured-post h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; max-width: 18ch; }
.featured-post p { color: #d7d1c4; font-size: 17px; max-width: 52ch; }
.fp-meta { margin-top: 28px; font-size: 13px; color: rgba(244,239,230,0.66); letter-spacing: 0.3px; }
.fp-readmore { margin-top: 22px; font-family: var(--body-font); font-size: 15px; font-weight: 600; color: #fff; display: inline-flex; gap: 8px; }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  margin-top: 56px;
}
.post-card {
  background: #fff; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.post-card .pc-img { aspect-ratio: 3/2; overflow: hidden; }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .pc-img img { transform: scale(1.04); }
.post-card .pc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pc-kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 14px; }
.post-card h3 { font-size: 26px; line-height: 1.12; margin-bottom: 12px; }
.post-card p { font-size: 15px; color: var(--muted); flex: 1; }
.pc-meta { margin-top: 22px; font-size: 12.5px; color: var(--muted); letter-spacing: 0.3px; }

/* ============================================================
   ARTICLE
   ============================================================ */
.article-hero {
  background: var(--olive-dark); color: #F4EFE6;
  padding-top: 70px; padding-bottom: 72px;
}
.article-hero .wrap-narrow { max-width: 800px; }
.crumb { font-size: 13px; letter-spacing: 0.4px; margin-bottom: 30px; color: #b9c4a8; }
.crumb a { color: #b9c4a8; text-decoration: none; transition: color .2s; }
.crumb a:hover { color: #fff; }
.crumb span { opacity: 0.5; margin: 0 8px; }
.art-kicker {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #b9c4a8; font-weight: 600; margin-bottom: 20px;
}
.article-hero h1 {
  font-size: clamp(38px, 5vw, 66px);
  max-width: 20ch; margin-bottom: 26px; text-wrap: balance; color: #fff;
}
.article-hero .standfirst { font-size: 21px; color: #d7d1c4; max-width: 60ch; font-family: var(--headline-font); font-style: italic; line-height: 1.4; }
.art-meta {
  margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: 0.4px; color: rgba(244,239,230,0.7);
}
.art-meta .am-item { display: flex; align-items: center; gap: 8px; }
.art-meta strong { color: #fff; font-weight: 600; }

.art-figure { position: relative; }
.art-figure.full { margin: 0; }
.art-figure.full img { width: 100%; height: clamp(320px, 46vw, 600px); object-fit: cover; }
figcaption { font-size: 13px; color: var(--muted); padding: 14px 32px 0; max-width: 760px; margin: 0 auto; font-style: italic; }

/* Article body prose */
.prose { padding-top: 64px; padding-bottom: 80px; }
.prose .wrap-narrow > * + * { margin-top: 26px; }
.prose p { font-size: 18px; line-height: 1.72; color: #2c2e26; max-width: 68ch; }
.prose p.first::first-letter {
  font-family: var(--headline-font); font-size: 76px; line-height: 0.78;
  float: left; padding: 6px 14px 0 0; color: var(--terracotta);
}
.prose h2 {
  font-size: clamp(28px, 3.2vw, 40px); margin-top: 60px !important; margin-bottom: 6px;
  max-width: 22ch; text-wrap: balance;
}
.prose h2 + p { margin-top: 18px; }
.prose h3 {
  font-size: 25px; margin-top: 44px !important; margin-bottom: 4px; color: var(--ink);
}
.prose h3 + p { margin-top: 12px; }
.prose a.inline { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 500; }
.prose a.inline:hover { color: var(--terracotta-dark); }

.prose ul.bullets { list-style: none; max-width: 66ch; margin-top: 22px !important; }
.prose ul.bullets li {
  position: relative; padding-left: 30px; font-size: 18px; line-height: 1.6;
  color: #2c2e26; margin-top: 14px;
}
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 12px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--olive);
  transform: rotate(45deg);
}
.prose ul.bullets li strong { font-weight: 600; color: var(--ink); }

/* Pull quote */
.pull-quote {
  font-family: var(--headline-font); font-style: italic;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.28;
  color: var(--terracotta); border-left: 3px solid var(--terracotta);
  padding-left: 28px; margin: 56px auto !important; max-width: 24ch;
}

/* Stat callout (route facts) */
.route-facts {
  background: var(--sand); border-radius: var(--radius-card);
  padding: 30px 34px; margin: 44px 0 !important;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.route-facts .rf {  }
.route-facts .rf-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive); font-weight: 600; }
.route-facts .rf-val { font-family: var(--headline-font); font-size: 30px; margin-top: 6px; }

/* Info / tip box */
.tipbox {
  background: var(--cream); border: 1px solid var(--line-sand);
  border-left: 4px solid var(--olive); border-radius: 6px;
  padding: 26px 30px; margin: 40px 0 !important;
}
.tipbox .tip-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--olive); font-weight: 600; margin-bottom: 10px; }
.tipbox p { font-size: 16px !important; margin: 0 !important; color: #2c2e26; }
.tipbox p + p { margin-top: 12px !important; }

/* Inline figure inside prose */
.prose figure.inline-fig { margin: 48px 0 !important; }
.prose figure.inline-fig img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.prose figure.inline-fig figcaption { padding: 12px 4px 0; max-width: none; margin: 0; }

.fig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 48px 0 !important; }
.fig-duo figure { margin: 0; }
.fig-duo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Author / signoff */
.signoff { margin-top: 60px !important; padding-top: 30px; border-top: 1px solid var(--line-sand); display: flex; align-items: center; gap: 16px; }
.signoff .so-dot { width: 42px; height: 42px; border-radius: 50%; background: var(--olive); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--headline-font); font-size: 20px; }
.signoff .so-text { font-size: 14px; color: var(--muted); }
.signoff .so-text strong { color: var(--ink); display: block; font-size: 15px; }

/* Inline CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 18ch; margin: 0 auto 18px; color: #fff; }
.cta-band .lede { margin: 0 auto 30px; color: rgba(255,255,255,0.92); }
.cta-band .hero-trust { font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 16px; }

/* Read next */
.readnext h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 40px; }
.readnext .post-grid { margin-top: 0; grid-template-columns: repeat(2, 1fr); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --section-pad: 70px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-img { min-height: 280px; }
  .featured-post .fp-body { padding: 36px 32px 40px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .route-facts { grid-template-columns: 1fr 1fr; }
  .readnext .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn):not(.nav-cta) { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .fig-duo { grid-template-columns: 1fr; }
  .route-facts { grid-template-columns: 1fr 1fr; }
  .art-meta { gap: 16px; }
  .prose p.first::first-letter { font-size: 60px; }
}
