@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/geist-latin.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: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/geist-mono-latin.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: "Unbounded";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../assets/fonts/unbounded-latin.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: "FiraGO";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/firago-georgian-400.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/firago-georgian-600.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

@font-face {
  font-family: "FiraGO";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/firago-georgian-800.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}

:root {
  --font-display:
    "Unbounded", "FiraGO", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:
    "Geist", "FiraGO", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans",
    "Noto Sans Georgian", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  --font-mono:
    "Geist Mono", "FiraGO", ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-dense: 0.875rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-display: clamp(2.75rem, 12vw, 4rem);
  --leading-tight: 1.15;
  --leading-body: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-heavy: 700;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 10px;
  --radius-sheet: 18px;
  --radius-round: 999px;

  --rule-width: 1px;
  --focus-width: 2px;
  --measure: 68ch;
  --page-width: 80rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --duration-fast: 120ms;
  --duration-medium: 180ms;
  --duration-slow: 240ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);

  --color-background: #0a0b09;
  --color-surface: #10120f;
  --color-surface-raised: #171a15;
  --color-ink: #f1f2ea;
  --color-muted: #979c91;
  --color-faint: #6c7167;
  --color-rule: #1f231d;
  --color-rule-strong: #2d3229;
  --color-accent: #c6ff3a;
  --color-accent-strong: #dcff7f;
  --color-on-accent: #0a0b09;
  --color-success: #5fcf8b;
  --color-warning: #e8b64c;
  --color-danger: #ff6b5a;
  --color-info: #7cc4ff;
  --color-selection: #445a12;
  --color-scrim: #000000b3;
  color-scheme: dark;

  --game-backdrop: #0a0b09;
  --game-surface: #10120f;
  --game-surface-raised: #171a15;
  --game-ink: #f1f2ea;
  --game-ink-muted: #979c91;
  --game-ink-dim: #5f645b;
  --game-rule: #1f231d;
  --game-rule-strong: #2d3229;
  --game-accent: #c6ff3a;
  --game-accent-light: #dcff7f;
  --game-on-accent: #0a0b09;
  --game-danger: #ff6b5a;
  --button-radius: 0px;
  --button-font: var(--font-mono);
  --button-text-size: var(--text-xs);
  --button-case: uppercase;
  --button-tracking: 0.16em;
}

@media (prefers-color-scheme: light) {
  :root:not([data-surface="play"]) {
    --color-background: #f7f8f2;
    --color-surface: #eef0e8;
    --color-surface-raised: #ffffff;
    --color-ink: #11130f;
    --color-muted: #565b50;
    --color-faint: #80857a;
    --color-rule: #e1e4d9;
    --color-rule-strong: #cdd1c4;
    --color-accent: #466300;
    --color-accent-strong: #3a5300;
    --color-on-accent: #ffffff;
    --color-success: #1f7a45;
    --color-warning: #8a5a00;
    --color-danger: #b42318;
    --color-info: #1d5fa8;
    --color-selection: #e4ff9c;
    --color-scrim: #11130f66;
    color-scheme: light;
  }
}

:root[data-surface="play"] {
  --color-background: var(--game-backdrop);
  --color-surface: var(--game-surface);
  --color-surface-raised: var(--game-surface-raised);
  --color-ink: var(--game-ink);
  --color-muted: var(--game-ink-muted);
  --color-faint: var(--game-ink-dim);
  --color-rule: var(--game-rule);
  --color-rule-strong: var(--game-rule-strong);
  --color-accent: var(--game-accent);
  --color-accent-strong: var(--game-accent-light);
  --color-on-accent: var(--game-on-accent);
  --color-danger: var(--game-danger);
  --color-selection: var(--game-rule-strong);
  --color-scrim: #0a0b09d9;
  color-scheme: dark;
}

