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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease;
}

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

a {
  color: var(--accent-hi);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--muted);
  transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover { text-decoration-color: currentColor; }

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

.hidden { display: none !important; }

.container { margin-inline: auto; max-width: var(--maxw); padding-inline: 24px; width: 100%; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.rule { border: none; border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }

h1 { font-size: clamp(34px, 6.2vw, 60px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -0.025em; }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { max-width: 62ch; }

.lead { color: var(--muted); font-size: clamp(16px, 2.1vw, 20px); max-width: 56ch; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.mark {
  aspect-ratio: 1;
  background: var(--mark) center / contain no-repeat;
  flex-shrink: 0;
  height: 32px;
}
.mark--md { height: 44px; }
.mark--lg { height: clamp(96px, 18vw, 148px); }

.skip-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  left: 12px;
  padding: 10px 14px;
  position: absolute;
  top: -100px;
  z-index: 400;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
