/* ==========================================================================
   UVFIT — reset + typographic base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
  /* Assistant is a sans; it needs tightening at heading sizes to read as
     deliberate rather than default */
  letter-spacing: -0.018em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--pink); }

strong, b { font-weight: 600; }

::selection { background: var(--pink); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--gutter);
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- type roles ------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-size: var(--display);
  font-weight: 800;
  line-height: 1.02;          /* fixes the 0.8em clipping on the old site */
  letter-spacing: -0.038em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--pink-deep);
  margin: 0 0 var(--sp-2);
  display: block;
}
.eyebrow--light { color: var(--pink); }
.eyebrow--mute  { color: var(--ink-mute); }

.h-xl { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.03em; }
.h-lg { font-size: var(--step-4); font-weight: 700; }
.h-md { font-size: var(--step-3); font-weight: 700; }
.h-sm { font-size: var(--step-2); font-weight: 700; }

.lede {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 0.9em; }
.prose h3 { font-size: var(--step-2); margin: 1.6em 0 0.5em; }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.75em;
  width: 8px; height: 1px;
  background: var(--pink);
}

.rule {
  border: 0;
  border-top: 1px solid var(--sand);
  margin: 0;
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

/* ---- reduced motion ---------------------------------------------------- */

@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;
  }
}
