/*
 * Cadê o Flávio? — a journal page beside a night map.
 * The reading column is newsprint: ink-black serif type, datelines, rules, drop caps and boxed sidebars.
 * The map, its HUD and the timeline stay dark, so the two halves read as page and screen.
 */
:root {
  /* Night (map, HUD, masthead) */
  --bg: #060a17;
  --panel: #0b1229;
  --panel-2: #111a3a;
  --panel-3: #18234b;
  --line: rgba(150, 175, 255, 0.14);
  --line-strong: rgba(150, 175, 255, 0.28);
  --text: #eaf0ff;
  --soft: #d3dbf5;
  --muted: #9ba8cc;
  --faint: #6b779c;

  --blue: #1f7bff;
  --blue-hi: #5fb0ff;
  --blue-deep: #0b3a94;
  --green: #74e01c;
  --green-hi: #b4ff6a;
  --green-deep: #2f7d06;
  --yellow: #ffd23f;
  --orange: #ffa94d;
  --red: #ff5b6b;

  --dot-land: #222c49;
  --dot-br: #2a5a37;
  --dot-ar: #2c3a5c;
  --dot-us: #26406f;

  /* Paper (everything you read) */
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --paper-3: #e6dcc8;
  --ink: #17140f;
  --ink-2: #2c2820;
  --ink-3: #5a5245;
  --ink-4: #8a8171;
  --rule: #d5c9b3;
  --press-red: #b3261e;
  --press-blue: #1c58c7;
  --press-green: #2c7a12;
  --press-amber: #9a6400;
  --highlight: rgba(255, 210, 63, 0.55);

  --story-w: 660px;
  --drawer-w: 460px;
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Inter", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --paper-shadow: 0 24px 60px rgba(23, 20, 15, 0.28);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.62 var(--font-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}

img { max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(23, 20, 15, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--press-red); }
:focus-visible { outline: 2px solid var(--press-red); outline-offset: 2px; border-radius: 4px; }
.mapcol :focus-visible { outline-color: var(--green); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 3000;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 6px;
  font: 700 14px/1 var(--font-body);
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout: the page on the left, the sticky map on the right ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--story-w) minmax(0, 1fr);
  grid-template-areas: "story map";
}

.story {
  grid-area: story;
  min-width: 0;
  position: relative;
  background-color: var(--paper);
  /* A faint newsprint grain */
  background-image: radial-gradient(rgba(23, 20, 15, 0.035) 1px, transparent 1.2px);
  background-size: 4px 4px;
  box-shadow: inset -1px 0 0 var(--rule), inset -5px 0 0 var(--paper-2), inset -6px 0 0 var(--rule);
  padding: 0 0 48px;
}

.story > section,
.story > .masthead__bar { padding-left: 48px; padding-right: 48px; }

.mapcol {
  grid-area: map;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 70% 40%, rgba(31, 123, 255, 0.07), transparent 70%),
    var(--bg);
}

.map { position: absolute; inset: 0; }

/* ---------- Dot map ---------- */

.dm { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.dm.is-dragging { cursor: grabbing; }
.dm__land, .dm__routes { position: absolute; inset: 0; pointer-events: none; }
.dm__pins { position: absolute; inset: 0; pointer-events: none; }

.dm-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dm-route--walk-ghost { stroke: var(--green); stroke-opacity: 0.18; stroke-width: 2; stroke-dasharray: 1 9; }
.dm-route--fly-ghost { stroke: var(--blue-hi); stroke-opacity: 0.18; stroke-width: 2; stroke-dasharray: 8 8; }
.dm-route--walk { stroke: var(--green); stroke-width: 4; stroke-dasharray: 1 10; }
.dm-route--fly-glow { stroke: var(--blue-hi); stroke-opacity: 0.16; stroke-width: 9; }
.dm-route--fly { stroke: var(--blue-hi); stroke-width: 3; stroke-dasharray: 10 8; }
.dm-route--trip { stroke: var(--yellow); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-opacity: 0.9; }
.dm-route--walk, .dm-route--fly, .dm-route--fly-glow, .dm-route--walk-ghost, .dm-route--fly-ghost { transition: stroke-opacity 0.5s; }
.mapcol.is-past .dm-route--walk,
.mapcol.is-past .dm-route--fly { stroke-opacity: 0.16; }
.mapcol.is-past .dm-route--fly-glow,
.mapcol.is-past .dm-route--walk-ghost,
.mapcol.is-past .dm-route--fly-ghost { stroke-opacity: 0; }

.dm-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  pointer-events: none;
  will-change: transform;
}
button.dm-pin { cursor: pointer; }
button.dm-pin .dm-pin__dot,
button.dm-pin .dm-pin__label { pointer-events: auto; }

