/* base.css — reset, global element defaults, typography, accessibility */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Headings — display serif for editorial, premium feel */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { max-width: 62ch; }

a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }

/* Focus visibility */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0; top: -100px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s var(--ease);
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* Section label / eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--color-accent-secondary);
}

.lead {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* Body scroll lock while mobile menu is open */
body.no-scroll { overflow: hidden; }

/* Visually hidden but available to assistive tech */
.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;
}

/* Scroll-reveal is a PURE enhancement. Content is always visible by default; only when JS
   actively arms a below-the-fold element (.is-armed) does it start hidden, and even then a
   safety timer guarantees it becomes visible. Nothing is ever hidden without JS, and nothing
   stays hidden if the observer fails. */
.js [data-reveal].is-armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal].is-armed { opacity: 1; transform: none; transition: none; }
}
