*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--ink-1);
  line-height: 1.55;
  font-size: 15px;
  letter-spacing: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }

::selection { background: rgba(58, 142, 255, 0.3); color: var(--ink-0); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-0);
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 500;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.005em; }
p  { margin: 0; }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}
.container-wide {
  width: min(1480px, 100% - 32px);
  margin-inline: auto;
}
@media (max-width: 720px) {
  .container { width: min(1200px, 100% - 28px); }
  .container-wide { width: min(1480px, 100% - 20px); }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

main { display: block; }
section { padding-block: clamp(56px, 7vw, 96px); position: relative; }

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

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