:root {
  --ink: #172033;
  --paper: #fffdf8;
  --blue: #135cc5;
  --blue-dark: #083b83;
  --blue-soft: #e8f1ff;
  --yellow: #ffd83d;
  --yellow-soft: #fff5bd;
  --coral: #e95e4f;
  --green: #257863;
  --line: #c9d5e6;
  --muted: #58657a;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-top: 8px solid var(--yellow); background: var(--paper); }
.masthead {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.edition { color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.brand { text-decoration: none; text-align: center; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; font-size: 3rem; line-height: 1; font-weight: 800; }
.brand-mark b { color: var(--blue); }
.brand-line { display: block; margin-top: 9px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.header-tools { justify-self: end; }
.search-open, .search-submit {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  min-height: 44px;
  padding: 8px 16px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
}
.search-open:hover, .search-submit:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.topic-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-nav ul {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9px 0;
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  list-style: none;
  flex-wrap: wrap;
}
.topic-nav a { text-decoration: none; font-size: 0.82rem; font-weight: 800; }

main { min-height: 60vh; }
.front-intro {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.front-intro h1 { margin: 0; max-width: 760px; font-size: 4.4rem; line-height: 1.02; }
.front-intro p { margin: 0 0 5px; max-width: 320px; color: var(--muted); }
.blue-underline { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.28em; text-underline-offset: -0.12em; text-decoration-skip-ink: none; }

.lead-story {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-soft);
  box-shadow: 8px 8px 0 var(--yellow);
}
.lead-story .image-link { min-height: 510px; }
.lead-story img { width: 100%; height: 100%; object-fit: cover; }
.lead-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: block; color: var(--blue-dark); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.lead-copy h2 { margin: 12px 0 18px; font-size: 2.55rem; line-height: 1.08; }
.lead-copy h2 a, .story-card h3 a { text-decoration: none; }
.lead-copy p { color: var(--muted); }
.read-link { font-weight: 800; color: var(--blue-dark); }

.story-section { width: min(1180px, calc(100% - 32px)); margin: 0 auto 70px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-bottom: 4px solid var(--ink); margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 10px; font-size: 1.6rem; }
.section-heading span { color: var(--muted); font-size: 0.78rem; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.story-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.story-card:nth-child(2), .story-card:nth-child(3) { border-top: 6px solid var(--yellow); }
.story-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.story-copy { padding: 24px; }
.story-copy h3 { margin: 10px 0 12px; font-size: 1.45rem; line-height: 1.18; }
.story-copy p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }

.topic-band { background: var(--blue-dark); color: white; padding: 44px 0; }
.topic-band-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topic-band h2 { margin: 0 0 22px; font-size: 1.7rem; }
.topic-links { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-links a { border: 1px solid #8eb7ed; border-radius: 999px; padding: 10px 14px; text-decoration: none; font-weight: 800; }
.topic-links a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.page-head { width: min(900px, calc(100% - 32px)); margin: 46px auto 30px; }
.breadcrumbs { color: var(--muted); font-size: 0.8rem; margin-bottom: 24px; }
.breadcrumbs a { color: var(--blue-dark); }
.page-head h1 { margin: 8px 0 16px; font-size: 4.8rem; line-height: 1.02; overflow-wrap: anywhere; }
.dek { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.byline { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.article-hero { width: min(1180px, calc(100% - 32px)); aspect-ratio: 16 / 8; margin: 0 auto 48px; border-radius: var(--radius); object-fit: cover; }
.article-layout { width: min(1180px, calc(100% - 32px)); margin: 0 auto 72px; display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 80px; justify-content: center; align-items: start; }
.article-body { font-size: 1.04rem; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { margin: 2.2em 0 0.55em; font-size: 1.8rem; line-height: 1.2; color: var(--blue-dark); }
.article-body h3 { margin: 1.7em 0 0.5em; font-size: 1.3rem; line-height: 1.25; }
.article-body ul { margin: 0 0 1.7em; padding: 22px 24px 22px 44px; background: var(--yellow-soft); border-left: 6px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body li + li { margin-top: 7px; }
.article-aside { position: sticky; top: 24px; border-top: 6px solid var(--yellow); padding-top: 16px; }
.article-aside strong { display: block; margin-bottom: 8px; }
.article-aside p { color: var(--muted); font-size: 0.82rem; }
.article-aside a { color: var(--blue-dark); font-weight: 800; }

.related { background: var(--blue-soft); padding: 54px 0 64px; }
.related-inner { width: min(1000px, calc(100% - 32px)); margin: 0 auto; }
.related-inner h2 { margin: 0 0 22px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-card { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-card div { padding: 20px; }
.related-card h3 { margin: 8px 0 0; line-height: 1.25; }
.related-card h3 a { text-decoration: none; }

.category-head { width: min(1180px, calc(100% - 32px)); margin: 48px auto 32px; padding-bottom: 26px; border-bottom: 6px solid var(--yellow); }
.category-head h1 { margin: 8px 0 10px; font-size: 4.5rem; line-height: 1.05; overflow-wrap: anywhere; }
.category-head p { max-width: 700px; color: var(--muted); }
.category-list { width: min(1000px, calc(100% - 32px)); margin: 0 auto 72px; }
.category-item { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.category-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.category-item h2 { margin: 8px 0 10px; line-height: 1.15; }
.category-item h2 a { text-decoration: none; }
.category-item p { color: var(--muted); }

.site-footer { background: var(--ink); color: white; }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer-brand { font-size: 1.4rem; font-weight: 800; }
.footer-brand b { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 10px 20px; }
.footer-links a { color: white; }
.footer-note { width: min(1180px, calc(100% - 32px)); margin: 0 auto; border-top: 1px solid #556074; padding: 16px 0 24px; color: #bdc7d6; font-size: 0.75rem; }

#search-dialog { width: min(700px, calc(100% - 28px)); max-height: 84vh; padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
#search-dialog::backdrop { background: rgba(8, 20, 43, 0.72); }
.search-panel { padding: 28px; }
.search-panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.search-panel h2 { margin: 0; }
.search-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blue-soft); color: var(--ink); font-size: 1.5rem; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 24px 0; }
.search-form label { grid-column: 1 / -1; font-weight: 800; }
.search-form input { width: 100%; min-width: 0; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 15px; }
.search-results { min-height: 32px; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { border-top: 1px solid var(--line); }
.search-list a { display: grid; gap: 4px; padding: 16px 2px; text-decoration: none; }
.search-list a > span:last-child { color: var(--muted); font-size: 0.86rem; }

@media (max-width: 880px) {
  .masthead { min-height: 92px; grid-template-columns: 1fr auto; }
  .edition { display: none; }
  .brand { text-align: left; }
  .brand-mark { font-size: 1.75rem; }
  .front-intro { align-items: start; flex-direction: column; gap: 14px; }
  .lead-story { grid-template-columns: 1fr; }
  .lead-story .image-link { min-height: 0; aspect-ratio: 16 / 10; }
  .story-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 38px; }
  .article-aside { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .masthead, .topic-nav ul, .front-intro, .lead-story, .story-section, .topic-band-inner, .page-head, .article-hero, .article-layout, .related-inner, .category-head, .category-list, .footer-inner, .footer-note { width: min(100% - 24px, 1180px); }
  .brand-line { display: none; }
  .search-open { width: 44px; padding: 0; overflow: hidden; color: transparent; position: relative; }
  .search-open::after { content: "⌕"; color: var(--ink); position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.35rem; }
  .topic-nav ul { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .topic-nav li { flex: 0 0 auto; }
  .front-intro h1 { font-size: 2.35rem; }
  .lead-story { box-shadow: 5px 5px 0 var(--yellow); }
  .lead-copy { padding: 24px; }
  .lead-copy h2 { font-size: 1.9rem; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { min-height: 0; aspect-ratio: 16 / 10; }
  .section-heading span { display: none; }
  .page-head h1 { font-size: 2.55rem; }
  .article-hero { aspect-ratio: 4 / 3; }
  .article-body h2 { font-size: 1.55rem; }
  .article-body ul { padding: 18px 18px 18px 36px; }
  .related-grid { grid-template-columns: 1fr; }
  .category-item { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .search-panel { padding: 20px; }
  .search-form { grid-template-columns: 1fr; }
}

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