:root {
  --ink: #000000;
  --paper: #ffffff;
  --soft: #efefef;
  --input: #f3f3f3;
  --pressed: #e2e2e2;
  --hover: #282828;
  --secondary: #5e5e5e;
  --muted: #4b4b4b;
  --faint: #afafaf;
  --link: #0000ee;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 28px;
  --s8: 32px;
  --section: 80px;
  --column-gap: 64px;
  --page-width: 1200px;
  --measure: 68ch;
  --radius: 16px;
  --pill-radius: 999px;
  --line: 1px solid var(--pressed);
  --elevation: 0 4px 16px rgb(0 0 0 / 14%);
  --pill-elevation: 0 2px 8px rgb(0 0 0 / 12%);
  --body-font: 'Inter Text', Arial, sans-serif;
  --display-font: 'Inter Display', Arial, sans-serif;
  --body-size: 16px;
  --body-line: 24px;
  --hero-size: 52px;
  --hero-line: 64px;
  --section-size: 36px;
  --section-line: 44px;
  --promo-size: 32px;
  --promo-line: 40px;
  --card-size: 24px;
  --card-line: 32px;
  --small-head-size: 20px;
  --small-head-line: 28px;
  --touch: 48px;
}

@font-face {
  font-family: 'Inter Text';
  src: url('/static/inter-latin.c940764593d0.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Display';
  src: url('/static/inter-latin.c940764593d0.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--s8); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); font-size: var(--body-size); line-height: var(--body-line); }
main { min-width: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display-font); font-weight: 700; font-feature-settings: 'ss01' 1; letter-spacing: normal; text-wrap: balance; }
h1 { font-size: var(--hero-size); line-height: var(--hero-line); }
h2 { font-size: var(--section-size); line-height: var(--section-line); }
h3 { font-size: var(--card-size); line-height: var(--card-line); }
h4 { font-size: var(--small-head-size); line-height: var(--small-head-line); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: var(--s1); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid currentColor; outline-offset: var(--s1); }
textarea { width: 100%; resize: vertical; padding: var(--s4); color: var(--ink); background: var(--input); border: 1px solid var(--secondary); border-radius: var(--radius); min-height: 200px; }
textarea::placeholder { color: var(--secondary); opacity: 1; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; margin-left: auto; font-size: var(--small-head-size); }
details[open] > summary::after { content: '−'; }
[hidden] { display: none !important; }

.page-width { width: min(var(--page-width), calc(100% - var(--s8) * 2)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.grid { display: grid; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); }
.grid-reader { grid-template-columns: minmax(0, 760px) minmax(0, 320px); }
.flex { display: flex; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
.gap-4 { gap: var(--s4); }
.gap-6 { gap: var(--s6); }
.gap-8 { gap: var(--s8); }
.gap-column { gap: var(--column-gap); }
.stack > * + * { margin-top: var(--s6); }
.stack-tight > * + * { margin-top: var(--s3); }
.stack-wide > * + * { margin-top: var(--s8); }
.pad-6 { padding: var(--s6); }
.pad-8 { padding: var(--s8); }
.space-section { padding-block: var(--section); }
.space-header { padding-block: var(--s4); }
.space-footer { padding-block: var(--s8); }
.space-start { padding-top: var(--s8); }
.space-end { padding-bottom: var(--s8); }
.margin-start { margin-top: var(--s8); }
.border-bottom { border-bottom: var(--line); }
.border-top { border-top: var(--line); }
.border { border: var(--line); }
.round { border-radius: var(--radius); }
.round-pill { border-radius: var(--pill-radius); }
.elevated { box-shadow: var(--elevation); }
.float { box-shadow: var(--pill-elevation); }
.bg-soft { background: var(--soft); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); }
.text-paper { color: var(--paper); }
.text-secondary { color: var(--secondary); }
.text-ink { color: var(--ink); }
.text-lead { font-size: 18px; line-height: var(--body-line); font-weight: 500; }
.text-body { font-size: var(--body-size); line-height: var(--body-line); }
.text-medium { font-weight: 500; }
.text-promo { font-size: var(--promo-size); line-height: var(--promo-line); }
.text-small-head { font-size: var(--small-head-size); line-height: var(--small-head-line); }
.no-underline { text-decoration: none; }
.min-zero { min-width: 0; }
.full-width { width: 100%; }
.position-context { position: relative; }
.overflow-clip { overflow: hidden; }
.self-start { align-self: start; }
.order-last { order: 2; }
.tap { display: inline-flex; align-items: center; min-height: var(--touch); padding: var(--s3) var(--s5); gap: var(--s3); }
.pill { border: 0; border-radius: var(--pill-radius); font-weight: 500; text-align: center; text-decoration: none; }
.pill-ink { background: var(--ink); color: var(--paper); }
.pill-paper { background: var(--paper); color: var(--ink); }
.pill-soft { background: var(--soft); color: var(--ink); }
.pill-ink:hover { background: var(--hover); }
.pill-paper:hover, .pill-soft:hover { background: var(--pressed); }
.pill:active { transform: translateY(1px); }
.chip { display: inline-flex; padding: var(--s2) var(--s4); border-radius: var(--pill-radius); font-weight: 500; background: var(--soft); }
.text-link { display: inline-flex; align-items: center; min-width: var(--touch); min-height: var(--touch); padding-block: var(--s3); }
.source-link { color: var(--link); }
.footer-link { color: var(--paper); }
.footer-meta { color: var(--faint); }
.mark { width: var(--s8); height: var(--s8); border: 2px solid currentColor; border-radius: var(--pill-radius); display: grid; place-items: center; flex: 0 0 auto; }
.mark::before { content: ''; width: var(--s2); height: var(--s2); border-radius: var(--pill-radius); background: currentColor; }
.nav-panel { position: absolute; z-index: 20; top: calc(100% + var(--s3)); right: 0; width: 384px; max-width: calc(100vw - var(--s8)); }
.nav-group { display: flex; align-items: center; min-height: var(--touch); padding: var(--s3) var(--s4); gap: var(--s6); }
.nav-link { display: block; padding: var(--s3) var(--s4); min-height: var(--touch); text-decoration: none; border-radius: var(--pill-radius); }
.nav-link:hover { background: var(--soft); }
.current { background: var(--soft); font-weight: 500; }
.skip-link { position: absolute; top: var(--s4); left: var(--s4); z-index: 30; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.hero-intro { padding-block: 72px var(--section); }
.hero-card { margin-top: var(--s8); }
.route-item { display: flex; gap: var(--s4); align-items: center; min-height: 64px; padding: var(--s4); text-decoration: none; background: var(--input); border-radius: var(--radius); }
.route-item:hover { background: var(--pressed); }
.route-dot { width: var(--s3); height: var(--s3); border-radius: var(--pill-radius); border: 2px solid currentColor; flex-shrink: 0; }
.route-arrow { margin-left: auto; font-size: var(--card-size); }
.callout-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.check-row { display: grid; grid-template-columns: var(--s6) minmax(0, 1fr); gap: var(--s4); padding-block: var(--s6); border-top: var(--line); }
.check-mark { display: grid; place-items: center; width: var(--s6); height: var(--s6); border: 1px solid currentColor; border-radius: var(--pill-radius); font-size: var(--body-size); }
.feature-link { display: flex; flex-direction: column; gap: var(--s4); height: 100%; padding: var(--s6); border: var(--line); border-radius: var(--radius); text-decoration: none; }
.feature-link:hover { background: var(--input); }
.feature-action { display: inline-flex; align-items: center; min-height: var(--touch); gap: var(--s2); margin-top: auto; font-weight: 500; }
.term-line { width: var(--s8); border-top: 4px solid currentColor; }
.question-box { display: flex; flex-direction: column; gap: var(--s6); }
.next-link { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: var(--s4) 0; gap: var(--s4); }
.notes-status { min-height: var(--body-line); }
.note-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.source-item { padding-block: var(--s4); border-top: var(--line); }
.breadcrumb { min-height: var(--touch); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }

@media (max-width: 900px) {
  :root { --column-gap: 32px; --section: 64px; }
  .grid-reader { grid-template-columns: minmax(0, 1fr); }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
  .grid-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .desktop-link { display: none; }
}

@media (max-width: 680px) {
  :root { --hero-size: 40px; --hero-line: 48px; --section-size: 28px; --section-line: 36px; --section: 48px; }
  .page-width { width: calc(100% - var(--s4) * 2); }
  .grid-two, .grid-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-intro { padding-block: var(--s8) var(--section); }
  .hero-card { margin-top: 0; }
  .order-last { order: initial; }
  .brand-subtitle { display: none; }
  .nav-panel { right: 0; width: calc(100vw - var(--s8)); }
  .pad-8 { padding: var(--s6); }
  .mobile-stack { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .pill:active { transform: none; }
}

@media print {
  .site-navigation, .site-footer, .keep-question, .note-actions, .skip-link { display: none; }
  .page-width { width: 100%; }
  .grid-reader, .grid-hero { grid-template-columns: minmax(0, 1fr); }
  .bg-ink { background: var(--paper); color: var(--ink); }
  .space-section { padding-block: var(--s8); }
  textarea { min-height: 260px; }
  a { color: var(--ink); }
}
