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

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives. Iron ground, chalk text, one acid accent in two strengths. */
  --iron: #101010;
  --iron-2: #181818;
  --iron-3: #222220;
  --chalk: #f2f2ee;
  --chalk-2: #e7e7e0;
  --chalk-3: #d9d9d0;
  --white: #ffffff;
  --gray: #8b8b84;
  --gray-2: #b0b0a8;
  --lime: #c6ff00;       /* bright: for iron surfaces + large marks */
  --lime-deep: #4a6a00;  /* deep: for chalk surfaces, AA at label sizes */

  /* semantic (iron theme is the default) */
  --bg: var(--iron);
  --bg-2: var(--iron-2);
  --fg: var(--chalk);
  --muted: #a3a39b;
  --line: rgba(242, 242, 238, 0.16);
  --line-strong: rgba(242, 242, 238, 0.55);
  --accent: var(--lime);
  --accent-raw: var(--lime);
  --accent-contrast: var(--iron); /* text color on accent fills */
  --focus: #c6ff00;

  /* type */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(3.4rem, 15vw, 15rem);
  --t-h1: clamp(2.8rem, 9vw, 8.5rem);
  --t-h2: clamp(2.1rem, 5.4vw, 4.6rem);
  --t-h3: clamp(1.3rem, 2.4vw, 2rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.78rem;
  --lh-tight: 0.9;
  --lh-heading: 0.96;
  --lh-body: 1.55;
  --track-label: 0.12em;

  /* 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: hard edges, hard shadows. No soft radii in this family. */
  --r-1: 2px;
  --r-2: 4px;
  --r-pill: 999px;
  --shadow-hard: 6px 6px 0 rgba(198, 255, 0, 0.9);

  /* 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);
  --marquee-dur: 28s;

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

/* chalk theme: any element with data-theme="chalk" flips the semantic set */
[data-theme="chalk"] {
  --bg: var(--chalk);
  --bg-2: var(--chalk-2);
  --fg: var(--iron);
  --muted: #62625a;
  --line: rgba(16, 16, 16, 0.16);
  --line-strong: rgba(16, 16, 16, 0.55);
  --accent: var(--lime-deep);
  --accent-contrast: var(--chalk);
  --focus: #2d4a00;
}
