/* ==========================================================================
   Reset + element defaults + self-hosted type
   ========================================================================== */

/* Both are variable fonts — one file each covers the full weight axis, so
   only 2 requests are needed for every weight used on the site (74KB total),
   instead of a separate static file per weight. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-variable.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis takes over when JS is available */
}

body {
  font-family: var(--font-body), system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display), system-ui, sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
}
h1 { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

p { max-width: 65ch; }
p.no-measure { max-width: none; }

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; }

input, select, textarea {
  background: var(--white);
}

table { border-collapse: collapse; width: 100%; }

/* Numerals — prices/distances never reflow when they change */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Focus visibility — never removed without a replacement */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--mint-050);
  border-color: var(--mint);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  z-index: var(--z-toast);
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}

/* Guarantees the [hidden] attribute always wins, full stop. Without this,
   any component rule that sets display on the same element (.field, .route-
   summary-bar, .lightbox-overlay, etc.) silently beats the browser's default
   [hidden]{display:none} — author CSS always outranks the UA stylesheet
   regardless of selector specificity. Found via a real bug: the lightbox
   overlay stayed visible over every page's content because .lightbox-overlay
   set display:flex unconditionally. This single rule closes that entire bug
   class everywhere, including future additions. */
[hidden] { display: none !important; }

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

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