/* Global American Transport: design tokens. "Steel and safety yellow": Day (default) and Night. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* Day: bone concrete, near-black ink, oversize-load yellow */
:root {
  color-scheme: light;
  --bg: #e8e5dd;
  --bg-2: #dcd8ce;
  --bg-rgb: 232, 229, 221;
  --ink: #121315;
  --ink-2: #4d5055;
  --ink-rgb: 18, 19, 21;
  --accent: #ffcd00;
  --accent-rgb: 255, 205, 0;
  --accent-ink: #121315;
  --mark: #121315;            /* text-coloured emphasis: yellow is a fill on Day, never small text */
  --steel: #8b9097;
  --flag: #d2301f;
  --line: rgba(var(--ink-rgb), .16);
  --line-2: rgba(var(--ink-rgb), .34);
  --plate: url("../img/gen/hero-day-600.webp");

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --fs-hero: clamp(3rem, 7.2vw, 7.6rem);
  --fs-h1: clamp(2.6rem, 6.4vw, 6rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 4.4rem);
  --fs-h3: clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-lede: clamp(1.1rem, 1.45vw, 1.34rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-mono: .72rem;

  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1640px;
  --frame: 100%;
  --sec: clamp(76px, 10vw, 156px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Night: asphalt black, bone ink, the same yellow with amber marker lights */
[data-theme="night"] {
  color-scheme: dark;
  --bg: #0e0f10;
  --bg-2: #191a1c;
  --bg-rgb: 14, 15, 16;
  --ink: #ebe8df;
  --ink-2: #a3a29b;
  --ink-rgb: 235, 232, 223;
  --mark: #ffcd00;
  --steel: #6f747b;
  --flag: #ff5a45;
  --plate: url("../img/gen/hero-night-600.webp");
}

[data-layout="boxed"] {
  --frame: 1440px;
  --wrap: 1220px;
}

/* A band that is always dark with yellow, in either theme */
.on-dark {
  --bg: #0e0f10; --bg-2: #191a1c; --bg-rgb: 14, 15, 16;
  --ink: #ebe8df; --ink-2: #a9a8a1; --ink-rgb: 235, 232, 223;
  --mark: #ffcd00;
  --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .34);
  background: var(--bg); color: var(--ink);
}
/* A band that is always yellow */
.on-yellow {
  --bg: #ffcd00; --bg-rgb: 255, 205, 0;
  --ink: #121315; --ink-2: #3a3518; --ink-rgb: 18, 19, 21;
  --mark: #121315; --accent: #121315; --accent-ink: #ffcd00;
  --line: rgba(18, 19, 21, .22); --line-2: rgba(18, 19, 21, .5);
  background: var(--bg); color: var(--ink);
}
