:root {
  --paper: #f4f1e8;
  --ink: #1e1e2e;
  --muted: #6c6f85;
  --rule: #d5d0c4;
  --link: #1e4fbf;
  --gold: #8a5a12;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 5rem;
  font: 1.05rem/1.55 "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

header,
main,
footer {
  max-width: 100%;
  min-width: 0;
}

p:not(.kicker) {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.kicker {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  margin: 0 0 0.6rem;
}

body.page h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

h2 {
  font-size: 1.7rem;
  margin: 2.4rem 0 0.7rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.8rem 0 0.5rem;
}

h4 {
  font-size: 0.95rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.1rem 0 0.35rem;
}

.ency {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78em;
  font-weight: 400;
  margin-left: 0.55rem;
}

.ency a {
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.ency a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.45;
}

.meta,
figcaption,
summary,
.empty,
footer {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

.meta {
  max-width: 40rem;
}

nav.toc {
  background: var(--paper);
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}

nav.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.toc > ol > li {
  margin: 0 0 1.6rem;
}

nav.toc > ol > li > a {
  font-size: 1.15rem;
  color: var(--ink);
}

nav.toc .insight {
  margin: 0.3rem 0 0.45rem;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
}

nav.toc > ol > li > ol {
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.88rem;
}

nav.toc > ol > li > ol li {
  margin: 0.2rem 0;
}

nav.crumbs {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.85rem;
  overflow-wrap: anywhere;
}

nav.crumbs .sep {
  margin: 0 0.35rem;
  color: var(--rule);
}

nav.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}

nav.pager .next {
  margin-left: auto;
  text-align: right;
}

ul.stops {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.2rem;
}

ul.stops > li {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

ul.stops > li > a {
  font-size: 1.05rem;
}

.jump {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.92rem;
}

header .kicker a {
  color: var(--muted);
  text-decoration: none;
}

header .kicker a:hover {
  color: var(--gold);
}

a {
  color: var(--link);
}

ul.refs {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1.2rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
}

ul.refs li {
  margin: 0.2rem 0;
}

nav.toc a,
nav.crumbs a,
nav.pager a,
footer a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

section[id],
details[id] {
  scroll-margin-top: 0.8rem;
}

figure.wide {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 90rem);
  max-width: 90rem;
  margin-left: 0;
  margin-right: 0;
}

details.iau-item[open] {
  overflow: visible;
}

figure {
  margin: 1.4rem 0 1.8rem;
  max-width: 100%;
}

figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #fff;
}

figcaption {
  margin-top: 0.45rem;
}

.table-wrap {
  overflow: visible;
  margin: 0.75rem 0 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 0.35rem 0.45rem 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  white-space: normal;
  overflow-wrap: break-word;
}

th {
  color: var(--muted);
  font-weight: 500;
}

ul {
  margin: 0.2rem 0 0.8rem;
  padding-left: 1.1rem;
}

li {
  margin: 0.15rem 0;
  overflow-wrap: break-word;
}

details {
  margin: 0.85rem 0 1rem;
}

summary {
  cursor: pointer;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸ ";
  color: var(--gold);
  font-size: 0.8em;
}

details[open] > summary::before {
  content: "▾ ";
}

details.fold > summary,
details.stop > summary,
details.iau-item > summary {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule);
}

details.fold > summary {
  font-size: 1.05rem;
  color: var(--ink);
}

details.stop {
  margin: 0.15rem 0;
}

details.stop > summary,
details.iau-item > summary {
  font-size: 0.9rem;
}

details.iau-item {
  margin: 0;
}

details.fold > *:not(summary) {
  padding-left: 0.2rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0.4rem 0;
}

footer .site-nav,
footer p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.1rem;
  row-gap: 0.35rem;
}

@media (max-width: 720px) {
  body {
    padding: 1.5rem 1rem 3.5rem;
  }

  .kicker {
    letter-spacing: 0.08em;
  }

  figure,
  figure.wide {
    left: auto;
    transform: none;
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .table-wrap tbody tr {
    margin: 0 0 1rem;
    padding: 0 0 0.55rem;
    border-bottom: 1px solid var(--rule);
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(7rem, 38%) 1fr;
    gap: 0.35rem 0.75rem;
    border-bottom: 0;
    padding: 0.22rem 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 500;
  }
}


