/* base.css — reset + tokens (Bright Agency) */
: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(3.25rem, 0.5rem + 9vw, 10rem);

  /* 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 / transitions */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --transition-interactive: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1440px;

  /* Fonts */
  --font-display: 'Clash Display', 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, -apple-system, sans-serif;
}

/* === DOMINION GLOBAL — BRIGHT AGENCY PALETTE === */
:root, [data-theme='light'] {
  /* Surfaces — clean white with subtle warm offset */
  --color-bg: #ffffff;
  --color-surface: #fafaf7;
  --color-surface-2: #f4f3ee;
  --color-surface-offset: #efeee8;
  --color-surface-dark: #0d0d0d;
  --color-divider: #ececec;
  --color-border: #d8d7d2;

  /* Text — true near-black */
  --color-text: #0d0d0d;
  --color-text-muted: #5a5a58;
  --color-text-faint: #9a9a96;
  --color-text-inverse: #ffffff;

  /* Primary accent — Dominion red (from the brand mark) */
  --color-primary: #e63329;
  --color-primary-hover: #c41f17;
  --color-primary-active: #a01710;
  --color-primary-highlight: #ffe5e3;

  /* Secondary accents */
  --color-coral: #ff5a3c;
  --color-lime: #d8ff3c;
  --color-cream: #f4f0e3;
  --color-ink: #0e1530;
  --color-blue: #1a3aff;

  /* Shadows — soft, modern */
  --shadow-sm: 0 1px 2px rgba(13,13,13,0.04);
  --shadow-md: 0 8px 24px rgba(13,13,13,0.08);
  --shadow-lg: 0 24px 60px rgba(13,13,13,0.12);
}

[data-theme='dark'] {
  --color-bg: #0d0d0d;
  --color-surface: #161616;
  --color-surface-2: #1d1d1d;
  --color-surface-offset: #232323;
  --color-divider: #262626;
  --color-border: #333;
  --color-text: #f4f3ee;
  --color-text-muted: #9d9d9b;
  --color-text-faint: #6a6a68;
  --color-text-inverse: #0d0d0d;
  --color-primary: #5570ff;
  --color-primary-hover: #7889ff;
  --color-primary-highlight: #1a2050;
}

*, *::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: 5rem;
  hanging-punctuation: first last;
  background: var(--color-bg);
}

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

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 0.98;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

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

: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;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

a, button, [role='button'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

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