/* Editorial reading rhythm and inclusive interaction states. */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  min-width: 20rem;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 0;
  left: var(--space-3);
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--observer-deep);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { color: #fff; transform: translateY(0); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
p { max-width: 64ch; }

a {
  color: var(--observer-deep);
  text-decoration-color: rgba(35, 92, 116, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

a:hover { color: var(--observer); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 1px; }
img { display: block; max-width: 100%; }
ul { padding: 0; list-style: none; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 4rem); }
.muted { color: var(--muted); }

.eyebrow, .question {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { color: var(--muted); }

.question { color: var(--observer); }

.page-head {
  padding-block: var(--space-6) var(--space-5);
}

.page-head h1 { margin-top: var(--space-2); max-width: 19ch; }
.page-head .lede { margin-top: var(--space-3); max-width: 57ch; color: var(--muted); font-size: var(--text-md); }
.section { padding-block: var(--space-5); }
.section-title { margin-bottom: var(--space-4); }
[id] { scroll-margin-top: 6rem; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
