:root {
  --paper: #efe6d6;
  --ink: #1a1814;
  --muted: #5c564c;
  --line: #d9cdb8;
  --brick: #8d3b28;
  --max: 920px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a { color: inherit; }

.top, .hero, .work, footer {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero { padding: 72px 0 28px; }

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

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

.work { padding-bottom: 72px; }

.work h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: work;
}

li {
  counter-increment: work;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

li::before {
  content: counter(work, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 6px;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

li a, li span {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

li p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--ink);
}

footer p {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

footer a {
  color: var(--brick);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .top, .hero, .work, footer { width: min(var(--max), calc(100% - 32px)); }
  .top, footer { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 48px; }
  li a, li span { font-size: 26px; }
}
