:root {
  color-scheme: dark;
  --bg: #232323;
  --surface: #2b2c28;
  --cream: #ecdcb8;
  --text: #e6e2dc;
  --muted: #b4b1a8;
  --line: #595d50;
  --gold: #e6c27a;
  --green: #c7ed72;
  --coral: #f08078;
  --ink: #24291b;
  --body: "Nunito";
  --hand: "Indie Flower";
  --mono: "Fira Code";
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2ecdf;
  --surface: #e9e4d6;
  --cream: #493b26;
  --text: #322f28;
  --muted: #625f53;
  --line: #bbb5a5;
  --gold: #77581e;
  --green: #42601d;
  --coral: #a4463e;
  --ink: #f9f5e9;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.08rem/1.7 var(--body); }
a { color: inherit; text-underline-offset: .3em; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px dashed var(--green); outline-offset: 5px; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { color: var(--cream); font-family: var(--hand); font-weight: 400; }
h2 { font-size: clamp(2.6rem, 4.5vw, 4.4rem); line-height: 1.04; }
p + p { margin-top: 1rem; }
.frame { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--green); color: var(--ink); z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 104px; display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px dashed var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--cream); font-weight: 800; text-decoration: none; }
.brand img { width: 48px; height: 48px; border: 1px dashed var(--gold); border-radius: 50%; transform: rotate(-5deg); }
.brand-note { color: var(--muted); font: 400 .7rem var(--mono); }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; margin-left: auto; font-size: .9rem; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.theme-toggle { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 1px dashed var(--line); border-radius: 50%; background: transparent; color: var(--gold); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.eyebrow { margin-bottom: 1.3rem; color: var(--green); font: 400 .7rem/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: clamp(4rem, 7vw, 7rem) clamp(4rem, 6vw, 6rem); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { width: fit-content; color: var(--cream); font-size: clamp(6.5rem, 12vw, 11.5rem); line-height: .78; letter-spacing: -.04em; transform: rotate(-3deg); }
.title-dot { color: var(--green); }
.hero-deck { margin-top: 1.8rem; color: var(--cream); font: 400 clamp(1.9rem, 3vw, 2.9rem)/1.05 var(--hand); }
.hero-deck span { color: var(--green); }
.hero-intro { max-width: 42ch; margin-top: 1.5rem; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.8rem; margin-top: 1.8rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 2rem; padding: .72rem 1.3rem; border: 1px solid var(--green); border-radius: 8px 12px 9px 14px; background: var(--green); color: var(--ink); font: 800 1rem/1.5 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.hero .button { transform: rotate(-1.5deg); }
.button-outline { background: transparent; color: var(--cream); border-style: dashed; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--cream); font-size: 1rem; }
.hero-note { margin-top: 1.2rem; color: var(--muted); font-size: .8rem; }
.hero-art { min-width: 0; margin: 0 .8rem 0 0; }
.illustration-orbit { position: relative; padding: 4%; isolation: isolate; }
.illustration-orbit::before, .illustration-orbit::after { position: absolute; z-index: -1; content: ""; inset: -4% 0; border: 1px dashed var(--line); border-radius: 50%; transform: rotate(-12deg); pointer-events: none; }
.illustration-orbit::after { inset: 6% -2%; transform: rotate(12deg); border-color: var(--gold); opacity: .6; }
.illustration-orbit img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px 24px 14px 28px; transform: rotate(2deg); }
.hand-note { margin: 1.5rem 0 0 12%; color: var(--cream); font: 400 clamp(1.7rem, 2.5vw, 2.6rem)/1.15 var(--hand); }
.hand-note span { display: block; width: fit-content; transform: rotate(-4deg); }
.hand-note span + span { margin: .6rem 0 0 25%; color: var(--green); transform: rotate(2deg); }
.section { padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 1px dashed var(--line); }
.section-heading { margin-bottom: 2.5rem; }
.how h2 span { color: var(--gold); font-size: .7em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 1.2rem 0 0 2.2rem; border-top: 1px dashed var(--line); }
.step-no { position: absolute; top: 1.6rem; left: 0; color: var(--green); font: .7rem var(--mono); }
.steps h3 { margin-bottom: .5rem; font-size: 2rem; line-height: 1.1; }
.steps p { color: var(--muted); font-size: 1rem; }
.normalization-note { max-width: 810px; margin: 2.5rem 0 0; padding-left: 1.2rem; border-left: 2px solid var(--green); color: var(--muted); font-size: 1rem; }
.normalization-note strong { color: var(--cream); }
.app-views { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2.5rem; margin-top: 3rem; }
.app-view { min-width: 0; }
.app-view figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; color: var(--muted); font-size: .85rem; }
.view-label { color: var(--green); font: 400 1.8rem/1.1 var(--hand); }
.app-view-record .view-label { color: var(--coral); }
.app-view a { display: block; padding: 8px; border: 3px solid var(--line); border-radius: 12px; overflow: hidden; background: #15171b; }
.app-view img { display: block; width: 100%; }
.app-view-listen a { transform: rotate(-.8deg); }
.app-view-record { width: 94%; justify-self: end; margin-top: 2rem; }
.app-view-record a { transform: rotate(.8deg); background: #f3f4f5; }
.capture-note { margin-top: 1.6rem; color: var(--muted); font-size: .75rem; }
.how > .text-link { margin-top: .6rem; }
.story-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-art img { display: block; width: 100%; border-radius: 28px 12px 24px 14px; transform: rotate(-1.5deg); }
.story-intro h2 { margin-bottom: 1.3rem; }
.story-intro p:not(.eyebrow) { color: var(--muted); }
.story-intro blockquote { margin-block: 1.5rem; color: var(--cream); font: 400 clamp(1.6rem, 2.5vw, 2.1rem)/1.2 var(--hand); transform: rotate(-2deg); }
.small { color: var(--muted); font-size: .85rem; line-height: 1.65; }
.fable { margin-top: 2.5rem; border-block: 1px dashed var(--line); }
.fable summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .8rem .2rem; list-style: none; color: var(--cream); cursor: pointer; }
.fable summary::-webkit-details-marker { display: none; }
.summary-mark { color: var(--gold); font: 2rem var(--hand); }
.fable[open] .summary-mark { transform: rotate(45deg); }
.fable-body { max-width: 760px; margin-inline: auto; padding: 1rem 0 3rem; }
.fable-body p { margin-bottom: 1.3rem; }
.fable-body figure { margin: 2rem 0; }
.fable-body img { display: block; width: 100%; border-radius: 10px; }
.story-close { margin-top: 1rem; }
.source { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.source-copy > p:not(.eyebrow) { margin-top: 1.3rem; }
.source-copy p { color: var(--muted); }
.source-copy strong { color: var(--cream); }
.source-copy > .text-link { margin-top: 1rem; }
.mozilla-shot { min-width: 0; }
.mozilla-shot > a { display: block; }
.mozilla-shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; transform: rotate(1deg); }
.mozilla-shot figcaption { margin-top: 1rem; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.local { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.local h2 { transform: rotate(-1.5deg); transform-origin: left center; }
.source-links { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.source-links a { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--green); }
.source-links span { display: block; color: var(--muted); font: .7rem/1.7 var(--mono); }
.closing { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px dashed var(--line); text-align: center; }
.closing h2 { font-size: clamp(3.5rem, 6vw, 6rem); transform: rotate(-2deg); }
.closing h2 span { display: inline-block; margin-left: .5em; color: var(--green); }
.closing .button { margin: 2rem 0 1rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.6rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .frame { width: calc(100% - 3rem); }
  .hero { gap: 2rem; }
  .brand-note { display: none; }
  .steps { gap: 1.5rem; }
  .app-views { gap: 1.5rem; }
  .story-intro, .source { gap: 2rem; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 2.5rem); }
  .site-header { flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1rem; }
  .site-header nav { order: 2; width: 100%; margin: 0; gap: 1.5rem; }
  .site-header .theme-toggle { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 3rem; }
  .hero h1 { font-size: clamp(6rem, 22vw, 9rem); }
  .hero-art { width: min(100% - 1rem, 560px); margin-inline: auto; }
  .hero-intro { max-width: 50ch; }
  .hero-deck { font-size: 2.3rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { padding-top: 1rem; }
  .step-no { top: 1.3rem; }
  .app-views, .story-intro, .source, .local { grid-template-columns: 1fr; gap: 2rem; }
  .app-view-record { margin-top: 0; }
  .story-art { margin-bottom: 1rem; }
  .source { gap: 2.5rem; }
  .mozilla-shot { max-width: 520px; margin-inline: auto; }
  .closing h2 { font-size: clamp(2.9rem, 12vw, 4.5rem); }
  .closing h2 span { margin-left: .15em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
