/* ─────────────────────────────────────────────────────────────────
   JUST AN EPIC LIFE · Blog
   Inherits the root landing design system exactly.
   Palette: Crystal Lagoon teal + Sunlight Gold + Ivory
   Typography: Cormorant Garamond (display) + Inter (body)
   ───────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;
  --deep-forest: #0A8FAE;
  --deep-forest-hover: #0B7894;
  --burnished-gold: #F4B73D;
  --brass-highlight: #D89B1F;
  --ivory: #faf6ee;
  --soft-cream: #F5EAD0;
  --warm-sand: #e8dcc4;
  --clay: #D4C49B;
  --hairline-cream: #E8D8B0;
  --hairline-gold: #E8C870;
  --warm-charcoal: #1f1d1a;
  --soft-charcoal: #4a4742;
  --muted-slate: #7a7570;
  --soft-amber: #FFF6E0;
  --subtle-sage: #E5F4F4;
  --font-display: "Cormorant Garamond", "Playfair Display", "EB Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-rest: 0 2px 8px rgba(10, 60, 80, 0.06);
  --shadow-hover: 0 6px 18px rgba(10, 60, 80, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--warm-charcoal);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(244, 183, 61, 0.22); color: var(--warm-charcoal); }
a { color: var(--deep-forest); text-decoration: none; }
a:hover { color: var(--brass-highlight); }
img { max-width: 100%; height: auto; }

/* ── Top nav ─────────────────────────────────────────────────── */
.topnav {
  background: #fff;
  border-bottom: 1px solid var(--hairline-cream);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.topnav a { color: var(--soft-charcoal); }
.topnav a:hover { color: var(--deep-forest); }
.topnav a.home { color: var(--deep-forest); font-weight: 700; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline-cream);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--burnished-gold) 50%, transparent 100%);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-highlight);
  margin-bottom: 16px;
}
.site-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--deep-forest);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  max-width: 860px;
  margin-left: auto; margin-right: auto;
}
@media (min-width: 768px) { .site-header h1 { font-size: 54px; } }
.site-header .tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--soft-charcoal);
  margin: 0 auto 20px;
  line-height: 1.45;
  max-width: 620px;
}
@media (min-width: 768px) { .site-header .tagline { font-size: 23px; } }
.site-header .h-stats {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-slate);
  letter-spacing: 0.04em;
}
.site-header .h-stats strong { color: var(--deep-forest); font-weight: 600; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 52px 24px 32px; }
.container.narrow { max-width: 720px; }

/* ── Beat filter chips ──────────────────────────────────────── */
.beats {
  display: flex; flex-wrap: wrap; gap: 9px;
  justify-content: center;
  margin-bottom: 44px;
}
.beat-chip {
  font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 8px 15px;
  border: 1px solid var(--hairline-cream);
  border-radius: 999px;
  background: #fff;
  color: var(--soft-charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}
.beat-chip:hover { border-color: var(--hairline-gold); color: var(--deep-forest); }
.beat-chip[aria-pressed="true"] {
  background: var(--deep-forest); border-color: var(--deep-forest); color: var(--ivory);
}

/* ── Post cards ─────────────────────────────────────────────── */
.post-list { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 56px; }
.post-card {
  background: #fff;
  border: 1px solid var(--hairline-cream);
  border-left: 3px solid var(--burnished-gold);
  border-radius: 8px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card .meta {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-highlight); margin-bottom: 11px;
}
.post-card .meta .sep { color: var(--clay); margin: 0 7px; }
.post-card .meta .type { color: var(--muted-slate); }
.post-card h2 {
  font-family: var(--font-display);
  font-size: 27px; font-weight: 500;
  color: var(--deep-forest);
  margin: 0 0 9px; line-height: 1.2; letter-spacing: -0.005em;
}
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--brass-highlight); }
.post-card .dek {
  font-family: var(--font-display);
  font-size: 17px; font-style: italic;
  color: var(--soft-charcoal); margin: 0 0 14px; line-height: 1.45;
}
.post-card .byline { font-size: 13px; color: var(--muted-slate); }
.post-card .byline strong { color: var(--soft-charcoal); font-weight: 600; }

/* ── Empty / coming-soon state ──────────────────────────────── */
.awaiting {
  background: var(--soft-amber);
  border: 1px solid var(--hairline-gold);
  border-radius: 8px;
  padding: 34px 32px;
  text-align: center;
}
.awaiting h3 {
  font-family: var(--font-display); font-size: 25px; font-weight: 500;
  color: var(--deep-forest); margin: 0 0 10px;
}
.awaiting p { font-size: 15px; color: var(--soft-charcoal); margin: 0 auto; max-width: 520px; }

/* ── Article body ───────────────────────────────────────────── */
.article-head { text-align: left; padding-bottom: 8px; }
.article-head .kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-highlight); margin-bottom: 14px;
}
.article-head h1 {
  font-family: var(--font-display); font-size: 36px; font-weight: 500;
  color: var(--deep-forest); margin: 0 0 14px; line-height: 1.16; letter-spacing: -0.01em;
}
@media (min-width: 768px) { .article-head h1 { font-size: 46px; } }
.article-head .dek {
  font-family: var(--font-display); font-size: 20px; font-style: italic;
  color: var(--soft-charcoal); line-height: 1.45; margin: 0 0 22px;
}
.article-head .byline-row {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline;
  font-size: 13.5px; color: var(--muted-slate);
  padding: 16px 0; border-top: 1px solid var(--hairline-cream);
  border-bottom: 1px solid var(--hairline-cream);
}
.article-head .byline-row strong { color: var(--soft-charcoal); font-weight: 600; }

