/* Reset + base typography */

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

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* body is intentionally NOT position:relative: on some mobile browsers,
   an overflow value combined with position:relative on the same element
   turns it into the containing block for position:fixed descendants
   (the lightbox, mobile nav drawer), making them scroll with the page
   instead of staying pinned to the viewport. Nothing here needs body to
   be a positioning context (body::after is position:fixed already). */
body {
  background: var(--page-bg-gradient), var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-med);
}

/* Vignette — darkens the edges so the page reads richer, not flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 35%, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

:root[data-theme="light"] body::after {
  background: radial-gradient(ellipse 84% 76% at 50% 35%, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

p {
  font-size: 1.15rem;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent-strong, var(--accent));
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
