:root {
  --paper: #f3ead8;
  --ink: #1c1610;
  --mute: #6b5e4e;
  --rule: #b8431f;
  --rule-soft: rgba(28, 22, 16, 0.16);
  --measure: 40rem;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(184, 67, 31, 0.06), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(28, 22, 16, 0.015) 3px),
    var(--paper);
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--rule); }
.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 4rem;
}
.front { --measure: 58rem; }
.mast {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid var(--ink);
  animation: rule-in 700ms ease-out both;
}
.kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.wordmark {
  font-family: Fraunces, "Source Serif 4", serif;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 0.85;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark:hover { color: inherit; }
.mast nav {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.35rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mast nav a[aria-current="page"] { color: var(--rule); text-decoration: none; }
.issue {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.55rem 0 1.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.04em;
}
h1 {
  font-family: Fraunces, serif;
  font-weight: 560;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.lede { color: var(--mute); margin: 0 0 1.4rem; }
.lede-md { color: var(--mute); margin: 0 0 1.6rem; }
.lede-md > p:first-child { margin-top: 0; }
.index {
  list-style: none;
  margin: 0;
  padding: 0;
}
.index li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--rule-soft);
}
.index a {
  font-family: Fraunces, serif;
  font-size: 1.28rem;
  line-height: 1.25;
  text-decoration: none;
}
.index a:hover { text-decoration: underline; }
.meta {
  display: block;
  margin-top: 0.28rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.empty { color: var(--mute); font-style: italic; }
article .meta { margin-bottom: 0.45rem; }
.md > p { margin: 0 0 1rem; }
.md > p:first-child::first-letter {
  font-family: Fraunces, serif;
  font-size: 3.1rem;
  float: left;
  line-height: 0.75;
  padding: 0.12rem 0.35rem 0 0;
  color: var(--rule);
}
.md h2, .md h3 {
  font-family: Fraunces, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 1.4rem 0 0.6rem;
  clear: both;
}
.md h2 { font-size: 1.35rem; }
.md h3 { font-size: 1.15rem; }
.md ul, .md ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.md li { margin: 0.2rem 0; }
.md blockquote {
  margin: 0 0 1rem;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--rule);
  color: var(--mute);
}
.md pre, .md code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
}
.md pre {
  overflow: auto;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule-soft);
  background: rgba(28, 22, 16, 0.04);
}
.md code { color: var(--rule); }
.md pre code { color: inherit; }
.md a { color: var(--rule); }
.md hr {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 1.4rem 0;
}
.md img { max-width: 100%; height: auto; }
article.stone .md > p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
article.stone {
  border-left: 2px solid var(--ink);
  padding-left: 1.1rem;
}
.lead { margin: 0 0 1.8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule-soft); }
.lead a.headline {
  font-family: Fraunces, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.held {
  margin: 0 0 1.9rem;
  padding: 0.8rem 0 0.2rem;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--ink);
}
.held > h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.3rem;
}
.held > h2 a { text-decoration: none; }
.held-list {
  display: grid;
  gap: 0 1.75rem;
}
@media (min-width: 52rem) {
  .held-list { grid-template-columns: 1fr 1fr; }
}
.about-mast {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.about-mast h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  margin-bottom: 0.35rem;
}
.about-mast .tagline {
  margin: 0;
  color: var(--mute);
  font-style: italic;
}
.claims-page .lib-lede { max-width: 36rem; }
.rails {
  display: grid;
  gap: 1.6rem 2rem;
}
@media (min-width: 52rem) {
  .rails { grid-template-columns: 1fr 1fr; }
}
.rail h2 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.4rem;
}
.rail h2 a { text-decoration: none; }
.kicker-section {
  margin: 0 0 0.45rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rule);
}
.kicker-section a { color: var(--rule); text-decoration: none; }
.byline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin: 0 0 1.2rem;
}
.related { margin-top: 2rem; }
.related h2 { font-size: 1.05rem; }
.graph {
  display: block;
  width: 100%;
  height: 22rem;
  background: #1a1714;
  margin: 1.2rem 0;
}
.claim {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--rule);
  background: rgba(28, 22, 16, 0.04);
}
.claim.asserted { border-color: var(--rule); }
.claim.disputed { border-color: #8a6a12; }
.claim.retracted { border-color: var(--mute); }
.dead { color: var(--mute); }
.backlinks { margin-top: 1.8rem; }
.lib-lede {
  max-width: 38rem;
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}
.lib-stats {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  margin: 0 0 1.8rem;
}
.claim-desk { margin: 0 0 2rem; }
.claim-desk h2,
.shelves h2,
.graph-figure figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rule);
  margin: 0 0 0.45rem;
}
.claim-card {
  padding: 0.85rem 0 0.95rem;
  border-top: 1px solid var(--rule-soft);
}
.claim-card p { margin: 0.25rem 0 0; }
.claim-card .stamp {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rule);
}
.lib-split {
  display: grid;
  gap: 2rem;
  margin-top: 0.4rem;
}
@media (min-width: 860px) {
  .lib-split {
    grid-template-columns: 1fr minmax(17rem, 0.92fr);
    align-items: start;
  }
}
.shelf + .shelf { margin-top: 1.15rem; }
.shelf h3 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.15rem;
}
.library { list-style: none; margin: 0 0 0.4rem; padding: 0; }
.library li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 1.2rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule-soft);
}
.library a { text-decoration: none; }
.library .meta { margin: 0; }
.graph-figure { margin: 0; }
.graph-figure .graph { height: 26rem; margin: 0.35rem 0 0; }
footer.colophon {
  margin-top: 2.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-soft);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@keyframes rule-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mast { animation: none; }
}

