:root {
  --blue: #0637a6;
  --blue-dark: #052568;
  --yellow: #ffd522;
  --ink: #111318;
  --paper: #fffdf5;
  --white: #ffffff;
  --line: #b8bfd0;
  --soft: #e7ebf2;
  --coral: #e95d34;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Courier New", Courier, monospace; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 4px solid var(--ink); background: var(--white); }
.utility { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--white); background: var(--blue-dark); box-shadow: 50vw 0 0 var(--blue-dark), -50vw 0 0 var(--blue-dark); font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.masthead { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; width: fit-content; color: var(--blue); font-size: clamp(1.55rem, 3vw, 2.55rem); font-weight: 700; line-height: .95; text-decoration: none; }
.brand b { color: var(--coral); }
.masthead > p { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; border-bottom: 8px solid var(--yellow); line-height: .8; }
.search-toggle { justify-self: end; min-height: 42px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--yellow); font-weight: 700; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.search-toggle:hover, .search-toggle:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.search-toggle span { font-size: 1.35rem; vertical-align: -2px; }
.nav { display: flex; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.nav a { flex: 1 0 auto; padding: 12px 20px; border-right: 1px solid var(--line); text-align: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.nav a:first-child { border-left: 1px solid var(--line); }
.nav a:hover, .nav a:focus-visible { background: var(--yellow); }
.search-panel { border-top: 2px solid var(--ink); background: var(--blue); color: var(--white); }
.search-form { padding-block: 28px; }
.search-form > label { display: block; margin-bottom: 10px; font-weight: 700; }
.search-form > div:first-of-type { display: grid; grid-template-columns: 1fr auto; max-width: 760px; }
.search-form input { min-width: 0; height: 50px; padding: 10px 14px; border: 3px solid var(--white); border-right: 0; border-radius: 0; color: var(--ink); background: var(--white); }
.search-form button { padding: 8px 20px; border: 3px solid var(--white); border-radius: 0; color: var(--ink); background: var(--yellow); font-weight: 700; cursor: pointer; }
.search-status { min-height: 1.5em; margin: 12px 0 0; font-size: .8rem; }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.search-result { display: grid; grid-template-columns: 100px 1fr; min-width: 0; color: var(--ink); background: var(--white); text-decoration: none; }
.search-result img { width: 100px; height: 100%; min-height: 100px; object-fit: cover; }
.search-result span { padding: 12px; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.search-result small { display: block; margin-bottom: 5px; color: var(--blue); }

.issue-intro { display: grid; grid-template-columns: 150px minmax(0, 1.55fr) minmax(240px, .8fr); gap: 30px; align-items: end; padding-block: 58px 34px; }
.issue-label, .kicker { margin: 0; color: var(--blue); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.issue-intro .issue-label { align-self: start; padding-top: 12px; border-top: 6px solid var(--yellow); }
.issue-intro h1 { margin: 0; max-width: 820px; font-size: clamp(2.65rem, 6vw, 5.8rem); line-height: .88; letter-spacing: 0; overflow-wrap: anywhere; }
.issue-intro > p:last-child { margin: 0; padding-left: 20px; border-left: 2px solid var(--ink); font-size: .92rem; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(240px, 1fr); gap: 0; border: 3px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--yellow); }
.story-card { min-width: 0; background: var(--white); }
.story-card--featured { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); }
.story-image { display: block; overflow: hidden; background: var(--soft); }
.story-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .25s ease; }
.story-image:hover img { transform: scale(1.015); }
.story-copy { padding: 24px; border-top: 6px solid var(--blue); }
.story-card--featured .story-copy { display: flex; flex-direction: column; justify-content: flex-end; border-top: 0; border-left: 6px solid var(--blue); }
.story-copy .kicker { display: inline-block; width: fit-content; margin-bottom: 16px; padding: 3px 6px; background: var(--yellow); color: var(--ink); text-decoration: none; }
.story-copy h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.05; letter-spacing: 0; overflow-wrap: anywhere; }
.story-card--featured h2 { font-size: clamp(1.65rem, 3.1vw, 3.15rem); }
.story-copy h2 a { text-decoration: none; }
.story-copy h2 a:hover, .story-copy h2 a:focus-visible { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 7px; }
.story-copy > p { margin: 16px 0; font-size: .9rem; }
.story-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: #4a4e58; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.dispatch { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-left: 3px solid var(--ink); background: var(--blue); color: var(--white); }
.dispatch-no { color: var(--yellow); font-size: 4rem; font-weight: 700; line-height: 1; }
.dispatch-title { margin: auto 0 10px; font-weight: 700; text-transform: uppercase; }
.dispatch p:not(.dispatch-title) { margin: 0 0 28px; font-size: 1.05rem; }
.dispatch a { color: var(--yellow); font-size: .78rem; font-weight: 700; }

.latest, .browse, .related, .category-stories { padding-block: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 4px solid var(--ink); }
.section-head h2 { margin: 0; color: var(--blue); font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1; }
.section-head span { font-size: .72rem; font-weight: 700; text-transform: uppercase; text-align: right; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-grid .story-card { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-grid .story-image img { height: 100%; aspect-ratio: 4 / 3; }
.story-grid .story-copy h2 { font-size: clamp(1.1rem, 1.7vw, 1.55rem); }

.editor-note { padding-block: 72px; border-block: 3px solid var(--ink); background: var(--yellow); }
.editor-note .wrap { display: grid; grid-template-columns: 160px minmax(0, 2fr) minmax(220px, .7fr); gap: 36px; align-items: start; }
.editor-note span { color: var(--blue); font-size: .78rem; font-weight: 700; }
.editor-note blockquote { margin: 0; font-size: clamp(1.75rem, 4.5vw, 4.2rem); font-weight: 700; line-height: .98; }
.editor-note p { margin: 0; padding-left: 20px; border-left: 3px solid var(--coral); font-size: .9rem; }
.category-list { border-top: 3px solid var(--ink); }
.category-list a { display: grid; grid-template-columns: 70px minmax(180px, .65fr) minmax(240px, 1fr) 40px; gap: 22px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.category-list a:hover, .category-list a:focus-visible { background: var(--yellow); }
.category-list span { color: var(--coral); font-size: .78rem; font-weight: 700; }
.category-list strong { color: var(--blue); font-size: 1.2rem; }
.category-list small { font-size: .78rem; }
.category-list b { justify-self: end; font-size: 1.5rem; }

.site-footer { border-top: 8px solid var(--yellow); background: var(--blue-dark); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-block: 52px; }
.footer-brand { color: var(--yellow); font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 700; text-decoration: none; }
.footer-grid p { max-width: 550px; font-size: .78rem; }
.footer-grid h2 { margin: 0 0 12px; color: var(--yellow); font-size: .82rem; text-transform: uppercase; }
.footer-grid > div > a:not(.footer-brand) { display: block; margin: 8px 0; font-size: .78rem; }
.colophon { display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; border-top: 1px solid #6075ab; font-size: .68rem; text-transform: uppercase; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; color: #4a4e58; font-size: .72rem; }
.article-header { max-width: 1060px; padding-block: 46px 34px; }
.article-header .kicker { display: inline-block; padding: 3px 7px; background: var(--yellow); color: var(--ink); }
.article-header h1 { margin: 18px 0; max-width: 980px; font-size: clamp(2.35rem, 6.2vw, 5.8rem); line-height: .92; letter-spacing: 0; overflow-wrap: anywhere; }
.dek { max-width: 820px; margin: 0; font-size: clamp(1rem, 1.8vw, 1.32rem); line-height: 1.45; }
.byline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding-top: 15px; border-top: 3px solid var(--ink); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.article-figure { margin-top: 0; }
.article-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--ink); }
.article-figure figcaption { padding: 7px 0; color: #565a64; font-size: .68rem; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 740px); gap: 70px; justify-content: center; padding-block: 54px 84px; }
.article-aside { align-self: start; position: sticky; top: 18px; padding-top: 14px; border-top: 8px solid var(--yellow); font-size: .72rem; }
.article-aside span { color: var(--blue); font-weight: 700; }
.article-aside a { display: block; margin-top: 20px; font-weight: 700; }
.article-body { min-width: 0; font-family: "Courier New", Courier, monospace; font-size: 1.04rem; line-height: 1.74; }
.article-body .intro { margin-top: 0; font-family: "Courier New", Courier, monospace; font-size: 1.22rem; font-weight: 700; line-height: 1.55; }
.article-body h2, .article-body h3, .article-body h4 { font-family: "Courier New", Courier, monospace; letter-spacing: 0; line-height: 1.12; overflow-wrap: anywhere; }
.article-body h2 { margin: 2.7em 0 .65em; color: var(--blue); font-size: clamp(1.65rem, 3vw, 2.5rem); }
.article-body h3 { margin: 2em 0 .55em; font-size: 1.35rem; }
.article-body h4 { margin: 1.8em 0 .5em; font-size: 1.05rem; text-transform: uppercase; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { margin-bottom: .45em; padding-left: .3em; }
.article-body strong { font-family: "Courier New", Courier, monospace; }
.article-body table { width: 100%; margin: 28px 0; border-collapse: collapse; font-family: "Courier New", Courier, monospace; font-size: .78rem; line-height: 1.4; }
.article-body caption { padding: 10px; border: 2px solid var(--ink); border-bottom: 0; background: var(--yellow); font-weight: 700; text-align: left; }
.article-body th, .article-body td { padding: 10px; border: 1px solid var(--ink); text-align: left; vertical-align: top; }
.article-body th { background: var(--blue); color: var(--white); }
.related { border-top: 3px solid var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-grid .story-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr); border: 1px solid var(--line); }
.related-grid .story-copy { padding: 18px; }
.related-grid .story-copy h2 { font-size: 1.25rem; }

.category-header { display: grid; grid-template-columns: 1fr minmax(0, 800px) 150px; gap: 30px; align-items: end; padding-block: 48px; border-bottom: 4px solid var(--ink); }
.category-header .crumbs { align-self: start; margin: 0; }
.category-header h1 { margin: 8px 0 16px; color: var(--blue); font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: .9; overflow-wrap: anywhere; }
.category-header div > p:last-child { max-width: 680px; margin: 0; }
.category-count { color: var(--coral); font-size: 4.5rem; font-weight: 700; line-height: .8; text-align: right; }
.category-count small { display: block; margin-top: 12px; color: var(--ink); font-size: .68rem; text-transform: uppercase; }
.category-stories .story-grid { grid-template-columns: 1fr; }
.category-stories .story-card { grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr); }
.category-stories .story-card--featured .story-copy { border-top: 6px solid var(--blue); border-left: 0; }
.cross-read { padding-block: 72px; border-top: 3px solid var(--ink); background: var(--soft); }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 98px; }
  .masthead > p { display: none; }
  .issue-intro { grid-template-columns: 110px 1fr; }
  .issue-intro > p:last-child { grid-column: 2; }
  .lead-grid { grid-template-columns: 1fr; }
  .story-card--featured { grid-template-columns: 1fr; }
  .story-card--featured .story-copy { border-top: 6px solid var(--blue); border-left: 0; }
  .dispatch { min-height: 220px; border-top: 3px solid var(--ink); border-left: 0; }
  .story-grid .story-card, .related-grid .story-card { grid-template-columns: 1fr; }
  .editor-note .wrap { grid-template-columns: 120px 1fr; }
  .editor-note p { grid-column: 2; }
  .article-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 35px; }
  .category-header { grid-template-columns: 1fr 120px; }
  .category-header .crumbs { grid-column: 1 / -1; }
  .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .utility span:last-child { display: none; }
  .masthead { min-height: 82px; gap: 10px; }
  .brand { max-width: 210px; font-size: 1.35rem; }
  .search-toggle { min-height: 38px; padding: 5px 8px; font-size: .74rem; box-shadow: 3px 3px 0 var(--ink); }
  .nav { width: 100%; padding-inline: 0; }
  .nav a { padding: 10px 14px; font-size: .68rem; }
  .search-form > div:first-of-type { grid-template-columns: 1fr; }
  .search-form input { border-right: 3px solid var(--white); }
  .search-results { grid-template-columns: 1fr; }
  .issue-intro { grid-template-columns: 1fr; gap: 16px; padding-block: 36px 24px; }
  .issue-intro .issue-label { width: fit-content; }
  .issue-intro h1 { font-size: 2.75rem; line-height: .92; }
  .issue-intro > p:last-child { grid-column: 1; }
  .lead-grid { box-shadow: 6px 6px 0 var(--yellow); }
  .story-copy { padding: 18px; }
  .story-card--featured h2 { font-size: 1.65rem; }
  .latest, .browse, .related, .category-stories { padding-block: 52px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .section-head span { text-align: left; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid .story-card { grid-template-columns: 42% 58%; }
  .story-grid .story-copy { padding: 14px; }
  .story-grid .story-copy > p { display: none; }
  .story-grid .story-copy h2 { font-size: 1rem; }
  .story-grid .story-copy .kicker { margin-bottom: 9px; font-size: .6rem; }
  .story-grid .story-meta { display: none; }
  .editor-note { padding-block: 48px; }
  .editor-note .wrap { grid-template-columns: 1fr; gap: 18px; }
  .editor-note p { grid-column: 1; }
  .editor-note blockquote { font-size: 2rem; }
  .category-list a { grid-template-columns: 38px minmax(0, 1fr) 28px; gap: 12px; padding: 20px 4px; }
  .category-list small { grid-column: 2; }
  .category-list b { grid-column: 3; grid-row: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
  .colophon { flex-direction: column; gap: 5px; }
  .crumbs { margin-bottom: 30px; }
  .article-header { padding-block: 32px 24px; }
  .article-header h1 { font-size: 2.45rem; line-height: .95; }
  .article-figure { width: 100%; }
  .article-figure img { border-inline: 0; }
  .article-figure figcaption { padding-inline: 12px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 35px 58px; }
  .article-aside { position: static; }
  .article-body { font-size: 1rem; line-height: 1.72; }
  .article-body .intro { font-size: 1.08rem; }
  .article-body h2 { font-size: 1.65rem; }
  .article-body table { display: block; overflow-x: auto; white-space: normal; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid .story-card { grid-template-columns: 42% 58%; }
  .related-grid .story-copy > p, .related-grid .story-meta { display: none; }
  .related-grid .story-copy h2 { font-size: 1rem; }
  .category-header { grid-template-columns: 1fr; gap: 20px; }
  .category-count { text-align: left; font-size: 3rem; }
  .category-count small { display: inline; margin-left: 8px; }
  .category-stories .story-card, .category-stories .story-card--featured { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-image img { transition: none; }
}
