/* ═══════════════════════════════════════════════════════════════════════════
   THE STORYTELLING COLLAB — BLOG
   "Why LLM Search is BIG"

   Built entirely on the tokens in colors_and_type.css. No new colours, no new
   families, no hardcoded hexes — if the system changes, this follows.

   Long-form reading surface: parchment, generous measure, upright type only.
   The homepage's skyline video is deliberately NOT loaded here — an 11MB clip
   behind 300 words of body copy costs more than it earns, and these pages
   exist to be read (and retrieved) rather than to perform.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans-body);
  color: var(--ink);
  line-height: var(--lh-body);
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0 0.08 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-attachment: fixed;
}

/* ── NAV — matches the static pages ────────────────────────────────────────*/
nav#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.4rem var(--sp-5);
  transition: all var(--dur-mid, .35s) cubic-bezier(.2,.8,.2,1);
  background: rgba(234, 221, 190, 0.92);
  backdrop-filter: blur(20px) saturate(1.05);
  border-bottom: 1px solid transparent;
}
nav#nav.scrolled {
  padding: 0.9rem var(--sp-5);
  border-bottom-color: rgba(120, 88, 50, 0.18);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-display);
}
.nav-logo-mark { width: 26px; height: 26px; object-fit: contain; }
.nav-center { display: flex; gap: 2.4rem; justify-content: center; }
.nav-center a {
  font-size: 0.78rem; color: var(--soft); text-decoration: none;
  font-weight: 500; letter-spacing: 0.02em; position: relative; white-space: nowrap;
}
.nav-center a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-center a:hover::after, .nav-center a[aria-current]::after { transform: scaleX(1); }
.nav-center a[aria-current] { color: var(--ink); }
.nav-right { display: flex; justify-content: flex-end; }
.nav-cta {
  font-size: 0.78rem; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 0.65rem 1.4rem;
  border: 1px solid currentColor; transition: all .25s;
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ── LAYOUT ────────────────────────────────────────────────────────────────*/
.wrap { max-width: 820px; margin: 0 auto; padding: 0 var(--sp-5); }

/* ── BLOG INDEX ────────────────────────────────────────────────────────────*/
.masthead {
  padding: 11rem 0 var(--sp-4);
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--sp-4);
}
.eyebrow {
  font-family: var(--serif-display);
  font-size: var(--fs-eyebrow); letter-spacing: var(--ls-rail);
  text-transform: uppercase; color: var(--ink); font-weight: 600;
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--ink); }
.blog-page-h {
  font-family: var(--serif-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 300; line-height: 1.02;
  letter-spacing: var(--ls-display);
  font-variation-settings: var(--opsz-display);
  max-width: 16ch;
}
.blog-lede {
  font-family: var(--serif-display);
  font-size: var(--fs-lede); font-weight: 300;
  color: var(--soft); line-height: var(--lh-lede);
  max-width: 54ch; margin-top: var(--sp-3);
  font-variation-settings: var(--opsz-display);
}
.post-list { list-style: none; }
.post-item {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-4) 0;
  display: grid; grid-template-columns: 3.5rem 1fr auto;
  gap: var(--sp-3); align-items: baseline;
  transition: padding-left .35s cubic-bezier(.2,.8,.2,1);
}
.post-item:hover { padding-left: 1rem; }
.post-item-num {
  font-family: var(--serif-display);
  font-size: 0.95rem; color: var(--gold); font-weight: 500;
}
.post-item-title {
  font-family: var(--serif-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500; line-height: 1.25;
  letter-spacing: var(--ls-tight);
  font-variation-settings: var(--opsz-mid);
  margin-bottom: 0.7rem;
}
.post-item-title a { color: var(--ink); text-decoration: none; }
.post-item-title a:hover { color: var(--royal); }
.post-item p {
  font-family: var(--serif-display);
  font-size: 1rem; color: var(--soft);
  line-height: 1.55; max-width: 56ch;
  font-variation-settings: var(--opsz-mid);
}
.post-item time {
  font-size: var(--fs-eyebrow); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--soft);
  font-weight: 600; white-space: nowrap;
}

