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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ============ Base type helpers ============ */
p { color: var(--color-text); }
.muted { color: var(--color-text-muted); }
.gold  { color: var(--color-gold); }
.accent { color: var(--color-primary); }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-primary); color: var(--color-on-primary);
  padding: var(--space-3) var(--space-4); font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

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

/* ============ Selection ============ */
::selection { background: var(--color-primary); color: var(--color-on-primary); }

/* ============ Container ============ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-6); } }

/* ============ Section rhythm ============ */
.section { padding-block: var(--space-16); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.section-head h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.section-head p { color: var(--color-text-muted); font-size: var(--text-lg); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: var(--text-xs); font-weight: 600; color: var(--color-primary);
  margin-bottom: var(--space-3);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }
  .section-head h2 { font-size: var(--text-4xl); }
}
