/* Design tokens. A control room at night: warm near-black, money as sodium light. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../vendor/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../vendor/fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;

  /* ground */
  --ink-0: #0e0c0a;          /* the room */
  --ink-1: #14110e;          /* raised */
  --ink-2: #1c1814;          /* panel */
  --ink-3: #27221c;          /* hover */
  --rule: rgba(255, 236, 214, 0.08);
  --rule-strong: rgba(255, 236, 214, 0.16);

  /* text */
  --text-1: #f1ebe2;
  --text-2: #b3a99b;
  --text-3: #7d7468;
  --text-4: #574f45;

  /* money: sodium light. Used only for money. */
  --money: #f5a524;
  --money-hi: #ffc865;
  --money-lo: #9a6312;
  --money-glow: rgba(245, 165, 36, 0.35);

  /* prices: cold light, never amber */
  --price-system: #e6edf7;
  --price-index: #8592a6;

  /* money the other way: paid back by units */
  --payback: #9fb3c8;

  /* technology classes, validated as an ordered set on the dark ground
     (adjacent normal-vision delta E 15.6, adjacent CVD delta E 7.6: identity is never colour alone) */
  --t-ccgt: #2288e6;
  --t-ocgt: #7a4aa9;
  --t-biomass: #6f9f5d;
  --t-coal: #a35322;
  --t-nuclear: #c77099;
  --t-hydro: #056f94;
  --t-pumped: #80711a;
  --t-battery: #d6526e;
  --t-interconnector: #8e56a2;
  --t-wind: #0a8059;
  --t-unclassified: #6f6a63;

  /* type */
  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Geist", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  --f-num: "Geist Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --fs-micro: 10.5px;
  --fs-small: 12px;
  --fs-ui: 13.5px;
  --fs-body: 16px;
  --fs-lede: clamp(19px, 1.6vw, 23px);
  --fs-h2: clamp(28px, 3.2vw, 44px);
  --fs-h1: clamp(40px, 5.6vw, 88px);
  --fs-hero: clamp(56px, 9vw, 148px);

  /* space and motion */
  --gutter: clamp(16px, 3vw, 44px);
  --mast-h: 56px;
  --foot-h: 30px;
  --nav-h: 0px;                                     /* the phone navigation bar, above the footer */
  --clear: calc(var(--foot-h) + var(--nav-h) + 28px); /* every scene keeps this much free at the bottom */
  --radius: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 420ms;
  --t-slow: 900ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; }
}
