/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--c-brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-brand-500); }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea, select { background: var(--c-surface); }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-tight);
  margin: 0;
  color: var(--c-text);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0; color: var(--c-text-soft); }

::selection { background: var(--c-brand-200); color: var(--c-brand-800); }

/* Focus visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-faint); }

/* Skip link */
.skip {
  position: absolute; left: -200px; top: 8px;
  background: var(--c-text); color: #fff; padding: 8px 12px;
  border-radius: var(--r-sm); z-index: 1000;
}
.skip:focus { left: 8px; }
