:root {
  color-scheme: light;
  --paper: #efeae2;
  --ink: #1b1714;
  --muted: #5e574e;
  --line: #d4cbbd;
  --copper: #8c3c28;
  --mark: #2a2420;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141210;
    --ink: #f4eee6;
    --muted: #b7aea3;
    --line: #3a342e;
    --copper: #e4a898;
    --mark: #f4eee6;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 100% -10%, color-mix(in srgb, var(--copper) 12%, transparent), transparent 60%),
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.top,
main,
footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.mark {
  color: var(--mark);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

main {
  padding: 4.5rem 0 3rem;
  flex: 1;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.lede {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.tools {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tools li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.num {
  padding-top: 0.35rem;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

h2 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tools p {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .top,
  main,
  footer {
    width: min(var(--max), calc(100% - 1.75rem));
  }

  main {
    padding-top: 3rem;
  }

  .tools li {
    grid-template-columns: 2.5rem 1fr;
  }

  footer {
    flex-direction: column;
  }
}
