/* ==========================================================================
   Reset & base typography
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

h1 { font-size: var(--h1-size); font-weight: 900; line-height: 1.05; }
h2 { font-size: var(--h2-size); line-height: 1.15; }
h3 { font-size: var(--h3-size); font-family: var(--font-body); font-weight: 600; }

p {
  margin: 0 0 var(--space-2);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Eyebrow label — small wayfinding device used above section headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--eyebrow-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maize-gold);
  margin-bottom: var(--space-1);
}

.eyebrow--on-light {
  color: var(--clay-rust);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maize-gold);
  color: var(--ink);
  padding: var(--space-1) var(--space-2);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

section {
  padding: var(--space-6) 0;
}

@media (max-width: 720px) {
  section {
    padding: var(--space-5) 0;
  }
}

@media (max-width: 480px) {
  .site-header__bar,
  .hero .container {
    padding-left: var(--space-1);
    padding-right: var(--space-1);
  }
}
