/* ============================================================
   BASE — resets, global typography, layout primitives
   ============================================================ */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll when active */
}

body {
  margin: 0;
  background: var(--bg-secondary);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility — never removed for keyboard users, cursor effects are pointer-only */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.section-title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: var(--text-lead);
  max-width: 56ch;
  color: var(--text-on-light-muted);
}

.section-note {
  font-size: var(--text-small);
  color: var(--text-on-light-muted);
  margin-top: var(--space-1);
  font-style: italic;
}

/* Dark-section overrides applied via class on the parent section */
.on-dark { color: var(--text-on-dark); }
.on-dark .section-lead,
.on-dark p:not(.eyebrow) { color: var(--text-on-dark-muted); }
