:root {
  color-scheme: light;
  --stage: #e9eef0;
  --field-light: #f5f7f8;
  --panel: #f5f7f8;
  --panel-edge: #ffffff;
  --ink: #18242a;
  --muted: #415561;
  --line: #aebcc3;
  --control: #647782;
  --accent: #055578;
  --alarm: #9f3929;
  --bar: #697f88;
  --plot: #dce5e9;
  --platform: #b2c2cb;
  --rim: #d9f0f9;
  --wall: #c8d6dd;
  --alarm-mesh: #ab4a36;
  --contact: #344650;
  --glass: rgb(246 250 252 / 91%);
  --on-accent: #ffffff;
  --shadow: rgb(42 62 72 / 22%);
  --grain: url("img/grain.svg");

  --display: "Fraunces", Georgia, serif;
  --body: "Avenir Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;
  --type-small: .875rem;
  --type-micro: .75rem;
  --heading: clamp(2rem, 4.2vw, 4.5rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --section-space: clamp(3.5rem, 7vw, 7rem);
  --gutter: clamp(1rem, 4.2vw, 4rem);
  --wide: 81rem;
  --measure: 62ch;
  --radius-panel: .75rem;
  --radius-control: .3rem;
  --mast-height: 4.5rem;
  --border: 1px solid var(--line);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --stage: #10171b;
    --field-light: #202c33;
    --panel: #263239;
    --panel-edge: #52626b;
    --ink: #eef4f5;
    --muted: #b5c5cb;
    --line: #43555d;
    --control: #899da7;
    --accent: #a2d9f1;
    --alarm: #ffa38d;
    --bar: #9eafb7;
    --plot: #222f36;
    --platform: #344751;
    --rim: #c9e8f5;
    --wall: #253741;
    --alarm-mesh: #bc5340;
    --contact: #080b0e;
    --on-accent: #102129;
    --glass: rgb(32 44 51 / 92%);
    --shadow: rgb(0 0 0 / 46%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --stage: #10171b;
  --field-light: #202c33;
  --panel: #263239;
  --panel-edge: #52626b;
  --ink: #eef4f5;
  --muted: #b5c5cb;
  --line: #43555d;
  --control: #899da7;
  --accent: #a2d9f1;
  --alarm: #ffa38d;
  --bar: #9eafb7;
  --plot: #222f36;
  --platform: #344751;
  --rim: #c9e8f5;
  --wall: #253741;
  --alarm-mesh: #bc5340;
  --contact: #080b0e;
  --on-accent: #102129;
  --glass: rgb(32 44 51 / 92%);
  --shadow: rgb(0 0 0 / 46%);
}
