/* tokens.css — Outlaw Redeemed design system: black + gold, custom (not Nexus) */

:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* 4px spacing system */
  --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;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius — sharp, industrial, streetwear */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1320px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Yellowtail', cursive;
}

/* LIGHT MODE — parchment / bronze */
:root,
[data-theme='light'] {
  --color-bg: #f6f0df;
  --color-surface: #fbf7ec;
  --color-surface-2: #fefcf6;
  --color-surface-offset: #ece1c5;
  --color-surface-offset-2: #e2d4ab;
  --color-surface-dynamic: #d5c493;
  --color-divider: #ddceA2;
  --color-border: #c7b482;

  --color-text: #1e180f;
  --color-text-muted: #5c5136;
  --color-text-faint: #8f815c;
  --color-text-inverse: #f6f0df;

  --color-primary: #8a6414;
  --color-primary-hover: #6f4f0f;
  --color-primary-active: #573e0b;
  --color-primary-highlight: #e9dbb2;
  --color-on-primary: #f9f4e6;

  --color-notification: #a5342b;
  --color-notification-hover: #862921;
  --color-notification-highlight: #ecd3ce;

  --color-success: #3f6b31;
  --color-success-highlight: #d8e2cd;

  --color-warning: #90591b;
  --color-warning-highlight: #e9dcc2;

  --shadow-sm: 0 1px 2px rgb(30 24 15 / 0.08);
  --shadow-md: 0 6px 16px rgb(30 24 15 / 0.12);
  --shadow-lg: 0 20px 48px rgb(30 24 15 / 0.2);
}

/* DARK MODE — near-black + gold (brand default) */
[data-theme='dark'] {
  --color-bg: #0b0906;
  --color-surface: #130f09;
  --color-surface-2: #17130b;
  --color-surface-offset: #1d170d;
  --color-surface-offset-2: #241c10;
  --color-surface-dynamic: #2d2414;
  --color-divider: #2c2313;
  --color-border: #3e3119;

  --color-text: #f4ecd8;
  --color-text-muted: #bcae8c;
  --color-text-faint: #776b4d;
  --color-text-inverse: #14110a;

  --color-primary: #d4af37;
  --color-primary-hover: #e6c860;
  --color-primary-active: #b6912a;
  --color-primary-highlight: #3a2f16;
  --color-on-primary: #14110a;

  --color-notification: #d1483d;
  --color-notification-hover: #e2685d;
  --color-notification-highlight: #3a1c17;

  --color-success: #7cb466;
  --color-success-highlight: #23301c;

  --color-warning: #d99a49;
  --color-warning-highlight: #3a2c15;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 24px 64px rgb(0 0 0 / 0.65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b0906;
    --color-surface: #130f09;
    --color-surface-2: #17130b;
    --color-surface-offset: #1d170d;
    --color-surface-offset-2: #241c10;
    --color-surface-dynamic: #2d2414;
    --color-divider: #2c2313;
    --color-border: #3e3119;

    --color-text: #f4ecd8;
    --color-text-muted: #bcae8c;
    --color-text-faint: #776b4d;
    --color-text-inverse: #14110a;

    --color-primary: #d4af37;
    --color-primary-hover: #e6c860;
    --color-primary-active: #b6912a;
    --color-primary-highlight: #3a2f16;
    --color-on-primary: #14110a;

    --color-notification: #d1483d;
    --color-notification-hover: #e2685d;
    --color-notification-highlight: #3a1c17;

    --color-success: #7cb466;
    --color-success-highlight: #23301c;

    --color-warning: #d99a49;
    --color-warning-highlight: #3a2c15;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 24px 64px rgb(0 0 0 / 0.65);
  }
}
