:root {
  --sky: #68c9f3;
  --sky-deep: #1598cf;
  --lemon: #ffe438;
  --ink: #14212b;
  --muted: #52616b;
  --paper: #ffffff;
  --mist: #edf8fc;
  --coral: #f06b58;
  --green: #19866f;
  --line: #bfdce8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  border-bottom: 2px solid var(--ink);
  background: white;
  position: relative;
  z-index: 10;
}

.masthead {
  width: min(calc(100% - 36px), var(--max));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}
.brand-dot { color: var(--coral); }
.brand-kicker {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover { color: var(--sky-deep); }

.search-form {
  display: flex;
  width: 224px;
  border: 2px solid var(--ink);
  background: white;
}
.search-form input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
}
.search-form button {
  min-width: 44px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.search-form input:focus { outline: 3px solid var(--sky); outline-offset: -3px; }

.ticker {
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.ticker-inner {
  width: min(calc(100% - 36px), var(--max));
  min-height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  overflow: hidden;
}
.ticker-label { color: var(--lemon); text-transform: uppercase; }
.ticker-text { overflow: hidden; text-overflow: ellipsis; }

.shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 0;
  margin: 30px auto 54px;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--lemon);
}
.hero-media { position: relative; min-height: 540px; overflow: hidden; background: var(--mist); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-stamp {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 8px 11px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  background: var(--sky);
}
.hero-copy::before {
  content: "";
  position: absolute;
  top: 35px;
  right: -20px;
  width: 90px;
  height: 18px;
  background: var(--coral);
  transform: rotate(7deg);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p { margin: 0 0 24px; font-size: 18px; line-height: 1.45; }
.arrow-link { font-weight: 900; text-decoration: none; }
.arrow-link::after { content: "  →"; color: var(--coral); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  margin: 0;
  padding: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
}
.section-head p { margin: 0 0 9px; color: var(--muted); font-size: 14px; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px 22px;
  margin-bottom: 66px;
}
.story-card { grid-column: span 4; min-width: 0; }
.story-card.wide { grid-column: span 6; }
.story-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--mist);
}
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover img { transform: scale(1.025); }
.story-number {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 42px;
  padding: 6px 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  background: var(--lemon);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.story-meta { margin: 12px 0 5px; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.story-card h3 { margin: 0 0 8px; font-size: 25px; line-height: 1.12; }
.story-card h3 a { text-decoration: none; }
.story-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.category-band {
  margin: 0 0 68px;
  padding: 38px 0;
  background: var(--lemon);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.category-links {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-link {
  min-height: 150px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--sky);
}
.category-link:nth-child(2) { box-shadow-color: var(--coral); }
.category-link:nth-child(3) { box-shadow-color: var(--green); }
.category-link span { display: block; margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 900; }
.category-link strong { display: block; font-size: 24px; line-height: 1.1; }

.note-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin: 0 auto 72px;
  padding: 28px 32px;
  border: 2px solid var(--ink);
  background: var(--mist);
}
.note-strip h2 { margin: 0 0 5px; font-size: 25px; }
.note-strip p { margin: 0; color: var(--muted); }
.note-mark { font-size: 54px; font-weight: 900; line-height: 1; color: var(--sky-deep); transform: rotate(8deg); }

.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: white; }
.footer-inner {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  min-height: 160px;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { color: var(--lemon); font-size: 24px; font-weight: 900; }
.footer-copy { max-width: 520px; margin: 8px 0 0; color: #d8e6ec; font-size: 14px; }
.footer-links { display: flex; align-items: flex-start; gap: 20px; padding-top: 8px; }
.footer-links a { color: white; font-size: 14px; }

.page-hero {
  padding: 54px 0 48px;
  background: var(--sky);
  border-bottom: 2px solid var(--ink);
}
.page-hero .shell { position: relative; }
.page-hero .shell::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -62px;
  width: 130px;
  height: 28px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}
.page-hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.page-hero p { max-width: 660px; margin: 18px 0 0; font-size: 18px; }
.category-content { padding: 58px 0 72px; }

.article-header { padding: 40px 0 28px; }
.breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--green); font-weight: 700; }
.article-header h1 { max-width: 980px; margin: 0 0 20px; font-size: clamp(42px, 6vw, 76px); line-height: .98; }
.dek { max-width: 780px; margin: 0 0 18px; color: var(--muted); font-size: 21px; line-height: 1.45; }
.byline { margin: 0; font-size: 13px; font-weight: 700; }
.article-cover { width: min(calc(100% - 36px), 1320px); margin: 0 auto 44px; }
.article-cover img { width: 100%; max-height: 700px; object-fit: cover; border: 2px solid var(--ink); }
.caption { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.article-layout {
  width: min(calc(100% - 36px), 1040px);
  margin: 0 auto 78px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  gap: 70px;
  align-items: start;
}
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter {
  float: left;
  margin: 7px 9px 0 0;
  padding: 5px 10px;
  background: var(--lemon);
  border: 2px solid var(--ink);
  font-size: 52px;
  font-weight: 900;
  line-height: .82;
}
.article-body h2 { margin: 48px 0 14px; font-size: 33px; line-height: 1.13; }
.article-body h3 { margin: 30px 0 10px; font-size: 23px; line-height: 1.2; color: var(--green); }
.article-body h4 { margin: 24px 0 8px; font-size: 17px; text-transform: uppercase; }
.article-body p { margin: 0 0 19px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 8px solid var(--coral);
  background: var(--mist);
  font-size: 20px;
  font-weight: 700;
}
.article-body table { width: 100%; margin: 24px 0 30px; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { background: var(--lemon); }
.article-aside { position: sticky; top: 24px; border-top: 8px solid var(--lemon); padding-top: 16px; }
.article-aside strong { display: block; margin-bottom: 7px; font-size: 14px; text-transform: uppercase; }
.article-aside p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-aside a { color: var(--green); font-size: 13px; font-weight: 700; }

.search-page { min-height: 560px; padding: 58px 0 80px; }
.search-panel { max-width: 760px; }
.search-panel h1 { margin: 0 0 18px; font-size: 52px; line-height: 1; }
.search-panel .search-form { width: 100%; max-width: 620px; margin-bottom: 40px; }
.search-panel .search-form input { padding: 14px; }
.search-panel .search-form button { min-width: 68px; }
.search-status { margin-bottom: 18px; color: var(--muted); }
.search-results { display: grid; gap: 16px; }
.search-result { padding: 18px 0; border-top: 2px solid var(--ink); }
.search-result h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.2; }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 0; color: var(--muted); font-size: 15px; }
.search-result small { color: var(--green); font-weight: 800; text-transform: uppercase; }