/* The Survey — a surveyor's measuring look, layered on the default paper/ink design.
   Motif: the chain, the rule, and the crosshair — the instruments of the count. */

/* Surveyor's chain: a rule of ticks under the masthead, as if the page were being measured. */
.mast {
  position: relative;
  padding-bottom: 1.6rem;
}
.mast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  opacity: 0.6;
  background:
    repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 12px,
      var(--ink) 12px 14px, transparent 14px 24px,
      var(--ink) 24px 26px, transparent 26px 36px,
      var(--ink) 36px 38px, transparent 38px 48px,
      var(--ink) 48px 56px, transparent 56px 200px);
}

/* Crosshair sight on the wordmark: a small cardinal marker, surveying the claim. */
.wordmark {
  position: relative;
}
.wordmark::before {
  content: "N ↑   ·   E →";
  position: absolute;
  top: -1.05rem;
  right: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  color: var(--mute);
  opacity: 0.55;
}
.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.35rem;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background:
    linear-gradient(var(--paper), var(--paper)) center/100% 1.5px no-repeat,
    linear-gradient(90deg, var(--paper), var(--paper)) center/1.5px 100% no-repeat;
  vertical-align: 0.02em;
}

/* Tick rule over section kickers, like a labelled station on the traverse. */
.kicker-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker-section::before {
  content: "◆";
  font-size: 0.5rem;
  color: var(--rule);
}

/* The closing line of a measured conclusion. */
article .md hr {
  border: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      var(--rule) 0 2px, transparent 2px 12px,
      var(--rule) 12px 14px, transparent 14px 24px,
      var(--rule) 24px 26px, transparent 26px 40rem);
  opacity: 0.35;
}

/* Crosshair on the lead headline to mark the point of origin. */
.lead .headline {
  position: relative;
  padding-left: 1.1rem;
}
.lead .headline::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 1rem;
  color: var(--rule);
}

/* The issue/colophon line: a small bearing, like a stamped datum. */
footer.colophon::before {
  content: "datum 0 · ";
  color: var(--rule);
}
