/* ============================================================
   BASE / RESET / TYPOGRAPHY
   ============================================================ */

*, *::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: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

ul, ol { list-style: none; }

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-h1); font-weight: 600; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { color: var(--color-text); }

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

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

.section--tight { padding-block: var(--space-lg); }

.section--dark {
  background: var(--color-primary);
  color: var(--color-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-on-dark); }
.section--dark p { color: var(--color-on-dark-muted); }

.section--surface { background: var(--color-surface); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.section--dark .eyebrow { color: var(--color-accent); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: var(--space-sm);
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
}
.section--dark .section-head p { color: var(--color-on-dark-muted); }

.lede {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Visually hidden but accessible */
.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: var(--space-sm);
  top: -48px;
  background: var(--color-primary);
  color: var(--color-on-dark);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-fast) var(--ease-editorial);
}
.skip-link:focus { top: var(--space-sm); }

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

.divider-spark {
  display: block;
  width: 84px;
  height: 18px;
  margin-block: var(--space-sm);
  color: var(--color-accent);
}
.section--dark .divider-spark { color: var(--color-accent); }

@media (min-width: 861px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 860px) {
  .desktop-only { display: none !important; }
}
