/* DEPOT NINE tokens: the single source of truth. Re-skin here first.
   Identity: a departures board in a freight terminal. Board charcoal ground,
   bulb-white type, signal cyan spent like fuel. */

@font-face {
  font-family: "B612 Mono";
  src: url("../fonts/b612-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "B612 Mono";
  src: url("../fonts/b612-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("../fonts/b612-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("../fonts/b612-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  /* primitives */
  --board: #1c1e22;        /* terminal charcoal */
  --board-2: #24272d;      /* flap tile */
  --board-3: #2e323a;      /* raised tile */
  --bulb: #f4f1e8;         /* bulb white */
  --bulb-2: #eae6d8;
  --bulb-3: #ddd8c6;
  --signal: #35b6c9;       /* bright cyan: for board surfaces, 6.9:1 on charcoal */
  --signal-deep: #0f6e7e;  /* deep cyan: for bulb surfaces, 5.2:1 on bulb white */
  --mist: #9aa3ad;         /* muted on charcoal, 6.5:1 */
  --smoke: #5c6670;        /* muted on bulb, 5.1:1 */

  /* semantic (board theme is the default) */
  --bg: var(--board);
  --bg-2: var(--board-2);
  --bg-3: var(--board-3);
  --fg: var(--bulb);
  --muted: var(--mist);
  --line: rgba(244, 241, 232, 0.16);
  --line-strong: rgba(244, 241, 232, 0.55);
  --accent: var(--signal);
  --focus: #8fe3f2;

  /* type */
  --font-board: "B612 Mono", "SF Mono", Menlo, monospace;
  --font-body: "B612", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(1.9rem, 5.8vw, 4.4rem);
  --t-h2: clamp(1.45rem, 3.2vw, 2.4rem);
  --t-h3: clamp(1.1rem, 1.9vw, 1.35rem);
  --t-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --t-body: 1.0313rem;
  --t-small: 0.875rem;
  --t-mono: 0.72rem;
  --t-flap: clamp(0.78rem, 1.7vw, 1.05rem);
  --lh-tight: 1.02;
  --lh-heading: 1.12;
  --lh-body: 1.6;
  --track-board: 0.1em;
  --track-callsign: 0.16em;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-pad: clamp(4.5rem, 11vh, 8.5rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.1rem, 4vw, 3.5rem);
  --measure: 40rem;
  --max-w: 78rem;

  /* shape + depth */
  --r-1: 3px;
  --r-2: 8px;
  --r-3: 16px;
  --notch: 0.55rem;  /* ticket punch-hole radius */
  --shadow-1: 0 1px 2px rgba(10, 11, 13, 0.35), 0 10px 28px rgba(10, 11, 13, 0.3);
  --shadow-pass: 0 2px 6px rgba(28, 30, 34, 0.12), 0 18px 44px rgba(28, 30, 34, 0.16);

  /* motion */
  --dur-1: 140ms;
  --dur-2: 300ms;
  --dur-3: 620ms;
  --flip-step: 64ms; /* one flap turn */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.2, 1.4);

  /* layers */
  --z-tower: 40;
  --z-gatechange: 50;
  --z-skip: 60;
}

/* bulb theme: the quote desk, the boarding pass, any paper surface */
[data-theme="bulb"] {
  --bg: var(--bulb);
  --bg-2: var(--bulb-2);
  --bg-3: var(--bulb-3);
  --fg: var(--board);
  --muted: var(--smoke);
  --line: rgba(28, 30, 34, 0.2);
  --line-strong: rgba(28, 30, 34, 0.6);
  --accent: var(--signal-deep);
  --focus: #0b4c58;
}
