/* The page background is the banner's own background (--stage), so the banner has no visible edge.
   glyph-banner.js reads --stage and --stage-ink to draw in the current theme. */
:root {
  --stage: #f2f1ee;
  --stage-ink: #12161c;
  --bg: var(--stage);
  --panel: #fbfaf8;
  --ink: #12161c;
  --muted: #5b6573;
  --line: #dcdad4;
  --accent: #2f4bff;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #05070a; --stage-ink: #e6edf5; --panel: #0d1117; --ink: #e6ebf2; --muted: #8b96a6; --line: #1c232d; --accent: #7d8fff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --stage: #05070a; --stage-ink: #e6edf5; --panel: #0d1117; --ink: #e6ebf2; --muted: #8b96a6; --line: #1c232d; --accent: #7d8fff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

/* banner: fills the window, minus the top bar so there's a hint of the page below */
.banner { --topbar-h: 48px; }
.stage { position: relative; background: var(--stage); overflow: hidden; min-height: 120px; }
.stage.fill { height: calc(100vh - var(--topbar-h)); height: calc(100svh - var(--topbar-h)); min-height: 240px; }
.stage canvas { display: block; max-width: 100%; }
.stage-toggle {
  position: absolute; right: 16px; bottom: 12px;
  font: 500 12px var(--mono); color: var(--muted); background: color-mix(in srgb, var(--stage) 80%, transparent);
  border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; cursor: pointer;
}
.stage-toggle:hover { color: var(--ink); border-color: var(--muted); }

/* top bar under the banner */
.topbar { height: var(--topbar-h); display: flex; justify-content: space-between; align-items: center; gap: 16px; font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.topbar nav { display: flex; gap: 18px; }
.topbar a { text-decoration: none; }

/* intro */
.intro { padding-block: clamp(40px, 8vw, 88px) clamp(32px, 6vw, 64px); display: grid; gap: 14px; max-width: 46rem; }
.intro h1 { margin: 0; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.intro h1 span { color: var(--muted); font-weight: 400; }
.intro p { margin: 0; font-size: clamp(18px, 2vw, 21px); color: var(--muted); text-wrap: pretty; }

/* sections */
section { border-top: 1px solid var(--line); padding-block: 28px 44px; display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; gap: 12px 32px; scroll-margin-top: 16px; }
@media (max-width: 720px) { section { grid-template-columns: 1fr; } }
section h2 { margin: 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 5ch 1fr auto; gap: 4px 20px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.list li:first-child { padding-top: 0; }
.list .yr { font: 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.list h3 { margin: 0; font-size: 19px; font-weight: 500; }
.list p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.list .go { font: 13px var(--mono); white-space: nowrap; }
@media (max-width: 520px) {
  .list li { grid-template-columns: 1fr auto; }
  .list .yr { grid-column: 1 / -1; }
}

.tool { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; text-decoration: none; }
.tool:hover { border-color: var(--accent); color: inherit; }
.tool .glyph { font: 400 22px/1.2 var(--mono); color: var(--accent); grid-row: span 2; }
.tool h3 { margin: 0; font-size: 19px; font-weight: 500; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; }
.tool .cta { grid-column: 2; font: 13px var(--mono); color: var(--accent); }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; font: 14px var(--mono); padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); text-decoration: none; }
.links a:hover { border-color: var(--accent); }

footer { border-top: 1px solid var(--line); padding-block: 20px 40px; font: 12px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
