:root {
  --paper: #f3ead8;
  --ink: #16120e;
  --rule: #c9b59a;
  --muted: #5c5348;
  --spend: #9c2f1a;
  --mark: #0f3d38;
}

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

html {
  font-size: 18px;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgb(22 18 14 / 3%) 28px
    ),
    var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.masthead {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 24px 36px;
}

.masthead__inner {
  max-width: 920px;
  margin: 0 auto;
}

.masthead__kicker {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7c4a8;
}

.masthead__mark {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 650;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.masthead__tag {
  max-width: 36rem;
  margin: 10px 0 0;
  color: #e7d9c4;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.lede h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 650;
  line-height: 1.12;
  margin: 8px 0 16px;
  max-width: 18ch;
}

.lede__issue,
.essay__crumb,
.essay__owner,
.toc__owner,
.essay__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spend);
}

.lede__body {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted);
}

.toc {
  margin-top: 56px;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}

.toc h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 20px;
}

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

.toc__list li + li {
  border-top: 1px solid var(--rule);
}

.toc__list a {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.toc__list a:hover .toc__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
  line-height: 1.2;
}

.toc__desc {
  color: var(--muted);
  max-width: 40rem;
}

.toc__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.essay h1 {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  line-height: 1.15;
  margin: 8px 0 12px;
}

.essay__standfirst {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
}

.essay__crumb a {
  color: var(--muted);
}

.essay__body {
  margin-top: 36px;
  max-width: 40rem;
}

.essay__body h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  margin: 2.2rem 0 0.7rem;
}

.essay__body h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

.essay__body a {
  color: var(--mark);
}

.essay__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}

.essay__body th,
.essay__body td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
}

.essay__body th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.essay__body blockquote {
  margin: 1.4rem 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--spend);
  color: var(--muted);
}

.essay__body code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.86em;
}

.site-foot {
  border-top: 1px solid var(--rule);
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-foot a {
  color: var(--ink);
}

.site-foot__note {
  max-width: 36rem;
}

:focus-visible {
  outline: 2px solid var(--spend);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .toc__title {
    font-size: 1.3rem;
  }
}
