/* rafkat.com
   Built on the Listyco Design System tokens (colour, type, radius, shadow, motion).
   Rules kept: white first, SF Pro only, two tones of text, no lines, no eyebrows,
   pills and soft corners, no full stops on display lines. */

/* ---------- Tokens ---------- */
:root {
  --bg-white: #ffffff;
  --bg-paper: #fcfdfe;
  --bg-grey: #f1f3f5;
  --bg-navy: #012340;
  --bg-navy-deep: #0d1b2a;
  --bg-navy-card: rgba(255, 255, 255, 0.08);
  --fill-soft: #f8f9fb;
  --fill-deep: #ebedef;
  --fill-press: #e1e3e6;
  --text-ink: #14181d;
  --text-grey: #81878d;
  --text-soft: #5a6068;
  --text-faint: #666b71;
  --text-white: #ffffff;
  --text-mist: #c5d3e8;
  --signal-focus: #848a91;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --size-control: 36px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-video-card: 24px;
  --radius-social-card: 28px;
  --radius-social-panel: 40px;

  --shadow-card: 0 1px 2px oklch(20% 0.02 256 / 0.04), 0 4px 12px -4px oklch(20% 0.02 256 / 0.08);
  --shadow-lift: 0 1px 2px oklch(0% 0 0 / 0.05), 0 8px 24px -8px oklch(0% 0 0 / 0.10);
  --shadow-float: 0 2px 4px rgba(20, 24, 29, 0.06), 0 40px 80px -30px rgba(20, 32, 48, 0.4);
  --shadow-icon: 0 4px 10px rgba(20, 24, 29, 0.10), 0 36px 80px -28px rgba(20, 24, 29, 0.38);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-quint: cubic-bezier(.16, 1, .3, 1);
  --dur-press: 180ms;
  --dur-quick: 250ms;
  --dur-rise: 700ms;
  --dur-stagger-block: 70ms;

  /* Web layout */
  --page: 1200px;
  --read: 680px;
  --gutter: clamp(16px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-white: #20242b; --bg-paper: #171b21; --bg-grey: #0f1318;
    --fill-soft: #1c2026; --fill-deep: #292e35; --fill-press: #333840;
    --text-ink: #e9ebef; --text-grey: #999fa7; --text-soft: #afb5bd; --text-faint: #999fa7;
    --signal-focus: #a0a5ac;
    --shadow-card: 0 1px 2px oklch(8% 0.01 256 / 0.22), 0 4px 12px -4px oklch(8% 0.01 256 / 0.28);
    --shadow-lift: 0 1px 2px oklch(8% 0.01 256 / 0.3), 0 8px 24px -8px oklch(8% 0.01 256 / 0.4);
    --shadow-float: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-white: #20242b; --bg-paper: #171b21; --bg-grey: #0f1318;
  --fill-soft: #1c2026; --fill-deep: #292e35; --fill-press: #333840;
  --text-ink: #e9ebef; --text-grey: #999fa7; --text-soft: #afb5bd; --text-faint: #999fa7;
  --signal-focus: #a0a5ac;
  --shadow-card: 0 1px 2px oklch(8% 0.01 256 / 0.22), 0 4px 12px -4px oklch(8% 0.01 256 / 0.28);
  --shadow-lift: 0 1px 2px oklch(8% 0.01 256 / 0.3), 0 8px 24px -8px oklch(8% 0.01 256 / 0.4);
  --shadow-float: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--signal-focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: var(--text-ink); color: var(--bg-white); padding: 8px 14px; border-radius: var(--radius-pill); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.band-grey { background: var(--bg-grey); }
.band-white { background: var(--bg-white); }
.band-navy { background: var(--bg-navy); color: var(--text-white); }

/* ---------- Type ---------- */
.display, .headline, .title {
  font-weight: 650;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.042em; }
.headline { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.038em; }
.title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; }
.display span, .headline span { display: block; }
.two { color: var(--text-grey); }
.band-navy .two { color: var(--text-mist); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-soft); max-width: 40ch; text-wrap: pretty; }
.band-navy .lede { color: var(--text-white); }
.body { color: var(--text-soft); line-height: 1.6; }
.meta { font-size: 14px; line-height: 1.4; color: var(--text-faint); }
.stack-headline > * + * { margin-top: 26px; }

