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

html {
  scroll-behavior: smooth;
}

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

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

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

p {
  margin: 0 0 1.25em;
  max-width: 65ch;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

/* Respect reduced-motion preferences globally */
@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;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  background: var(--color-bg-deep);
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.section {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
}

/*
 * Section divider: a faint horizon line marking the boundary between major
 * sections. Applied via the .section class itself (already shared by every
 * top-level section) so no markup duplication is needed, and no dedicated
 * component was introduced for a single 1px rule. Reuses the same
 * --color-border / --color-border-strong tokens the header/footer rules
 * already use for their own top/bottom borders, so all section boundaries
 * on the page read as one consistent visual language. The gradient fades
 * to transparent at both ends (a soft horizon rather than a hard-edged
 * rule) and brightens slightly at the center — a static, extremely subtle
 * opacity variation along its length, not a color gradient or animation.
 * Width matches .container exactly, so it never overflows and always
 * lines up with the content above and below it.
 */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--max-width);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 18%,
    var(--color-border-strong) 50%,
    var(--color-border) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.section-intro {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.section-intro p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
