/* ===========================================================================
   Modern CSS reset — minimal, opinionated
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  text-rendering: optimizeLegibility;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background: var(--color-accent-primary);
  color: var(--color-text-primary);
}

:focus-visible {
  outline: 3px solid var(--color-accent-primary);
  outline-offset: 3px;
}
