:root {
  --paper: #f7f3e8;
  --paper-deep: #eee6d2;
  --ink: #10100d;
  --muted: #5f5b50;
  --faint: #8b8577;
  --rule: #1b1a16;
  --rule-soft: #b8b09f;
  --green: #3f7f3f;
  --green-dark: #2e6231;
  --rust: #a45a25;
  --red: #a2432f;
  --gold: #c79a47;
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(16, 16, 13, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 1.55rem;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.site {
  min-height: 100vh;
}

.wrap {
  width: min(100%, 42rem);
  margin: 0 auto;
  padding: 0 1.1rem;
}

.site-header {
  padding-top: 1.05rem;
}

.utility-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 2.3rem;
}

.icon-link {
  color: var(--ink);
  display: inline-block;
  height: 2rem;
  position: relative;
  width: 2rem;
}

.menu-icon span {
  background: currentColor;
  height: 0.16rem;
  left: 0.18rem;
  position: absolute;
  right: 0.18rem;
}

.menu-icon span:nth-child(1) {
  top: 0.45rem;
}

.menu-icon span:nth-child(2) {
  top: 0.93rem;
}

.menu-icon span:nth-child(3) {
  top: 1.41rem;
}

.search-icon::before {
  border: 0.18rem solid currentColor;
  border-radius: 50%;
  content: "";
  height: 1rem;
  left: 0.16rem;
  position: absolute;
  top: 0.16rem;
  width: 1rem;
}

.search-icon::after {
  background: currentColor;
  content: "";
  height: 0.18rem;
  left: 1.14rem;
  position: absolute;
  top: 1.22rem;
  transform: rotate(45deg);
  width: 0.72rem;
}

.masthead-lockup {
  padding: 0.55rem 1.1rem 0.35rem;
  text-align: center;
}

.masthead-title {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.masthead-ornament {
  border-top: 1px solid var(--rule);
  margin: 1rem auto 0.3rem;
  position: relative;
  width: min(100%, 30rem);
}

.masthead-ornament::after {
  background: var(--ink);
  content: "";
  height: 0.48rem;
  left: 50%;
  position: absolute;
  top: -0.27rem;
  transform: translateX(-50%) rotate(45deg);
  width: 0.48rem;
}

.nav-wrap {
  padding-bottom: 1rem;
}

.paper-nav {
  align-items: center;
  display: flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.75rem;
  justify-content: center;
  text-transform: uppercase;
}

.paper-nav a {
  color: var(--muted);
}

.paper-nav a.active {
  color: var(--green-dark);
  font-weight: 800;
}

.nav-rule {
  border-bottom: 0.26rem double var(--rule);
  margin-top: 0.75rem;
}

.front-page {
  padding-bottom: 2.5rem;
}

.edition-line {
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0 0 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.edition-nav-strip {
  align-items: center;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.65rem;
  justify-content: center;
  margin: -0.35rem 0 1rem;
  padding-bottom: 0.8rem;
  text-transform: uppercase;
}

.edition-nav-strip a {
  color: var(--green-dark);
  font-weight: 800;
}

.lead-card {
  background: rgba(255, 252, 244, 0.58);
  border: 1px solid var(--rule);
  padding: 1rem;
}

.lead-card-top,
.story-topline {
  align-items: center;
  color: var(--green-dark);
  display: flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: space-between;
  text-transform: uppercase;
}

.lead-card-top strong,
.story-topline strong,
.source-plus {
  background: var(--green);
  color: #fffdf5;
  display: inline-block;
  font-weight: 800;
  padding: 0.16rem 0.35rem;
}

.lead-card h1,
.page-hero h1 {
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 0.97;
  margin: 1rem 0 0.65rem;
}

.lead-dek,
.summary {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.32;
  margin: 0;
}

.receipt {
  border-top: 1px solid var(--rule-soft);
  margin-top: 1.05rem;
  padding-top: 0.85rem;
}

.receipt-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.84rem;
  gap: 0.55rem;
  margin: 0.35rem 0;
}

.receipt-icon {
  border: 1px solid var(--rule-soft);
  color: var(--muted);
  font-size: 0.68rem;
  padding: 0.1rem 0.28rem;
  text-transform: uppercase;
}

.receipt-main {
  font-weight: 700;
}

.receipt-muted,
.commit-line {
  color: var(--muted);
}

.branch-pill {
  border: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
  padding: 0.08rem 0.28rem;
}

.commit-line {
  border-top: 1px dashed var(--rule-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.story-actions {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.story-illustration {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  margin: 1rem 0 0;
  padding: 0.65rem 0 0.55rem;
}

.story-illustration img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.story-illustration figcaption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.story-illustration figcaption span {
  color: var(--green-dark);
  font-weight: 800;
  margin-right: 0.45rem;
}

.article-illustration {
  margin-bottom: 0.2rem;
}

.paper-button {
  align-items: center;
  background: rgba(255, 252, 244, 0.6);
  border: 1px solid var(--rule);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.paper-button.primary {
  color: var(--green-dark);
}

.updates-block,
.section {
  margin-top: 1.7rem;
}

.section-title-row {
  align-items: baseline;
  border-bottom: 0.2rem solid var(--rule);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
}

.section-title-row h2,
.section h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.section-title-row a {
  color: var(--green-dark);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.updates-list,
.article-list,
.archive-grid,
.repo-grid,
.edition-history-list {
  display: grid;
  gap: 0;
}

.single-edition-note {
  border-bottom: 1px solid var(--rule-soft);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 1rem 0;
}

.edition-card {
  border-bottom: 1px solid var(--rule-soft);
  display: block;
  padding: 1rem 0;
}

.edition-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.edition-card-date {
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.edition-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0.55rem 0 0.35rem;
}

.edition-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 0.45rem;
}

.article-card {
  border-bottom: 1px solid var(--rule-soft);
  display: block;
  padding: 1rem 0;
}

.article-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.article-meta {
  color: var(--green-dark);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.55rem;
  text-transform: uppercase;
}

.article-meta .lane {
  background: var(--green);
  color: #fffdf5;
  padding: 0.12rem 0.34rem;
}

.article-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0.55rem 0 0.35rem;
}

.article-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.update-card {
  align-items: stretch;
  border-bottom: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 0.32rem minmax(0, 1fr) auto;
  padding: 0.85rem 0;
}

.update-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.update-stripe {
  background: var(--green);
}

.update-card:nth-child(3n) .update-stripe {
  background: var(--gold);
}

.update-card:nth-child(3n + 2) .update-stripe {
  background: var(--rust);
}

.update-main {
  min-width: 0;
}

.update-meta {
  align-items: center;
  color: var(--green-dark);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.45rem;
  text-transform: uppercase;
}

.update-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.06;
  margin: 0.35rem 0 0.35rem;
}

.update-receipt,
.update-foot {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  gap: 0.45rem;
}

.update-foot {
  color: var(--faint);
  margin-top: 0.2rem;
}

.update-arrow {
  align-self: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.atlas-callout {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.15rem 0;
}

.atlas-callout h2 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin: 0.35rem 0;
}

.atlas-callout p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.source-strip {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.4rem;
  text-transform: uppercase;
}

.page-shell {
  padding-bottom: 2.5rem;
}

.page-hero {
  border-bottom: 0.24rem double var(--rule);
  padding: 1rem 0 1.25rem;
}

.eyebrow {
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-front {
  border: 1px solid var(--rule);
  margin-top: 0.3rem;
  padding: 1rem;
}

.story-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.story-body {
  font-family: var(--serif);
}

.story-body p,
.story-body li {
  font-size: 1.1rem;
  line-height: 1.6;
}

.story-body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.08;
  margin: 2rem 0 0.6rem;
}

.story-body h3,
.story-body h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-body code,
.markdown code {
  background: rgba(255, 252, 244, 0.8);
  border: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.05rem 0.26rem;
}

.story-body a,
.markdown a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16rem;
}

.story-body blockquote,
.story-body .pull {
  border-left: 0.3rem solid var(--green);
  font-family: var(--sans);
  font-weight: 700;
  margin: 1.4rem 0;
  padding: 0.1rem 0 0.1rem 0.9rem;
}

.side-panel {
  border: 1px solid var(--rule);
  padding: 1rem;
}

.side-panel h2,
.side-panel h3 {
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.evidence-table {
  display: grid;
  gap: 0.65rem;
}

.evidence-line {
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.2rem;
  padding-top: 0.65rem;
}

.evidence-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.evidence-line span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.evidence-line span:last-child {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.related-list {
  border-top: 1px solid var(--rule-soft);
  margin-top: 1rem;
  padding-top: 1rem;
}

.related-list a {
  border-top: 1px solid var(--rule-soft);
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.25;
  padding: 0.75rem 0 0;
}

.related-list a:first-of-type {
  border-top: 0;
}

.related-list span {
  color: var(--green-dark);
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.reader-feedback {
  border-bottom: 1px solid var(--rule-soft);
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding: 0.85rem 0 0.95rem;
}

.reader-feedback-head {
  align-items: start;
  display: grid;
  gap: 0.45rem;
}

.reader-feedback h2 {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.08;
  margin: 0.24rem 0 0;
}

.reader-feedback-head p {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0;
}

.feedback-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.feedback-votes {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  max-width: 23rem;
}

.feedback-choice {
  align-items: center;
  background: transparent;
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.65rem;
  text-transform: uppercase;
}

.feedback-choice + .feedback-choice {
  border-left: 0;
}

.feedback-choice span:first-child {
  border: 1px solid currentColor;
  display: inline-grid;
  font-size: 0.78rem;
  height: 1.1rem;
  line-height: 1;
  place-items: center;
  width: 1.1rem;
}

.feedback-choice:hover,
.feedback-choice:focus-visible {
  border-color: var(--rule);
  outline: 0;
}

.feedback-choice.selected {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fffdf5;
}

.feedback-comment {
  display: grid;
  gap: 0.35rem;
}

.feedback-comment span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-comment textarea {
  background: rgba(255, 252, 244, 0.45);
  border: 1px solid var(--rule-soft);
  color: var(--ink);
  font: 0.95rem/1.45 var(--sans);
  min-height: 4.65rem;
  padding: 0.75rem;
  resize: vertical;
}

.feedback-comment textarea:focus {
  border-color: var(--rule);
  outline: 0;
}

.feedback-comment textarea::placeholder {
  color: var(--faint);
}

.feedback-submit-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
}

.feedback-status {
  color: var(--muted);
  flex: 1 1 12rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  margin: 0;
  min-height: 1rem;
}

.feedback-submit {
  flex: 0 0 auto;
  min-height: 2.25rem;
}

.markdown,
.evidence-copy {
  font-family: var(--sans);
  line-height: 1.55;
}

.markdown h2 {
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  text-transform: none;
}

.markdown h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
}

.markdown pre {
  border: 1px solid var(--rule);
  overflow: auto;
  padding: 1rem;
}

.repo-card {
  border-bottom: 1px solid var(--rule-soft);
  padding: 1rem 0;
}

.repo-card h3 {
  font-family: var(--mono);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 0.85rem;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.8rem;
  padding-bottom: 1.4rem;
  padding-top: 0.8rem;
}

.site-footer a::before {
  color: var(--rule-soft);
  content: "|";
  margin-right: 0.7rem;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(100%, 68rem);
    padding: 0 2rem;
  }

  .masthead-title {
    font-size: 5.4rem;
  }

  .front-page {
    max-width: 46rem;
  }

  .story-actions {
    grid-template-columns: 1fr 1fr;
  }

  .lead-card h1,
  .page-hero h1 {
    font-size: 3.7rem;
  }

  .atlas-callout {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-list,
  .archive-grid,
  .edition-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .story-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .side-panel {
    position: sticky;
    top: 1rem;
  }

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

@media (min-width: 56rem) {
  .reader-feedback-head {
    grid-template-columns: minmax(0, 1fr) 13rem;
  }
}

@media (min-width: 72rem) {
  .front-page {
    max-width: 48rem;
  }
}