/* ── POST ──────────────────────────────────────────────────────────────────*/
article.post { padding-top: 11rem; }
.post-meta {
  font-size: var(--fs-eyebrow); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--soft); font-weight: 600;
  margin-bottom: var(--sp-3);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.post-meta span::before { content: '\00b7'; margin-right: 1rem; color: var(--line); }
.post-meta span:first-child::before { content: none; margin: 0; }
.post-h {
  font-family: var(--serif-display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 400; line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-variation-settings: var(--opsz-display);
  margin-bottom: var(--sp-4);
}
.post-rule { width: 60px; height: 2px; background: var(--ink); margin-bottom: var(--sp-5); }
/* Body copy is set in Fraunces, not the sans.
   This is a deliberate departure from the marketing pages, where Fraunces is
   display-only. Fraunces is a variable optical-size serif: at 'opsz' 24 it is
   drawn for reading, not for headlines — larger x-height, open counters,
   sturdier hairlines. On a long-form editorial surface that people arrive at
   from paid traffic, a serif reads as considered where a UI sans reads as
   documentation. The tokens are unchanged; only the axis is. */
.post-body p {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 24;
  font-size: 1.16rem;
  line-height: 1.72;
  color: var(--char);
  margin-bottom: var(--sp-3);
  max-width: 60ch;
}

/* Drop cap on the first paragraph after the hook. One classical move, used
   once, at the moment the reader commits to the piece. */
.post-body p.hook + p::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-variation-settings: var(--opsz-display);
  font-size: 3.6em;
  line-height: 0.78;
  font-weight: 500;
  color: var(--ink);
  padding: 0.08em 0.045em 0 0;
}
/* The hook has to stand alone — it is both the lede a human reads and, in
   practice, the passage a model retrieves. Upright serif, larger, no slant. */
.post-body p.hook {
  font-family: var(--serif-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 400; line-height: 1.42; color: var(--ink);
  max-width: 38ch;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  font-variation-settings: var(--opsz-display);
  position: relative;
}
.post-body p.hook::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 2px; background: var(--gold);
}
.post-body p.kicker {
  font-family: var(--serif-display);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 400; line-height: 1.45; color: var(--ink);
  max-width: 40ch;
  border-top: none;
  border-left: 2px solid var(--gold);
  padding: 0 0 0 var(--sp-3);
  margin-top: var(--sp-5);
  font-variation-settings: var(--opsz-display);
}

/* ── BYLINE ────────────────────────────────────────────────────────────────*/
.byline {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--sp-3) 0; margin-top: var(--sp-5);
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start;
}
.byline-mark {
  font-family: var(--serif-display);
  font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: .9;
}
.byline-name {
  font-family: var(--serif-display);
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 0.5rem;
  font-variation-settings: var(--opsz-mid);
}
.byline p { font-size: 0.92rem; line-height: 1.7; color: var(--soft); max-width: 62ch; }
.byline a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.byline a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── CTA ───────────────────────────────────────────────────────────────────*/
.post-cta {
  background: var(--royal); color: var(--paper);
  padding: var(--sp-4); margin: var(--sp-6) 0 0; text-align: center;
}
.post-cta p {
  font-family: var(--serif-display);
  font-size: 1.3rem; line-height: 1.5; margin-bottom: var(--sp-3);
  font-variation-settings: var(--opsz-display);
}
.post-cta a {
  background: var(--paper); color: var(--ink);
  padding: 1rem 2.2rem; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none;
  display: inline-flex; gap: 0.7rem; transition: all .3s;
}
.post-cta a:hover { background: var(--ivory); transform: translateY(-1px); }

