:root {
  --bg: #0B0B0D;
  --fg: #F2EFE9;
  --soft: #8F8B82;
  --muted: #8F8B82;
  --gold: #D9A94B;
  --line: #2a2a2c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--soft);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding-inline: 1.25rem; }

header.top { padding-block: 1.75rem 0; }
.mark { font-family: var(--serif); font-size: 1.125rem; color: var(--fg); text-decoration: none; letter-spacing: 0.01em; }

/* The page opens on the pain, in his words, one line at a time. */
.hero { padding-block: clamp(3rem, 12vw, 7rem) clamp(2.5rem, 8vw, 5rem); }
.hero p, .lines p { margin: 0; font-family: var(--serif); font-weight: 400; }
.hero .pain {
  font-size: clamp(1.45rem, 1rem + 2.6vw, 2.35rem); line-height: 1.28; color: var(--soft);
  max-width: 24ch; margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}
.hero .turn {
  font-size: clamp(1.6rem, 1.05rem + 3.1vw, 2.75rem); line-height: 1.22; color: var(--gold);
  max-width: 22ch; margin-top: clamp(3rem, 9vw, 5.5rem);
}

.lines { padding-block: clamp(2rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.lines .lead { font-size: clamp(1.35rem, 1rem + 1.8vw, 1.9rem); line-height: 1.3; color: var(--fg); max-width: 28ch; margin-bottom: 2rem; }
.lines .gain { font-size: clamp(1.15rem, 0.95rem + 1vw, 1.45rem); line-height: 1.4; color: var(--fg); max-width: 34ch; margin-bottom: 1.25rem; }

section.plain { padding-block: clamp(2rem, 6vw, 3.5rem); border-top: 1px solid var(--line); }
section.plain h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.25; color: var(--fg); margin: 0 0 1rem; }
section.plain p { max-width: 60ch; margin: 0 0 1rem; }
.status { color: var(--fg); }

article.page { padding-block: clamp(2.5rem, 8vw, 4.5rem); }
article.page h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.2; color: var(--fg); margin: 0 0 1.5rem; }
article.page h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--fg); margin: 2.25rem 0 0.5rem; }
article.page p, article.page li { max-width: 62ch; }
article.page ul { padding-left: 1.25rem; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; font-size: 0.9375rem; color: var(--muted); }
footer p { margin: 0 0 0.75rem; max-width: 62ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: 1.25rem; }
footer nav a { display: inline-block; padding-block: 0.5rem; }

/* One moment of motion: the lines arrive slowly, one after another, then the turn. */
@media (prefers-reduced-motion: no-preference) {
  .hero .pain, .hero .turn { animation: arrive 0.9s ease-out both; }
  .hero .pain:nth-of-type(1) { animation-delay: 0.2s; }
  .hero .pain:nth-of-type(2) { animation-delay: 1.1s; }
  .hero .pain:nth-of-type(3) { animation-delay: 2.0s; }
  .hero .pain:nth-of-type(4) { animation-delay: 2.9s; }
  .hero .turn { animation-delay: 4.3s; }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
}
