:root {
  --paper: #f6f0e4;
  --paper-bright: #fffaf0;
  --ink: #191813;
  --muted: #655f52;
  --rule: #2a2822;
  --accent: #8c2f24;
  --accent-dark: #6f241b;
  --gold: #b9872f;
  --wash: #ece2cd;
  --shadow: rgba(38, 31, 20, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(185, 135, 47, 0.14), transparent 28rem),
    linear-gradient(135deg, #ddd0b6, #efe6d2 48%, #d9cbae);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: rgba(140, 47, 36, 0.55);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--paper-bright);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper-bright);
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sheet {
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(0.75rem, 3vw, 2.5rem) auto;
  padding: clamp(1.25rem, 4vw, 4rem);
  background:
    linear-gradient(rgba(25, 24, 19, 0.025), rgba(25, 24, 19, 0.025)),
    var(--paper);
  border: 1px solid rgba(25, 24, 19, 0.42);
  box-shadow: 0 24px 70px var(--shadow);
}

.site-header {
  text-align: center;
}

.topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.55rem 0;
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  color: var(--accent-dark);
}

.masthead {
  margin: 1.2rem 0 0.1rem;
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.masthead a,
.mini-masthead a {
  text-decoration: none;
}

.tagline {
  margin: 0.35rem 0 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-style: italic;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 4px double var(--rule);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead-story h1,
.story h1,
.page-title {
  margin: 0;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lead-story h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
}

.lead-story h1 a {
  text-decoration: none;
}

.deck {
  color: #373329;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.36;
}

.deck.narrow {
  max-width: 44rem;
}

.byline,
.story-meta,
.note {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.read-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.read-link:hover {
  background: var(--accent-dark);
  color: var(--paper-bright);
}

.inside-box {
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--rule);
  background: var(--paper-bright);
  box-shadow: 7px 7px 0 var(--wash);
}

.inside-box h2,
.labels h2,
.archive-preview h2,
.record-box h2,
.sources h2 {
  margin-top: 0;
  line-height: 1.08;
}

.inside-box dl {
  margin: 0;
}

.inside-box dl div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(25, 24, 19, 0.28);
}

.inside-box dt {
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inside-box dd {
  margin: 0.3rem 0 0;
}

.rule-section {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

blockquote {
  max-width: 850px;
  margin: 0 auto;
}

blockquote p {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.labels,
.archive-preview {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2,
.archive-preview h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.label-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.label-grid article {
  min-height: 190px;
  padding: 1.25rem;
  border-top: 5px solid var(--ink);
  background: rgba(255, 250, 240, 0.62);
}

.label-grid article:nth-child(2) {
  border-top-color: var(--accent);
}

.label-grid article:nth-child(3) {
  border-top-color: var(--gold);
}

.label-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1.55rem;
}

.archive-preview {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.archive-preview p:last-child {
  grid-column: 2;
  margin: 0;
}

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

.issue-list li {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.issue-list a {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 0.4rem;
  text-decoration: none;
}

.issue-list a:hover {
  background: rgba(255, 250, 240, 0.68);
}

.issue-list span {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.issue-list strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.site-footer {
  padding-top: 1.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

.mini-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 4px double var(--rule);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-masthead {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  text-transform: none;
}

.article-sheet {
  max-width: 1060px;
}

.story {
  padding-top: clamp(2rem, 6vw, 4.5rem);
}

.story-header {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.story h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin-top: 1.4rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
}

.article-body {
  max-width: 720px;
  margin: clamp(2rem, 6vw, 4rem) auto 0;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body .opening::first-letter {
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent-dark);
  font-size: 4.6em;
  font-weight: 700;
  line-height: 0.78;
}

.article-body h2 {
  margin: 2.2em 0 0.65em;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.article-body blockquote {
  margin: 2.2em 0;
  padding: 1.2em 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.article-body blockquote p {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.record-box {
  max-width: 920px;
  margin: clamp(2.5rem, 7vw, 5rem) auto 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 9px 9px 0 var(--wash);
}

.record-box h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.record-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.5rem;
}

.record-grid section:last-child {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(25, 24, 19, 0.3);
}

.record-grid h3 {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.record-grid p {
  margin: 0;
}

.final-spread {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 4px double var(--rule);
  font-size: 1.12rem;
}

.sources {
  max-width: 720px;
  margin: 3rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.story-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-main {
  padding: clamp(2rem, 6vw, 4.5rem) 0;
}

.page-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.archive-list {
  max-width: 900px;
  margin-top: 2.5rem;
}

.simple-page {
  max-width: 900px;
}

.simple-page main {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .sheet {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .topline {
    justify-content: center;
    text-align: center;
  }

  .hero,
  .archive-preview,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .archive-preview p:last-child {
    grid-column: auto;
  }

  .label-grid {
    grid-template-columns: 1fr;
  }

  .label-grid article {
    min-height: 0;
  }

  .mini-header {
    justify-content: center;
    text-align: center;
  }

  .article-body .opening::first-letter {
    font-size: 4em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* In-article illustrations: code drawn, on brand, captioned. */

.story-figure {
  margin: 2.4rem auto;
  max-width: 540px;
  text-align: center;
}

.story-figure .figure-frame {
  padding: 1.1rem 1rem 0.9rem;
  border: 1px solid rgba(25, 24, 19, 0.45);
  border-radius: 10px;
  background: var(--paper-bright);
  box-shadow: 0 12px 26px rgba(25, 24, 19, 0.12);
}

.story-figure.tilt-l .figure-frame {
  transform: rotate(-0.6deg);
}

.story-figure.tilt-r .figure-frame {
  transform: rotate(0.6deg);
}

.story-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.story-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Subscribe page blocks and shared buttons. */

.subscribe-block {
  margin: 2.2rem 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.feed-line code {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(25, 24, 19, 0.4);
  border-radius: 6px;
  background: var(--paper-bright);
  font-size: 0.95rem;
  word-break: break-all;
}

.subscribe-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.05rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-bright);
}

.share-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.copy-note {
  color: var(--muted);
  font-style: italic;
}

@media print {
  body {
    background: #fff;
  }

  .sheet {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .site-nav,
  .story-nav,
  .read-link {
    display: none;
  }
}
