/* Amaze OS site: tokens, the panel kit, nav and footer. Shared by every page. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #000000;
  --quiet: #5f5f63;
  --rule: #e2e2e2;

  /* Panel greys: every graphic on the site is built from these */
  --panel: #cdcdcd;
  --panel-head: #b8b8b8;
  --field: #e4e4e4;
  --field-alt: #d9d9d9;
  --edge: #8c8c8c;
  --edge-soft: #a8a8a8;
  --panel-text: #141414;
  --panel-quiet: #4a4a4a;

  /* The Amaze window colour, from bouncing-orig.ks */
  --night: #222222;

  /* Brand: lapis, the finished work */
  --lapis: #1f4fa3;

  /* One colour per layer */
  --c-prima: #a9a9a2;
  --c-azoth: #9fc3d6;
  --c-flux: #4fc6e0;
  --c-sigil: #ffd447;
  --c-rose: #ff8aa8;
  --c-aether: #b69cff;
  --c-glass: #c8f25a;
  --c-lapis: #5b8be0;
  --c-metal: #595959;
  --c-works: #5fd068;

  --sans: "Jost", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
pre, code, .mono { font-family: var(--mono); font-variant-ligatures: none; }
a { color: var(--lapis); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* =========================================================
   The panel kit. Flat grey, 1px edges, a title bar with a
   colour chip, light fields inside. No shadows, no gradients.
   ========================================================= */
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 4px;
  color: var(--panel-text);
  font-size: 13.5px;
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 34px; padding: 5px 10px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--edge);
}
.panel-head .spacer { flex: 1; }
.panel-head .meta { color: var(--panel-quiet); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 1px 8px; border-radius: 3px;
  background: var(--tc, var(--field));
  border: 1px solid rgba(0,0,0,.28);
  color: #000; font-weight: 500; font-size: 13px; line-height: 1.45;
  white-space: nowrap;
}
.chip.dark { color: #fff; }
.chip .n { font-weight: 400; opacity: .65; font-variant-numeric: tabular-nums; }
.field {
  background: var(--field);
  border: 1px solid var(--edge-soft);
  border-radius: 2px;
}
.info-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  padding: 8px 12px; background: #dcdcdc; border-top: 1px solid var(--edge);
  font-size: 13.5px; color: var(--panel-text);
}

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 22px var(--gutter);
}
.wordmark { font-weight: 300; font-size: 22px; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { color: var(--ink); text-decoration: none; }
.nav ul a:hover { color: var(--lapis); }

/* ---------- Footer ---------- */
.foot {
  max-width: 1200px; margin: clamp(80px, 12vw, 160px) auto 0; padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 14.5px; color: var(--quiet);
}
.foot .wordmark { font-size: 17px; }

