:root {
  --paper: #f7f3ed;
  --cream: #efe9dc;
  --ink: #17231d;
  --green: #52735f;
  --light-green: #aebfb2;
  --map-green: #9eafa3;
  --line: rgba(16, 39, 31, .18);
  --muted: #67786e;
}

* { box-sizing: border-box; }
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; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-shell { overflow: hidden; }
.accent { color: var(--green); }

.topbar {
  height: 86px;
  margin: 0 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 800; letter-spacing: -.055em; }
.brand img { display: block; width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.topbar-edition, .topbar-date, .eyebrow, .section-number, .map-hint, .atlas-footer, .afterword-label, .site-footer p, .site-footer a, .card-label, .card-pin, .brief-kicker, .brief-type, .brief-key, .brief-foot, .source-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.topbar-edition { color: var(--green); }
.topbar-date { justify-self: end; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--green); }

.hero {
  position: relative;
  min-height: 286px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 24px 30px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -175px;
  width: 430px;
  height: 430px;
  border: 1px solid #bbccbf;
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 27px 4px; color: var(--green); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e0e8dd; }
h1 { margin: 0; font-size: clamp(64px, 7vw, 112px); font-weight: 800; letter-spacing: -.083em; line-height: .83; }
h1 em { color: var(--green); font-style: normal; }
.question-mark { display: inline-block; transform: rotate(-11deg) translateY(-2px); transform-origin: center bottom; }
.hero-aside { z-index: 1; align-self: end; display: flex; align-items: start; gap: 11px; width: 205px; flex: 0 0 auto; margin-bottom: 7px; }
.hero-aside p { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 700; letter-spacing: -.045em; }
.hero-aside p span { color: var(--green); }
.sketch-arrow { margin-top: -19px; color: var(--green); font-family: Georgia, serif; font-size: 49px; line-height: 1; transform: rotate(-7deg); }

