/* ============================================================
   RAW — Base: reset, typography, layout primitives
   ============================================================ */

*,
*::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);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-white);
  background: var(--color-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(48px, 9vw, 96px);
}
h2 {
  font-size: clamp(36px, 6vw, 60px);
}
h3 {
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: 0.03em;
}

.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-v);
}

.section--light {
  background: var(--color-off-white);
  color: var(--color-black);
}
.section--light .text-muted { color: rgba(13, 13, 13, 0.55); }
.section--light .lead { color: rgba(13, 13, 13, 0.72); }
/* Text sitting directly on the light/cream background (not inside dark cards) */
.section--light > .container > .stat-label,
.section--light .stats-bar .stat-label { color: rgba(13, 13, 13, 0.6); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--color-text-dim);
  line-height: 1.75;
  max-width: 60ch;
}

/* ---- Utility grid ---- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--color-gold);
  color: var(--color-black);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

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

/* ---- Responsive grid collapse ---- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
