/* Design tokens, read from Figma iXF1JjwXKc8ViIKDMyUKpI. Owner: Foundation. */

/* Aeonik Extended Black, retail web license (CoType Foundry), added 2026-11-29. */
@font-face {
  font-family: "Aeonik Extended";
  src: url("../assets/fonts/aeonikextended-black.woff2") format("woff2"),
       url("../assets/fonts/aeonikextended-black.woff") format("woff");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "TWK Lausanne";
  src: url("../assets/fonts/TWKLausanne-500.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TWK Lausanne";
  src: url("../assets/fonts/TWKLausanne-600.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Surfaces */
  --c-black: #141414;
  --c-grey: #9a9a9a;
  --c-label: #b5b5b5;
  --c-lime: rgba(204, 255, 84, 0.8);

  /* Ink */
  --c-ink: #414141;
  --c-ink-strong: #242424;
  --c-ink-muted: #484848;
  --c-text: #bab6b6;
  --c-text-link: #b7b7b7;
  --c-text-dim: #a2a2a2;
  --c-highlight: #d9d9d9;

  /* Type */
  --f-text: "TWK Lausanne", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Aeonik Extended", "TWK Lausanne", "Arial Black", sans-serif;
  --lh: 0.98;
  --ls: -0.03em;
  --ls-tight: -0.05em;

  /* 1 Figma px. Mobile frame is 440 wide, capped so tablets do not blow up.
     Use it as calc(24 * var(--u)). */
  --u: calc(min(100vw, 560px) / 440);

  /* Sizes: mobile */
  --fs-small: max(10px, calc(10 * var(--u)));
  --fs-body: max(11px, calc(11 * var(--u)));
  --fs-ui: max(10px, calc(10 * var(--u)));
  --fs-title: calc(21 * var(--u));
  --fs-hero: calc(40 * var(--u));

  --gutter: calc(26 * var(--u));
  --bar-h: calc(12 * var(--u));
  --line: 1px solid var(--c-ink-muted);
}

/* Desktop frame is 3380 wide. */
@media (min-width: 900px) {
  :root {
    --u: calc(100vw / 3380);

    --fs-small: max(10px, calc(24 * var(--u)));
    --fs-body: max(10px, calc(30 * var(--u)));
    --fs-ui: calc(40 * var(--u));
    --fs-title: calc(40 * var(--u));
    --fs-hero: calc(119 * var(--u));

    --gutter: calc(40 * var(--u));
    --bar-h: calc(49 * var(--u));
    --sidebar-w: calc(845 * var(--u));
  }
}
