/* flash: the website. Same blue and the same Garamond as the paper, laid out as a modern site. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/eb-garamond-latin-143e88.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url("fonts/eb-garamond-latin-eb4c3b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "UnifrakturMaguntia"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/unifrakturmaguntia-latin-df8993.woff2") format("woff2"); }

:root, :root[data-theme="dark"] {
  --bg: #0b1017;
  --bg-alt: #0f151e;
  --surface: #131b26;
  --surface-2: #18222f;
  --line: #223042;
  --line-strong: #31445b;
  --text: #e6edf5;
  --muted: #93a3b6;
  --heading: #f5f8fc;
  --accent: #4f9dff;
  --accent-strong: #79b4ff;
  --accent-ink: #06101c;
  --accent-wash: color-mix(in srgb, #4f9dff 14%, transparent);
  --fact: #4f9dff;
  --lesson: #e0b15c;
  --question: #b5c3d3;
  --term-bg: #070a0e;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #dde3ea;
  --line-strong: #c4cdd8;
  --text: #1c2632;
  --muted: #5b6979;
  --heading: #0d1620;
  --accent: #1656b5;
  --accent-strong: #0f4597;
  --accent-ink: #ffffff;
  --accent-wash: color-mix(in srgb, #1656b5 9%, transparent);
  --fact: #1656b5;
  --lesson: #94600a;
  --question: #4a5868;
  --term-bg: #0f1720;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 18px 40px -22px rgba(16,24,40,.25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; color: var(--heading); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .38em; border-radius: 5px; }
kbd { font-size: .78em; padding: .1em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--heading); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 600 .95rem/1 ui-sans-serif, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  padding: .85em 1.25em; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--heading); transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--accent); color: var(--heading); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-sm { padding: .6em .95em; font-size: .86rem; border-radius: 8px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--heading); border-color: var(--line); }
.btn kbd { font-size: .7rem; }

/* ---------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: "UnifrakturMaguntia", "EB Garamond", serif; font-size: 2rem; line-height: 1; color: var(--heading); text-decoration: none; margin: 0; }
.brand:hover { color: var(--accent-strong); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn), .theme-toggle {
  font: 500 .92rem/1 ui-sans-serif, system-ui, sans-serif; color: var(--muted); text-decoration: none;
  padding: .6em .8em; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav-links > a:not(.btn):hover, .theme-toggle:hover { color: var(--heading); background: var(--surface-2); }
.nav-links > a[aria-current="page"]:not(.btn) { color: var(--heading); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; font: 600 .9rem/1 system-ui, sans-serif; padding: .6em .9em; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--heading); cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn), .theme-toggle { padding: .9em .6em; text-align: left; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ---------- hero */
.hero { padding: 72px 0 88px; background:
  radial-gradient(900px 420px at 85% 10%, var(--accent-wash), transparent 70%),
  radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--lesson) 6%, transparent), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { font: 600 .78rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 20px 0 0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.ticks-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .92rem; }
.ticks-inline li::before { content: "✓"; color: var(--accent); margin-right: .45em; font-weight: 700; }
@media (max-width: 960px) { .hero-in { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 48px 0 64px; } }

/* card stack */
.stack { position: relative; min-height: 380px; margin-top: 30px; }
.flip {
  position: absolute; inset: 0 0 auto 0; min-height: 340px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 20px; box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; transform-origin: 50% 0;
}
.flip:not(.is-top) { pointer-events: none; }
.flip:not(.is-top) > * { visibility: hidden; }
.flip[data-depth="1"] { transform: translateY(-14px) scale(.95); opacity: .75; z-index: 2; }
.flip[data-depth="2"] { transform: translateY(-27px) scale(.9); opacity: .45; z-index: 1; }
.flip[data-depth="3"], .flip[data-depth="4"] { transform: translateY(-36px) scale(.86); opacity: 0; z-index: 0; }
.flip.is-top { z-index: 3; transform: none; opacity: 1; }
.flip.leaving { transform: translateX(40px) rotate(4deg); opacity: 0; }
.flip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flip-deck { font-size: .8rem; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flip-q { font-family: "EB Garamond", Georgia, serif; font-size: 1.6rem; line-height: 1.25; color: var(--heading); margin: 0 0 14px; }
.flip-a { font-size: .98rem; color: var(--text); border-left: 2px solid var(--accent); padding-left: 14px; margin-bottom: 14px; max-height: 210px; overflow: auto; }
.flip-a p { margin: 0 0 .6em; }
.flip-a blockquote { margin: .6em 0 0; font-family: "EB Garamond", serif; font-style: italic; font-size: 1.05rem; color: var(--muted); }
.flip-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; }
.stack-cap { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; font-size: .85rem; margin: 0; }
@media (max-width: 960px) { .stack { min-height: 400px; } }