.dm-pin__dot {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.3s, background 0.3s;
}

.dm-pin__label {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 10, 23, 0.88);
  border: 1px solid var(--line-strong);
  font: 600 12px/1 var(--font-body);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.dm-pin__label--right { left: 18px; }
.dm-pin__label--left { right: 18px; }

/* Place pins: small and quiet until their chapter is on */
.dm-pin--place .dm-pin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 3px rgba(107, 119, 156, 0.18);
}
.dm-pin--place .dm-pin__label { opacity: 0; }
.dm-pin--place.is-on .dm-pin__dot {
  width: 14px;
  height: 14px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.22), 0 0 18px rgba(255, 210, 63, 0.6);
}
.dm-pin--place.is-on .dm-pin__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  animation: ping 2.2s ease-out infinite;
}
.dm-pin--place.is-on .dm-pin__label { opacity: 1; }
.dm-pin--place.is-quiet .dm-pin__label { opacity: 0; }

/* Escape stops: numbered glossy pins like the logo */
.dm-pin--stop .dm-pin__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 800 18px/1 var(--font-display);
  color: #fff;
  background: radial-gradient(circle at 32% 28%, var(--blue-hi), var(--blue) 55%, var(--blue-deep));
  border: 3px solid #072a72;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.dm-pin--stop:hover .dm-pin__dot { transform: translate(-50%, -50%) scale(1.12); }
.dm-pin--q .dm-pin__dot {
  background: radial-gradient(circle at 32% 28%, var(--green-hi), var(--green) 55%, var(--green-deep));
  border-color: #1d5404;
  font-size: 22px;
}
.dm-pin--ghost .dm-pin__dot {
  width: 28px;
  height: 28px;
  font-size: 15px;
  background: rgba(17, 26, 58, 0.85);
  border: 2px dashed var(--faint);
  color: var(--muted);
  box-shadow: none;
}
.dm-pin--ghost .dm-pin__label { color: var(--muted); border-style: dashed; }
.dm-pin--stop.is-pending .dm-pin__dot { filter: saturate(0.25) brightness(0.7); }
.dm-pin--stop.is-reached .dm-pin__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--blue-hi);
  animation: ping 2.2s ease-out infinite;
}
.dm-pin--q.is-reached .dm-pin__dot::after { border-color: var(--green-hi); }
.dm-pin--stop.is-active .dm-pin__dot { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, 0.55); }
.dm-pin.is-hot .dm-pin__label { background: var(--green); border-color: var(--green-hi); color: #0b2a03; }

/* While the story is in the past, the escape layer steps back */
.dm-pin--stop { transition: opacity 0.4s; }
.mapcol.is-past .dm-pin--stop { opacity: 0.3; }
.mapcol.is-past .dm-pin--stop .dm-pin__label { opacity: 0; }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}

