:root {
  --bg: #f7f2e9;
  --bg-warm: #efe8d9;
  --paper: #fbf7ee;
  --ink: #0b1f3a;
  --ink-soft: #2a3a55;
  --ink-mute: #6b7588;
  --rule: #d8cfb9;
  --rule-soft: #e8e0cb;
  --blue: #1a76d1;
  --blue-deep: #0e5bab;
  --pink: #ec4899;
  --teal: #0d9488;
  --teal-deep: #0a7268;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(236, 72, 153, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 92%, rgba(13, 148, 136, 0.04) 0%, transparent 35%);
  background-attachment: fixed;
}

/* Reading progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--pink);
  width: 0%;
  z-index: 1000;
  transition: width 80ms linear;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--rule);
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  font-style: italic;
}
.brand-dot { color: var(--pink); }
.nav-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  position: relative;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal-deep);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 980px;
  margin-bottom: 32px;
}
h1 em {
  font-style: italic;
  color: var(--ink);
  font-weight: 300;
}
h1 .accent {
  background: linear-gradient(180deg, transparent 65%, rgba(236, 72, 153, 0.22) 65%, rgba(236, 72, 153, 0.22) 92%, transparent 92%);
}
.lede {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 40px;
  font-variation-settings: 'opsz' 24;
}
.meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.meta-row span { display: flex; align-items: center; gap: 8px; }
.meta-row .dot {
  width: 4px; height: 4px;
  background: var(--pink);
  border-radius: 50%;
}

/* Layout */
.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 120px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 80px;
  }
  .toc { display: none; }
  .hero { padding: 56px 24px 32px; }
}

/* TOC */
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 13px;
  line-height: 1.7;
}
.toc-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  padding: 6px 0;
}
.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  display: flex;
  gap: 10px;
  transition: color 0.15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--pink);
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.toc a:hover { color: var(--blue); }

/* Article */
article {
  max-width: 720px;
  font-size: 18px;
}
article p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}
article p strong { color: var(--ink); font-weight: 600; }

article h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 80px 0 28px;
  position: relative;
  padding-top: 32px;
}
article h2::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-transform: uppercase;
}
article h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

article h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 44px 0 14px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
article h3 .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--pink);
  font-variant-numeric: oldstyle-nums;
}

article ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}
article ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--pink);
}

article a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 118, 209, 0.4);
  transition: text-decoration-color 0.2s;
}
article a:hover { text-decoration-color: var(--blue); }

/* Pull quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--ink);
  margin: 48px -40px;
  padding: 32px 40px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-style: italic;
  position: relative;
  font-variation-settings: 'opsz' 36, 'SOFT' 50;
}
.pull::before {
  content: '“';
  position: absolute;
  top: -8px;
  left: 24px;
  font-size: 80px;
  color: var(--pink);
  font-family: var(--serif);
  line-height: 1;
}
@media (max-width: 720px) {
  .pull { margin: 40px 0; padding: 28px 0 28px 24px; }
  .pull::before { left: 0; top: -4px; font-size: 60px; }
}

/* Numbered list (for criteria) */
.ordered {
  counter-reset: crit;
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
}
.ordered li {
  counter-increment: crit;
  position: relative;
  padding-left: 56px;
  margin-bottom: 28px;
  padding-bottom: 0;
}
.ordered li::before {
  content: counter(crit, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  color: var(--pink);
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
}
.ordered li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

/* Stat block */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-bottom: 1px solid var(--rule-soft); border-right: none !important; }
  .stats > div:last-child { border-bottom: none; }
}
.stats > div {
  padding: 24px 20px 24px 0;
  border-right: 1px solid var(--rule-soft);
}
.stats > div:last-child { border-right: none; padding-right: 0; }
.stats .num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stats .num em {
  font-style: italic;
  color: var(--pink);
  font-weight: 400;
}
.stats .label {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* Mid CTA */
.midcta {
  margin: 64px -16px;
  padding: 36px 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.midcta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
}
.midcta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 12px;
}
.midcta-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.midcta p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.midcta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.midcta-link:hover {
  gap: 14px;
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
}

/* FAQ */
.faq { margin-top: 32px; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  color: var(--pink);
  line-height: 0.8;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Final CTA */
.endcta {
  margin: 100px 0 0;
  padding: 64px 0 40px;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.endcta-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}
.endcta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  padding: 0;
  max-width: 600px;
  font-variation-settings: 'opsz' 72;
}
.endcta-title::before { content: none; }
.endcta-title em { font-style: italic; font-weight: 300; }
.endcta p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: background 0.15s, gap 0.2s;
}
.btn:hover { background: var(--blue-deep); gap: 14px; }
.btn .arr { font-family: var(--serif); font-weight: 300; font-size: 18px; }

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 40px 32px;
  background: var(--bg-warm);
}
.foot {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-mute);
}
.foot a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.foot a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  float: left;
  font-size: 68px;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--pink);
  font-variation-settings: 'opsz' 144;
}