/* chips */
.chip { display: inline-block; font: 700 .68rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: .5em .7em; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.chip-question { color: var(--question); }
.chip-fact { color: var(--fact); }
.chip-lesson { color: var(--lesson); }

/* ---------- bands */
.band { padding: 96px 0; }
.band-tight { padding: 32px 0 96px; }
.band-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 + .section-lede, .section-lede { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-top: 14px; }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.more-link { margin-top: 28px; }
@media (max-width: 700px) { .band { padding: 64px 0; } }

/* how */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-strong); font: 700 1.1rem/1 "EB Garamond", serif; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.steps-row { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.steps-row li { grid-template-columns: 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .steps-row { grid-template-columns: 1fr; } }

.term { margin: 0; background: var(--term-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); color: #dfe7f0; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1c2633; font: .78rem ui-monospace, monospace; color: #7d8a99; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3646; }
.term-bar span { margin-left: 8px; }
.term-body { padding: 20px 20px 22px; font: .9rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term-you { color: #fff; margin-bottom: 12px; }
.term-you span { color: #4f9dff; margin-right: .5em; }
.term-ticks { list-style: none; padding: 0; margin: 0; }
.term-ticks li { padding-left: 1.6em; position: relative; }
.term-ticks li::before { content: "✓"; position: absolute; left: 0; color: #5fd38d; }
.term-ticks span { color: #7d8a99; margin-left: .4em; }
.term-ticks a { color: #79b4ff; margin-left: .4em; }
.term.playing .term-ticks li { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.term.playing .term-ticks li.shown { opacity: 1; transform: none; }
.term figcaption { padding: 10px 16px 14px; font-size: .82rem; border-top: 1px solid #1c2633; color: #7d8a99; }

/* style cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0 40px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.scard.f-fact { border-top: 3px solid var(--fact); }
.scard.f-lesson { border-top: 3px solid var(--lesson); }
.scard.f-question { border-top: 3px solid var(--question); }
.scard .chip { align-self: flex-start; }
.scard-q { font-size: 1.35rem; }
.scard-more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent-strong); list-style: none; }
.scard-more summary::-webkit-details-marker { display: none; }
.scard-more summary::after { content: " ↓"; }
.scard-more[open] summary::after { content: " ↑"; }
.scard-a { margin-top: 12px; font-size: .95rem; }
.scard-a p { margin: 0 0 .6em; }
.scard blockquote { margin: 10px 0 0; font-family: "EB Garamond", serif; font-style: italic; color: var(--muted); font-size: 1.05rem; }
.scard-img { margin: 12px 0 0; }
.scard-img img { width: 100%; border-radius: 10px; display: block; background: #fff; }
.scard-img figcaption { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.scard-src { margin: auto 0 0; font-size: .82rem; color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature, .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature h3, .tile h3 { margin-bottom: 12px; }
.feature p:last-child, .tile p:last-child { margin: 0; color: var(--muted); }
.sched { display: flex; gap: 0; margin: 6px 0 16px; position: relative; }
.sched span { flex: 1; text-align: center; font: 600 .7rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 22px; position: relative; }
.sched span::before { content: ""; position: absolute; top: 2px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); z-index: 1; }
.sched span::after { content: ""; position: absolute; top: 8px; left: 50%; right: -50%; height: 2px; background: var(--line); }
.sched span:last-child::after { display: none; }
.sched span.on { color: var(--accent-strong); }
.sched span.on::before { background: var(--accent); border-color: var(--accent); }
.sched span.on::after { background: var(--accent); }
.clip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; font-size: .9rem; }
.clip-h { font-family: "EB Garamond", serif; font-weight: 600; font-size: 1.05rem; color: var(--heading); margin-bottom: 6px; }
.clip ul { margin: 0 0 10px; padding-left: 1.1em; }
.clip-mine { margin: 0; color: var(--accent-strong); font-style: italic; border-top: 1px dashed var(--line-strong); padding-top: 8px; }
.quote-agent { font-family: ui-monospace, monospace; font-size: .82rem; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 14px; color: var(--text); }

/* decks */
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .deck-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .deck-grid { grid-template-columns: 1fr; } }
.deck { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.deck:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.deck-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--bg-alt)); display: block; }
.deck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.deck-meta { font: 600 .72rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); }
.deck-title { font-family: "EB Garamond", serif; font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--heading); }
.deck-sub { color: var(--muted); font-size: .92rem; }
.deck-topics { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.filter input { margin-top: 28px; width: min(100%, 440px); font: 1rem system-ui, sans-serif; padding: .8em 1em; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.filter input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.empty { color: var(--muted); font-size: 1.05rem; }

/* page head */
.page-head { padding: 64px 0 24px; background: radial-gradient(800px 300px at 90% 0%, var(--accent-wash), transparent 70%); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

/* install */
.cta-band { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .cta-in { grid-template-columns: 1fr; } }
.cta-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 20px; box-shadow: var(--shadow); min-width: 0; }
.install-box { margin-bottom: 48px; }
.cta-more { margin: 14px 0 0; font-size: .92rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -20px 18px; padding: 8px 12px 0; overflow-x: auto; }
.tabs [role="tab"] { font: 600 .88rem/1 ui-sans-serif, system-ui, sans-serif; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: .9em .8em; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--heading); }
.tabs [role="tab"][aria-selected="true"] { color: var(--heading); border-bottom-color: var(--accent); }
.panel p { font-size: .95rem; }
.panel .alt { color: var(--muted); margin-top: 16px; }
.snip { position: relative; }
.snip pre { margin: 0 0 4px; background: var(--term-bg); color: #dfe7f0; border: 1px solid var(--line); border-radius: 10px; padding: 14px 76px 14px 16px; font-size: .82rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
.copy { font: 600 .75rem/1 ui-sans-serif, system-ui, sans-serif; cursor: pointer; border-radius: 7px; border: 1px solid #31445b; background: #18222f; color: #e6edf5; padding: .55em .8em; }
.snip .copy { position: absolute; top: 9px; right: 9px; }
.copy:hover { border-color: var(--accent); }
.copy-inline { vertical-align: middle; margin-left: 4px; background: var(--surface-2); color: var(--heading); border-color: var(--line-strong); }
.note-soon { background: color-mix(in srgb, var(--lesson) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lesson) 40%, transparent); border-radius: 10px; padding: 12px 16px; font-size: .92rem; }
.h-sub { font-size: 1.8rem; margin: 8px 0 4px; }

/* faq */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; color: var(--heading); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 46em; }

/* guide */
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc-h { font: 600 .72rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--heading); border-left-color: var(--accent); background: var(--surface-2); }
.prose { max-width: 720px; }
.prose h2 { font-size: 2rem; margin: 56px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); }
.defs, .keys { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; margin: 0 0 20px; align-items: baseline; }
.defs dd, .keys dd { margin: 0; color: var(--muted); }
.cmds { grid-template-columns: minmax(150px, max-content) 1fr; }
@media (max-width: 820px) { .guide { grid-template-columns: 1fr; } .toc { position: static; flex-direction: row; flex-wrap: wrap; } .toc-h { width: 100%; } .toc a { border-left: 0; background: var(--surface-2); } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-alt); }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand .brand { font-size: 2.4rem; }
.foot-brand p { margin: 6px 0 0; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { color: var(--text); text-decoration: none; font-size: .94rem; }
.foot-cols a:hover { color: var(--accent-strong); }
.foot-h { font: 600 .72rem/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.foot-fine { font-size: .82rem; margin-top: 40px; }

/* arriving from the paper: the site slides up into place */

/* ---------- the front page: one column of newspaper, then the site */
.front { padding: clamp(20px, 6vw, 64px) 16px clamp(28px, 6vw, 56px); }
.sheet {
  max-width: 640px; margin: 0 auto; padding: clamp(22px, 5vw, 48px) clamp(20px, 5vw, 52px) 36px;
  font-family: "EB Garamond", Georgia, serif; font-size: 1.16rem; line-height: 1.55; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sheet-head { text-align: center; }
.sheet-ear { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px;
  font: 600 .66rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sheet-mast { display: block; font: 400 clamp(4.2rem, 17vw, 7rem)/.9 "UnifrakturMaguntia", serif; color: var(--heading); text-decoration: none; }
.sheet-mast:hover { color: var(--accent-strong); }
.sheet-motto { margin: 10px 0 16px; font-style: italic; color: var(--muted); }
.sheet-folio { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 0;
  padding: 7px 0; border-top: 3px solid var(--heading); border-bottom: 3px double var(--heading);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sheet-kicker { margin: 28px 0 8px; text-align: center; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.sheet-title { text-align: center; font-size: clamp(2rem, 6.4vw, 2.9rem); line-height: 1.05; text-wrap: balance; }
.sheet-dek { margin: 14px 0 0; text-align: center; font-size: clamp(1.35rem, 4vw, 1.6rem); font-weight: 600; line-height: 1.25; color: var(--accent-strong); text-wrap: balance; }
.sheet-byline { margin: 18px 0 0; padding: 8px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  text-align: center; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.sheet-body { margin-top: 26px; }
.sheet-body p { margin: 0 0 .5em; text-align: center; font-size: clamp(1.55rem, 5vw, 2rem); font-weight: 700; line-height: 1.18; color: var(--heading); text-wrap: balance; }
.sheet-fine { margin: 22px 0 0; text-align: center; font-style: italic; font-size: 1rem; color: var(--muted); }
.sheet-more { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 26px auto 0; width: max-content;
  font-style: italic; color: var(--muted); text-decoration: none; }
.sheet-more span { font-style: normal; font-size: 1.3rem; color: var(--accent-strong); animation: nudge 2.2s ease-in-out infinite; }
.sheet-more:hover { color: var(--heading); }
@keyframes nudge { 50% { transform: translateY(5px); } }
/* "#site" lands with the nav at the very top, the paper just above it. */
.site-anchor { display: block; height: 0; scroll-margin-top: 0; }
html:has(.site-anchor:target) { scroll-padding-top: 0; }
@media (max-width: 560px) { .sheet-folio, .sheet-ear { justify-content: center; text-align: center; } }

/* ---------- the paper's interface preview: a real deck, in the deck page's own look */
.sheet-h2 { text-align: center; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.1; margin: 0 0 18px; }
.pv { --pv-bg: #161514; --pv-ink: #ece6da; --pv-mute: #9d978b; --pv-rule: #34312d; --pv-fact: #79b4ff; --pv-lesson: #e0b15c;
  margin: 0 calc(-1 * clamp(8px, 2.4vw, 28px)); border: 1px solid #2c2a27; border-radius: 10px; overflow: hidden;
  background: var(--pv-bg); color: var(--pv-ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); text-align: left; }
.pv-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #0f0e0d; border-bottom: 1px solid var(--pv-rule); }
.pv-dots { display: flex; gap: 6px; } .pv-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3733; }
.pv-tabs { display: flex; gap: 4px; padding: 10px clamp(16px, 4vw, 30px) 0; }
.pv-tabs button { font: 600 .78rem/1 ui-sans-serif, system-ui, sans-serif; color: var(--pv-mute); background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.pv-tabs button[aria-selected="true"] { color: var(--pv-bg); background: var(--pv-ink); }
.pv-tabs button:hover { color: var(--pv-ink); }
.pv-tabs button[aria-selected="true"]:hover { color: var(--pv-bg); }
.pv-page { padding: clamp(18px, 4vw, 30px) clamp(16px, 4vw, 30px) 22px; min-height: 360px; font-size: 1.05rem; }
.pv-title { margin: 0; font-size: clamp(1.7rem, 5.4vw, 2.3rem); font-weight: 600; line-height: 1.05; }
.pv-sub { margin: 6px 0 0; color: var(--pv-mute); font-size: 1.05rem; }
.pv-meta { margin: 12px 0 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-mute); }
.pv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 8px 0 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pv-mute); }
.pv-seg { display: inline-flex; border: 1px solid #4a4640; border-radius: 999px; overflow: hidden; }
.pv-seg > * { padding: 3px 10px; font-weight: 400; } .pv-seg b { background: var(--pv-ink); color: var(--pv-bg); font-weight: 600; }
.pv-sec { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--pv-rule); font-size: 1.2rem; font-weight: 600; }
.pv-ts { font-size: .85rem; font-weight: 400; color: var(--pv-mute); }
.pv-cards { list-style: none; margin: 0; padding: 0; }
.pv-card { border-bottom: 1px solid var(--pv-rule); }
.pv-row { display: grid; grid-template-columns: 18px 1fr 16px; gap: 8px; width: 100%; padding: 12px 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pv-n { font-size: .78rem; color: var(--pv-mute); padding-top: .25em; }
.pv-q { line-height: 1.35; }
.pv-pm::before { content: "+"; color: var(--pv-mute); } .pv-card.open .pv-pm::before { content: "–"; }
.pv-chip { display: inline-block; padding: 1px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; vertical-align: .2em; }
.pv-fact { color: var(--pv-fact); } .pv-lesson { color: var(--pv-lesson); }
.pv-a { display: none; margin: 0 0 14px 26px; padding-left: 14px; border-left: 1px solid #6b665e; font-size: .98rem; line-height: 1.5; }
.pv-card.open .pv-a { display: block; }
.pv-a p { margin: 0 0 .5em; } .pv-a strong { color: #fff; }
.pv-acts { display: flex; gap: 14px; font-size: .8rem; font-style: italic; color: var(--pv-mute); }
.pv-rsec { margin: 26px 0 6px; font-style: italic; color: var(--pv-mute); }
.pv-rq { margin: 0; font-size: clamp(1.3rem, 4vw, 1.6rem); line-height: 1.25; }
.pv-ra { margin-top: 14px; padding-left: 14px; border-left: 1px solid #6b665e; font-size: .98rem; line-height: 1.5; }
.pv-ra p { margin: 0 0 .5em; }
.pv-said { font-style: italic; } .pv-said span { display: block; font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pv-mute); }
.pv-btns { display: flex; justify-content: center; gap: 10px; margin: 22px 0 0; }
.pv-btns button { font: inherit; font-size: .98rem; color: var(--pv-ink); background: none; border: 1px solid var(--pv-ink); padding: 8px 18px; cursor: pointer; }
.pv-btns button:hover { background: var(--pv-ink); color: var(--pv-bg); }
.pv-btns kbd { background: none; border: 0; color: var(--pv-mute); font-size: .7rem; }
.pv-grade { display: flex; gap: 10px; }
.pv-hint { margin: 16px 0 0; text-align: center; font-size: .85rem; font-style: italic; color: var(--pv-mute); }
.pv-notes { margin: 10px 0 0; padding-left: 1.1em; line-height: 1.45; } .pv-notes li { margin-bottom: .35em; } .pv-notes strong { color: #fff; }
.pv-notes-cards { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--pv-rule); color: var(--pv-mute); }
.pv-mine { margin: 16px 0 0; padding: 8px 12px; border-left: 3px solid var(--pv-lesson); background: #1f1d1a; font-style: italic; font-size: .95rem; }
.pv-mine b { font-style: normal; color: var(--pv-lesson); }
.pv figcaption { padding: 10px 14px; border-top: 1px solid var(--pv-rule); font-size: .85rem; font-style: italic; color: var(--pv-mute); background: #0f0e0d; }
.pv figcaption a { color: var(--pv-ink); }

.pv-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 6px;
  background: #1c1b19; color: var(--pv-mute); font: .72rem/1.3 ui-monospace, Consolas, monospace; }
.pv .pv-page { min-height: 340px; }

/* ---------- the paper's workflow: terminal -> arrow -> deck */
.term-win { margin: 0 calc(-1 * clamp(8px, 2.4vw, 28px)); border: 1px solid #262a30; border-radius: 10px; overflow: hidden; text-align: left;
  background: #0a0c0f; color: #dfe7f0; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.tw-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #111418; border-bottom: 1px solid #1f242b; }
.tw-title { font: .72rem/1 ui-monospace, Consolas, monospace; color: #7d8794; }
.tw-body { padding: 16px 18px 18px; font: .82rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tw-line { margin: 0; overflow-wrap: anywhere; }
.tw-p { color: #4f9dff; margin-right: .5em; }
.tw-ok { color: #6fd49a; }
.tw-gap { margin-top: 12px; }
.tw-you { margin-top: 4px; color: #fff; }
.tw-ticks { list-style: none; margin: 10px 0 0; padding: 0; }
.tw-ticks li { position: relative; padding-left: 1.6em; color: #dfe7f0; transition: opacity .3s, transform .3s; }
.tw-ticks li::before { content: "✓"; position: absolute; left: 0; color: #6fd49a; }
.tw-ticks span { color: #7d8794; margin-left: .4em; }
.flow-anim .tw-ticks li { opacity: 0; transform: translateY(4px); }
.flow-anim .tw-ticks li.on { opacity: 1; transform: none; }
.flow-link { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.fl-dot { width: 11px; height: 11px; border-radius: 50%; background: #6fd49a; box-shadow: 0 0 0 4px color-mix(in srgb, #6fd49a 25%, transparent); }
.fl-line { width: 2px; height: 26px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.fl-label { padding: 4px 12px; border: 1px solid var(--accent); border-radius: 999px; font: italic .9rem/1.2 "EB Garamond", Georgia, serif; color: var(--accent-strong); background: var(--surface); }
.fl-arrow { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid var(--accent); }
.flow-link { transition: opacity .5s; }
.flow-anim .flow-link { opacity: .25; }
.flow-anim .flow-link.on { opacity: 1; }

/* ---------- site: "How it works" = copy on the left, the live workflow on the right */
.flow-band { padding-top: clamp(48px, 7vw, 88px); }
.flow-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.flow-copy { position: sticky; top: 96px; }
.flow-copy h2 { margin: 6px 0 22px; }
.flow-copy .steps { margin-bottom: 26px; }
.flow .term-win, .flow .pv { margin: 0; }
.flow .pv { font-family: "EB Garamond", Georgia, serif; }
@media (max-width: 900px) {
  .flow-in { grid-template-columns: minmax(0, 1fr); }
  .flow-copy { position: static; }
}

/* ---------- the one button that matters: add flash to your agent */
.nav-in { gap: 12px; }
.nav-in .brand { margin-right: auto; }
.nav-cta { order: 3; padding: .72em 1.15em; font-size: .95rem; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent), 0 8px 24px -10px var(--accent);
  animation: cta-glow 2.8s ease-in-out infinite; white-space: nowrap; }
.nav-links { order: 2; }
.nav-toggle { order: 4; }
@keyframes cta-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent), 0 8px 30px -8px var(--accent); } }
.nav-gh { display: inline-flex !important; align-items: center; gap: 6px; }
.nav-gh .gh, .sheet-gh .gh { flex: none; }
@media (max-width: 820px) { .nav-cta { padding: .6em .9em; font-size: .88rem; } }
@media (max-width: 380px) { .nav-cta span { display: none; } }

.sheet-ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 30px 0 0; }
.sheet-cta { display: inline-flex; align-items: center; gap: .5em; padding: 18px 34px; border-radius: 14px;
  font: 700 1.15rem/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); box-shadow: 0 14px 40px -12px var(--accent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, background .15s; animation: cta-glow 2.8s ease-in-out infinite; }
.sheet-cta:hover { background: var(--accent-strong); color: var(--accent-ink); transform: translateY(-2px); }
.sheet-cta span { transition: transform .15s; } .sheet-cta:hover span { transform: translateX(4px); }
.sheet-gh { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 600 .92rem/1 ui-sans-serif, system-ui, sans-serif; color: var(--heading); text-decoration: none; }
.sheet-gh:hover { border-color: var(--accent); color: var(--accent-strong); }
.sheet-fine { margin-top: 16px !important; }
