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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brand); }
p  { margin: 0 0 var(--s-4); color: var(--muted); }

.is-dark { background: var(--deep); color: var(--on-dark-muted); }
.is-dark h1, .is-dark h2, .is-dark h3 { color: var(--on-dark); }
.is-dark h1 em, .is-dark h2 em, .is-dark h3 em { color: var(--accent); }
.is-dark p { color: var(--on-dark-muted); }

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

a { color: var(--nova-purple-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

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

.visually-hidden:focus,
.visually-hidden:focus-visible {
  position: fixed;
  top: var(--s-2);
  left: var(--s-2);
  width: auto;
  height: auto;
  padding: var(--s-2) var(--s-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 100;
  background: var(--surface);
  color: var(--nova-purple-dark);
  border-radius: var(--radius);
  outline: 3px solid var(--nova-purple);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
