:root {
  color-scheme: dark;
  --paper: #fff8ea;
  --ink: #fff5e2;
  --muted: #c8bcaa;
  --primary: #c91426;
  --deep: #6d0711;
  --accent: #d7ad55;
  --charcoal: #120f0f;
  --panel: rgba(18, 15, 15, 0.84);
  --line: rgba(255, 245, 226, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--charcoal);
  color: var(--ink);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(201, 20, 38, 0.34), rgba(37, 63, 84, 0.22) 48%, rgba(18, 15, 15, 0.94)),
    url("assets/old-trafford-public-domain.jpg") center / cover;
  filter: saturate(.88) contrast(1.08) brightness(.34);
  transform: scale(1.02);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 6, 6, .14), rgba(8, 6, 6, .96) 82%);
}
a { color: var(--paper); text-decoration-color: rgba(215, 173, 85, .72); text-underline-offset: .22em; }
a:hover { color: white; }
a:focus-visible { outline: 3px solid rgba(215, 173, 85, .88); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: 8px; z-index: 20; transform: translateY(-140%); border-radius: 8px; background: var(--paper); color: #120f0f; padding: 9px 12px; font-weight: 800; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.page { max-width: 1328px; margin: auto; padding: 28px clamp(16px, 3vw, 44px) 38px; }
.article-hero { max-width: 1060px; padding: clamp(44px, 9vh, 92px) 0 38px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 1040px; margin: 0; color: white; font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: .91; letter-spacing: -.04em; }
.standfirst { max-width: 850px; margin: 22px 0 0; color: rgba(255, 245, 226, .84); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(250px, 320px); gap: clamp(20px, 4vw, 48px); align-items: start; }
.article-body, .article-rail { min-width: 0; }
.article-body, .article-rail section, .publication-note, .related-reading {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.article-body { padding: clamp(20px, 4vw, 42px); }
.article-body h2 { margin: 2.2em 0 .55em; color: white; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.08; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 1.7em 0 .5em; color: white; }
.article-body p, .article-body li, .article-rail p, .article-rail li, .publication-note p, .related-reading p { color: rgba(255, 245, 226, .78); font-size: 1rem; line-height: 1.75; }
.article-body sup a { color: var(--accent); font-weight: 800; text-decoration: none; }
.article-rail { display: grid; gap: 16px; position: sticky; top: 18px; }
.article-rail section { padding: 18px; }
.article-rail h2 { margin: 0 0 10px; color: white; font-size: 1.1rem; }
.fact-list, .source-list, .reading-list { display: grid; gap: 9px; margin: 0; padding-left: 20px; }
.source-list { font-size: .9rem; }
.source-list li:target { outline: 2px solid var(--accent); outline-offset: 4px; }
.data-table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: .92rem; }
.data-table caption { margin-bottom: 10px; color: var(--accent); font-weight: 800; text-align: left; }
.data-table th, .data-table td { border-top: 1px solid rgba(255, 245, 226, .16); padding: 10px 9px; text-align: left; vertical-align: top; }
.data-table th { color: white; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.analysis-note { margin: 24px 0; border-left: 4px solid var(--accent); background: rgba(215, 173, 85, .08); padding: 15px 18px; }
.analysis-note strong { color: white; }
.publication-note, .related-reading { margin-top: 22px; padding: clamp(18px, 3vw, 28px); }
.publication-note h2, .related-reading h2 { margin: 0 0 8px; color: white; }
.byline { font-weight: 760; }
.metadata { color: rgba(255, 245, 226, .62) !important; font-size: .88rem !important; }
footer { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; color: rgba(255, 245, 226, .6); font-size: .84rem; line-height: 1.6; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-rail { position: static; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.6rem, 14vw, 4.25rem); }
  .article-body { padding: 18px; }
  .data-table { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
