:root { color-scheme: light; --bg: #f8f8f6; --panel: #fff; --text: #242725; --muted: #505953; --line: #a4aca6; --accent: #126156; --focus: #025649; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #181a19; --panel: #242825; --text: #f0f3ef; --muted: #c0c9c1; --line: #65766a; --accent: #a2e9d4; --focus: #a2e9d4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { color-scheme: dark; --bg: #181a19; --panel: #242825; --text: #f0f3ef; --muted: #c0c9c1; --line: #65766a; --accent: #a2e9d4; --focus: #a2e9d4; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { max-width: 66rem; margin: auto; padding: 1.25rem; }
header.shell { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-bottom: 1px solid var(--line); }
nav, .toolbar, footer { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.theme-control { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.theme-control p { flex-basis: 100%; margin: 0; font-size: .9rem; }
button, select { color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: .35rem; font: inherit; padding: .45rem .7rem; }
button { cursor: pointer; }
button:disabled { color: var(--muted); cursor: default; }
.skip { position: absolute; top: -6rem; left: .5rem; z-index: 2; background: var(--panel); padding: .5rem; }
.skip:focus { top: .5rem; }
h1 { max-width: 24ch; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.4; margin-top: 0; }
.eyebrow, .small-note, .control-help { color: var(--muted); }
.eyebrow { font-size: .85rem; }
.lede { font-size: 1.15rem; }
section { margin-block: 2.5rem; }
.demo-panel { background: var(--panel); border: 1px solid var(--line); padding: 1rem; border-radius: .5rem; scroll-margin-top: 1rem; }
canvas { width: 100%; height: clamp(16rem, 47vw, 30rem); display: block; margin-bottom: 1.5rem; border-radius: .25rem; background: #0e1f2e; }
.demo-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; }
input[type="range"] { display: block; width: 100%; min-height: 2rem; accent-color: var(--accent); }
input[type="checkbox"] { accent-color: var(--accent); width: 1.2rem; height: 1.2rem; margin: .7rem 0; }
output { font-weight: 400; font-variant-numeric: tabular-nums; }
.control-help, .small-note { font-size: .9rem; }
.control-help { margin-top: .3rem; }
li { margin: .7rem 0; overflow-wrap: anywhere; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 600; }
pre { padding: 1rem; border: 1px solid var(--line); background: var(--panel); max-width: 100%; overflow: auto; font-size: .85rem; line-height: 1.5; }
footer { margin-block: 3rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (max-width: 42rem) { .demo-controls { grid-template-columns: 1fr; } .shell { padding: 1rem; } .demo-panel { padding: .75rem; } }
