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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.56;
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  transition-property: background-color, color;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-smooth);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p, li {
  margin: 0;
  line-height: 1.58;
  text-wrap: pretty;
}

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

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

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

button, input, select {
  font: inherit;
  color: inherit;
}

.mono,
.tabular-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 18px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: var(--text-invert);
  font-weight: 700;
  transition-property: transform;
  transition-duration: 150ms;
}

.skip-link:focus {
  top: 18px;
}

.wrap {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(18px, 3.2vw, 40px);
}

.band {
  padding-block: clamp(4.2rem, 3.2rem + 4vw, 6.8rem);
  position: relative;
}

.band-alt {
  background-color: var(--bg-alt);
  border-block: 1px solid var(--border-hairline);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
}

.section-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent-primary);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .floating-header-wrap,
  .toast-stack,
  .lightbox-backdrop {
    display: none !important;
  }
}
