:root {
  --paper: #f3efe6;
  --ink: #15171a;
  --muted: #5a5f66;
  --rule: #d8d2c4;
  --accent: #2f5d50;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101214;
    --ink: #ece8df;
    --muted: #9aa0a6;
    --rule: #2a2e33;
    --accent: #7fb3a3;
  }
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100svh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.frame {
  min-height: 100svh;
  max-width: 80rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mark {
  font-weight: 600;
}

.state {
  color: var(--muted);
}

.state::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.6rem;
  background: var(--accent);
}

main {
  align-self: center;
  max-width: 46rem;
  padding-block: clamp(3rem, 12vh, 8rem);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.ledger {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.ledger dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
}

.ledger dl > div {
  display: flex;
  gap: 0.75rem;
}

.ledger dt {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ledger dd {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .top,
  main > *,
  .ledger {
    animation: rise 360ms var(--ease-out) both;
  }

  h1 {
    animation-delay: 60ms;
  }

  .lede {
    animation-delay: 120ms;
  }

  .ledger {
    animation-delay: 180ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