/* ---------- Controls ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  font: 500 15px/1 var(--font-sans);
  height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-quint), background-color var(--dur-quick) var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: var(--size-control); padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--text-ink); color: var(--bg-white); }
.btn-secondary { background: var(--fill-deep); color: var(--text-ink); }
.btn-secondary:hover { background: var(--fill-press); }
.btn-white { background: var(--text-white); color: #14181d; }
.btn-ghost-dark { background: var(--bg-navy-card); color: var(--text-white); }
.btn-tertiary { background: none; padding: 0 2px; color: var(--text-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--fill-deep); color: var(--text-ink); font-size: 13px; font-weight: 500; }
.band-navy .pill { background: var(--bg-navy-card); color: var(--text-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--text-soft); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-pill); transition: background-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out); }
.nav a:not(.btn):hover { color: var(--text-ink); background: var(--fill-deep); }
.nav a[aria-current="page"] { color: var(--text-ink); background: var(--fill-deep); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; width: 40px; height: 40px; padding: 0; background: var(--fill-deep); color: var(--text-ink); }
  .nav {
    position: fixed; left: 12px; right: 12px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: var(--radius-video-card);
    background: var(--bg-white); box-shadow: var(--shadow-float);
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden;
    transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out), visibility 0s linear var(--dur-quick);
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
  .nav .btn { margin: 8px 0 0; height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 120px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy > * + * { margin-top: 28px; }
.hero-copy .actions { margin-top: 40px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-social-card);
  overflow: hidden; background: var(--fill-deep); box-shadow: var(--shadow-float);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 20px; bottom: 18px; right: 20px; font-size: 13px; color: var(--text-white); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .portrait { max-width: 300px; order: -1; }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); flex-wrap: wrap; }
.section-head .lede { margin-top: 20px; }

/* ---------- Article cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-white); border-radius: var(--radius-video-card);
  padding: clamp(28px, 3vw, 40px); min-height: 380px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 650; text-wrap: balance; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { margin-top: 16px; color: var(--text-soft); line-height: 1.55; }
.card .card-foot { margin-top: auto; padding-top: 32px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-num { font-size: 15px; font-weight: 600; color: var(--text-grey); margin-bottom: 28px; letter-spacing: -0.01em; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } .cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- What I'm building ---------- */
.building-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.building-top .lede { max-width: 44ch; }
.building-logo { height: 28px; width: auto; margin-bottom: 48px; }
.exits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.exit {
  display: flex; flex-direction: column;
  background: var(--bg-navy-card); border-radius: var(--radius-social-card);
  padding: clamp(28px, 3.4vw, 48px);
}
.exit-for { font-size: 17px; font-weight: 500; color: var(--text-mist); }
.exit-head { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.exit-head img { width: 56px; height: 56px; flex: none; }
.exit h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; }
.exit p { margin-top: 20px; color: var(--text-white); line-height: 1.55; max-width: 42ch; }
.exit ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.exit li { display: flex; gap: 12px; align-items: baseline; color: var(--text-white); line-height: 1.45; }
.exit li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text-mist); transform: translateY(-2px); }
.exit .actions { margin-top: auto; padding-top: 40px; }
.exit .fine { margin-top: 14px; font-size: 14px; color: var(--text-mist); }
@media (max-width: 860px) { .building-top, .exits { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.signup { text-align: center; }
.signup .headline, .signup .lede { margin-left: auto; margin-right: auto; }
.signup .lede { margin-top: 24px; max-width: 46ch; }
/* The embed slot. Replace everything between the EMBED markers with your provider's form. */
.embed-slot {
  margin: 48px auto 0; max-width: 560px; position: relative;
  background: var(--fill-soft); border-radius: var(--radius-video-card);
  padding: 28px; box-shadow: var(--shadow-card);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--fill-deep) 55%, transparent) 14px 28px);
}
.band-white .embed-slot { background-color: var(--bg-paper); }
.embed-label { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--text-ink); color: var(--bg-white); font-size: 12px; font-weight: 600; }
.embed-preview { display: flex; gap: 10px; margin-top: 18px; }
.embed-preview .field {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: var(--bg-white); color: var(--text-faint); font: 400 16px/48px var(--font-sans); text-align: left; box-shadow: var(--shadow-card);
}
.embed-preview .btn { height: 48px; }
.embed-note { margin-top: 14px; font-size: 13px; color: var(--text-faint); }
.signup-fine { margin-top: 20px; font-size: 14px; color: var(--text-faint); }
@media (max-width: 520px) { .embed-preview { flex-direction: column; } }


