@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-semibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: oklch(0.245 0.027 210);
  background: oklch(0.965 0.006 210);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: oklch(0.965 0.006 210);
  --surface: oklch(1 0 0);
  --ink: oklch(0.245 0.027 210);
  --muted: oklch(0.43 0.026 210);
  --primary: oklch(0.55 0.091 210);
  --primary-deep: oklch(0.38 0.07 210);
  --soft: oklch(0.91 0.045 205);
  --accent: oklch(0.78 0.13 162);
  --line: oklch(0.89 0.012 210);
  --danger: oklch(0.55 0.17 25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary-deep); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.page {
  width: min(calc(100% - 2rem), 72rem);
  margin: 1rem auto;
  overflow: clip;
  background: var(--surface);
  border-radius: 1rem;
}

.topbar,
.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar { border-bottom: 1px solid var(--line); }

.wordmark { display: inline-flex; }

.wordmark img {
  width: 9rem;
  height: auto;
}

.topbar a:last-child,
.site-footer a {
  font-size: 0.8rem;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 9vw, 8rem) clamp(2.75rem, 6vw, 5rem);
  background: radial-gradient(circle at 86% 6%, var(--soft), transparent 30rem);
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 1.1rem;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 { color: var(--ink); text-wrap: balance; }

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.facts {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.facts li {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: color-mix(in oklab, var(--surface) 85%, var(--soft));
}

.facts strong,
.facts span { display: block; }
.facts strong { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.facts span { margin-top: 0.2rem; font-size: 0.86rem; font-weight: 700; overflow-wrap: anywhere; }

.content { padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 9vw, 8rem); }

.toc {
  margin: 0 0 3.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--soft);
}

.toc h2 { margin: 0; font-size: 1rem; }
.toc ol { margin: 0.75rem 0 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { margin: 0.28rem 0; break-inside: avoid; font-size: 0.9rem; }

section + section { margin-top: 3.75rem; }

h2 {
  max-width: 29ch;
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h3 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; }

p, li { color: var(--muted); }
p { max-width: 48rem; margin: 0.85rem 0; }
ul { max-width: 48rem; padding-left: 1.3rem; }
li + li { margin-top: 0.45rem; }

.summary,
.notice {
  max-width: 48rem;
  margin-top: 1.4rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--soft) 58%, var(--surface));
}

.summary p,
.notice p { margin: 0; }
.notice { border-left: 3px solid var(--danger); background: color-mix(in oklab, oklch(0.94 0.04 25) 56%, var(--surface)); }

.table-wrap {
  max-width: 100%;
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table { width: 100%; min-width: 38rem; border-collapse: collapse; }
th, td { padding: 0.9rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--ink); background: var(--soft); font-size: 0.8rem; }
td { color: var(--muted); font-size: 0.86rem; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9em; }

.site-footer { margin-top: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.site-footer p { width: 100%; margin: 0; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 640px) {
  .page { width: 100%; margin: 0; border-radius: 0; }
  .topbar, .site-footer { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .facts { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  section + section { margin-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