@media (max-width: 900px) {
  .masthead { flex-wrap: wrap; padding: 18px 0; gap: 14px 20px; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .main-nav ul { width: max-content; }
  .search-form { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 430px; }
  .hero-copy { min-height: 350px; }
  .story-card, .story-card.wide { grid-column: span 6; }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead, .shell, .ticker-inner, .category-links, .footer-inner, .article-cover, .article-layout { width: min(calc(100% - 28px), var(--max)); }
  .brand { font-size: 23px; }
  .brand-kicker { display: none; }
  .masthead .search-form { width: 146px; }
  .main-nav ul { gap: 17px; }
  .main-nav a { font-size: 13px; }
  .ticker-inner { gap: 10px; }
  .hero-grid { margin-top: 18px; box-shadow: 6px 6px 0 var(--lemon); }
  .hero-media { min-height: 190px; }
  .hero-copy { min-height: 0; padding: 19px 22px 21px; }
  .hero-copy h1 { font-size: 32px; line-height: 1.03; }
  .hero-copy p { margin-bottom: 14px; font-size: 15px; }
  .hero-copy::before { display: none; }
  .story-grid { gap: 30px; }
  .story-card, .story-card.wide { grid-column: span 12; }
  .story-card h3 { font-size: 23px; }
  .section-head { display: block; }
  .category-links { grid-template-columns: 1fr; }
  .category-link { min-height: 120px; }
  .note-strip { grid-template-columns: 1fr; padding: 24px; }
  .note-mark { display: none; }
  .footer-inner { display: block; }
  .footer-links { flex-wrap: wrap; margin-top: 24px; }
  .page-hero { padding: 42px 0; }
  .page-hero h1 { font-size: 43px; }
  .page-hero .shell::after { display: none; }
  .article-header h1 { font-size: 43px; }
  .dek { font-size: 18px; }
  .article-cover { margin-bottom: 30px; }
  .article-cover img { min-height: 250px; object-fit: cover; }
  .article-body h2 { font-size: 29px; }
  .article-body h3 { font-size: 21px; }
  .article-body table { display: block; overflow-x: auto; }
  .search-panel h1 { font-size: 43px; }
}

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