/* =========================================================
   reset.css — minimal reset + FLUID REM SYSTEM
   ---------------------------------------------------------
   The whole interface is sized in rem, where 1rem == 1px at
   a 1440px design viewport. Below 1440 the page scales down
   proportionally; below each breakpoint we re-tune the base
   so sizes stay readable on smaller screens.
   ========================================================= */

html {
  /* 1rem == 1px at 1440px design viewport */
  font-size: calc(100vw / 1440);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

/* Tier down the base so a 16rem paragraph still reads on phones */
@media (max-width: 1280px) { html { font-size: calc(100vw / 1280); } }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1100); } }
@media (max-width: 768px)  { html { font-size: calc(100vw / 820);  } }
@media (max-width: 560px)  { html { font-size: calc(100vw / 560);  } }
@media (max-width: 380px)  { html { font-size: calc(100vw / 380);  } }

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

html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

body {
  font-size: 16rem;            /* equivalent to 16px @1440 */
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.1;
}

::selection { background: var(--accent); color: #000; }

/* Reduced-motion: silence transitions but keep layout */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
