/* Hintr — base reset + typography */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-17);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-text-size-adjust: 100%;
}

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

button { font: inherit; cursor: pointer; }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* ─── Display headlines (Apple-tight tracking) ─────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  margin: 0;
  letter-spacing: var(--ls-display);
  line-height: var(--lh-tight);
  color: var(--c-ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);   /* 40 → 80 */
  font-weight: var(--fw-bold);
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem); /* 32 → 56 */
}
h3 {
  font-size: clamp(1.3125rem, 2.4vw, 1.75rem); /* 21 → 28 */
  letter-spacing: var(--ls-tight);
}
h4 {
  font-size: var(--fs-17);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
}

/* On dark sections, headlines flip to white */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: var(--c-text-on-dark);
}

/* ─── Skip link ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--c-ink);
  color: var(--c-text-on-dark);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
  z-index: var(--z-toast);
}
.skip-link:focus { top: 16px; }

/* ─── Focus ring (mono: ink ring + white offset for AAA contrast) ─ */
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 3px;
  box-shadow: 0 0 0 5px var(--c-white);
}

/* ─── Selection ────────────────────────────────────── */
::selection {
  background: var(--c-ink);
  color: var(--c-white);
}
