:root {
  --ink: #171815;
  --paper: #f0ede5;
  --paper-deep: #e5e0d4;
  --signal: #b63c22;
  --muted: #66675f;
  --rule: #aaaba3;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(23, 24, 21, 0.025) 50% 100%),
    var(--paper);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

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

::selection {
  background: var(--signal);
  color: #fff;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--signal);
  border-radius: 50%;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.site-nav a[aria-current="page"] {
  color: var(--signal);
}

.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(48px, 8vw, 96px) 0 64px;
}

.kicker,
.eyebrow {
  margin: 0 0 13px;
  color: var(--signal);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.lead-title {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 8.4vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.068em;
  line-height: 0.88;
}

.lead-deck {
  max-width: 55ch;
  margin-bottom: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.35;
}

.text-link {
  font-family: "Courier New", monospace;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
}

.margin-note {
  align-self: end;
  padding: 18px 0 0 18px;
  border-top: 5px solid var(--ink);
  border-left: 1px solid var(--rule);
}

.margin-note p {
  margin-bottom: 13px;
}

.margin-note p:last-child {
  margin-bottom: 0;
}

.margin-note .label {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.story-list {
  border-top: 1px solid var(--ink);
}

.year-section {
  max-width: 900px;
  padding-top: 52px;
}

.year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
}

.year-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.year-heading span {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.chronology {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.note-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 19px 0 21px;
  border-bottom: 1px solid var(--rule);
}

.note-date {
  padding-top: 4px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: lowercase;
}

.note-entry h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.note-entry h3 a {
  text-decoration: none;
}

.note-entry h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.note-blurb {
  max-width: 62ch;
  margin: 6px 0 0;
  color: #363731;
}

.note-kind {
  display: inline-block;
  margin-top: 9px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  text-transform: lowercase;
}

.story-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 24px;
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.story-row:hover {
  color: var(--ink);
}

.story-row:hover .story-title {
  color: var(--signal);
}

.story-number {
  padding-top: 7px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.story-title {
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 3.7vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 1.03;
  transition: color 140ms ease;
}

.story-summary {
  max-width: 60ch;
  margin-bottom: 0;
}

.story-meta {
  padding-top: 7px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  line-height: 1.55;
  text-align: right;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 72px;
  padding: 22px 0 46px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(30px, 7vw, 88px);
  padding: clamp(50px, 8vw, 104px) 0 48px;
  border-bottom: 1px solid var(--ink);
}

.article-title {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7.5vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.article-intro {
  max-width: 58ch;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.4;
}

.article-facts {
  align-self: end;
  margin: 0;
  padding: 16px 0 0;
  border-top: 5px solid var(--signal);
}

.article-facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.article-facts dt,
.article-facts dd {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.article-facts dt {
  color: var(--muted);
}

.article-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 90px);
  padding: 50px 0 24px;
}

.article-aside {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.article-aside p {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.prose {
  max-width: 690px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.72;
}

.prose p {
  margin-bottom: 1.35em;
}

.prose h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.prose blockquote {
  margin: 2.1em 0;
  padding: 0 0 0 20px;
  border-left: 5px solid var(--signal);
  font-size: 1.28rem;
  line-height: 1.48;
}

.prose code {
  padding: 0.08em 0.27em;
  background: var(--paper-deep);
  font-family: "Courier New", monospace;
  font-size: 0.88em;
}

.prose pre {
  margin: 2em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--signal);
  background: var(--paper-deep);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.prose pre code {
  padding: 0;
  background: transparent;
  font-size: inherit;
}

.article-photo {
  margin: 2.2em 0;
}

.article-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

.article-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.45;
}

.small-page .article-photo {
  max-width: 720px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.5em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 40px;
  padding: clamp(54px, 9vw, 110px) 0 48px;
  border-bottom: 1px solid var(--ink);
}

.page-title {
  margin-bottom: 0;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.page-deck {
  align-self: end;
  max-width: 34ch;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.small-page {
  max-width: 760px;
  padding: 58px 0 20px;
}

.small-page h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.small-page p {
  max-width: 62ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.68;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .masthead,
  .lead-grid,
  .article-header,
  .article-body,
  .page-header {
    grid-template-columns: 1fr;
  }

  .masthead {
    align-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .edition-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .lead-grid {
    padding-top: 48px;
  }

  .lead-title {
    font-size: clamp(3.3rem, 17vw, 5.7rem);
  }

  .margin-note {
    max-width: 440px;
  }

  .story-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .year-section {
    padding-top: 42px;
  }

  .note-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .note-date {
    padding-top: 0;
  }

  .story-meta {
    grid-column: 2;
    text-align: left;
  }

  .article-title,
  .page-title {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .article-facts {
    max-width: 330px;
  }

  .article-aside {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }
}