.atlas { margin: 0 16px 28px; border-top: 1px solid var(--line); }
.atlas-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; min-height: 78px; padding: 14px 8px; }
.section-number { color: var(--green); }
.atlas-title h2 { margin: 5px 0 0; font-size: clamp(25px, 2.7vw, 34px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
.atlas-actions { display: flex; flex-direction: column; align-items: end; gap: 10px; }
.search-field { width: 245px; height: 43px; border: 1px solid var(--line); border-radius: 100px; background: #fffdf9; display: flex; align-items: center; gap: 7px; padding: 0 12px; transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #dce6dc; }
.search-field span { color: var(--green); font-size: 26px; line-height: 1; transform: translateY(-1px); }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.search-field input::placeholder { color: #89978d; }
.sample-countries { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.sample-countries button { padding: 0; border: 0; border-bottom: 1px solid var(--green); background: transparent; color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.sample-countries button:hover { color: var(--ink); border-color: var(--ink); }

.map-shell { position: relative; min-height: 610px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbfaf6; }
.map-stage { position: relative; min-height: 610px; overflow: hidden; background-color: #fbfaf6; background-image: radial-gradient(rgba(23, 35, 29, .1) .7px, transparent .7px); background-size: 9px 9px; }
#world-map { position: absolute; inset: 30px 15px 40px; display: block; width: calc(100% - 30px); height: calc(100% - 70px); overflow: visible; }
.map-watermark { position: absolute; left: 28px; top: 23px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.map-status { position: absolute; top: 50%; left: 37%; transform: translate(-50%, -50%); padding: 11px 15px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 13px; font-weight: 700; }
.map-status[hidden] { display: none; }
.map-compass { position: absolute; left: 28px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--green); font-size: 10px; font-weight: 800; }
.map-compass i { width: 1px; height: 28px; background: var(--green); }
.map-hint { position: absolute; left: 73px; bottom: 32px; color: var(--muted); }
.map-hint span { margin: 0 5px; color: var(--green); }
.country { cursor: pointer; fill: var(--map-green); stroke: #f9f7f1; stroke-width: .65; transition: fill .15s, stroke-width .15s; }
.country:hover, .country:focus-visible { fill: #759383; stroke: var(--paper); stroke-width: 1.2; outline: none; }
.country--verified { fill: #557763; }
.country--active, .country--active:hover, .country--active:focus-visible { fill: var(--ink); stroke: #fdfbf4; stroke-width: 1.5; }
.map-marker { pointer-events: none; fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.map-marker-ring { pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 1.3; opacity: .7; }

.country-card { position: absolute; z-index: 3; top: 28px; right: 28px; width: min(340px, calc(100% - 56px)); max-height: calc(100% - 56px); overflow-y: auto; border: 1px solid var(--ink); background: #fffdfa; box-shadow: 11px 11px 0 rgba(71, 102, 79, .26); scrollbar-width: thin; scrollbar-color: #9cae9f transparent; }
.card-top { position: sticky; top: 0; z-index: 1; height: 52px; padding: 0 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #fffdfa; }
.card-top-left { display: flex; align-items: center; gap: 11px; }
.card-label { color: var(--green); }
.card-pin { padding: 5px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: 8px; }
.card-pin.is-pinned { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.card-close { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 26px; line-height: 1; }
.card-close:hover { color: var(--green); }
.brief { padding: 20px 20px 16px; }
.brief-kicker { margin: 0 0 9px; color: var(--green); }
.brief-title { margin: 0; font-size: clamp(38px, 3.4vw, 56px); line-height: .9; letter-spacing: -.07em; font-weight: 800; }
.brief-title .accent { display: inline-block; transform: rotate(-10deg); }
.brief-type { margin: 14px 0 21px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.brief-leader { padding: 18px 0 17px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.brief-key { margin: 0 0 8px; color: var(--green); font-size: 9px; }
.brief-leader strong { display: block; font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.055em; }
.brief-leader p { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.brief-facts { display: grid; grid-template-columns: 1fr; margin: 0; }
.brief-fact { display: grid; grid-template-columns: 92px 1fr; gap: 9px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brief-fact dt { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brief-fact dd { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; }
.brief-plot { margin: 17px -20px 0; padding: 17px 20px; background: #f0ede5; }
.brief-plot p:last-child { margin: 0; font-size: 14px; line-height: 1.43; font-weight: 700; letter-spacing: -.025em; }
.brief-memory { position: relative; margin: 0 -20px; padding: 17px 43px 18px 20px; border-left: 4px solid var(--green); background: #dce7dc; }
.brief-memory::after { content: "✳"; position: absolute; top: 11px; right: 18px; color: var(--green); font-size: 23px; }
.brief-memory p:last-child { margin: 0; font-size: 15px; line-height: 1.32; font-weight: 800; letter-spacing: -.025em; }
.brief-explainer { margin: 18px -20px 0; padding: 18px 20px; background: #e5ece3; }
.brief-explainer p { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 650; letter-spacing: -.02em; }
.brief-explainer .brief-key { margin-bottom: 8px; }
.brief-history { padding: 16px 0 0; }
.brief-history p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.brief-foot { display: flex; flex-wrap: wrap; gap: 7px; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; line-height: 1.3; }
.brief-foot.is-stale { background: #f4e7dc; color: #99563f; }
.source-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 20px 19px; }
.source-row a { padding-bottom: 3px; border-bottom: 1px solid var(--green); color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.source-row a:hover { color: var(--green); }
.brief-empty { padding-bottom: 26px; }
.brief-empty h3 { margin: 0 0 12px; font-size: 35px; letter-spacing: -.07em; line-height: .97; }
.brief-empty p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.brief-empty .empty-stamp { display: inline-block; margin-top: 17px; padding: 7px 10px; border: 1px solid var(--green); color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; transform: rotate(-3deg); }

.atlas-footer { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.legend { display: flex; align-items: center; gap: 7px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.legend-dot--filled { background: var(--green); }
.legend-dot--empty { margin-left: 11px; border: 1px solid var(--green); }

.afterword { min-height: 310px; display: grid; grid-template-columns: 1fr 2.2fr; gap: 30px; align-items: start; padding: 100px 34px 76px; background: var(--cream); }
.afterword-label { margin: 0; color: var(--green); }
.afterword > p:nth-child(2) { max-width: 860px; margin: -9px 0 0; font-size: clamp(27px, 3.5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.07em; }
.afterword em { color: var(--green); font-style: normal; }
.afterword > a { grid-column: 2; justify-self: start; margin-top: 17px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.afterword > a:hover { color: var(--green); border-color: var(--green); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; min-height: 128px; padding: 24px 34px; background: var(--ink); color: var(--paper); }
.site-footer > span { font-size: 28px; font-weight: 800; letter-spacing: -.07em; }
.site-footer p { margin: 0; justify-self: center; color: #b7c8ba; }
.site-footer a { justify-self: end; }

@media (max-width: 900px) {
  .hero { min-height: 278px; }
  h1 { font-size: clamp(64px, 9vw, 94px); }
  .hero-aside { width: 150px; }
  .hero-aside p { font-size: 16px; }
  .map-shell, .map-stage { min-height: 585px; }
  .country-card { width: 310px; }
}

@media (max-width: 680px) {
  .topbar { height: 68px; margin: 0 13px; grid-template-columns: 1fr auto; }
  .brand { font-size: 21px; gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .topbar-edition { display: none; }
  .topbar-date { font-size: 8px; letter-spacing: .08em; }
  .hero { min-height: 230px; display: block; padding: 35px 18px 23px; }
  .hero::after { right: -250px; top: -120px; }
  .eyebrow { margin: 0 0 29px 1px; font-size: 9px; }
  h1 { font-size: clamp(58px, 13.5vw, 91px); }
  .hero-aside { display: none; }
  .atlas { margin: 0 13px 20px; }
  .atlas-toolbar { display: block; padding: 16px 3px 14px; }
  .atlas-title h2 { font-size: 28px; }
  .atlas-actions { align-items: start; margin-top: 17px; }
  .search-field { width: 100%; }
  .map-shell { min-height: 0; }
  .map-stage { height: 360px; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  #world-map { width: 730px; height: 340px; inset: 10px auto 10px 0; }
  .map-watermark { top: 12px; left: 14px; font-size: 8px; }
  .map-compass { display: none; }
  .map-hint { left: 14px; bottom: 11px; font-size: 8px; }
  .map-status { left: 50%; white-space: nowrap; }
  .country-card { position: relative; top: auto; right: auto; width: 100%; max-height: none; overflow: visible; border-width: 1px 0 0; box-shadow: none; }
  .brief-title { font-size: 46px; }
  .atlas-footer { align-items: start; flex-direction: column; justify-content: center; padding: 10px 2px; line-height: 1.4; }
  .afterword { min-height: 0; display: block; padding: 70px 18px; }
  .afterword > p:nth-child(2) { margin: 30px 0 0; font-size: 33px; }
  .afterword > a { display: inline-block; margin-top: 32px; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 140px; padding: 20px 18px; }
  .site-footer > span { font-size: 23px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: 8px; }
  .site-footer a { font-size: 8px; }
}

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