/* Willow's Wand — palette from the Wand's guide (Think quadratic. brief, 2026-11-13). Fonts are OFL latin subsets. */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-500.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #14102a; --dusk: #2a1f5c; --surface: #1a1530; --line: #3a2f72;
  --fg: #ece8fb; --muted: #c4bce6; --gold: #ffcf6b; --magenta: #ff5fcf; --peri: #6a79fa;
  --mac: #e3e7fb; --win: #5ab0ff; --linux: #ffb347; --chrome: #7be0a5;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--night); color: var(--fg);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; }
main { flex: 1; }
main:focus { outline: none; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 .75rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 .4rem; }
code, kbd { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }

.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--gold); color: var(--night); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Header + menu */
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: #fff; text-decoration: none;
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--dusk); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: .45rem; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-toggle .bars::before { top: -6px; } .menu-toggle .bars::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { display: block; padding: .6rem .75rem; min-height: 44px; color: var(--fg); text-decoration: none; border-radius: 6px; }
.site-nav a:hover { background: var(--dusk); color: #fff; }
.site-nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .3em; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .has-js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .has-js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Hero */
.hero { position: relative; background: #0f0b27; }
.hero-art { width: 100%; max-height: 460px; object-fit: cover; object-position: bottom; }
.hero-copy { max-width: 46rem; margin: 0 auto; padding: 2rem 1rem 0; }
.lede { font-size: 1.2rem; color: var(--fg); margin: 0 0 1rem; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem 3rem; }
.page-top { padding-top: 2.5rem; }
.muted { color: var(--muted); }

.status { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; background: var(--surface); }
.status strong { color: var(--gold); }
.warn { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid #6b2a5c; border-left: 4px solid var(--magenta); border-radius: 8px; background: #22132e; }
.warn strong { color: var(--magenta); }

blockquote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1.2rem; border-left: 3px solid var(--peri); font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: #fff; }
blockquote p { margin: .4rem 0; }
blockquote cite { display: block; font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-style: normal; font-size: .95rem; color: var(--muted); }

.systems { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.systems li { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); border-top: 4px solid var(--c, var(--line)); }
.systems .name { display: block; font-weight: 700; color: #fff; }
.c-mac { --c: var(--mac); } .c-win { --c: var(--win); } .c-linux { --c: var(--linux); } .c-chrome { --c: var(--chrome); }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.button { display: inline-block; min-height: 44px; padding: .65rem 1.2rem; border-radius: 8px; background: var(--gold); color: var(--night); font-weight: 700; text-decoration: none; }
.button:hover { background: #fff; color: var(--night); }
.button.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.button.ghost:hover { color: var(--night); background: var(--gold); }

.stages { list-style: none; counter-reset: stage; padding: 0; margin: 1rem 0; }
.stages li { counter-increment: stage; position: relative; padding: .9rem 1rem .9rem 3.4rem; margin: 0 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stages li::before { content: counter(stage); position: absolute; left: .9rem; top: .85rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--dusk); color: var(--gold); font-weight: 700; text-align: center; line-height: 1.9rem; }
.stages .where { display: block; font-size: .95rem; color: var(--muted); }
.stages h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.stages p { margin: .3rem 0 0; }

.steps { padding-left: 1.4rem; } .steps li { margin: .5rem 0; }
.credits { list-style: none; padding: 0; } .credits li { margin: 0 0 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1rem; text-align: center; font-size: .98rem; }
.site-footer p { margin: .3rem 0; }
.site-footer a { display: inline-block; padding: .6rem .6rem; min-height: 44px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
