/* KESSEL MOTORS tokens: the single source of truth. Re-skin here first. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives. Zinc console grounds + racing yellow in two AA strengths. */
  --zinc: #17191c;
  --zinc-2: #1d2025;
  --zinc-3: #24282e;
  --paper: #f0f1ef;
  --paper-2: #e5e7e4;
  --white: #ffffff;
  --gray: #9ba1a9;
  --gray-2: #6b7178;
  --yellow: #ffd400;      /* bright: dark grounds, large marks */
  --yellow-deep: #8a7300; /* deep: light sections, AA at label sizes */

  /* semantic (zinc console theme is the default) */
  --bg: var(--zinc);
  --bg-2: var(--zinc-2);
  --bg-3: var(--zinc-3);
  --fg: var(--white);
  --muted: #a6acb4;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.45);
  --line-blueprint: rgba(133, 178, 224, 0.16);
  --accent: var(--yellow);
  --accent-contrast: #131313;
  --focus: #5aabff;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(3.2rem, 11vw, 9.5rem);
  --t-h1: clamp(2.7rem, 7.5vw, 6rem);
  --t-h2: clamp(2.1rem, 5vw, 4rem);
  --t-h3: clamp(1.4rem, 2.6vw, 2.1rem);
  --t-lead: clamp(1.125rem, 1.7vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-label: 0.8rem;
  --t-num: clamp(2.2rem, 4.5vw, 3.6rem);
  --lh-tight: 0.92;
  --lh-heading: 1.02;
  --lh-body: 1.55;
  --track-label: 0.12em;
  --track-display: 0.01em;

  /* 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;
  --s-10: 9rem;
  --section-pad: clamp(5rem, 12vh, 9rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
  --measure: 38rem;
  --max-w: 90rem;

  /* shape + depth */
  --r-1: 3px;
  --r-2: 8px;
  --r-3: 14px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);

  /* motion */
  --dur-1: 150ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --dur-4: 1000ms;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  /* layers */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;
}

/* light theme: any element with data-theme="light" flips the semantic set */
[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --bg-3: #dcdfdb;
  --fg: var(--zinc);
  --muted: #52575e;
  --line: rgba(23, 25, 28, 0.16);
  --line-strong: rgba(23, 25, 28, 0.5);
  --line-blueprint: rgba(23, 25, 28, 0.1);
  --accent: var(--yellow-deep);
  --accent-contrast: #ffffff;
  --focus: #0055d4;
}
