/* ============================================================================
   reset.css
   Minimal reset. System cursor (no custom). Smooth scroll. Native focus.
   ============================================================================ */

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

html, body {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html { font-size: 100%; } /* 16px base */

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  font-optical-sizing: auto;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }

a {
  color: var(--terracotta-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(160, 63, 30, 0.5);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
  color: var(--terracotta-2);
  text-decoration-color: var(--terracotta-2);
}
a.unstyled { text-decoration: none; color: inherit; }
a.unstyled:hover { color: var(--navy); }

/* keyboard focus: visible navy ring */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* skip link */
.skip-link {
  position: absolute;
  top: -200px;
  left: var(--s4);
  background: var(--navy);
  color: var(--paper);
  padding: var(--s3) var(--s5);
  font-family: var(--f-body);
  font-weight: 600;
  border-radius: var(--r1);
  z-index: 99999;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s4); color: var(--paper); }

/* selection */
::selection { background: var(--navy); color: var(--paper); }

/* scrollbars (unobtrusive) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border: 3px solid var(--paper-2); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* sr-only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* prefers-reduced-motion: floor (echoes tokens.css) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
