/* base.css — reset + typo */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h-mobile) + 8px); }
}

html, body { max-width: 100vw; }
body {
  overflow-x: clip;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }

figure { margin: 0; }
button { font-family: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
p { color: var(--text); }

ul, ol { padding-left: 1.2em; }
[hidden] { display: none !important; }
