:root {
  --paper: #f5f2ec;
  --ink: #1d1c1a;
  --muted: #6b665d;
  --rule: #d9d3c7;
  --accent: #a4472a;
  --hero: #8e3b20;
  --hero-ink: #fbf3ea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --ink: #ebe6dc;
    --muted: #9c968b;
    --rule: #34312c;
    --accent: #e08a68;
    --hero: #4a2114;
    --hero-ink: #f3e6da;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  background: var(--hero) url(/contours.svg) center / cover no-repeat;
  color: var(--hero-ink);
}

.hero .wrap { padding-bottom: clamp(3.5rem, 10vh, 6rem); }

.lang {
  padding-top: 1.25rem;
  text-align: right;
  font-size: .875rem;
}

.hero a { color: inherit; }

.mark {
  display: inline-block;
  margin: clamp(2rem, 8vh, 5rem) 0 2rem;
  padding: .15rem .45rem;
  border: 2px solid currentColor;
  font: 600 .8rem/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .08em;
}

h1, h2, dt::before {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  letter-spacing: -.02em;
}

.lede {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  opacity: .88;
}

section { margin-top: 4.5rem; }

section + section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 2rem;
  font-size: 1.6rem;
}

dl {
  margin: 0;
  counter-reset: item;
}

dt {
  position: relative;
  padding-left: 3.5rem;
  font-weight: 600;
  counter-increment: item;
}

dt::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.3rem;
  font-size: 1.75rem;
  color: var(--accent);
}

dd {
  margin: .2rem 0 1.75rem;
  padding-left: 3.5rem;
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

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

.links a { margin-right: 1.25rem; }

footer {
  margin-top: 5rem;
  padding-bottom: 3rem;
  font-size: .875rem;
  color: var(--muted);
}
