:root {
  --news-ink: #211d1b;
  --news-paper: #fff7df;
  --news-aged: #eee3c7;
  --news-rule: #5a5249;
  --news-red: #9d372e;
  --news-yellow: #efc84a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #d8d0c0; }
body {
  margin: 0;
  min-width: 0;
  color: var(--news-ink);
  background-color: #d8d0c0;
  background-image: linear-gradient(rgba(73, 64, 53, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(73, 64, 53, .055) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: Georgia, "Times New Roman", serif;
}

a { color: inherit; }
a:focus-visible { outline: 4px solid #216b75; outline-offset: 4px; }

.skip-link {
  position: absolute;
  z-index: 20;
  left: 12px;
  top: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--news-ink);
  font: 700 13px "Space Mono", monospace;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.site-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: #fffdf8;
  border-bottom: 2px solid var(--news-ink);
  font-family: "Space Mono", monospace;
}
.site-wordmark { font: 800 23px "Space Grotesk", sans-serif; text-decoration: none; }
.site-wordmark span { color: #a66fc0; }
.site-strip nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 12px; font-weight: 700; }

.newspaper {
  width: min(1160px, calc(100% - 28px));
  margin: 30px auto 42px;
  padding: clamp(18px, 4vw, 46px);
  background: var(--news-paper);
  border: 2px solid var(--news-rule);
  box-shadow: 10px 11px 0 #81786c;
}

.masthead { text-align: center; }
.edition-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 2px;
  border-top: 1px solid var(--news-rule);
  border-bottom: 1px solid var(--news-rule);
  font: 700 10px/1.3 "Space Mono", monospace;
}
.paper-owner { margin: 15px 0 3px; font: 700 10px "Space Mono", monospace; letter-spacing: .16em; }
.masthead h1 {
  margin: 0;
  padding: 5px 0 7px;
  border-bottom: 5px double var(--news-rule);
  font: 900 clamp(53px, 10vw, 112px)/.82 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
}
.tagline { margin: 8px 0 12px; font: 700 12px "Space Mono", monospace; letter-spacing: .12em; }

.edition-tools {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px;
  color: #fff;
  background: #302b27;
  border: 2px solid var(--news-ink);
  font-family: "Space Mono", monospace;
}
.current-edition { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 5px; }
.current-edition span { color: #ffe16a; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.current-edition strong { font-size: 13px; }
.edition-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.edition-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--news-ink);
  background: var(--news-aged);
  border: 2px solid;
  border-color: #fff #70685e #70685e #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.edition-actions a:hover { background: #fff0b8; text-decoration: underline; }
.edition-actions a:active { border-color: #70685e #fff #fff #70685e; }
.edition-actions a:last-child { background: var(--news-yellow); }
.edition-actions a:last-child:hover { background: #ffe785; }

.story-index {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--news-rule);
  border-bottom: 3px solid var(--news-rule);
}
.story-index a {
  padding: 10px 15px;
  font: 700 10px "Space Mono", monospace;
  text-decoration: none;
}
.story-index a:hover { background: var(--news-aged); text-decoration: underline; }

.news-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 3px double var(--news-rule);
}
.news-story {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 34px) 32px;
  border-top: 1px solid var(--news-rule);
  scroll-margin-top: 18px;
}
.news-story:nth-child(even) { border-left: 1px solid var(--news-rule); }
.news-story:target { background: #fff0b8; box-shadow: inset 0 0 0 4px var(--news-yellow); }
.lead-story { grid-column: 1 / -1; padding-inline: clamp(18px, 7vw, 92px); }
.lead-story .story-copy { columns: 2 280px; column-gap: 42px; column-rule: 1px solid #aca18e; }
.section-name {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 7px;
  color: var(--news-paper);
  background: var(--news-ink);
  font: 700 10px "Space Mono", monospace;
  letter-spacing: .1em;
}
.news-story h2 {
  margin: 0;
  font: 900 clamp(32px, 5vw, 61px)/.93 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.news-story:not(.lead-story) h2 { font-size: clamp(28px, 3.6vw, 43px); }
.deck { margin: 13px 0 12px; font: 700 16px/1.4 "Space Mono", monospace; overflow-wrap: anywhere; }
.byline { margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid #a89d8b; font: 700 9px/1.4 "Space Mono", monospace; }
.story-copy { font-size: 16px; line-height: 1.58; }
.story-copy p { margin: 0 0 1em; }
.story-copy p:first-child::first-letter { float: left; padding: 4px 6px 0 0; color: var(--news-red); font: 900 48px/.72 Georgia, serif; }
.story-spot { display: contents; }
.story-spot-image {
  display: block;
  width: min(220px, 42%);
  height: auto;
  margin-bottom: 10px;
}
.story-spot-image--left { float: left; margin-right: 26px; }
.story-spot-image--right { float: right; margin-left: 24px; }
.story-spot--left,
.story-spot--right {
  display: block;
  width: min(360px, 46%);
  margin: 0 26px 16px 0;
  break-inside: avoid;
}
.story-spot--left { float: left; }
.story-spot--right { float: right; margin: 0 0 16px 24px; }
.story-spot--left .story-spot-image,
.story-spot--right .story-spot-image { float: none; width: 100%; margin: 0; }
.story-spot figcaption {
  padding-top: 7px;
  border-top: 1px solid #a89d8b;
  color: #4a463f;
  font: italic 11px/1.4 Georgia, "Times New Roman", serif;
}
.story-quest-link {
  clear: both;
  margin: 12px 0 0;
  font: 700 10px/1.5 "Space Mono", monospace;
}
.story-quest-link a { color: var(--news-red); }
.issue-009-page .lead-story .story-copy { max-width: 960px; margin-inline: auto; columns: auto; }
.issue-009-page .lead-story .story-spot-image { width: min(250px, 31%); }
.issue-009-page .story-copy::after { display: block; clear: both; content: ""; }
.back-to-top { display: inline-block; margin-top: 8px; color: var(--news-red); font: 700 10px "Space Mono", monospace; }

.issue-002-grid .news-story:nth-child(2) { border-left: 0; }
.issue-002-grid .news-story:nth-child(3) { border-left: 1px solid var(--news-rule); }

.issue-003-grid,
.issue-012-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.issue-003-grid .lead-story,
.issue-012-grid .lead-story { grid-column: 1 / -1; }
.issue-003-grid .news-story:nth-child(2) { border-left: 0; }
.issue-003-grid .news-story:nth-child(3),
.issue-003-grid .news-story:nth-child(4),
.issue-012-grid .news-story:nth-child(3),
.issue-012-grid .news-story:nth-child(4) { border-left: 1px solid var(--news-rule); }
.issue-003-grid .news-story:not(.lead-story),
.issue-012-grid .news-story:not(.lead-story) { padding-inline: clamp(16px, 2vw, 25px); }
.issue-003-grid .news-story:not(.lead-story) h2 { font-size: clamp(27px, 3vw, 38px); }
.issue-012-grid .news-story:not(.lead-story) h2 { font-size: clamp(25px, 2.6vw, 35px); }

.issue-features {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 3px double var(--news-rule);
}
.news-feature {
  min-width: 0;
  padding: 27px clamp(18px, 3vw, 34px) 30px;
  border-top: 1px solid var(--news-rule);
  scroll-margin-top: 18px;
}
.news-feature:nth-child(even) { border-left: 1px solid var(--news-rule); }
.news-feature:target { background: #fff0b8; box-shadow: inset 0 0 0 4px var(--news-yellow); }
.news-feature h2 { margin: 0 0 12px; font: 900 clamp(28px, 4vw, 45px)/.95 Georgia, "Times New Roman", serif; }
.news-feature h3 { margin: 0 0 12px; color: var(--news-red); font: 900 20px/1.1 Georgia, "Times New Roman", serif; }
.feature-copy { font-size: 16px; line-height: 1.55; }
.feature-copy p { margin: 0 0 .8em; }
.weather-lines strong { font-family: "Space Mono", monospace; font-size: .78em; letter-spacing: .03em; }
.assignment-feature { grid-column: 1 / -1; border-left: 0 !important; background: var(--news-aged); }
.assignment-feature .feature-copy { columns: 2 280px; column-gap: 42px; column-rule: 1px solid #aca18e; }
.assignment-command { color: var(--news-red); font: 900 20px/1.2 "Space Mono", monospace; }
.assignment-note { break-inside: avoid; font-weight: 700; }
.corrections-feature {
  grid-column: 1 / -1;
  border-left: 0 !important;
  background: #fff0b8;
}
.corrections-feature h2 { font-size: clamp(25px, 3.2vw, 38px); }
.corrections-feature .feature-copy { max-width: 880px; }

.newspaper-footer {
  width: auto;
  margin: 22px 0 0;
  padding: 15px 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--news-ink);
  background: transparent;
  border: 0;
  border-top: 5px double var(--news-rule);
  text-align: left;
  font: 700 11px/1.5 "Space Mono", monospace;
}
.newspaper-footer span { font-style: italic; }

footer {
  width: min(900px, calc(100% - 28px));
  margin: 0 auto 32px;
  padding: 20px;
  color: var(--news-ink);
  background: #eee6d2;
  border: 1px solid var(--news-rule);
  text-align: center;
  font: 12px/1.7 "Space Mono", monospace;
}
footer p { margin: 5px 0; }

@media (max-width: 760px) {
  .site-strip { align-items: flex-start; }
  .site-strip nav { max-width: 180px; }
  .newspaper { margin-top: 16px; padding: 15px; box-shadow: 6px 7px 0 #81786c; }
  .edition-line span:first-child { display: none; }
  .masthead h1 { font-size: clamp(50px, 16vw, 78px); }
  .edition-tools { display: block; }
  .current-edition { justify-content: center; margin-bottom: 9px; }
  .edition-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .edition-actions a { justify-content: center; text-align: center; }
  .story-index { display: grid; grid-template-columns: repeat(2, 1fr); }
  .story-index a { text-align: center; border-bottom: 1px dotted #a89d8b; }
  .news-grid { grid-template-columns: 1fr; }
  .lead-story { grid-column: auto; padding-inline: 18px; }
  .lead-story .story-copy { columns: auto; }
  .story-spot-image { width: min(210px, 43%); }
  .story-spot-image--left { margin-right: 18px; }
  .story-spot-image--right { margin-left: 18px; }
  .story-spot--left,
  .story-spot--right { width: min(300px, 47%); }
  .news-story:nth-child(even) { border-left: 0; }
  .issue-002-grid .news-story:nth-child(3) { border-left: 0; }
  .issue-003-grid,
  .issue-012-grid { grid-template-columns: 1fr; }
  .issue-003-grid .lead-story,
  .issue-012-grid .lead-story { grid-column: auto; }
  .issue-003-grid .news-story:nth-child(3),
  .issue-003-grid .news-story:nth-child(4),
  .issue-012-grid .news-story:nth-child(3),
  .issue-012-grid .news-story:nth-child(4) { border-left: 0; }
  .news-story h2,
  .news-story:not(.lead-story) h2 { font-size: clamp(31px, 10vw, 47px); }
  .issue-010-page .issue-lead h2 { font-size: clamp(29px, 8.4vw, 42px); }
  .issue-006-grid .news-story:not(.lead-story) h2,
  .issue-007-grid .news-story:not(.lead-story) h2,
  .issue-008-grid .news-story:not(.lead-story) h2,
  .issue-009-grid .news-story:not(.lead-story) h2 { font-size: clamp(27px, 8vw, 35px); }
  .issue-features { grid-template-columns: 1fr; }
  .news-feature:nth-child(even) { border-left: 0; }
  .assignment-feature { grid-column: auto; }
  .assignment-feature .feature-copy { columns: auto; }
  .newspaper-footer { display: block; text-align: center; }
  .newspaper-footer span { display: block; margin-top: 5px; }
}

@media (max-width: 430px) {
  .site-strip { display: block; }
  .site-strip nav { max-width: none; margin-top: 10px; justify-content: flex-start; }
  .edition-line { font-size: 8px; }
  .tagline { font-size: 9px; }
  .edition-actions { grid-template-columns: 1fr; }
  .story-copy { font-size: 15px; }
  .issue-010-page .issue-lead h2 { font-size: clamp(26px, 7.4vw, 38px); }
  .issue-010-page .classified-feature h2 { font-size: clamp(21px, 6.8vw, 34px); }
  .story-spot-image,
  .issue-009-page .lead-story .story-spot-image {
    float: none;
    width: min(230px, 82%);
    margin: 0 auto 18px;
  }
  .story-spot--left,
  .story-spot--right {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
  .story-spot--left .story-spot-image,
  .story-spot--right .story-spot-image { width: 100%; max-width: none; }
}

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

@media print {
  body { background: white; }
  .site-strip, .story-index, .back-to-top, body > footer { display: none; }
  .newspaper { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .news-story:target, .news-feature:target { background: transparent; box-shadow: none; }
}
