/* base.css - Overhead Master */
: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.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-hero: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem);

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

  /* Color — Overhead Master Brand: red + black on warm white */
  --color-bg: #ffffff;
  --color-surface: #faf8f6;
  --color-surface-2: #f4f1ed;
  --color-surface-offset: #eeeae5;
  --color-divider: #e6e1da;
  --color-border: #d9d3c9;

  --color-text: #0a0a0a;
  --color-text-muted: #555351;
  --color-text-faint: #8a8783;
  --color-text-inverse: #ffffff;

  --color-primary: #d62828;       /* CTA red — 4.95:1 on white */
  --color-primary-hover: #b81f1f;
  --color-primary-active: #951818;
  --color-primary-tint: #fdecec;

  --color-dark: #0a0a0a;
  --color-dark-2: #1a1a1a;
  --color-dark-soft: #2b2a28;

  --color-success: #166534;
  --color-success-tint: #dcfce7;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 16, 10, 0.06);
  --shadow-md: 0 6px 18px rgba(20, 16, 10, 0.08);
  --shadow-lg: 0 18px 40px rgba(20, 16, 10, 0.14);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1240px;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 72px;
}

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  /* Bottom padding to compensate for sticky mobile bar */
}

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 {
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
h1 { letter-spacing: -0.02em; }

p, li, figcaption { text-wrap: pretty; }

a {
  color: var(--color-text);
  text-decoration: none;
}

::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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

a, button, [role='button'], [role='link'], 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);
}

.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;
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  background: var(--color-dark);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }
