/* ============================================
   THE GRIZZY VETERAN — Design Tokens
   Streetwear · Military · Gritty · Sophisticated
   ============================================ */

:root {
  /* 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, 7rem);

  /* Spacing */
  --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;

  /* Fonts — streetwear stencil-ish + clean body */
  --font-display: 'Anton', 'Impact', sans-serif;         /* condensed poster type */
  --font-heading: 'Oswald', 'Impact', sans-serif;         /* narrower, versatile */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii — sharp, streetwear */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1320px;
}

/* ============ DARK MODE (default) — Grizzly Veteran palette ============ */
:root,
[data-theme='dark'] {
  --color-bg: #14140F;
  --color-surface: #1C1C17;
  --color-surface-2: #23231D;
  --color-surface-offset: #181813;
  --color-divider: #2A2A24;
  --color-border: #3A3A32;

  --color-text: #E8DEC4;
  --color-text-muted: #A39A83;
  --color-text-faint: #6C6558;
  --color-text-inverse: #14140F;

  --color-primary: #B33228;         /* brick red */
  --color-primary-hover: #CA4237;
  --color-primary-active: #8F2820;
  --color-primary-highlight: #3A1815;

  --color-olive: #6B7148;
  --color-olive-light: #869063;
  --color-tan: #C8B489;
  --color-bone: #E8DEC4;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
}

/* ============ LIGHT MODE ============ */
[data-theme='light'] {
  --color-bg: #D9CDA9;
  --color-surface: #CFC29B;
  --color-surface-2: #C5B78F;
  --color-surface-offset: #D3C7A2;
  --color-divider: #B5A683;
  --color-border: #9E8E6C;

  --color-text: #1F1D16;
  --color-text-muted: #55503D;
  --color-text-faint: #8A8168;
  --color-text-inverse: #E8DEC4;

  --color-primary: #9C2A22;
  --color-primary-hover: #7F211B;
  --color-primary-active: #631913;
  --color-primary-highlight: #E6C9BF;

  --color-olive: #545A38;
  --color-olive-light: #6B7148;
  --color-tan: #A69068;

  --shadow-sm: 0 1px 2px rgba(60,50,25,0.10);
  --shadow-md: 0 4px 12px rgba(60,50,25,0.14);
  --shadow-lg: 0 12px 32px rgba(60,50,25,0.18);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: var(--color-primary);
  color: var(--color-bone);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, input, textarea, select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive),
    opacity var(--transition-interactive);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