/* Real newsletter form (Resend double opt-in) — matches pill field + primary button */
.embed-slot:has(.nl-form) {
  background-image: none;
  text-align: left;
}
.nl-form { margin: 0; }
.nl-row {
  display: flex; gap: 10px; align-items: stretch;
}
.nl-email {
  flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: var(--bg-white); color: var(--text-ink); font: 400 16px/48px var(--font-sans);
  box-shadow: var(--shadow-card); outline: none;
}
.nl-email::placeholder { color: var(--text-faint); }
.nl-email:focus { box-shadow: var(--shadow-card), 0 0 0 2px color-mix(in srgb, var(--text-ink) 25%, transparent); }
.nl-form .btn { height: 48px; flex: none; }
.nl-hp {
  /* Visually + a11y hidden honeypot; keep in DOM for bots.
     Self-contained (does not rely on .sr-only) so form/label rules cannot unhide it. */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: -10000px !important;
  top: auto !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.nl-hp label,
.nl-hp input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.nl-form { position: relative; }
.nl-consent {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-size: 13px; line-height: 1.45; color: var(--text-soft); text-align: left;
}
.nl-consent input {
  flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--text-ink);
}
.nl-consent a { color: var(--text-ink); text-decoration: underline; text-underline-offset: 2px; }
.nl-msg {
  margin-top: 14px; font-size: 14px; line-height: 1.45; text-align: left;
}
.nl-msg--ok { color: var(--text-ink); }
.nl-msg--err { color: #b42318; }
.nl-status {
  margin: 0 auto 28px; max-width: 42ch; padding: 14px 18px; border-radius: var(--radius-pill);
  font-size: 15px; line-height: 1.45; text-align: center;
}
.nl-status--ok { background: var(--fill-deep); color: var(--text-ink); }
.nl-status--err { background: color-mix(in srgb, #b42318 12%, var(--bg-white)); color: #b42318; }
@media (max-width: 520px) {
  .nl-row { flex-direction: column; }
  .nl-form .btn { width: 100%; }
}

/* ---------- Insights index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filter { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; font: 500 14px/1 var(--font-sans); height: var(--size-control); padding: 0 16px; border-radius: var(--radius-pill); background: var(--fill-deep); color: var(--text-ink); transition: transform var(--dur-press) var(--ease-quint), background-color var(--dur-quick) var(--ease-out); }
.filter:active { transform: scale(.97); }
.filter[aria-pressed="true"] { background: var(--text-ink); color: var(--bg-white); }
.feature {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end;
  background: var(--bg-white); border-radius: var(--radius-social-card); padding: clamp(32px, 5vw, 72px);
  box-shadow: var(--shadow-card); margin-bottom: 24px;
  transition: transform var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.feature h2 a { text-decoration: none; }
.feature h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature p { color: var(--text-soft); font-size: 18px; line-height: 1.6; }
.feature .card-foot { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; align-items: start; } }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .list-grid { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.empty { color: var(--text-soft); padding: 40px 0; }

/* ---------- Article ---------- */
.article-head { padding: clamp(40px, 7vw, 104px) 0 clamp(48px, 6vw, 80px); }
.article-head .inner, .prose, .article-foot { max-width: var(--read); margin: 0 auto; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-soft); text-decoration: none; margin-bottom: 40px; padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: var(--radius-pill); }
.back:hover { background: var(--fill-deep); color: var(--text-ink); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-title { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; }
.standfirst { margin-top: 28px; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--text-soft); letter-spacing: -0.01em; text-wrap: pretty; }
.byline { margin-top: 40px; display: flex; align-items: center; gap: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--fill-deep); }
.byline strong { display: block; font-size: 15px; font-weight: 600; }
.byline span { font-size: 14px; color: var(--text-faint); }

.prose { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--text-soft); padding-bottom: clamp(64px, 8vw, 112px); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 650; color: var(--text-ink); text-wrap: balance; }
.prose h2 + * { margin-top: .7em; }
.prose strong { color: var(--text-ink); font-weight: 600; }
.prose a { color: var(--text-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--text-grey); }
.pull {
  margin: 2em 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-video-card);
  background: var(--bg-grey); color: var(--text-ink);
  font-size: clamp(23px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance;
}
.pull + * { margin-top: 2em; }
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; background: var(--bg-white); border-radius: var(--radius-video-card); padding: 32px; box-shadow: var(--shadow-card); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--fill-deep); }
.author-box h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.author-box p { margin-top: 8px; color: var(--text-soft); line-height: 1.55; }
.author-box .actions { margin-top: 18px; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.chapters { display: grid; gap: clamp(64px, 8vw, 112px); }
.chapter { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 80px); }
.chapter-side h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 650; text-wrap: balance; }
.chapter-side .meta { margin-top: 12px; font-size: 15px; }
.chapter-body { max-width: var(--read); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--text-soft); }
.chapter-body > * + * { margin-top: 1.1em; }
.chapter-body strong { color: var(--text-ink); font-weight: 600; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } }
.tradeoffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tradeoff { background: var(--bg-white); border-radius: var(--radius-video-card); padding: clamp(28px, 3vw, 40px); box-shadow: var(--shadow-card); }
.tradeoff h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
.tradeoff h3 span { display: block; color: var(--text-grey); }
.tradeoff p { margin-top: 16px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 760px) { .tradeoffs { grid-template-columns: 1fr; } }
.principles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: p; }
.principles li { background: var(--fill-soft); border-radius: var(--radius-video-card); padding: 32px; }
.band-white .principles li { background: var(--bg-grey); }
.principles h3 { font-size: 20px; letter-spacing: -0.015em; font-weight: 650; line-height: 1.25; }
.principles p { margin-top: 12px; color: var(--text-soft); line-height: 1.55; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Newsletter page ---------- */
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
.topic { background: var(--bg-white); border-radius: var(--radius-video-card); padding: 28px; box-shadow: var(--shadow-card); text-align: left; }
.topic h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.topic p { margin-top: 10px; color: var(--text-soft); line-height: 1.55; font-size: 16px; }
@media (max-width: 980px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .topics { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy-deep); color: var(--text-white); padding: clamp(72px, 9vw, 120px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.footer-top .headline .two { color: var(--text-mist); }
.footer-top .actions { justify-content: flex-end; }
.footer-bottom { margin-top: clamp(72px, 9vw, 120px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links, .social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.footer-links a, .social a { display: inline-flex; align-items: center; height: var(--size-control); padding: 0 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--text-white); text-decoration: none; background: var(--bg-navy-card); transition: background-color var(--dur-quick) var(--ease-out); }
.footer-links a:hover, .social a:hover { background: rgba(255,255,255,.16); }
.copyright { font-size: 14px; color: var(--text-mist); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } .footer-top .actions { justify-content: flex-start; } }

/* ---------- Motion ---------- */
@keyframes ly-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.in { animation: ly-rise var(--dur-rise) var(--ease-quint) both; animation-delay: calc(var(--i, 0) * var(--dur-stagger-block)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; animation: none; }
  .card, .feature, .btn { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .signup, .embed-slot, .author-box .actions, .back { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #222; }
}


/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin-inline: auto;
  background: var(--surface-raised, #fff); color: var(--text-ink);
  border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 18px 50px rgba(11, 31, 58, .18);
  border: 1px solid var(--grey-2, #E8ECF1);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-soft, #5B6B7C); }
.cookie-banner a { color: var(--text-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .cookie-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.cookie-banner .btn { font-size: 13px; padding: 10px 14px; }
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: #1c222b; border-color: rgba(255,255,255,.08);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
  }
  .cookie-banner p { color: rgba(255,255,255,.72); }
  .cookie-banner a { color: #fff; }
}

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--grey-2, #E8ECF1); vertical-align: top; }
.prose th { color: var(--text-ink); font-weight: 650; }
