/* reset.css — modern CSS reset */

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

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

body {
  min-height: 100dvh;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove list semantics that are purely visual */
ul, ol {
  list-style: none;
}

/* Remove anchor decoration — components style links explicitly */
a {
  color: inherit;
  text-decoration: none;
}

/* Images + media block-level by default */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* Form elements inherit font */
input, button, textarea, select {
  font: inherit;
}

/* Avoid text overflow on long words */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove button defaults */
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Root stacking context for page transition curtain */
#page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-transition);
  background: var(--color-bg-dark);
  transform: translateY(-100%);
  pointer-events: none;
}
