/* Reset + element defaults */

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

html, body { margin: 0; padding: 0; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-default);
  font-weight: var(--fw-regular);
  color: var(--fg-default);
  background: var(--bg-page);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--fg-default);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--space-3); }

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--motion-fast);
}
a:hover { color: var(--accent-solid); }
a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-1);
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

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

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--mauve-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-1);
  font-size: var(--fs-xs);
  color: var(--fg-default);
  line-height: 1.4;
}

::selection {
  background: var(--accent-bg-hover);
  color: var(--fg-default);
}