.article-body { font-size: 17.5px; line-height: 1.78; color: var(--warm-charcoal); }
.article-body p { margin: 0 0 22px; }
.article-body h2 {
  font-family: var(--font-display); font-size: 29px; font-weight: 500;
  color: var(--deep-forest); margin: 44px 0 14px; line-height: 1.22;
}
.article-body h3 {
  font-family: var(--font-body); font-size: 17px; font-weight: 700;
  color: var(--warm-charcoal); margin: 32px 0 10px; letter-spacing: 0.01em;
}
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  background: var(--subtle-sage);
  border-left: 3px solid var(--deep-forest);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-display); font-size: 19px; font-style: italic;
  color: var(--soft-charcoal);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* Verification dateline : the trust signal */
.verified {
  display: inline-block;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted-slate);
  background: var(--subtle-sage);
  border: 1px solid var(--hairline-cream);
  border-radius: 4px; padding: 3px 9px; margin-left: 4px;
  white-space: nowrap;
}

/* First-hand callout : the required passage */
.firsthand {
  background: #fff;
  border: 1px solid var(--hairline-cream);
  border-top: 3px solid var(--deep-forest);
  border-radius: 8px;
  padding: 26px 28px;
  margin: 34px 0;
  box-shadow: var(--shadow-rest);
}
.firsthand .label {
  font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 700; color: var(--deep-forest); margin-bottom: 12px;
}
.firsthand p:last-child { margin-bottom: 0; }

/* Key-facts box */
.keyfacts {
  background: var(--soft-amber);
  border: 1px solid var(--hairline-gold);
  border-radius: 8px; padding: 24px 28px; margin: 32px 0;
  font-size: 16px;
}
.keyfacts .label {
  font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-highlight); margin-bottom: 12px;
}
.keyfacts ul { margin: 0; padding-left: 22px; }

/* Sources block */
.sources {
  margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--hairline-cream);
  font-size: 14.5px; color: var(--soft-charcoal);
}
.sources h2 {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; color: var(--brass-highlight);
  margin: 0 0 14px;
}
.sources ol { padding-left: 22px; margin: 0; }
.sources li { margin-bottom: 10px; line-height: 1.55; }
.sources .date { color: var(--muted-slate); }

/* Corrections */
.correction {
  background: #FFF0F0;
  border: 1px solid #F0C8C8;
  border-left: 3px solid #C0392B;
  border-radius: 0 6px 6px 0;
  padding: 18px 22px; margin: 28px 0; font-size: 15px;
}
.correction .label {
  font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 700; color: #C0392B; margin-bottom: 8px;
}
.correction p:last-child { margin-bottom: 0; }

/* Author bio card */
.author-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--hairline-cream);
  border-radius: 8px; padding: 24px 26px; margin: 40px 0 0;
  box-shadow: var(--shadow-rest);
}
.author-card .body { flex: 1; }
.author-card .name {
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
  color: var(--deep-forest); margin: 0 0 4px;
}
.author-card .role {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-highlight); margin-bottom: 10px;
}
.author-card p { font-size: 14.5px; color: var(--soft-charcoal); margin: 0 0 10px; line-height: 1.6; }
.author-card .links { font-size: 13px; }

/* Related / pillar link */
.pillar-link {
  display: block; background: var(--subtle-sage);
  border: 1px solid var(--hairline-cream); border-radius: 8px;
  padding: 20px 24px; margin: 32px 0; text-decoration: none;
}
.pillar-link:hover { border-color: var(--hairline-gold); }
.pillar-link .label {
  font-size: 10.5px; letter-spacing: 0.20em; text-transform: uppercase;
  font-weight: 700; color: var(--brass-highlight); margin-bottom: 7px;
}
.pillar-link .title {
  font-family: var(--font-display); font-size: 20px; color: var(--deep-forest); line-height: 1.3;
}

/* ── Section intro ──────────────────────────────────────────── */
.intro { text-align: center; margin-bottom: 40px; }
.intro h2 {
  font-family: var(--font-display); font-size: 29px; font-weight: 500;
  color: var(--deep-forest); margin: 0 0 16px; line-height: 1.2;
}
@media (min-width: 768px) { .intro h2 { font-size: 34px; } }
.intro p {
  font-size: 16.5px; color: var(--soft-charcoal);
  max-width: 660px; margin: 0 auto; line-height: 1.7;
}

/* ── Standards strip ────────────────────────────────────────── */
.standards {
  background: #fff; border: 1px solid var(--hairline-cream);
  border-top: 3px solid var(--burnished-gold);
  border-radius: 8px; padding: 32px 32px 26px; margin: 48px 0 0;
  box-shadow: var(--shadow-rest);
}
.standards h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  color: var(--deep-forest); margin: 0 0 8px;
}
.standards .grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 720px) { .standards .grid { grid-template-columns: 1fr 1fr; } }
.standards .item h3 {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
  color: var(--warm-charcoal); margin: 0 0 6px; letter-spacing: 0.01em;
}
.standards .item p { font-size: 14.5px; color: var(--soft-charcoal); margin: 0; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline-cream);
  margin-top: 64px; padding: 40px 24px 48px;
  text-align: center; background: var(--ivory);
}
.site-footer .gold-rule {
  width: 90px; height: 2px; margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--burnished-gold), transparent);
}
.site-footer .line { font-size: 14px; color: var(--soft-charcoal); margin-bottom: 8px; }
.site-footer .fine { font-size: 12px; color: var(--muted-slate); margin-top: 14px; }

/* ── Reveal ─────────────────────────────────────────────────── */
/* Content is visible by default. Only hidden once JS confirms it can
   reveal it again, so a script failure never blanks the page. */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
