body {
  background: #f8f4ec;
  color: #1d1a14;
  font-family: "Source Serif Pro", "Iowan Old Style", Georgia, serif;
}

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 96px;
}

.masthead {
  grid-column: 1 / -1;
  border-bottom: 1px solid #d8cfb8;
  padding-bottom: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.subtitle {
  font-style: italic;
  color: #6b6149;
  font-size: 14px;
}

aside.toc {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #5a5238;
  position: sticky;
  top: 32px;
  align-self: start;
}

aside.toc h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin: 0 0 12px;
  color: #8a7e58;
}

aside.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

aside.toc a {
  text-decoration: none;
  color: inherit;
}

aside.toc .current {
  font-weight: 600;
  color: #1d1a14;
}

article {
  max-width: 64ch;
}

article header {
  margin-bottom: 32px;
}

article .crumbs {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  color: #8a7e58;
  margin-bottom: 12px;
}

article h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

article .meta {
  font-style: italic;
  color: #6b6149;
  font-size: 15px;
}

article p {
  font-size: 18px;
  line-height: 1.7;
}

article h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 8px;
  border-top: 1px solid #d8cfb8;
  padding-top: 24px;
}

.crossrefs {
  margin-top: 48px;
  background: #ede5d0;
  border-radius: 8px;
  padding: 24px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.crossrefs h3 {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  margin: 0 0 12px;
  color: #6b6149;
}

.crossrefs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.back {
  margin-top: 48px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
}

@media (max-width: 720px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  aside.toc {
    position: static;
  }
}
