@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/inter.woff2') format('woff2-variations'); }
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/assets/fonts/fraunces.woff2') format('woff2-variations'); }

:root {
  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --card: #ffffff;
  --ink: #14213d;
  --ink-2: #3d4a63;
  --muted: #5d6779;
  --line: #e3ded3;
  --accent: #0f6b66;
  --accent-ink: #0a4f4b;
  --accent-soft: #e3f0ee;
  --focus: #1d4ed8;
  --serif: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 72rem;
  --prose: 42rem;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
p { margin: 0 0 1.1rem; }
strong { font-weight: 640; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--prose); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--ink); transition: background .15s, color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: ' →'; }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card .arrow { margin-top: auto; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { border-top: 2px solid var(--ink); padding-top: .75rem; }
.stats b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 560; line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.chips li { font-size: .85rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding: 1rem 1.25rem 1rem 3.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }

dl.defs { margin: 0; display: grid; gap: 1rem; }
dl.defs div { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
dl.defs dt { font-weight: 650; }
dl.defs dd { margin: .25rem 0 0; color: var(--ink-2); }

/* Page header */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 2.25rem 1.75rem; }
.timeline > li::before { content: ''; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline > li.current::before { background: var(--accent); }
.timeline .meta { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.timeline h3 { margin-bottom: .2rem; }

.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-weight: 640; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .75rem 0 0; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--ink); color: #e8ecf4; border-radius: calc(var(--r) * 1.5); padding: clamp(2rem, 5vw, 3.5rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d1e0; max-width: 40rem; }
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta-band a:focus-visible { outline-color: #9cc3ff; }

.note { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.25rem; border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Keep reading-width blocks left-aligned with the rest of the layout */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: var(--prose); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .5rem; color: var(--ink); cursor: pointer; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 520; font-size: .96rem; }
.nav ul a:hover { color: var(--ink); background: var(--paper-2); }
.nav ul a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { padding: .6rem 1rem; font-size: .9rem; }
@media (max-width: 1000px) {
  html.js .menu-btn { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: .75rem; padding: 0 0 1rem; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .75rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); padding-left: .9rem; }
  .nav-cta { justify-content: center; }
  html.js .nav { display: none; }
  html.js .nav.open { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 820px) { .site-footer .cols { grid-template-columns: 1.4fr 1.2fr 1fr; } }
.site-footer .logo { display: block; font-size: 1.35rem; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.site-footer li { margin-bottom: .45rem; break-inside: avoid; }
.site-footer a { color: var(--ink-2); font-size: .94rem; }
.site-footer .small p { margin-bottom: .5rem; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; }

/* ---------- Hero & portraits ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.45fr 1fr; gap: 4rem; } }
.portrait { margin: 0; max-width: 380px; justify-self: center; position: relative; }
.portrait img { border-radius: 18px; position: relative; }
.portrait.framed::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 1.5px solid var(--accent); border-radius: 18px; }
@media (max-width: 899px) { .portrait { order: -1; max-width: 220px; justify-self: start; } }
.about-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.about-grid .portrait { max-width: 320px; justify-self: start; }
.stats b.word { font-size: 1.55rem; padding-top: .3rem; }

/* ---------- Article ---------- */
.article { padding-bottom: 4rem; }
.article .body h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.article .body p, .article .body li { color: var(--ink-2); }
.article .body ul, .article .body ol { padding-left: 1.25rem; }
.article .body li { margin-bottom: .4rem; }
.author { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-top: 3rem; }
.author img { width: 80px; height: 100px; object-fit: cover; border-radius: 10px; }
.author .name { font-weight: 650; margin: 0 0 .3rem; }
.author .small { margin: 0; }
@media (max-width: 899px) { .about-grid .portrait { max-width: 200px; } }

/* ---------- AEO/GEO answer blocks ---------- */
.in-short { margin: 1.75rem 0 0; padding: 1.1rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; }
.in-short p { margin: 0; color: var(--ink); }
.in-short .in-short-label { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.facts { display: grid; gap: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }
.takeaways { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--accent-soft); border-radius: var(--r); }
.takeaways h2 { font-size: 1.15rem !important; margin: 0 0 .6rem !important; font-family: var(--sans); font-weight: 700; }
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin-bottom: .35rem; color: var(--ink) !important; }
.updated { padding-top: 1rem; }
