/* ==========================================================================
   Reset + Base Typography
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-charcoal);
  background-color: var(--c-canvas);
  background-image:
    repeating-linear-gradient(90deg, rgba(17,26,46,.02) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(17,26,46,.02) 0 1px, transparent 1px 3px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Room for the mobile sticky action bar so it never covers footer content */
  padding-bottom: 0;
}

@media (max-width: 767px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: var(--lh-heading);
  color: var(--c-ink);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); line-height: var(--lh-display); letter-spacing: -.02em; }
h2 { font-size: var(--t-h2); letter-spacing: -.015em; }
h3 { font-size: var(--t-h3); letter-spacing: -.01em; }

p { text-wrap: pretty; }

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

ul[class], ol[class] { list-style: none; padding: 0; }

/* ---------- Focus: visible, high-contrast, never removed ---------- */
:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  background: var(--c-ink);
  color: var(--c-on-dark);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--d-mid) var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--c-on-dark); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.measure { max-width: var(--maxw-text); }

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

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--c-gold) 0 6px, transparent 6px 10px);
  background-size: 10px 2px;
}

.lead { font-size: var(--t-lead); color: var(--c-stone); line-height: 1.6; }

/* Section heading block */
.sec-head { margin-bottom: var(--s-7); }
.sec-head .lead { margin-top: var(--s-4); max-width: 60ch; }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--center .eyebrow::before { display: none; }
