/* ==========================================================================
   Brightrate — base styles
   --------------------------------------------------------------------------
   Reset, typography and layout primitives shared by every page.
   Page-specific pieces live in components.css.
   ========================================================================== */

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;  /* hard stop at the top and bottom: no bounce past the footer */
}
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- Document ----------------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: var(--text-h1); }
h3 { font-size: var(--text-h2); }

.lead  { font-size: var(--text-lead); line-height: 1.55; color: var(--ink-muted); max-width: var(--measure); }
.fine  { font-size: var(--text-fine); line-height: 1.5; color: var(--ink-muted); }
.eyebrow {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spruce);
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* ---- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 720px) {
  .container { padding-inline: var(--space-8); }
}

.section { padding-block: var(--space-12); }
@media (min-width: 960px) {
  .section { padding-block: var(--space-20); }
}

.stack > * + * { margin-top: var(--space-4); }

/* ---- Accessibility ------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 2px; }
.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 { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
