/* =========================================================================
   Basis-Reset & Typografie
   ========================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--c-ink-950);
  background: var(--c-surface-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: var(--c-ink-950);
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-h1); line-height: 1.15; }
h2 { font-size: var(--fs-h2); line-height: 1.2; font-weight: 600; }
h3 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 600; }

p { margin: 0; }

a {
  color: var(--c-primary-600);
  text-decoration: none;
}
a:hover { color: var(--c-primary-700); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

::selection { background: var(--c-primary-100); }

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

.small { font-size: var(--fs-small); color: var(--c-ink-600); }
.caption {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-400);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-line-300); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-ink-400); }
