:root {
  --bg:        #ffffff;
  --text:      #17161a;
  --muted:     #6c6a75;
  --link:      #1c4fd0;
  --rule:      #e8e6e1;
  --highlight: #fbe94e;
  --measure:   36rem;

  /* Highlight bar: change these to adjust it everywhere */
  --hl-height:   0.30em;  /* thickness: bigger = reaches higher up the letters */
  --hl-position: 100%;    /* vertical position: 100% = bottom, 0% = top */
}

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

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

body {
  margin: 0 auto;
  max-width: var(--measure);
  padding: 5rem 1.5rem 8rem;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- The highlight ------------------------------------------------ */
/* A gradient painted behind the text. --hl-height sets the bar's
   thickness, --hl-position sets how high it rides. Keep this
   element `inline` so the bar breaks correctly across two lines.     */

.hl {
  background: linear-gradient(var(--highlight), var(--highlight)) 0 80% / 100% var(--hl-height) no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl--sweep { animation: sweep 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }

@keyframes sweep { from { background-size: 0 var(--hl-height); } }

@media (prefers-reduced-motion: reduce) {
  .hl--sweep { animation: none; }
  * { transition: none !important; }
}

/* ---- Type --------------------------------------------------------- */

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-align: center;
}

h2 {
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

p { margin: 0 0 1.25rem; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-thickness 0.12s ease;
}

a:hover { text-decoration-thickness: 2px; }

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

/* ---- Nav ---------------------------------------------------------- */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-bottom: 3rem;
  font-size: 0.9375rem;
  justify-content: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--text); }

/* ---- Lists -------------------------------------------------------- */

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

li {
  margin-bottom: 0.875rem;
  line-height: 1.55;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  body { padding-top: 3rem; }
  h2 { margin-top: 2.75rem; }
}