:root {
  --ink: #1b1712;
  --paper: #f3ead6;
  --panel: #efe2c4;
  --rule: #c9b48a;
  --clay: #9a4b28;
  --moss: #3d5340;
  --mute: #6a5d4a;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.55;
}

a {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.shell {
  width: min(68rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.wordmark img {
  width: 28px;
  height: 28px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.92rem;
}

nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  padding: 2.8rem 0 2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--moss);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
}

.lede {
  max-width: 36rem;
  font-size: 1.12rem;
}

.meta-card {
  align-self: start;
  padding: 1.2rem 1.2rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--rule);
}

.meta-card dt {
  margin: 0.7rem 0 0.15rem;
  color: var(--mute);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-card dt:first-child {
  margin-top: 0;
}

.meta-card dd {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.15rem 1.15rem 1.3rem;
  border: 1px solid var(--rule);
  background: #f7f0de;
}

.card p {
  margin: 0.4rem 0 0;
  color: var(--mute);
}

.section {
  padding: 1.6rem 0 0.4rem;
}

.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 0.9rem;
}

.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.note-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.note-list .when {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--mute);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.foot {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.88rem;
}

.lost {
  padding: 4rem 0 2rem;
}

@media (max-width: 820px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .mast {
    flex-direction: column;
    align-items: flex-start;
  }
}
