/* Reset, typography, layout helpers, buttons, utilities */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) so the sticky header keeps working */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1200px) { .container { padding: 0 32px; } }

.section { padding: var(--s8) 0; }
@media (min-width: 900px) { .section { padding: var(--s12) 0; } }
.section-title { text-align: center; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: var(--r-pill);
  border: 1px solid transparent; font-size: 15px; font-weight: 500; line-height: 1;
  white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline { background: var(--white); border-color: var(--border); color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand); }
.btn-lg { height: 48px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 20px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.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;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 24px;
  background: var(--brand); color: var(--white); border-radius: var(--r-pill);
}
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Reduced motion: one block for the whole site */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
