/* Ruff Justice — base.css: reset + design tokens */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,900&f[]=satoshi@400,500,700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

html {
  scroll-behavior: smooth;
}

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

: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.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6rem);

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

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 999px;

  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Light mode (default) ---- */
:root, [data-theme='light'] {
  --color-bg: oklch(97% 0.012 85);
  --color-surface: oklch(99% 0.006 85);
  --color-surface-2: oklch(94.5% 0.018 80);
  --color-surface-offset: oklch(92% 0.02 78);
  --color-border: oklch(86% 0.02 78);
  --color-divider: oklch(90% 0.015 80);

  --color-text: oklch(24% 0.035 262);
  --color-text-muted: oklch(46% 0.03 262);
  --color-text-faint: oklch(52% 0.02 262);
  --color-text-inverse: oklch(97% 0.012 85);

  --color-navy: oklch(28% 0.085 262);
  --color-navy-hover: oklch(22% 0.08 262);
  --color-navy-active: oklch(18% 0.07 262);
  --color-navy-highlight: oklch(90% 0.03 262);

  --color-gold: oklch(73% 0.145 84);
  --color-gold-hover: oklch(66% 0.15 82);
  --color-gold-active: oklch(48% 0.11 80);
  --color-gold-highlight: oklch(93% 0.05 85);

  --color-orange: oklch(62% 0.185 40);
  --color-orange-hover: oklch(55% 0.185 38);
  --color-orange-active: oklch(48% 0.18 36);
  --color-orange-highlight: oklch(91% 0.06 45);

  --color-success: oklch(52% 0.12 150);
  --color-warning: oklch(60% 0.16 55);

  --shadow-sm: 0 1px 2px oklch(24% 0.035 262 / 0.06);
  --shadow-md: 0 4px 16px oklch(24% 0.035 262 / 0.10);
  --shadow-lg: 0 12px 36px oklch(24% 0.035 262 / 0.16);
}

/* ---- Dark mode ---- */
[data-theme='dark'] {
  --color-bg: oklch(17% 0.03 262);
  --color-surface: oklch(21% 0.032 262);
  --color-surface-2: oklch(25% 0.034 262);
  --color-surface-offset: oklch(28% 0.036 262);
  --color-border: oklch(33% 0.03 262);
  --color-divider: oklch(29% 0.03 262);

  --color-text: oklch(95% 0.012 85);
  --color-text-muted: oklch(74% 0.02 85);
  --color-text-faint: oklch(70% 0.02 262);
  --color-text-inverse: oklch(20% 0.03 262);

  --color-navy: oklch(85% 0.02 262);
  --color-navy-hover: oklch(90% 0.015 262);
  --color-navy-active: oklch(95% 0.01 262);
  --color-navy-highlight: oklch(30% 0.05 262);

  --color-gold: oklch(78% 0.15 85);
  --color-gold-hover: oklch(83% 0.14 85);
  --color-gold-active: oklch(88% 0.12 85);
  --color-gold-highlight: oklch(32% 0.06 85);

  --color-orange: oklch(68% 0.19 42);
  --color-orange-hover: oklch(73% 0.18 42);
  --color-orange-active: oklch(78% 0.16 42);
  --color-orange-highlight: oklch(30% 0.08 42);

  --color-success: oklch(62% 0.13 150);
  --color-warning: oklch(70% 0.16 55);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0% 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0% 0 0 / 0.45);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }
