:root {
  --ink: #101820;
  --sky: #79cef2;
  --sky-soft: #dff5ff;
  --lemon: #f4ee35;
  --paper: #ffffff;
  --mist: #f4f8fa;
  --line: #101820;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 52px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 4px solid var(--lemon); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--lemon); padding: 10px 14px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.site-header { border-bottom: 2px solid var(--line); background: var(--paper); }
.header-row { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: 24px; line-height: 1; font-weight: 800; white-space: nowrap; }
.brand-mark { width: 14px; height: 14px; display: inline-block; background: var(--lemon); border: 2px solid var(--line); }
.site-nav { display: flex; justify-content: center; gap: 24px; font-size: 15px; font-weight: 700; }
.site-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--ink); }
.search-toggle { border: 2px solid var(--line); background: var(--sky); padding: 8px 12px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.search-toggle[aria-expanded="true"] { background: var(--lemon); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.search-panel { display: none; border-bottom: 2px solid var(--line); background: var(--sky-soft); }
.search-panel.is-open { display: block; }
.search-inner { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 28px; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 0; max-width: 760px; }
.search-form input { width: 100%; min-width: 0; border: 2px solid var(--line); border-right: 0; background: var(--paper); padding: 12px 14px; border-radius: 0; }
.search-form button { border: 2px solid var(--line); background: var(--lemon); padding: 12px 18px; font-weight: 800; cursor: pointer; }
.search-status { margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.search-results { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.search-results:empty { display: none; }
.search-results li { background: var(--paper); }
.search-results a { display: block; min-height: 100%; padding: 14px; text-decoration: none; }
.search-results a:hover { background: var(--lemon); }
.result-category { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }

.home-intro { max-width: var(--max); margin: 0 auto; padding: clamp(34px, 6vw, 78px) var(--gutter) 24px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, .45fr); gap: 28px; align-items: end; }
.eyebrow, .kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.home-intro h1 { max-width: 860px; margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .97; letter-spacing: 0; }
.intro-note { margin: 0; padding: 18px; background: var(--lemon); border: 2px solid var(--line); font-size: 16px; font-weight: 700; transform: rotate(1deg); }

.mosaic { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 80px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 88px; gap: 12px; }
.story { position: relative; overflow: hidden; border: 2px solid var(--line); background: var(--sky-soft); }
.story a { display: grid; width: 100%; height: 100%; text-decoration: none; }
.story img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.story:hover img { transform: scale(1.025); }
.story-copy { padding: clamp(16px, 2.4vw, 30px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.story h2 { margin: 0; max-width: 18ch; font-size: clamp(25px, 3.2vw, 44px); line-height: 1.04; letter-spacing: 0; }
.story h3 { margin: 0; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.08; letter-spacing: 0; }
.story-meta { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; }
.story-1 { grid-column: 1 / 9; grid-row: span 6; }
.story-1 a { grid-template-columns: 1.3fr .9fr; }
.story-1 .story-copy { background: var(--sky); }
.story-2 { grid-column: 9 / 13; grid-row: span 6; }
.story-2 a { grid-template-rows: 1.25fr 1fr; }
.story-2 .story-copy { background: var(--lemon); }
.story-3 { grid-column: 1 / 5; grid-row: span 5; }
.story-3 a, .story-5 a { grid-template-rows: 1.15fr 1fr; }
.story-4 { grid-column: 5 / 10; grid-row: span 5; }
.story-4 a { grid-template-columns: 1fr 1.05fr; }
.story-4 .story-copy { background: var(--sky-soft); }
.story-5 { grid-column: 10 / 13; grid-row: span 5; }
.story-5 .story-copy { background: var(--lemon); }

.topic-strip { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--sky); }
.topic-inner { max-width: var(--max); margin: 0 auto; padding: 34px var(--gutter); display: grid; grid-template-columns: .8fr 2fr; gap: 30px; }
.topic-inner h2 { margin: 0; font-size: 30px; line-height: 1; }
.topic-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-links a { min-height: 92px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; font-weight: 800; }
.topic-links a:hover { background: var(--lemon); }
.arrow { font-size: 24px; line-height: 1; }

.page-head { border-bottom: 2px solid var(--line); background: var(--sky); }
.page-head-inner { max-width: var(--max); margin: 0 auto; padding: clamp(42px, 8vw, 96px) var(--gutter) 46px; }
.page-head h1 { max-width: 900px; margin: 0; font-size: clamp(40px, 6vw, 74px); line-height: 1; letter-spacing: 0; }
.page-head p:last-child { max-width: 660px; margin: 18px 0 0; font-size: 19px; }
.category-list { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 82px; }
.category-item { display: grid; grid-template-columns: 220px 1fr auto; gap: 26px; align-items: center; padding: 24px 0; border-bottom: 2px solid var(--line); }
.category-item:first-child { border-top: 2px solid var(--line); }
.category-item img { aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid var(--line); }
.category-item a { text-decoration: none; }
.category-item h2 { max-width: 22ch; margin: 5px 0 8px; font-size: clamp(25px, 3vw, 37px); line-height: 1.07; }
.category-item p { margin: 0; max-width: 680px; }
.category-arrow { width: 52px; height: 52px; display: grid; place-items: center; background: var(--lemon); border: 2px solid var(--line); font-size: 26px; }

.article-hero { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 36px; align-items: end; }
.breadcrumbs { margin: 0 0 30px; font-size: 14px; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.article-hero h1 { margin: 0; font-size: clamp(40px, 5.5vw, 70px); line-height: .99; letter-spacing: 0; }
.standfirst { margin: 22px 0 0; max-width: 760px; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; }
.article-byline { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 800; }
.article-stamp { padding: 16px; border: 2px solid var(--line); background: var(--lemon); font-size: 15px; font-weight: 800; }
.article-image { max-width: var(--max); margin: 38px auto 0; padding: 0 var(--gutter); }
.article-image img { width: 100%; max-height: 700px; aspect-ratio: 16 / 8.4; object-fit: cover; border: 2px solid var(--line); }
.article-layout { max-width: 1060px; margin: 0 auto; padding: 52px var(--gutter) 88px; display: grid; grid-template-columns: 180px minmax(0, 700px); gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 22px; font-size: 13px; font-weight: 800; }
.article-aside span { display: block; padding: 12px; border: 2px solid var(--line); background: var(--sky); }
.article-aside a { display: block; margin-top: 12px; padding: 12px; background: var(--lemon); border: 2px solid var(--line); text-decoration: none; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter { float: left; margin: 7px 10px 0 0; padding: 7px 11px; background: var(--lemon); border: 2px solid var(--line); font-size: 44px; line-height: .82; font-weight: 800; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { margin: 52px 0 18px; font-size: clamp(29px, 4vw, 42px); line-height: 1.08; letter-spacing: 0; }
.article-body h3 { margin: 36px 0 14px; font-size: 25px; line-height: 1.15; }
.article-body h4 { margin: 28px 0 10px; font-size: 18px; line-height: 1.2; background: var(--sky-soft); border-left: 8px solid var(--sky); padding: 10px 12px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote { margin: 34px 0; padding: 20px 24px; background: var(--lemon); border: 2px solid var(--line); font-size: 21px; font-weight: 800; line-height: 1.4; }
.article-body table { width: 100%; margin: 30px 0; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { border: 2px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--sky); }
.related { border-top: 2px solid var(--line); background: var(--sky-soft); }
.related-inner { max-width: var(--max); margin: 0 auto; padding: 42px var(--gutter) 60px; }
.related h2 { margin: 0 0 20px; font-size: 31px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 2px solid var(--line); background: var(--paper); text-decoration: none; }
.related-grid a:nth-child(2) { background: var(--lemon); }
.related-grid strong { max-width: 25ch; font-size: 23px; line-height: 1.13; }

.site-footer { border-top: 2px solid var(--line); background: var(--ink); color: var(--paper); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { margin: 0; font-size: 28px; font-weight: 800; }
.footer-note { max-width: 550px; margin: 8px 0 0; color: #dbe4e8; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-size: 14px; font-weight: 800; }
.footer-links a { color: var(--paper); }

@media (max-width: 860px) {
  .header-row { grid-template-columns: 1fr auto; gap: 14px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .home-intro { grid-template-columns: 1fr; }
  .intro-note { max-width: 460px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .story { grid-column: auto; grid-row: auto; min-height: 480px; }
  .story-1 { grid-column: 1 / -1; min-height: 550px; }
  .story-1 a, .story-4 a { grid-template-columns: 1fr 1fr; }
  .topic-inner { grid-template-columns: 1fr; }
  .article-hero { grid-template-columns: 1fr; }
  .article-stamp { max-width: 300px; }
  .article-layout { grid-template-columns: 1fr; gap: 22px; }
  .article-aside { position: static; display: flex; gap: 10px; }
  .article-aside a { margin: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-row { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 21px; }
  .site-nav { gap: 18px; font-size: 13px; }
  .search-results { grid-template-columns: 1fr; }
  .home-intro h1, .page-head h1, .article-hero h1 { font-size: 40px; }
  .home-intro { padding-top: 38px; }
  .mosaic { display: block; }
  .story { min-height: 0; margin-bottom: 12px; }
  .story a, .story-1 a, .story-4 a { grid-template-columns: 1fr; grid-template-rows: 220px auto; }
  .story-copy { min-height: 230px; }
  .topic-links { grid-template-columns: 1fr; }
  .category-item { grid-template-columns: 96px 1fr; gap: 15px; align-items: start; }
  .category-item img { aspect-ratio: 1; }
  .category-item .category-arrow { display: none; }
  .category-item h2 { font-size: 24px; }
  .category-item p { grid-column: 1 / -1; }
  .article-hero { padding-top: 32px; }
  .article-image { margin-top: 28px; }
  .article-image img { aspect-ratio: 4 / 3; }
  .article-layout { padding-top: 36px; }
  .article-aside { flex-direction: column; }
  .article-body table { display: block; max-width: 100%; overflow-x: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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