:root {
  --purple: #51206b;
  --purple-deep: #2c1239;
  --purple-soft: #ece5f0;
  --copper: #a85f32;
  --copper-dark: #7d3e1d;
  --paper: #f6f6f7;
  --white: #fff;
  --ink: #201e22;
  --muted: #666169;
  --line: #cbc8cd;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Courier New", Courier, monospace; line-height: 1.58; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--white); border: 2px solid var(--purple); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }

.topline { background: var(--purple-deep); color: #fff; font-size: .72rem; text-transform: uppercase; }
.issue-line { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.issue-line time { color: #e3b28f; }
.masthead-row { min-height: 142px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 48px; }
.masthead { display: inline-flex; align-items: baseline; width: fit-content; color: var(--purple-deep); font-size: 4.7rem; line-height: .9; font-weight: 700; letter-spacing: 0; text-decoration: none; }
.masthead b { color: var(--copper); }
.masthead i { font-style: normal; font-size: .34em; color: var(--muted); }
.masthead-note { margin: 0; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: .72rem; text-transform: uppercase; line-height: 1.45; }
.search-open { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; background: transparent; border: 0; border-bottom: 2px solid var(--copper); cursor: pointer; font-weight: 700; }
.search-open span { font-size: 1.4rem; line-height: 1; }
.section-nav { border-block: 1px solid var(--ink); background: var(--white); }
.section-nav .wrap { display: flex; align-items: center; overflow-x: auto; scrollbar-width: thin; }
.section-nav a { flex: 0 0 auto; padding: 13px 20px; border-right: 1px solid var(--line); color: var(--ink); font-size: .75rem; text-decoration: none; }
.section-nav a:first-child { padding-left: 0; padding-right: 26px; font-weight: 700; color: var(--purple); }
.section-nav a:hover { color: var(--copper-dark); text-decoration: underline; }

.front-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; padding-block: 72px 42px; align-items: end; }
.edition, .front-intro .edition { display: block; margin-bottom: 14px; color: var(--copper-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.front-intro h1 { max-width: 820px; margin: 0; color: var(--purple-deep); font-size: 6.2rem; line-height: .95; letter-spacing: 0; }
.front-intro > p { max-width: 400px; margin: 0 0 8px; padding-left: 22px; border-left: 4px solid var(--copper); font-size: 1rem; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(260px, .95fr); border-top: 8px solid var(--purple); background: var(--white); }
.article-card { min-width: 0; }
.article-card .card-image { display: block; overflow: hidden; background: #d9d6da; }
.article-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.article-card:hover img { transform: scale(1.018); }
.article-card .card-copy { padding: 22px 0 4px; }
.article-card--featured { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); grid-column: 1 / -1; }
.article-card--featured .card-copy { padding: 38px 36px; border-right: 1px solid var(--line); }
.article-card--featured h2 { font-size: 3.25rem; }
.article-card h2 { margin: 8px 0 12px; font-size: 1.85rem; line-height: 1.12; letter-spacing: 0; }
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--purple); text-decoration: underline; }
.article-card p { margin: 0 0 18px; color: #4f4b51; font-family: Arial, Helvetica, sans-serif; font-size: .98rem; line-height: 1.58; }
.kicker { color: var(--copper-dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.byline { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.lead-index { grid-column: 2; grid-row: 1; display: none; }
.index-label { display: block; padding: 20px 24px; background: var(--purple-deep); color: #fff; font-size: .72rem; text-transform: uppercase; }
.lead-index a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 19px 24px; border-bottom: 1px solid var(--line); text-decoration: none; }
.lead-index a b { color: var(--copper); }
.lead-index a span { font-size: .83rem; font-weight: 700; line-height: 1.35; }

.section-band { margin-top: 80px; padding-block: 70px 84px; background: #e5e5e8; border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 38px; }
.section-heading span, .category-ledger header > span, .related header > span, .editorial-note span { color: var(--copper-dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.section-heading h2, .category-ledger h2, .related h2 { margin: 5px 0 0; font-size: 3.1rem; line-height: 1.05; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 28px; }

.category-ledger { display: grid; grid-template-columns: .7fr 1.3fr; gap: 0 64px; padding-block: 84px; }
.category-ledger header { grid-row: 1 / span 3; }
.category-ledger > a { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: start; padding: 20px 0; border-top: 1px solid var(--ink); text-decoration: none; }
.category-ledger > a:last-child { border-bottom: 1px solid var(--ink); }
.category-ledger > a b { color: var(--copper); }
.category-ledger > a strong { display: block; margin-bottom: 5px; font-size: 1.1rem; }
.category-ledger > a small { display: block; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: .85rem; }
.category-ledger > a i { color: var(--purple); font-size: 1.4rem; font-style: normal; }
.category-ledger > a:hover strong { color: var(--purple); text-decoration: underline; }

.editorial-note { padding-block: 90px; background: var(--purple); color: #fff; }
.editorial-note .wrap { display: grid; grid-template-columns: .55fr 1.2fr .75fr; gap: 42px; align-items: start; }
.editorial-note span { color: #e6b895; }
.editorial-note h2 { margin: 0; font-size: 3.7rem; line-height: 1.04; }
.editorial-note p { margin: 0 0 20px; font-family: Arial, Helvetica, sans-serif; }
.editorial-note a { color: #fff; font-weight: 700; }

.site-footer { padding-top: 64px; background: #211b24; color: #f6f2f7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 64px; padding-bottom: 54px; }
.footer-mark { color: #e3a67c; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.footer-grid p { max-width: 520px; color: #c8c1ca; font-family: Arial, Helvetica, sans-serif; font-size: .86rem; }
.footer-grid h2 { margin: 0 0 12px; color: #e3a67c; font-size: .78rem; text-transform: uppercase; }
.footer-grid > div > a:not(.footer-mark) { display: block; margin: 8px 0; color: #f6f2f7; font-size: .78rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 18px; border-top: 1px solid #554b58; color: #aaa0ad; font-size: .68rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 46px; color: var(--muted); font-size: .72rem; }
.article-header { position: relative; padding-top: 56px; text-align: center; }
.article-header .breadcrumbs { justify-content: center; }
.article-number { position: absolute; left: 0; top: 56px; color: var(--copper-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.article-header h1 { max-width: 980px; margin: 14px auto 22px; color: var(--purple-deep); font-size: 5.8rem; line-height: .98; letter-spacing: 0; }
.standfirst { max-width: 830px; margin: 0 auto 30px; color: #4e4950; font-family: Arial, Helvetica, sans-serif; font-size: 1.26rem; line-height: 1.65; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 32px; font-size: .72rem; }
.article-meta span + time::before, .article-meta time + span::before { content: '•'; margin-right: 24px; color: var(--copper); }
.article-hero { margin-top: 8px; }
.article-hero img { width: 100%; max-height: 700px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 8px solid var(--copper); }
.article-hero figcaption { margin-top: 9px; color: var(--muted); font-size: .68rem; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 760px) 1fr; gap: 52px; padding-block: 62px 80px; }
.article-rail { grid-column: 1; align-self: start; position: sticky; top: 20px; padding-top: 14px; border-top: 3px solid var(--purple); }
.article-rail span { color: var(--copper-dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.article-rail p { color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: .77rem; line-height: 1.5; }
.article-rail a { font-size: .72rem; font-weight: 700; }
.article-body { grid-column: 2; min-width: 0; color: #29262a; font-family: Arial, Helvetica, sans-serif; font-size: 1.06rem; line-height: 1.82; }
.article-body h2, .article-body h3, .article-body h4 { color: var(--purple-deep); font-family: "Courier New", Courier, monospace; letter-spacing: 0; }
.article-body h2 { margin: 2.7em 0 .65em; padding-top: .55em; border-top: 1px solid var(--line); font-size: 2.25rem; line-height: 1.12; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 2em 0 .55em; font-size: 1.3rem; line-height: 1.2; }
.article-body h4 { margin: 1.8em 0 .4em; color: var(--copper-dark); font-size: 1rem; text-transform: uppercase; }
.article-body p { margin: 0 0 1.45em; }
.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.article-body li { margin: .45em 0; padding-left: .3em; }
.article-body li::marker { color: var(--copper); font-weight: 700; }
.article-body blockquote { margin: 2.2em 0; padding: 24px 28px; border-left: 6px solid var(--copper); background: var(--purple-soft); color: var(--purple-deep); font-family: "Courier New", Courier, monospace; font-size: 1.18rem; font-weight: 700; line-height: 1.5; }
.safety-note { margin-top: 54px; padding: 24px 28px; border: 1px solid var(--copper); background: #fff; }
.safety-note strong { color: var(--purple); font-family: "Courier New", Courier, monospace; }
.safety-note p { margin: 8px 0 0; font-size: .9rem; }
.related { padding-block: 64px 80px; border-top: 1px solid var(--ink); }
.related header { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.related-grid a { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 25px 24px 25px 0; border-right: 1px solid var(--line); text-decoration: none; }
.related-grid a + a { padding-left: 24px; }
.related-grid a:last-child { border-right: 0; }
.related-grid img { grid-column: 1 / -1; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 8px; object-fit: cover; }
.related-grid span { grid-column: 1 / -1; color: var(--copper-dark); font-size: .67rem; text-transform: uppercase; }
.related-grid strong { line-height: 1.28; }
.related-grid i { color: var(--purple); font-style: normal; }

.category-header { display: grid; grid-template-columns: 1fr auto; padding-block: 62px 46px; border-bottom: 8px solid var(--purple); }
.category-header .breadcrumbs { grid-column: 1 / -1; }
.category-header .edition { grid-column: 1 / -1; }
.category-header h1 { margin: 0; color: var(--purple-deep); font-size: 6.7rem; line-height: .95; }
.category-header p { grid-column: 1; max-width: 720px; margin: 22px 0 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; }
.category-count { grid-column: 2; grid-row: 3 / 5; align-self: end; padding: 10px 0; border-bottom: 2px solid var(--copper); font-weight: 700; }
.category-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px 30px; padding-block: 60px 100px; }
.category-stories .article-card:first-child:nth-last-child(1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; }

.about-page { padding-block: 62px 90px; }
.about-page > h1 { max-width: 1040px; margin: 0 0 60px; color: var(--purple-deep); font-size: 5rem; line-height: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 50px; border-block: 1px solid var(--ink); }
.about-grid h2, .about-principles h2 { font-size: 1.4rem; }
.about-grid p, .emergency-copy { font-family: Arial, Helvetica, sans-serif; line-height: 1.7; }
.about-principles { display: grid; grid-template-columns: .7fr 1.3fr; gap: 50px; padding-block: 55px; }
.about-principles ol { margin: 0; padding: 0; list-style: none; }
.about-principles li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.about-principles li:last-child { border-bottom: 1px solid var(--line); }
.about-principles li b { color: var(--copper); }
.about-principles li strong { display: block; color: var(--purple); }
.emergency-copy { padding: 24px; border-left: 6px solid var(--copper); background: var(--white); }

.search-dialog { width: min(720px, calc(100% - 30px)); max-height: 80vh; padding: 28px; border: 4px solid var(--purple); border-radius: 0; background: var(--paper); color: var(--ink); }
.search-dialog::backdrop { background: rgb(32 17 39 / .72); }
.search-bar { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.search-bar h2 { margin: 0 0 22px; color: var(--purple-deep); font-size: 1.65rem; }
.search-close { width: 40px; height: 40px; padding: 0; border: 1px solid var(--ink); background: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.search-dialog label { display: block; margin-bottom: 6px; color: var(--copper-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.search-dialog input { width: 100%; padding: 13px 14px; border: 1px solid var(--ink); border-radius: 0; background: #fff; font-size: 1rem; }
.search-results { margin-top: 20px; overflow: auto; }
.search-results > p { color: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.search-result { display: block; padding: 15px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.search-result span { color: var(--copper-dark); font-size: .68rem; text-transform: uppercase; }
.search-result strong { display: block; margin: 3px 0; color: var(--purple-deep); }
.search-result small { display: block; color: var(--muted); font-family: Arial, Helvetica, sans-serif; }

@media (min-width: 1000px) {
  .lead-grid { grid-template-columns: 1fr; }
  .article-card--featured { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr); }
}

@media (max-width: 820px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .issue-line span { max-width: 72%; }
  .masthead-row { min-height: 104px; grid-template-columns: 1fr auto; gap: 20px; }
  .masthead { font-size: 2.1rem; }
  .masthead-note { display: none; }
  .search-open { font-size: 0; }
  .search-open span { font-size: 1.65rem; }
  .front-intro { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 34px; }
  .front-intro h1 { font-size: 4.5rem; }
  .article-card--featured { grid-template-columns: 1fr; }
  .article-card--featured .card-copy { padding: 26px 20px 30px; border-right: 0; }
  .section-band { margin-top: 54px; padding-block: 50px 64px; }
  .section-heading, .category-ledger, .editorial-note .wrap, .about-grid, .about-principles { grid-template-columns: 1fr; gap: 24px; }
  .category-ledger { padding-block: 60px; }
  .category-ledger header { grid-row: auto; margin-bottom: 24px; }
  .editorial-note { padding-block: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .article-header { padding-top: 40px; text-align: left; }
  .article-header .breadcrumbs { justify-content: flex-start; margin-bottom: 56px; }
  .article-number { top: 88px; }
  .article-header h1 { font-size: 3rem; }
  .standfirst { margin-left: 0; }
  .article-meta { justify-content: flex-start; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 42px 64px; }
  .article-rail, .article-body { grid-column: 1; }
  .article-rail { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  .related-grid a, .related-grid a + a { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-header { grid-template-columns: 1fr; }
  .category-header h1 { font-size: 4.2rem; }
  .category-header h1, .category-header p, .category-count { grid-column: 1; }
  .category-count { grid-row: auto; width: fit-content; margin-top: 24px; }
  .category-stories .article-card:first-child:nth-last-child(1) { grid-template-columns: 1fr; }
  .about-page > h1 { font-size: 3.3rem; }
}

@media (max-width: 580px) {
  .issue-line { min-height: 40px; font-size: .6rem; }
  .issue-line time { display: none; }
  .section-nav a { padding-inline: 14px; font-size: .68rem; }
  .section-nav a:first-child { padding-right: 18px; }
  .story-grid, .category-stories { grid-template-columns: 1fr; }
  .front-intro h1 { font-size: 3.4rem; }
  .article-header h1 { font-size: 1.55rem; }
  .category-header h1 { font-size: 3rem; }
  .about-page > h1 { font-size: 2.5rem; }
  .article-card h2 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .article-meta { display: grid; gap: 6px; }
  .article-meta span + time::before, .article-meta time + span::before { content: none; }
  .article-body { font-size: 1rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.55rem; }
  .article-body h3 { font-size: 1.2rem; }
  .article-body blockquote { margin-inline: 0; padding: 20px; }
  .article-hero { width: 100%; }
  .article-hero figcaption { padding-inline: 14px; }
  .about-page > h1 { overflow-wrap: anywhere; }
  .search-dialog { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
