:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --text: #131a1f;
  --muted: #4f5b66;
  --accent: #0c5a63;
  --accent-text: #ffffff;
  --border: #d5dce1;
  --font-heading: ui-monospace, SFMono-Regular, Menlo, Consolas, Liberation Mono, monospace;
  --font-body: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--font-heading); text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.top { padding: 1.25rem 0 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; }
nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
nav a { display: inline-block; padding: 0.625rem 0; color: var(--muted); font-size: 0.9375rem; text-decoration: none; transition: color 160ms var(--ease-out); }
nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.4em; }
.mark { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }

.lead { display: grid; gap: 2.5rem; padding: clamp(2.5rem, 9vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.plain .hero, .sub .hero { padding: clamp(2.5rem, 9vw, 5.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); max-width: 42rem; }
.sub .hero { padding-bottom: clamp(2rem, 5vw, 3rem); max-width: 46rem; }
.sub .lede { margin-bottom: 0; }
.sub h1 { font-size: clamp(1.875rem, 3.5vw + 0.75rem, 2.75rem); }
.audience { margin: 0 0 0.875rem; color: var(--muted); font-size: 0.9375rem; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2rem, 5vw + 0.75rem, 3.375rem); line-height: 1.07; letter-spacing: -0.022em; }
h1.long { font-size: clamp(1.75rem, 3.2vw + 0.75rem, 2.625rem); line-height: 1.12; letter-spacing: -0.016em; }
.lede { margin: 0 0 2rem; max-width: 36rem; font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); line-height: 1.5; }
.plain .hero p { max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }
.plain .actions { margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding: 0.625rem 1.375rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.quiet { font-weight: 600; }
.note { margin: 0.875rem 0 0; max-width: 36rem; color: var(--muted); font-size: 0.9375rem; }
.note + .note { margin-top: 0.375rem; }

.standing { align-self: end; padding: 1.5rem 1.5rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); }
.standing h2 { margin: 0 0 0.75rem; font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.standing ul { margin: 0; padding: 0 0 0 1.125rem; }
.standing li { margin: 0.4375rem 0; line-height: 1.5; }
.checked { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; }

.part { display: grid; gap: 0.25rem; padding: 2.25rem 0; border-top: 1px solid var(--border); }
.part h2 { margin: 0 0 0.625rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.012em; }
.part .body { max-width: 40rem; }
.part .body > :last-child { margin-bottom: 0; }
dl { display: grid; gap: 1.25rem 2.5rem; margin: 0; }
.body p + dl { margin-top: 1.5rem; }
.more { margin: 1.25rem 0 0; font-weight: 600; }
.more a::after { content: " \2192"; }
dt { margin: 0 0 0.25rem; font-weight: 600; }
dd { margin: 0; color: var(--muted); }

footer { margin-top: 1.5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9375rem; }
footer p { margin: 0 0 0.5rem; max-width: 40rem; }

@media (min-width: 60rem) {
  .lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 4rem; }
  .part { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 3rem; padding: 3rem 0; }
  .part .body { max-width: none; }
  dl { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 36rem) and (max-width: 59.99rem) {
  dl { grid-template-columns: 1fr 1fr; }
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { opacity: 0.88; }
  .mark:hover { text-decoration: underline; }
  nav a:hover { color: var(--text); }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
.hero > * { animation: rise 280ms var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: 40ms; }
.hero > :nth-child(3) { animation-delay: 80ms; }
.hero > :nth-child(n + 4) { animation-delay: 120ms; }
.standing { animation: fade 280ms var(--ease-out) 160ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero > * { animation-name: fade; }
  .button { transition: opacity 160ms var(--ease-out); }
  .button:active { transform: none; }
}
@media print {
  .hero > *, .standing { animation: none; }
  .button { border: 1px solid currentColor; background: none; color: inherit; }
}
