:root {
  --hero-bg: #0b0d13; --hero-fg: #f4f1ea; --hero-muted: rgba(244, 241, 234, .64);
  --hot: #ff4d3d; --amber: #ffb02e; --violet: #7c5cff; --teal: #2bb6a8;
  --bg: #f3f4f6; --panel: #ffffff; --fg: #141821; --muted: #5d6573; --line: #e3e5ea; --track: #eceef2;
  --serif: "Fraunces", Georgia, "Noto Serif", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans CJK SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  --r: 14px; --gap: clamp(1rem, 2.4vw, 1.5rem);
  color-scheme: light dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1117; --panel: #161b24; --fg: #eef0f3; --muted: #9aa3b2; --line: #262d39; --track: #232a35; }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; background: var(--amber); color: #111; padding: .5rem .75rem; z-index: 20; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gap); }
main.wrap { display: flex; flex-direction: column; gap: var(--gap); padding-top: var(--gap); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top, 0px) + .7rem) var(--gap) .7rem; background: rgba(11, 13, 19, .86); color: var(--hero-fg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; }
.dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 0 rgba(255, 77, 61, .7); flex: none; }
.top nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; }
.top nav > a { text-decoration: none; color: var(--hero-muted); }
.top nav > a:hover { color: var(--hero-fg); }
.top .nav-cta { color: #111 !important; background: linear-gradient(90deg, var(--amber), var(--hot)); padding: .35rem .85rem; border-radius: 999px; font-weight: 600; }
.langs { position: relative; color: var(--hero-muted); }
.langs summary { cursor: pointer; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; font-size: .8em; }
.langs[open] summary, .langs summary:hover { color: var(--hero-fg); }
.langs ul { position: absolute; inset-inline-end: 0; top: calc(100% + .6rem); margin: 0; padding: .4rem; list-style: none; min-width: 12rem;
  background: #141821; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; z-index: 11; max-height: 70vh; overflow-y: auto;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); }
.langs li a { display: block; padding: .4rem .7rem; border-radius: 8px; text-decoration: none; color: var(--hero-fg); }
.langs li a:hover { background: rgba(255, 255, 255, .06); }
.langs li a[aria-current="page"] { color: var(--amber); font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.6); color: var(--hero-fg);
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(255, 77, 61, .38), transparent 60%),
    radial-gradient(50% 70% at 5% 100%, rgba(255, 176, 46, .2), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 32px),
    var(--hero-bg);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--hero-muted);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: .3rem .8rem; background: rgba(255, 255, 255, .04); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.04; letter-spacing: -.01em; margin: 1rem 0 .9rem; }
.hero h1 strong { font-weight: 400; font-style: italic; background: linear-gradient(90deg, var(--amber), var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--hero-muted); max-width: 34rem; margin: 0; font-size: 1.05rem; }
.lede strong { color: var(--hero-fg); }
.updated { margin: 1rem 0 0; font-size: .85rem; color: var(--hero-muted); }
.auto-note { margin: .4rem 0 0; font-size: .78rem; color: var(--hero-muted); }
.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.dial { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
.dial-art { width: 100%; max-width: 13rem; }
.dial-art svg { width: 100%; display: block; }
.dial figcaption { font-size: .82rem; color: var(--hero-muted); }
.dial figcaption b { display: block; color: var(--hero-fg); font-weight: 500; }
.rtick { stroke: rgba(244, 241, 234, .22); stroke-width: .75; }
.rtick.major { stroke-width: 1.5; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 12; }
.ring-arc { fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round; }
.ring-num { fill: var(--hero-fg); font-family: var(--serif); font-size: 44px; }
.ring-sub { fill: rgba(244, 241, 234, .6); font-size: 10px; letter-spacing: .1em; }
.face { fill: url(#face); stroke: rgba(244, 241, 234, .18); stroke-width: 1.5; }
.danger { fill: rgba(255, 77, 61, .28); }
.ctick { stroke: rgba(244, 241, 234, .55); stroke-width: .8; stroke-linecap: round; }
.ctick.major { stroke-width: 2; }
.ctick.noon { stroke: var(--hot); }
.hour { stroke: var(--hero-fg); stroke-width: 4; stroke-linecap: round; }
.hand { transform-origin: 100px 100px; transform-box: view-box; transform: rotate(var(--deg)); }
.hand line { stroke: var(--hot); stroke-width: 2.5; stroke-linecap: round; }
.pin { fill: var(--hot); }
.clock-num { fill: var(--hero-fg); font-family: var(--serif); font-size: 26px; }
.clock-sub { fill: var(--hot); font-size: 9px; letter-spacing: .12em; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--gap); }
.tile { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--hot)); }
.tile.frozen::before { background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 10px); }
.kicker { margin: 0; font-size: .8rem; color: var(--muted); }
.big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.1rem); line-height: 1; margin: .3rem 0 .25rem; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter .grow { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--hot)); }
.frozen .meter .grow { background: var(--muted); }
.note { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 2.5vw, 1.75rem); min-width: 0; }
.card-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 0; }
.sub { margin: .35rem 0 1.1rem; color: var(--muted); font-size: .92rem; max-width: 46rem; }
.fine { font-size: .82rem; color: var(--muted); margin: .5rem 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--gap); }
.briefing { border-inline-start: 4px solid var(--hot); }
.briefing .card-h { font-size: 1rem; font-family: var(--sans); font-weight: 600; color: var(--muted); }
.briefing-headline { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.2; margin: .4rem 0 .5rem; }
.briefing-body { margin: 0; max-width: 48rem; }

