@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #101016; --surface: #1b1a24; --ink: #f5f1ff; --muted: #b3aec2; --line: #393544;
  --lilac: #b69aff; --lilac-ink: #171125; --brass: #d3ae5a; --good: #80e1c0; --focus: #7fb0ff;
  --wood-1: #6b3528; --wood-2: #a85f42; --wood-3: #783c2c; --wood-edge: #b67559;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0; color: var(--ink); line-height: 1.6; font-size: 1.0625rem;
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at top, #262334, transparent 44rem), var(--bg);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: #cdb8ff; text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lilac); color: var(--lilac-ink); padding: .6rem 1rem; z-index: 5; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

header.site { padding-top: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
header.site .name { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
header.site nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero: a playable row of bars. Cord holes sit at 22.4 % of each bar, the node of the fundamental. */
.hero { padding: 2.6rem 0 1rem; }
h1 { font-size: clamp(2.6rem, 8.5vw, 4.6rem); line-height: 1; letter-spacing: -.055em; margin: 0 0 1rem; max-width: 12ch; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 33rem; margin: 0 0 1.6rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { font: inherit; font-weight: 700; text-decoration: none; display: inline-block; padding: .85rem 1.4rem; border-radius: .6rem; border: 2px solid var(--lilac); cursor: pointer; }
.btn.primary { background: var(--lilac); color: var(--lilac-ink); }
.btn.primary:hover { background: #cdb8ff; color: var(--lilac-ink); }
.btn.quiet { background: transparent; color: #decaff; border-color: #997ec7; }
.btn.quiet:hover { background: #26222f; color: #fff; }

.bars-wrap { margin: 2.2rem 0 .4rem; padding: 1.2rem 1rem .9rem; background: linear-gradient(155deg, #2c2937, #17171f); border: 1px solid var(--line); border-radius: 24px; }
.bars { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(4px, 1.6vw, 12px); height: 13.5rem; margin: 0; padding: 0; list-style: none; }
.bars li { flex: 1 1 0; height: 100%; display: flex; justify-content: center; align-items: flex-start; }
.bars button {
  position: relative; width: 100%; max-width: 3.6rem; height: var(--h); padding: 0 0 .4rem; border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: center; cursor: pointer;
  font: 700 .8rem "Atkinson Hyperlegible", system-ui, sans-serif; color: #fff0df;
  background: linear-gradient(95deg, var(--wood-1), var(--wood-2) 40%, var(--wood-3));
  border: 1px solid var(--wood-edge); box-shadow: inset 0 -5px 3px #48271e;
}
.bars button::before, .bars button::after { content: ""; position: absolute; left: 50%; width: .62rem; height: .62rem; margin-left: -.31rem; border-radius: 50%; background: #17171f; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.bars button::before { top: calc(22.4% - .31rem); }
.bars button::after { bottom: calc(22.4% - .31rem); }
.bars button.ring { background: #bda5fa; color: #21132f; border-color: #fff; }
.bars-caption { margin: .8rem .2rem 0; color: var(--muted); font-size: .95rem; }

h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; margin: 3.6rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .3rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
section { scroll-margin-top: 1rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; min-width: 26rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 400; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
code { font-family: inherit; font-size: 1em; background: #23212d; padding: .08em .35em; border-radius: 4px; }
.formula { font-family: inherit; font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: .8rem 1rem; line-height: 1.9; margin: 0 0 1rem; }
.formula sub, .formula sup { font-size: .72em; line-height: 0; }

ol.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 1rem 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 1.4rem 3rem; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wood-2); color: #fff0df; font-weight: 700; display: grid; place-items: center; }
ol.steps > li::after { content: ""; position: absolute; left: 1rem; top: 2.15rem; bottom: .2rem; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps h3 { margin: 0 0 .25rem; }
ul.plain { padding-left: 1.2rem; margin: 0 0 1rem; } ul.plain li { margin-bottom: .4rem; }

.status-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.status-list li { padding: .6rem 0 .6rem 1.9rem; border-top: 1px solid var(--line); position: relative; }
.status-list li:last-child { border-bottom: 1px solid var(--line); }
.status-list li::before { position: absolute; left: .2rem; top: .62rem; font-weight: 700; }
.status-list .done::before { content: "✓"; color: var(--good); }
.status-list .todo::before { content: "○"; color: var(--brass); }

details { border-top: 1px solid var(--line); padding: .9rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; }

footer.site { margin-top: 4rem; padding: 1.6rem 0 2.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer.site p { margin-bottom: .4rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 30rem) { .bars { height: 11rem; } .bars button { font-size: .7rem; } }