.post-nav {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-4); margin-top: var(--sp-4);
  border-top: 1px solid var(--line); font-size: 0.8rem; flex-wrap: wrap;
}
.post-nav span { max-width: 46%; }
.post-nav a { color: var(--soft); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.post-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── FOOTER — matches the static pages ─────────────────────────────────────*/
footer {
  background: var(--royal-d); color: var(--paper);
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  margin-top: 8rem;
  border-top: 1px solid rgba(244, 235, 211, 0.08);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-2);
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-mark { width: 26px; height: 26px; object-fit: contain; opacity: 0.75; }
.footer-logo {
  font-family: var(--serif-display);
  font-size: 0.9rem; font-weight: 600; color: rgba(244, 235, 211, 0.6);
  font-variation-settings: var(--opsz-display);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.footer-nav a {
  font-family: var(--sans-body);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(244, 235, 211, 0.6); text-decoration: none; transition: color .25s;
}
.footer-nav a:hover { color: var(--paper); }
.footer-meta { font-size: var(--fs-eyebrow); color: rgba(244, 235, 211, 0.4); letter-spacing: 0.04em; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────*/
@media (max-width: 1100px) { nav#nav { padding: 1.2rem 1.5rem; } }
@media (max-width: 900px) {
  nav#nav { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .wrap { padding: 0 1.5rem; }
  .masthead { padding-top: 8rem; }
  article.post { padding-top: 8rem; }
  .post-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .post-item time { order: -1; }
  .post-cta { padding: var(--sp-3) 1.5rem; }
  footer { padding: 2.5rem 1.5rem 2rem; }
  .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
  .footer-nav { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   LEAD STORY — the newest post, given a front-page treatment.
   Without this the index reads as a thin list on launch day, when there is
   exactly one thing on it. With it, the page has a subject.
   ═══════════════════════════════════════════════════════════════════════════ */
.post-lead {
  border-bottom: 1px solid var(--line);
  padding: 0 0 var(--sp-5);
  margin-bottom: var(--sp-2);
}

/* Meta type uses --soft, not --stone. --stone on parchment measures 3.16:1,
   which fails WCAG AA for text this size. --soft measures 6.97:1. The dates and
   kickers are small and uppercase — exactly the type people squint at. */
.post-lead-meta, .post-meta {
  font-family: var(--sans-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--soft); font-weight: 600;
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.post-lead-meta { margin-bottom: var(--sp-3); }
.post-lead-meta span::before, .post-meta span::before {
  content: '\00b7'; margin-right: 1rem; color: var(--line);
}
.post-lead-meta span:first-child::before, .post-meta span:first-child::before {
  content: none; margin: 0;
}
.post-lead-meta span:first-child { color: var(--gold); }
.post-lead-title {
  font-family: var(--serif-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 400; line-height: 1.06;
  letter-spacing: var(--ls-display);
  font-variation-settings: var(--opsz-display);
  max-width: 20ch; margin-bottom: var(--sp-3);
}
.post-lead-title a { color: var(--ink); text-decoration: none; }
.post-lead-title a:hover { color: var(--royal); }
.post-lead-hook {
  font-family: var(--serif-display);
  font-variation-settings: 'opsz' 24;
  font-size: 1.14rem; line-height: 1.68;
  color: var(--soft); max-width: 56ch;
  margin-bottom: var(--sp-3);
}
.post-lead-more {
  font-family: var(--sans-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-bottom: 2px solid var(--gold); padding-bottom: 0.35rem;
  transition: gap .25s var(--ease, cubic-bezier(.2,.8,.2,1));
}
.post-lead-more:hover { gap: 1rem; }

/* Index list sits quieter now that a lead carries the weight. */
.post-list { margin-top: var(--sp-2); }

@media (max-width: 900px) {
  .post-lead-title { max-width: 100%; }
  .post-body p.hook, .post-body p.kicker { max-width: 100%; }
  .post-body p.hook + p::first-letter { font-size: 3.2em; }
}