/* forecast table */
.table-wrap { overflow-x: auto; }
.forecasts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.forecasts th { text-align: start; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding: .5rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.forecasts td { padding: .85rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.forecasts tbody tr:hover { background: color-mix(in srgb, var(--hot) 6%, transparent); }
.forecasts .q { font-weight: 500; }
.forecasts .src { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.pill { display: inline-block; font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.chance { display: flex; align-items: center; gap: .75rem; min-width: 10rem; }
.track { flex: 1; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--hot)); box-shadow: 0 0 12px rgba(255, 77, 61, .45); }
.fill.frozen { background: repeating-linear-gradient(45deg, var(--muted) 0 5px, transparent 5px 9px); box-shadow: none; }
.chance .num { min-width: 3.4rem; text-align: end; font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }

/* trend chart */
.trend .grid { stroke: var(--line); }
.trend .axis { fill: var(--muted); font-size: 12px; }
.trend .line { fill: none; stroke: var(--hot); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend .pt { fill: var(--panel); stroke: var(--hot); stroke-width: 2; }
.trend .pt.last { fill: var(--hot); }
.trend .pulse { fill: rgba(255, 77, 61, .25); }
.trend .lbl { fill: var(--fg); font-size: 12px; font-weight: 600; }

/* how to read */
.read-item { display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; margin-bottom: 1rem; }
.ico { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--hot) 12%, transparent); }
.read-item p { margin: 0; font-size: .93rem; }
.read-item strong { display: block; }

/* arsenals */
.stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-bottom: 1rem; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .82rem; color: var(--muted); }
.arsenal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--gap); align-items: center; }
.bubbles { position: relative; min-height: 300px; }
.bubbles svg { width: 100%; display: block; }
.bub { fill: url(#bubGrad); stroke: rgba(255, 255, 255, .35); }
.bub-num { fill: #fff; font-family: var(--serif); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr auto; gap: .75rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.rank .who { white-space: nowrap; }
.rbar { height: 8px; border-radius: 999px; overflow: hidden; }
.rbar .grow { display: block; height: 100%; min-width: 3px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), var(--hot)); }
.rank .num { font-family: var(--serif); text-align: end; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font-size: .8rem; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }

/* places */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--gap); }
.place-col { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; overflow: hidden; }
.place-col::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.place-col.safe::before { background: linear-gradient(90deg, var(--teal), #6fd3a6); }
.place-col.danger::before { background: linear-gradient(90deg, var(--amber), var(--hot)); }
.place-col h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin: 0; }
.col-note { margin: .25rem 0 .75rem; font-size: .85rem; color: var(--muted); }
.place-col ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.place-col li { counter-increment: rank; display: grid; grid-template-columns: 2.1rem 1fr; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.place-col li::before { content: counter(rank); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 600; }
.safe li::before { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.danger li::before { background: color-mix(in srgb, var(--hot) 14%, transparent); color: var(--hot); }
.place-name { font-weight: 600; display: block; }
.place-why { margin: .15rem 0; font-size: .92rem; }
.place-src { font-size: .78rem; color: var(--muted); }
.callout { margin-top: var(--gap); border-radius: var(--r); padding: 1.25rem; color: #1b1405;
  background: linear-gradient(135deg, #ffd27a, var(--amber)); }
.callout h3 { margin: 0 0 .35rem; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.callout p { margin: 0; max-width: 52rem; }

/* timeline */
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.25rem; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i, .tl-dot { width: .75rem; height: .75rem; border-radius: 50%; display: inline-block; }
.k-use { background: var(--hot); } .k-crisis { background: var(--amber); } .k-false_alarm { background: var(--violet); } .k-treaty { background: var(--teal); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: .34rem; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(var(--hot), var(--amber), var(--violet), var(--hot)); opacity: .5; }
.timeline li { position: relative; padding: 0 0 1.4rem; padding-inline-start: 1.9rem; }
.tl-dot { position: absolute; inset-inline-start: 0; top: .3rem; box-shadow: 0 0 0 4px var(--panel); }
.tl-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tl-title { font-family: var(--serif); font-size: 1.2rem; margin: .1rem 0 .2rem; }
.timeline p { margin: 0; color: var(--muted); max-width: 46rem; }
@media (min-width: 52rem) {
  .timeline::before { inset-inline-start: 50%; }
  .timeline li { width: 50%; padding: 0 2rem 1.6rem 0; text-align: end; }
  .timeline li:nth-child(even) { margin-inline-start: 50%; padding: 0 0 1.6rem 2rem; text-align: start; }
  .timeline li .tl-dot { inset-inline-start: auto; inset-inline-end: -.32rem; }
  .timeline li:nth-child(even) .tl-dot { inset-inline-start: -.42rem; inset-inline-end: auto; }
  .timeline li p { margin-inline-start: auto; }
  .timeline li:nth-child(even) p { margin-inline-start: 0; }
}
[dir="rtl"] .timeline li { padding: 0 0 1.4rem; padding-inline-start: 1.9rem; }
@media (min-width: 52rem) {
  [dir="rtl"] .timeline li { padding: 0; padding-inline-end: 2rem; padding-bottom: 1.6rem; }
  [dir="rtl"] .timeline li:nth-child(even) { padding: 0; padding-inline-start: 2rem; padding-bottom: 1.6rem; }
}

/* newsletter */
.newsletter { position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.6); padding: clamp(1.75rem, 5vw, 3rem); color: var(--hero-fg);
  background: radial-gradient(60% 120% at 100% 0%, rgba(255, 77, 61, .35), transparent 60%), var(--hero-bg); }
.newsletter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.05; margin: 0 0 .5rem; }
.newsletter p { color: var(--hero-muted); max-width: 36rem; margin: 0; }
.signup { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; max-width: 34rem; }
.signup input[type=email] { flex: 1 1 14rem; font: inherit; padding: .75rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--hero-fg); }
.signup button { font: inherit; font-weight: 600; padding: .75rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer; color: #111; background: linear-gradient(90deg, var(--amber), var(--hot)); }
.newsletter .fine { color: var(--hero-muted); }
.ad-slot { min-height: 100px; }
.foot { padding-top: 1.5rem; padding-bottom: 3rem; font-size: .85rem; color: var(--muted); }
.foot p { max-width: 52rem; }

/* non-Latin scripts: normal weight serif fallbacks look better at slightly smaller sizes */
body:is(.lang-ar, .lang-hi, .lang-zh, .lang-ja, .lang-ko) .hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.25; }
body.lang-ar { line-height: 1.75; }

@media (max-width: 40rem) {
  .top nav > a:not(.nav-cta) { display: none; }
  .rank li { grid-template-columns: 7.5rem 1fr auto; font-size: .92rem; }
}

/* motion: one load sequence, only for people who haven't asked for less motion */
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.8s ease-out infinite; }
  .anim .ring-arc { animation: ring 1.6s cubic-bezier(.2, .8, .2, 1) both; }
  .anim .hand { animation: hand 1.8s cubic-bezier(.2, .8, .2, 1) both; }
  .anim .grow { animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left center; }
  [dir="rtl"].anim .grow, [dir="rtl"] .anim .grow { transform-origin: right center; }
  .danger, .trend .pulse { animation: glow 3s ease-in-out infinite; }
  .anim .bub { animation: pop .9s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 61, .7); } 70% { box-shadow: 0 0 0 .6rem rgba(255, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); } }
@keyframes ring { from { stroke-dashoffset: var(--len); } }
@keyframes hand { from { transform: rotate(-120deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pop { from { transform: scale(0); } }
