/* ============================================================
   TICO PLUNGE · BASE
   Reset, document defaults and core typography. Consumes tokens.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* Accessible focus — visible only for keyboard users */
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }

/* Display emphasis — italic Fraunces in brand blue */
h1 em, h2 em, h3 em,
.display-em {
  font-style: italic;
  font-weight: 300;
  color: var(--ice);
}

p { line-height: var(--lh-base); }
strong { font-weight: 700; }

::selection { background: var(--ice); color: var(--paper); }

/* Respect users who prefer reduced motion: keep comprehension-aiding
   opacity fades, drop movement. (Emil: reduced ≠ zero motion.) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