:root {
  --relic-mist: #3a1a52;
  --relic-fog: #d9725f;
  --relic-stone: #e8a56a;
  --relic-stone-edge: #40223f;
  --relic-light-stone: #f6c97a;
  --relic-dark-stone: #5a2f3f;
  --relic-gold: #ffc23a;
  --relic-jade: #0e9f7e;
  --relic-jade-light: #62ffd9;
  --relic-jade-emission: #14e6b8;
  --relic-wood: #7c2a22;
  --relic-wood-light: #d63a35;
  --relic-wood-dark: #3d1215;
  --relic-leaf: #0d5a49;
  --relic-leaf-light: #17895f;
  --relic-bark: #4b2a30;
  --relic-grass: #16684f;
  --relic-rock: #2c3263;
  --relic-water: #4fd4ff;
  --relic-water-emission: #2b6dff;
  --relic-relic: #ffd34a;
  --relic-relic-emission: #ffab00;
  --relic-halo: #ffd36a;
  --relic-halo-emission: #ffbf3d;
  --relic-sky-light: #a68cff;
  --relic-ground-light: #3b1d44;
  --relic-sun-light: #ffc46b;
  --relic-fill-light: #c4b2ff;
  --relic-sky-top: #1b1150;
  --relic-sky-bottom: #ffa04f;
  --relic-sun: #ffe08a;
  --relic-cloud: #ff9fb7;
  --relic-flame: #ffd25e;
  --relic-flame-emission: #ff6d00;
  --relic-pollen: #ffe29a;
  --relic-fur: #ed7926;
  --relic-fur-light: #f99942;
  --relic-fur-shade: #ce591c;
  --relic-cream: #ffe3ad;
  --relic-inner-ear: #edb18b;
  --relic-vest: #18364e;
  --relic-vest-edge: #284a60;
  --relic-leather: #49302b;
  --relic-leather-edge: #8a5837;
  --relic-sole: #252229;
  --relic-scarf: #f04b2c;
  --relic-scarf-edge: #ff8951;
  --relic-brass: #dba85b;
  --relic-eye-white: #fff8e5;
  --relic-eye-amber: #a56625;
  --relic-eye-black: #121c25;
  --relic-hit-emission: #512110;
  --relic-no-emission: #000000;
  --relic-sun-glow: #ffb347;
  --relic-contact-shadow: #1a0c22;
  --relic-jump-cue: #ff5b64;
  --relic-jump-cue-emission: #ff1f45;
  --relic-danger: #ff3d3d;
  --relic-danger-emission: #ff1430;
  --relic-crack: #ff8a1f;
  --relic-crack-emission: #ff4200;
  --relic-cracked-stone: #6e4552;
  --relic-dart-stone: #5d2f45;
  --relic-dart: #fff3dc;
  --relic-dart-glow: #ff3f6a;
  --relic-boulder: #9c8878;
  --relic-boulder-carving: #2f2440;
  --relic-rune-stone: #2e2a40;
  --relic-rune: #36e8ff;
  --relic-column: #e3d3bd;
  --relic-column-band: #d79a3c;
  --relic-dust: #ffd9b8;
  --relic-tier-one: #ffc23a;
  --relic-tier-two: #ff4fd8;
  --relic-tier-three: #46f0ff;
  --relic-speed-line: #ffe6c4;
  --relic-sky-middle: #b23a7e;
  --relic-gold-emission: #ff8a00;
  --relic-glow: #ffcf5a;
  --relic-sparkle: #fff6d8;
  --relic-close-call: #7af7ff;
  --relic-rim: #ffd2a1;
  --relic-horizon: #ff9f6e;
  --relic-ear-tip: #2c1419;
  --relic-moss: #2c7a58;
  --relic-ridge-far: #a3508a;
  --relic-ridge-near: #6c2c6f;
  --relic-canopy: #2e1a4f;
  --relic-water-deep: #40b3b3;
  --relic-water-foam: #ccfff0;
  --relic-trail: #ffd877;
  --relic-frenzy: #b98aff;
  --relic-frenzy-emission: #7a2dff;
  --relic-frenzy-glow: #b47bff;
  --relic-frenzy-grade: #3d2fd0;
  --relic-frenzy-deep: #7a2cf0;
  --relic-frenzy-base: #3c128f;
  --relic-frenzy-ink: #14052e;
  --relic-frenzy-track: #2a1550;
  --relic-banner-light: #fff4c2;
  --relic-title-white: #fffdf3;
  --relic-title-shine: #ffeea0;
  --relic-title-deep: #f39200;
  --relic-title-base: #c24f00;
  --relic-title-ink: #2a0614;
  --relic-title-cyan-deep: #14a3df;
  --relic-title-cyan-base: #0a4a88;
  --relic-title-cyan-ink: #04112c;
  --relic-pill: #241032;
  --relic-pill-edge: #ffc23a;
  --relic-pill-ink: #ffe9a8;
  --relic-pill-glow: #ff9d1f;
}
