/*
 * RebelX Wear design tokens.
 * Brand identity tokens (spec 4): OLED black, single red accent, crimson bands, off-white text.
 * Pure #000 is kept on purpose: it is the brand's committed identity (logo sheet, OLED black).
 * Fonts: Big Shoulders Display (headlines, poster weight) + Martian Mono (labels, names, body).
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-var.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Colour */
  --rx-black: #000000;
  --rx-ink-1: oklch(0.16 0.006 25);   /* raised surface, solid panel fallback */
  --rx-ink-2: oklch(0.22 0.008 25);   /* hover surface */
  --rx-red: #fb0000;                  /* the one accent: primary action, glow */
  --rx-red-hover: oklch(0.58 0.24 29);
  --rx-crimson: #8f0010;              /* bands only */
  --rx-text: #f6f6f6;
  --rx-text-2: oklch(0.78 0.004 25);  /* secondary text, still >= 7:1 on black */
  --rx-text-3: oklch(0.64 0.004 25);  /* meta text, >= 4.5:1 on black */
  --rx-line: rgba(255, 255, 255, 0.12);
  --rx-line-strong: rgba(255, 255, 255, 0.28);
  --rx-focus: #f6f6f6;

  /* Glass: used only where content scrolls beneath a floating control (filter bar, selection bar). */
  --rx-glass-fill: rgba(246, 246, 246, 0.06);
  --rx-glass-blur: blur(20px) saturate(140%);
  --rx-glass-fallback: #0b0b0b;

  /* The single gradient: soft red glow behind the centre garment. */
  --rx-glow: radial-gradient(closest-side, rgba(251, 0, 0, 0.42), rgba(251, 0, 0, 0.12) 55%, rgba(251, 0, 0, 0) 100%);

  /* Type */
  --rx-font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --rx-font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Modular scale, ratio ~1.333, fluid at the display end */
  --rx-step--1: 0.75rem;                                  /* 12px labels */
  --rx-step-0: 0.875rem;                                  /* 14px body mono */
  --rx-step-1: 1.125rem;                                  /* 18px */
  --rx-step-2: 1.5rem;                                    /* 24px */
  --rx-step-3: clamp(2rem, 1.4rem + 2.6vw, 3rem);         /* 32-48 */
  --rx-step-4: clamp(2.75rem, 1.6rem + 5vw, 5rem);        /* 44-80 */
  --rx-step-5: clamp(3.5rem, 1.5rem + 9vw, 8.5rem);       /* 56-136 hero */

  --rx-track-label: 0.18em;
  --rx-track-name: 0.12em;
  --rx-leading-body: 1.7;   /* light on dark: +0.1 */
  --rx-leading-tight: 0.92;

  /* Space: tight groupings, generous separations */
  --rx-space-1: 0.25rem;
  --rx-space-2: 0.5rem;
  --rx-space-3: 0.75rem;
  --rx-space-4: 1rem;
  --rx-space-5: 1.5rem;
  --rx-space-6: 2.5rem;
  --rx-space-7: clamp(3rem, 2rem + 4vw, 6rem);
  --rx-space-8: clamp(5rem, 3rem + 8vw, 10rem);
  --rx-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --rx-measure: 68ch;

  /* Shape */
  --rx-radius-panel: 24px;
  --rx-radius-media: 16px;
  --rx-radius-pill: 999px;
  --rx-hairline: 1px solid var(--rx-line);

  /* Motion: exponential ease-outs only */
  --rx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* quint-ish */
  --rx-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --rx-dur-1: 140ms;
  --rx-dur-2: 260ms;
  --rx-dur-3: 520ms;
  --rx-dur-4: 900ms;

  /* Rail */
  --rx-rail-item: clamp(220px, 34vw, 520px);
  --rx-rail-gap: clamp(1rem, 4vw, 4rem);
  --rx-rail-side-scale: 0.6;
  --rx-rail-side-opacity: 0.45;

  /* Layers */
  --rx-z-rail: 1;
  --rx-z-bar: 20;
  --rx-z-header: 30;
  --rx-z-drawer: 40;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rx-dur-1: 0ms;
    --rx-dur-2: 0ms;
    --rx-dur-3: 0ms;
    --rx-dur-4: 0ms;
  }
}
