: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; }

.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; }
.back-to-top { display: inline-block; margin-top: 8px; color: var(--news-red); font: 700 10px "Space Mono", monospace; }

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); }
  .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; }
  .news-story:nth-child(even) { border-left: 0; }
  .news-story h2,
  .news-story:not(.lead-story) h2 { font-size: clamp(31px, 10vw, 47px); }
}

@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; }
  .story-copy { font-size: 15px; }
}

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

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