/*
 * Design tokens. Values are taken from darkswap.app's dark theme
 * (checked 2026-10-08) so Holder Crates reads as the same product.
 */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-mono-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-mono-latin-700.woff2") format("woff2");
}

/* Metric-matched fallback keeps the large headline from shifting when the web font arrives. */
@font-face {
  font-family: "Source Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 91%;
  ascent-override: 112%;
  descent-override: 44%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #07060b;
  --bg-2: #0b0a11;
  --card: #100e18;
  --card-2: #15121f;
  --well: #0a0910;
  --band: #120e1c;

  /* Lines */
  --border: #221d31;
  --border-2: #312a45;
  --border-3: #433a5c;

  /* Text */
  --fg: #f5f2ea;
  --fg-2: #cfc8be;
  --muted: #a39cb8;
  --dim: #6f6886;

  /* Purple, used sparingly */
  --primary: #8a50e8;
  --primary-hover: #a376f2;
  --accent: #a376f2;
  --accent-soft: #cdb4ff;
  --glow: rgb(138 80 232 / 0.18);

  /* Tier metals. Accents only; the case stays black. */
  --copper: #b77d5f;
  --bronze: #a3845a;
  --silver: #b6bac3;
  --gold: #cfb26c;
  --platinum: #e3e7ef;

  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 7px;

  /* Type */
  --font-sans: "Source Sans 3", "Source Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --shell: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --header-h: 70px;
  --bar-h: 32px;
  --section-y: clamp(64px, 8vw, 112px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
    --bar-h: 30px;
  }
}
