:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #59636e;
  --paper: #fffdf8;
  --soft: #f2f0e9;
  --line: #d8d6ce;
  --red: #b52b1a;
  --red-dark: #a52312;
  --green: #00703c;
  --amber: #f3c13a;
  --focus: #ffdd00;
  --max: 72rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: .22rem solid var(--focus);
  outline-offset: .18rem;
  box-shadow: 0 0 0 .16rem #111;
}
select:focus-visible { outline: .22rem solid var(--focus); outline-offset: .18rem; box-shadow: 0 0 0 .16rem #111; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--focus); color: #111; padding: .7rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--ink); color: white; border-bottom: .32rem solid var(--red); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 850; letter-spacing: -.025em; }
.brand-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--red); font-family: Georgia, serif; font-size: 1.25rem; }
nav { display: flex; gap: clamp(.75rem, 3vw, 1.8rem); }
nav a { color: #fff; font-size: .92rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: linear-gradient(120deg, #111820 0%, #202d39 70%, #263a45 100%); color: #fff; padding: clamp(3.6rem, 9vw, 7.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .7fr); gap: clamp(2rem, 7vw, 6rem); align-items: end; }
.eyebrow { margin: 0 0 .65rem; color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #ff8a75; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -.04em; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.65rem, 7.2vw, 5.7rem); max-width: 13ch; }
h1 span { color: #ff8a75; }
h2 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin-bottom: .45rem; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.lede { margin: 0; max-width: 42rem; color: #dfe5e9; font-size: clamp(1.1rem, 2.1vw, 1.35rem); }
.hero-actions, .feed-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: .65rem 1rem; border: 2px solid currentColor; font-weight: 850; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--red); background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { background: transparent; color: inherit; }
.hero .button-secondary { border-color: #7f909d; }
.safety-card { border-top: .42rem solid var(--amber); background: #fff; color: var(--ink); padding: 1.5rem; box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 20%); }
.safety-label { margin: 0 0 .6rem; color: #6d5000; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; }
.safety-card h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.safety-card p:last-child { margin-bottom: 0; }
.status-strip { border-bottom: 1px solid var(--line); background: #fff; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.status-grid > div { padding: 1.25rem clamp(.75rem, 3vw, 2rem); border-left: 1px solid var(--line); }
.status-grid > div:last-child { border-right: 1px solid var(--line); }
.metric { display: block; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.05em; }
.metric-time { font-size: clamp(1.05rem, 2.5vw, 1.45rem); letter-spacing: -.025em; }
.metric-label { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.section { padding-top: clamp(3.8rem, 8vw, 6.5rem); padding-bottom: clamp(3.8rem, 8vw, 6.5rem); }
.section-muted { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.source-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #aac5b8; border-radius: 99rem; background: #e9f5ee; color: #075b36; padding: .38rem .7rem; font-size: .76rem; font-weight: 800; }
.source-pill::before { content: ""; width: .55rem; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.source-pill.is-stale { border-color: #d7bd6e; background: #fff5d6; color: #5c4500; }
.source-pill.is-stale::before { background: #b58100; }
.alert-list { display: grid; gap: 1rem; }
.alert-card { position: relative; border: 1px solid var(--line); border-left: .42rem solid var(--red); background: #fff; padding: clamp(1.25rem, 3vw, 2rem); }
.alert-card-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.tag { display: inline-flex; border-radius: 99rem; background: #f7dfda; color: #842415; padding: .25rem .6rem; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.alert-meta { color: var(--muted); font-size: .87rem; }
.alert-message { max-width: 67rem; white-space: pre-line; }
.official-link { display: inline-flex; margin-top: .5rem; color: #174f8a; font-weight: 800; }
.loading, .empty-state { border: 1px dashed #a6a49c; padding: 1.3rem; color: var(--muted); }
.archive-heading { align-items: center; }
.search-field input { width: min(22rem, 100%); min-height: 2.8rem; border: 2px solid #6d7379; background: #fff; padding: .55rem .8rem; font: inherit; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.archive-card { border-top: .3rem solid #65717c; background: #fff; padding: 1.35rem; }
.archive-date { margin: 0 0 .4rem; color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.archive-card p:last-of-type { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.global-hero { background: linear-gradient(120deg, #101923 0%, #183345 70%, #184b50 100%); }
.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
.filter-grid label { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.filter-grid select { display: block; width: 100%; min-height: 3rem; margin-top: .35rem; border: 2px solid #6d7379; background: #fff; color: var(--ink); padding: .55rem .7rem; font: inherit; text-transform: none; letter-spacing: normal; }
.result-count { color: var(--muted); font-weight: 750; }
.global-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.global-card { border: 1px solid var(--line); border-top: .38rem solid #68737d; background: #fff; padding: 1.35rem; }
.global-card.level-red { border-top-color: #b52b1a; }
.global-card.level-orange { border-top-color: #c45d12; }
.global-card.level-green { border-top-color: #00703c; }
.global-card .tag { margin-bottom: .7rem; }
.global-card.level-orange .tag { background: #fff0d9; color: #7d3907; }
.global-card.level-green .tag { background: #e5f3eb; color: #075b36; }
.global-country { color: var(--muted); font-size: .86rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.show-more { margin-top: 1.5rem; color: var(--ink); background: var(--paper); cursor: pointer; }
.feed-panel, .service-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.feed-panel { border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: .55rem .55rem 0 #ddd9cd; }
.feed-panel p { max-width: 50rem; }
.feed-actions { margin-top: 0; justify-content: end; }
.service-section { background: #16232d; color: white; }
.service-section .eyebrow { color: #ff8a75; }
.service-section p { max-width: 52rem; color: #dbe2e7; }
footer { background: #0d1319; color: #cbd4da; padding: 2.75rem 0; font-size: .86rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr .8fr; gap: 2rem; }
footer p { margin: 0; }
footer a { color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .9rem; }
  nav { width: 100%; justify-content: space-between; }
  .hero-grid, .feed-panel, .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .status-grid > div, .status-grid > div:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section-heading, .archive-heading { align-items: stretch; flex-direction: column; }
  .search-field input { width: 100%; }
  .archive-list, .global-list, .filter-grid { grid-template-columns: 1fr; }
  .feed-actions { justify-content: start; }
}

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