/* Movers */
.dm-mover {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}
.runner {
  position: absolute;
  left: -22px;
  top: -40px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.runner__body {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  animation: bob 0.32s ease-in-out infinite alternate;
}
.runner__dust {
  position: absolute;
  right: -10px;
  bottom: 4px;
  font-size: 16px;
  animation: puff 0.6s ease-out infinite;
}
.runner.is-flipped { transform: scaleX(-1); }
@keyframes bob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-5px) rotate(4deg); }
}
@keyframes puff {
  from { transform: translateX(0) scale(0.8); opacity: 0.9; }
  to { transform: translateX(8px) scale(1.15); opacity: 0; }
}
.jet {
  position: absolute;
  left: -23px;
  top: -23px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.jet svg {
  width: 38px;
  height: 38px;
  fill: #fff;
  filter: drop-shadow(0 0 6px rgba(95, 176, 255, 0.95)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

/* ---------- Map HUD ---------- */

.mapbrand {
  display: none;
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 20;
  width: 120px;
}
.mapbrand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }

.when {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.when__year {
  font: 800 76px/0.9 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, var(--blue-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.when__year.is-rewinding { animation: rewind 0.25s steps(2) infinite; }
@keyframes rewind {
  0% { transform: translateX(0); }
  50% { transform: translateX(-3px) skewX(-6deg); }
}
.when__meta {
  margin-top: 6px;
  max-width: 340px;
  font: 600 13px/1.35 var(--font-body);
  color: var(--soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.mapctl {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 18, 41, 0.9);
  box-shadow: var(--shadow);
  transition: right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mapctl button {
  width: 34px;
  height: 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: 600 17px/1 var(--font-body);
  cursor: pointer;
}
.mapctl button:last-child { border-bottom: 0; }
.mapctl button:hover { background: var(--panel-3); }
body.has-drawer .mapctl { right: calc(var(--drawer-w) + 32px); }

/* Language switch */
/* Share + language, top right of the map */
.hudtools {
  position: absolute;
  top: 16px;
  right: 62px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Desktop with the drawer open: only a strip of map is left, so the tools move under the year */
@media (min-width: 1024px) {
  body.has-drawer .hudtools { right: auto; left: 26px; top: 136px; }
  body.has-drawer .hudshare span { display: none; }
  body.has-drawer .when__meta { max-width: 200px; }
  body.has-drawer .scrub__tick.is-minor { display: none; }
  body.has-drawer .mapctl { display: none; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  body.has-drawer .scrub { display: none; }
}

.hudshare {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 18, 41, 0.9);
  color: var(--text);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s;
}
.hudshare:hover { background: var(--panel-3); border-color: var(--green); }
.hudshare svg { width: 16px; height: 16px; fill: currentColor; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(11, 18, 41, 0.9);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.lang button {
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--green); color: #0b2a03; }
.lang button.is-suggested { animation: suggest 1.6s ease-in-out 3; color: #fff; }
@keyframes suggest {
  0%, 100% { box-shadow: 0 0 0 0 rgba(116, 224, 28, 0); }
  50% { box-shadow: 0 0 0 4px rgba(116, 224, 28, 0.45); }
}

/* Timeline under the map: a slider from the start of the career to now */
.scrub {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 10px 6px;
  border-radius: 14px;
  background: rgba(11, 18, 41, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.has-drawer .scrub { right: calc(var(--drawer-w) + 32px); }

.scrub__main { flex: 1; min-width: 0; }

.scrub__label {
  margin: 0 4px 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 12.5px/1.4 var(--font-body);
  color: var(--soft);
}
.scrub__label b { margin-right: 8px; font: 700 12px/1 var(--font-mono); color: var(--yellow); }
.scrub__label.is-preview { color: #fff; }

.scrub__step {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  padding: 0 0 2px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font: 700 21px/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.scrub__step:hover:not(:disabled) { background: var(--panel-3); border-color: var(--blue-hi); }
.scrub__step:disabled { opacity: 0.3; cursor: default; }

.scrub__track {
  position: relative;
  height: 34px;
  margin: 0 8px;
  cursor: pointer;
  touch-action: none;
  border-radius: 8px;
}
.scrub__track:focus-visible { outline-offset: 3px; }
.scrub__track.is-dragging { cursor: grabbing; }
.scrub__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.scrub__fill {
  position: absolute;
  top: 10px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  border-radius: 2px;
  transition: width 0.35s ease;
}
.scrub__tick {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  font: 500 10px/1 var(--font-mono);
  color: var(--faint);
  pointer-events: none;
}
.scrub__dot {
  position: absolute;
  top: 6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  background: var(--muted);
  pointer-events: none;
  transition: transform 0.2s, background 0.2s;
}
.scrub__dot--now { background: var(--green); }
.scrub__dot.is-on { background: var(--yellow); }
.scrub__dot.is-preview { background: #fff; transform: scale(1.4); }
.scrub__thumb {
  position: absolute;
  top: 3px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.25), 0 0 14px rgba(255, 210, 63, 0.6);
  pointer-events: none;
  transition: left 0.35s ease;
}
.scrub__track.is-dragging .scrub__thumb,
.scrub__track.is-dragging .scrub__fill { transition: none; }


/* ---------- Shared type pieces ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font: 800 11.5px/1.2 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--press-red);
}

.live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--press-red);
  animation: live 1.6s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(179, 38, 30, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0); }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 6px;
  font: 800 12px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--ink); }

.ornament {
  margin: 34px 0;
  text-align: center;
  font: 400 20px/1 var(--font-display);
  letter-spacing: 0.6em;
  color: var(--ink-4);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 13.5px/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn--go { background: var(--ink); color: var(--paper); }
.btn--go:hover { background: var(--press-red); border-color: var(--press-red); color: #fff; }
.btn--small { padding: 7px 13px; font-size: 12.5px; }

/* ---------- Masthead ---------- */

.masthead {
  position: relative;
  padding: 34px 48px 26px;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(31, 123, 255, 0.22), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(116, 224, 28, 0.12), transparent 60%),
    var(--bg);
  text-align: center;
}
.masthead__title { margin: 0; font: inherit; }
.masthead__logo { display: inline-block; }
.masthead__logo img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 26px rgba(31, 123, 255, 0.35));
}
.masthead__tagline {
  display: block;
  margin-top: 12px;
  font: italic 500 20px/1.3 var(--font-serif);
  color: var(--soft);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 0 48px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font: 700 11px/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.masthead__bar > span { white-space: nowrap; }
.masthead__bar > span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--ink-3); }
.masthead__bar .btn { padding: 6px 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border-width: 1.5px; }

/* ---------- Front page ---------- */

.front { padding-top: 30px; }

.front__headline {
  margin: 0;
  font: 800 46px/1.03 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.front__deck {
  margin: 14px 0 0;
  font: italic 400 21px/1.45 var(--font-serif);
  color: var(--ink-3);
  text-wrap: pretty;
}

.front__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: baseline;
  margin: 22px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.front__place { font: 800 26px/1.1 var(--font-display); }
.front__clock { font: 500 14px/1.35 var(--font-body); color: var(--ink-3); }
.front__clock b {
  display: block;
  font: 800 22px/1.1 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--press-red);
}

.front__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* The four stops, as a numbered sidebar */
.stops { list-style: none; margin: 0; padding: 0; }
.stops li { border-bottom: 1px solid var(--rule); }
.stop {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 14px;
  width: 100%;
  padding: 16px 4px 16px 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.stop:hover { background: var(--paper-2); }
.stop.is-active { background: var(--paper-3); }
.stop__num {
  grid-row: span 4;
  font: 800 44px/0.9 var(--font-display);
  color: var(--press-blue);
  text-align: center;
}
.stop__num--q { color: var(--press-green); }
.stop__place { font: 700 20px/1.2 var(--font-display); }
.stop__when { font: 700 11px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.stop__teaser { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.stop .badge { justify-self: start; margin-top: 4px; }

/* "Is he a fugitive?" */
.explain {
  margin: 34px 0 0;
  padding: 20px 22px 18px;
  background: var(--paper-2);
  border-top: 4px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.explain h3 { margin: 0 0 8px; font: 800 24px/1.15 var(--font-display); }
.explain p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.explain .explain__src { margin: 0; font: 500 12.5px/1.6 var(--font-body); color: var(--ink-4); }
.explain .explain__src a { color: var(--ink-3); }

.hook { margin: 44px 0 0; padding: 30px 0 6px; text-align: center; border-top: 3px double var(--ink); }
.hook__lead { margin: 0; font: italic 400 21px/1.4 var(--font-serif); color: var(--ink-3); }
.hook__big { margin: 6px 0 14px; font: 900 50px/1 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.hook__big span { color: var(--press-red); }
.hook__text { margin: 0 auto 22px; max-width: 34em; font-size: 18px; color: var(--ink-2); }

/* ---------- Chapters ---------- */

.chapters { position: relative; margin-top: 34px; padding-left: 0 !important; padding-right: 0 !important; }
.year { position: relative; }

.era {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0 0 6px;
  padding: 14px 48px 10px;
  font: inherit;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 1px 0 var(--paper), 0 4px 0 var(--paper), 0 5px 0 var(--rule);
}
.era__year { font: 900 44px/0.95 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.era__role { font: 700 11.5px/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.ch {
  position: relative;
  padding: 26px 48px 30px;
  scroll-margin-top: 80px;
}
.ch + .ch { border-top: 1px solid var(--rule); }
.ch::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule);
  transition: background 0.3s, box-shadow 0.3s;
}
.ch.is-on::before { background: var(--press-red); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.15); }

.ch__dateline {
  margin: 0 0 8px;
  font: 800 11.5px/1.4 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--press-red);
}
.ch__dateline span { color: var(--ink-4); }
.ch__title {
  margin: 0;
  font: 800 34px/1.06 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.ch__deck {
  margin: 10px 0 18px;
  font: italic 400 18px/1.4 var(--font-serif);
  color: var(--ink-3);
}
.ch__deck b { font-style: normal; font-weight: 600; color: var(--ink-2); }

.ch__photo { margin: 0 0 18px; }
.ch__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 22%;
  background: var(--paper-3);
  filter: saturate(0.92) contrast(1.02);
}
.ch__photo figcaption {
  margin-top: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font: 500 12.5px/1.45 var(--font-body);
  color: var(--ink-3);
}
.ch__photo figcaption a { color: var(--ink-4); }
.ch__photo--portrait { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: end; }
.ch__photo--portrait img { aspect-ratio: 3 / 4; object-position: center top; }
.ch__photo--portrait figcaption { margin: 0; }

.ch__body p { margin: 0 0 14px; color: var(--ink-2); text-wrap: pretty; }
.ch__body > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font: 900 3.6em/0.78 var(--font-display);
  color: var(--press-red);
}

.quote {
  margin: 22px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--ink);
}
.quote p {
  margin: 0;
  font: italic 600 24px/1.3 var(--font-display);
  color: var(--ink);
  text-wrap: balance;
}
.quote p::before { content: "“"; color: var(--press-red); }
.quote p::after { content: "”"; color: var(--press-red); }
.quote footer { margin-top: 8px; font: 600 12.5px/1.45 var(--font-body); color: var(--ink-3); }
.quote footer a { color: var(--ink-4); }

/* Sidebar box: the investigations of the period */
.box {
  margin: 22px 0 6px;
  padding: 16px 20px 6px;
  background: var(--paper-2);
  border-top: 4px solid var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.box__h { margin: 0 0 4px; font: 800 12px/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.probes { list-style: none; margin: 0; padding: 0; }
.probe { padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.probe:first-child { border-top: 0; }
.probe__top { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.probe__title { margin: 0; font: 700 19px/1.25 var(--font-display); }
.probe p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.probe .reply { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--rule); font-style: italic; color: var(--ink-3); }
.probe .reply strong { font: 700 11px/1 var(--font-body); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

.ch__h { margin: 20px 0 8px; font: 800 11.5px/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13.5px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.person:hover { border-color: var(--ink); background: #fffdf8; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--thread, #8a8171) 70%, #17140f);
  color: #fff;
  font: 800 11px/1 var(--font-body);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--thread, var(--rule));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(0.15); }
.avatar--lg { width: 84px; height: 84px; font-size: 26px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--thread, var(--rule)); }

.cites { display: inline; font: 500 12.5px/1.6 var(--font-body); color: var(--ink-4); }
.cites a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--rule); }
.cites a:hover { color: var(--press-red); border-color: var(--press-red); }
.cites a + a::before { content: " · "; color: var(--ink-4); border: 0; }
.probe .cites, .d-events .cites { display: block; margin-top: 6px; }

.ch__sources { margin: 16px 0 0; font: 500 12.5px/1.6 var(--font-body); color: var(--ink-4); }
.ch__sources b { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; color: var(--ink-3); margin-right: 6px; }

.ch__foot { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Status of a case, printed like a stamp */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 10.5px/1.3 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.badge::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
.badge--ok { color: var(--press-green); }
.badge--warn { color: var(--press-amber); }
.badge--info { color: var(--press-blue); }
.badge--bad { color: var(--press-red); }
.badge--closed { color: var(--ink-3); }
.badge--ghost { color: var(--ink-4); }
.badge--ghost::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* Where it all began */
.origin {
  margin-top: 6px;
  padding: 26px 24px 24px;
  background: var(--ink);
  color: var(--paper);
}
.origin .eyebrow { color: var(--yellow); }
.origin h3 { margin: 0 0 6px; font: 800 34px/1.06 var(--font-display); color: #fff; }
.origin .ch__deck { color: rgba(246, 241, 231, 0.7); }
.origin .ch__deck b { color: #fff; }
.origin .ch__body p { color: rgba(246, 241, 231, 0.9); }
.origin .ch__body > p:first-child::first-letter { color: var(--yellow); }
.origin .ch__photo figcaption { color: rgba(246, 241, 231, 0.6); border-color: rgba(246, 241, 231, 0.2); }
.origin .ch__photo figcaption a { color: rgba(246, 241, 231, 0.7); }
.origin .ch__h, .origin .ch__sources, .origin .ch__sources b { color: rgba(246, 241, 231, 0.65); }
.origin .cites a { color: rgba(246, 241, 231, 0.85); border-color: rgba(246, 241, 231, 0.3); }
.origin .person { background: transparent; color: #fff; border-color: rgba(246, 241, 231, 0.3); }
.origin .btn { border-color: var(--paper); color: var(--paper); }
.origin .btn--go { background: var(--paper); color: var(--ink); }
.origin .btn--go:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.origin__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Blocks after the chapters ---------- */

.block { margin-top: 56px; scroll-margin-top: 20px; }
.eyebrow { margin: 0 0 8px; font: 800 11.5px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--press-red); }
.block__h { margin: 0 0 10px; padding-top: 14px; border-top: 3px double var(--ink); font: 800 34px/1.05 var(--font-display); letter-spacing: -0.015em; }
.block__lead { margin: 0 0 18px; color: var(--ink-2); }

.net {
  position: relative;
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--rule);
  overflow: hidden;
}
.net svg { display: block; width: 100%; height: auto; }
/* Thread colours are tuned for the night map; on paper they are mixed with ink to stay readable */
.net__edge { stroke: color-mix(in srgb, var(--c) 75%, #17140f); stroke-width: 2; stroke-opacity: 0.7; fill: none; }
.net__tie { stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 3 5; fill: none; }
.net__group { fill: color-mix(in srgb, var(--c) 55%, #17140f); font: 800 11px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; text-anchor: middle; }
.net__node { cursor: pointer; }
.net__node .ring { fill: #fffdf8; stroke: color-mix(in srgb, var(--c) 80%, #17140f); stroke-width: 3; transition: stroke 0.2s; }
.net__node .ini-bg { fill: color-mix(in srgb, var(--c) 70%, #17140f); }
.net__node .name { font: 600 15px var(--font-body); fill: var(--ink); }
.net__node .ini { font: 800 14px var(--font-body); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.net__node:hover .ring, .net__node:focus-visible .ring { stroke: var(--ink); }
.net__node:focus { outline: none; }
.net__hub { fill: #fffdf8; stroke: var(--ink); stroke-width: 4; }
.net__center .name { font: 800 20px var(--font-display); fill: var(--ink); }

.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.legend li { display: grid; gap: 7px; }
.legend__name { display: inline-flex; align-items: center; gap: 8px; font: 800 11px/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.legend i { width: 18px; height: 3px; background: color-mix(in srgb, var(--c) 75%, #17140f); }

.reactions { display: grid; }
.reaction { padding: 16px 0; border-top: 1px solid var(--rule); }
.reaction:first-child { border-top: 0; padding-top: 4px; }
.reaction__who { font: 800 19px/1.2 var(--font-display); }
.reaction__role { font: 700 11px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.reaction__q { margin: 8px 0 0; font: italic 600 22px/1.3 var(--font-display); }
.reaction__q::before { content: "“"; color: var(--press-red); }
.reaction__q::after { content: "”"; color: var(--press-red); }
.reaction__note { margin: 6px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.reaction__note a { font: 600 12.5px var(--font-body); color: var(--ink-3); }

.sources { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.sources li { break-inside: avoid; }
.sources a { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); font: 500 13.5px/1.35 var(--font-body); }
.sources a:hover .src__title { color: var(--press-red); }
.src__outlet { display: block; font: 800 10.5px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.src__date { color: var(--ink-4); font-weight: 600; letter-spacing: 0; text-transform: none; }

.foot { margin-top: 30px; padding-top: 16px; border-top: 3px double var(--ink); font: 500 13px/1.6 var(--font-body); color: var(--ink-3); }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink-2); }

/* ---------- Drawer (stop and person details) ---------- */

.drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  width: min(var(--drawer-w), calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 15, 0.035) 1px, transparent 1.2px);
  background-size: 4px 4px;
  color: var(--ink);
  border-top: 5px solid var(--ink);
  box-shadow: var(--paper-shadow), 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translateX(calc(100% + 32px));
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.45s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.drawer__grip { display: none; }
.drawer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.drawer__close:hover { background: var(--ink); color: var(--paper); }
.drawer__close svg { width: 18px; height: 18px; fill: currentColor; }
.drawer__body { overflow-y: auto; padding: 24px 26px 28px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }

.d-kicker { display: flex; align-items: center; gap: 10px; margin: 0 48px 12px 0; font: 800 11px/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--press-red); }
.d-kicker .num { font: 900 30px/1 var(--font-display); color: var(--press-blue); letter-spacing: 0; }
.d-kicker .num--q { color: var(--press-green); }
.d-title { margin: 0; font: 800 34px/1.05 var(--font-display); letter-spacing: -0.015em; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 16px; font: italic 400 17px/1.4 var(--font-serif); color: var(--ink-3); }
.d-summary { margin: 0 0 16px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.d-h { margin: 24px 0 10px; padding-top: 10px; border-top: 1px solid var(--ink); font: 800 11.5px/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.d-person { display: flex; align-items: center; gap: 16px; margin: 0 48px 8px 0; }
.d-person .d-title { font-size: 28px; }
.d-credit { margin: 0 0 12px; font: 500 11.5px/1.4 var(--font-body); color: var(--ink-4); }
.d-credit a { color: var(--ink-3); }

.d-events { list-style: none; margin: 0; padding: 0; }
.d-events li { position: relative; padding: 0 0 16px 20px; border-left: 1px solid var(--rule); margin-left: 4px; }
.d-events li:last-child { padding-bottom: 2px; }
.d-events li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--press-red); box-shadow: 0 0 0 3px var(--paper); }
.d-events time { display: block; margin-bottom: 2px; font: 800 11px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--press-red); }
.d-events p { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }

.news { list-style: none; margin: 0; padding: 0; }
.news a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.news a:hover .headline { color: var(--press-red); }
.news .outlet { display: flex; justify-content: space-between; gap: 8px; font: 800 10.5px/1.4 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.news .outlet time { color: var(--ink-4); font-weight: 600; letter-spacing: 0; text-transform: none; }
.news .headline { display: block; margin-top: 2px; font: 600 17px/1.3 var(--font-display); }

.d-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 24px; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; }
.d-links .btn { text-align: left; }
.d-share { margin-top: 20px; }

/* ---------- Share sheet ---------- */

.sharesheet {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-top: 5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--paper-shadow);
  overflow: auto;
}
.sharesheet::backdrop { background: rgba(6, 10, 23, 0.72); backdrop-filter: blur(4px); }
.sharesheet__inner { position: relative; padding: 22px 24px 24px; }
.sharesheet__title { margin: 0 44px 14px 0; font: 800 26px/1.1 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.sharesheet__img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--paper-3); box-shadow: 0 0 0 1px var(--rule); }
.sharesheet__nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 0; }
.net-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  border: 1px solid var(--rule);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  font: 700 12px/1.1 var(--font-body);
  transition: border-color 0.18s, transform 0.15s;
}
.net-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.net-btn svg { width: 26px; height: 26px; fill: var(--brand, var(--ink)); }
.sharesheet__copy { display: flex; gap: 8px; margin: 14px 0 0; }
.sharesheet__copy input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fffdf8;
  color: var(--ink-2);
  font: 500 13.5px/1 var(--font-body);
}
.sharesheet__more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sharesheet__more .btn { flex: 1; justify-content: center; }
.sharesheet__close { position: absolute; top: 14px; right: 14px; }

/* ---------- 404 ---------- */

.notfound { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px; text-align: center; background: var(--bg); color: var(--text); }
.notfound__box img { width: min(360px, 80vw); height: auto; }
.notfound__box h1 { margin: 18px 0 4px; font: 800 34px/1.1 var(--font-display); }
.notfound__box p { margin: 0 0 6px; color: var(--muted); font-family: var(--font-body); }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px !important; }
.notfound .btn { border-color: var(--text); color: var(--text); }
.notfound .btn--go { background: var(--text); color: var(--bg); }

/* ---------- Medium desktop ---------- */

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --story-w: 540px; --drawer-w: 420px; }
  .story > section, .masthead { padding-left: 36px; padding-right: 36px; }
  .masthead__bar { margin: 0 36px; }
  .era, .ch { padding-left: 36px; padding-right: 36px; }
  .ch::before { left: 16px; }
  .when__year { font-size: 60px; }
  .front__headline { font-size: 40px; }
}

/* ---------- Mobile / tablet: map on top, page below ---------- */

@media (max-width: 1023px) {
  body { font-size: 18px; }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "map" "story";
  }

  .mapcol {
    --map-h: max(40svh, 260px);
    height: 40vh;
    height: var(--map-h);
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .story { box-shadow: none; }
  .story > section { padding-left: 20px; padding-right: 20px; }

  .mapbrand { display: block; }
  .when { top: 10px; left: auto; right: 14px; align-items: flex-end; text-align: right; }
  .when__year { font-size: 38px; }
  .when__meta { margin-top: 2px; font-size: 11px; max-width: 200px; }

  /* Touch scrolls the page instead of panning, so the zoom buttons would only half work */
  .mapctl { display: none; }
  .hudtools { top: 72px; right: auto; left: 12px; gap: 6px; }
  body.has-drawer .hudtools { right: auto; }
  .hudshare { height: 30px; padding: 0 10px; font-size: 10.5px; }
  .hudshare span { display: none; }
  .lang button { min-width: 34px; height: 26px; padding: 0 8px; font-size: 11px; }
  body.has-drawer .scrub { right: 10px; }

  .scrub { left: 8px; right: 8px; bottom: 8px; gap: 4px; padding: 5px 6px 3px; border-radius: 12px; }
  .scrub__label { margin: 0 2px 1px; font-size: 11px; }
  .scrub__label b { font-size: 11px; margin-right: 6px; }
  .scrub__step { width: 28px; height: 28px; margin-bottom: 3px; font-size: 18px; }
  .scrub__track { height: 30px; margin: 0 6px; }
  .scrub__tick { font-size: 9px; }

  .masthead { padding: 18px 20px 16px; }
  .masthead__logo { display: none; }
  .masthead__tagline { margin-top: 0; font-size: 18px; }
  .masthead__bar { margin: 0 20px; gap: 8px; font-size: 10px; letter-spacing: 0.08em; }
  .masthead__bar > span:nth-child(2) { display: none; }
  .masthead__bar .btn { margin-left: auto; }

  .front { padding-top: 22px; }
  .front__headline { font-size: 34px; }
  .front__deck { font-size: 19px; }
  .front__place { font-size: 22px; }
  .hook__big { font-size: 38px; }

  .era {
    top: max(40svh, 260px);
    padding: 10px 20px 8px;
  }
  .era__year { font-size: 32px; }
  .ch { padding: 22px 20px 26px 30px; scroll-margin-top: calc(max(40svh, 260px) + 64px); }
  .ch::before { left: 12px; top: 30px; }
  .ch__title { font-size: 28px; }
  .quote p { font-size: 21px; }
  .origin { margin-left: -10px; margin-right: -10px; padding: 22px 18px; }
  .origin h3 { font-size: 28px; }
  .block { scroll-margin-top: calc(max(40svh, 260px) + 12px); }
  .block__h { font-size: 28px; }
  .sources { columns: 1; }

  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 82vh;
    max-height: 82svh;
    transform: translateY(105%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer.is-open { transform: none; }
  .drawer__grip { display: block; width: 44px; height: 5px; margin: 8px auto 0; border-radius: 999px; background: var(--rule); flex: none; }
  .drawer__body { padding: 12px 20px 26px; }
  .d-title { font-size: 28px; }

  .sharesheet { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .sharesheet__nets { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .scrub__tick.is-minor { display: none; }
  .front__headline { font-size: 30px; }
  .front__meta { grid-template-columns: 1fr; }
  .ch__photo--portrait { grid-template-columns: 104px 1fr; }
  .net-btn { font-size: 11px; }
}

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