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

html, body { margin: 0; height: 100%; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app { min-height: 100dvh; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }

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

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }
a:active { color: var(--action-active); }

/* 9c. Focus ring, everywhere */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  transition: outline-offset var(--d-micro) var(--ease);
}

/* 2a. Type scale */
.t-display { font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.t-h1 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.t-h2 { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.t-h3 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.t-h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.t-body-l { font-size: 18px; line-height: 1.4; }
.t-body { font-size: 16px; line-height: 1.4; }
.t-caption { font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; }
/* IDL lists -0.08em; uppercase labels need positive tracking to stay legible at 11px */
.t-label { font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }

.t-muted { color: var(--gray); }
.t-body-color { color: var(--gray); }

h1, h2, h3, h4, p { margin: 0; }

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

@media (max-width: 599px) {
  .t-display { font-size: 40px; }
  .t-h1 { font-size: 32px; }
  .t-h2 { font-size: 24px; }
}

/* 5d. Reduced motion: instant opacity changes, no movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
