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

html {
  background: var(--surface-0);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-prop);
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
a:hover { color: var(--primary); border-bottom-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--font-prop); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: var(--size-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin: 0 0 1em; }
small { font-size: var(--size-small); color: var(--text-muted); }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: var(--size-mono); }
pre {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.muted { color: var(--text-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--secondary); font-weight: 600; }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
