/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { max-width: 100vw; overflow-x: clip; }
html {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 12px);
}
body {
  background: var(--bg);
  font-family: var(--ff-body);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
figure { margin: 0; }
table { border-collapse: collapse; }
input, select, textarea { font: inherit; color: inherit; min-width: 0; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

p { color: var(--text); }
strong { font-weight: 600; }
em { font-style: italic; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

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

@media (min-width: 768px) {
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
}
