/* Layout: a nautical chart. Water labels in italic serif, land labels in wide caps, numbers set like soundings. */
:root {
  color-scheme: light;
  --deep: #f7fafb;
  --shoal: #d3e6ee;
  --shoal-2: #e7f1f5;
  --land: #f8d04a;
  --yellow: #f6c400;
  --ink: #10243a;
  --muted: #4b6273;
  --rule: #c5d3da;
  --magenta: #b3126f;
  --night: #0d1824;
  --on-night: #f0f5f7;
  --on-night-muted: #a6b9c4;
  --story: "Spectral", Georgia, "Times New Roman", serif;
  --ui: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--ink); font: 400 1.0625rem/1.55 var(--ui); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus, var(--magenta)); outline-offset: 2px; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.land-label { font: 500 .6875rem/1.3 var(--ui); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; }
.water { font-family: var(--story); font-weight: 200; font-style: italic; letter-spacing: -.005em; }
.sounding { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: .05rem .4rem; border: 1px dashed currentColor; border-radius: 2px; font: 500 .6875rem/1.4 var(--ui); letter-spacing: 0; text-transform: none; white-space: nowrap; }

.btn { display: inline-block; padding: .72rem 1.1rem; border: 1px solid transparent; border-radius: 2px; font: 600 .9375rem/1.2 var(--ui); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-magenta { background: var(--magenta); color: #fff; }
.btn-magenta:hover { background: #8f0e59; }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--deep); }
.btn-ink { background: var(--ink); color: var(--deep); }
.btn-ink:hover { background: #1c3a58; }

/* Dark surfaces (header, book band, work, footer) share one night tone; focus rings there turn yellow */
.site-head, .great, .work, .site-foot { --focus: var(--yellow); }

/* Header */
/* Night bar like Nemi's paintwork: yellow serpent emblem, a slanted stroke and the wordmark in the site's
   own Archivo, expanded and italic but only semibold, with TODAY in the logo yellow */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); color: var(--on-night); border-bottom: 1px solid rgb(240 245 247 / .1); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; width: auto; height: 50px; transition: transform .35s ease; }
.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.05); }
.brand-bar { flex: none; width: 2px; height: 30px; background: var(--yellow); transform: skewX(-16deg); }
.brand-word { font: italic 500 1.375rem/1 var(--ui); font-stretch: 110%; letter-spacing: .015em; text-transform: uppercase; }
.brand-word span { color: var(--yellow); }
@media (max-width: 420px) { .brand { gap: .5rem; } .brand-mark { height: 42px; } .brand-bar { height: 24px; } .brand-word { font-size: 1rem; letter-spacing: .01em; } }
@media (max-width: 350px) { .brand { gap: .4rem; } .brand-mark { height: 38px; } .brand-word { font-size: .9375rem; } }
#site-nav ul { display: flex; gap: 1.75rem; }
#site-nav a { color: var(--on-night); font-weight: 500; font-size: .9375rem; text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
#site-nav a:hover { color: #fff; border-bottom-color: var(--yellow); }
.menu-btn { display: none; padding: .4rem .75rem; border: 1px solid rgb(240 245 247 / .45); border-radius: 2px; background: none; color: var(--on-night); font: 600 .875rem/1.2 var(--ui); cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--yellow); }

/* Chart hero */
.chart { background: #fff; }
.chart-inner { position: relative; width: 100%; max-width: 1400px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
/* Hero top: headline in Sora (light lead-in, bold core), then a short introduction of Christoph with
   portrait, the two main buttons and his last position, all above the map */
.hero-top { padding-top: clamp(1.25rem, 2.4vw, 2rem); }
.hero-title { font: 600 clamp(1.625rem, 3.4vw, 2.75rem)/1.12 "Sora", var(--ui); letter-spacing: -.02em; }
.hero-title span { font-weight: 300; color: var(--muted); }
.hero-about { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .9rem 1.5rem; margin-top: 1rem; }
.hero-portrait { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow); }
.hero-intro { max-width: 62ch; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.hero-intro strong { font-weight: 600; color: var(--ink); }
.hero-intro a { font-weight: 600; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero-intro a:hover { color: var(--magenta); }
.hero-log { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid var(--rule); color: var(--ink); }
/* The map spans the full width of the hero, edge to edge */
.map-wrap { position: relative; margin: clamp(1rem, 2vw, 1.5rem) auto 0; }
#map { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 640; overflow: hidden; }
.map-fallback { padding: 3rem 0; font: italic 400 1.25rem/1.4 var(--story); }
/* Colors per country come from the previous homepage map; grey means not visited yet */
.land { fill: #e3e3e3; stroke: #fff; stroke-width: .35px; vector-effect: non-scaling-stroke; transition: fill .35s; }
.land.on { fill: var(--c); }
.land[data-k] { cursor: pointer; }
.land[data-k]:hover { stroke: var(--ink); stroke-width: 1.2px; }
#hop-now { fill: none; stroke: var(--magenta); stroke-width: 1.8px; vector-effect: non-scaling-stroke; pointer-events: none; }
#dot-now { fill: var(--magenta); stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
#today-pin circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
#today-pin text { font: 600 9.5px var(--ui); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; }
.map-tip { position: absolute; z-index: 5; max-width: 16rem; padding: .4rem .6rem; background: #fff; color: var(--ink); border: 1px solid #c8c8c8; box-shadow: 0 1px 4px rgb(0 0 0 / .18); font-size: .8125rem; line-height: 1.35; pointer-events: none; }
.map-tip strong { display: block; font-weight: 700; }
.map-tip span { display: block; }
.map-tip em { display: block; margin-top: .15rem; font-style: normal; color: var(--magenta); }
/* Stories of one country, opened by a click on the map */
.map-stories { padding: .85rem 0 1rem; border-top: 1px solid rgb(16 36 58 / .22); }
.map-stories-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.map-stories-head .land-label { color: var(--magenta); }
.map-stories-close { border: 0; background: none; color: var(--ink); font-size: 1.6rem; line-height: 1; padding: .1rem .45rem; cursor: pointer; }
.map-stories ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .6rem 1.75rem; }
.map-stories li a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.3; }
.map-stories li a:hover { color: var(--magenta); text-decoration: underline; }
.map-stories li span { display: block; margin-top: .1rem; font-size: .75rem; color: var(--muted); }

.c-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.c-cta .btn { padding: .6rem .9rem; font-size: .875rem; }
.position { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.position dt { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; color: var(--muted); }
.position dd { margin-top: .2rem; font: 400 1rem/1.3 var(--story); }
.position .sounding { display: block; font-size: .75rem; color: var(--muted); }
@media (max-width: 1180px) {
  .hero-about { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hero-about .hero-intro { grid-column: 2 / -1; }
  .hero-about .c-cta { grid-column: 2; }
  .hero-about .position { grid-column: 3; }
}
@media (max-width: 640px) {
  .hero-about { grid-template-columns: auto minmax(0, 1fr); }
  .hero-portrait { width: 56px; height: 56px; align-self: start; }
  .hero-about .c-cta { grid-column: 1 / -1; }
  .hero-about .position { grid-column: 1 / -1; padding: .7rem 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}

.scrub { display: grid; grid-template-columns: auto 17rem minmax(0, 1fr); align-items: center; gap: .5rem 1.5rem; padding-block: .9rem 1.1rem; border-top: 1px solid rgb(16 36 58 / .22); }
.readout { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 .7rem; min-width: 0; }
#ro-n { font: 500 1.875rem/1 var(--mono); letter-spacing: -.02em; }
#ro-name { font: italic 400 1.0625rem/1.15 var(--story); }
#ro-year { display: block; font: 400 .75rem/1.3 var(--mono); color: var(--muted); }
.scrub-track { min-width: 0; }
#scrub { display: block; width: 100%; height: 26px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
#scrub::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
#scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border: 3px solid var(--deep); border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
#scrub::-moz-range-track { height: 2px; background: var(--ink); }
#scrub::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--deep); border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.ticks { position: relative; height: 1rem; font: 400 .6875rem/1 var(--mono); color: var(--muted); }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ticks span:first-child { transform: none; }
.scrub-note { margin-top: .35rem; font-size: .75rem; line-height: 1.3; color: var(--muted); }

/* Sections */
.sec { padding-block: clamp(3rem, 6vw, 5.5rem); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.sec-head h2 { font-size: clamp(2.25rem, 4.6vw, 3.875rem); line-height: 1.08; }
.more { font-weight: 600; color: var(--magenta); text-underline-offset: 3px; white-space: nowrap; }

/* Story cards */
.feed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3.2vw, 2.75rem) clamp(1rem, 2vw, 1.75rem); }
.card { grid-column: span 4; min-width: 0; }
.card-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--shoal-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-img:hover img { transform: scale(1.03); }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; margin-top: .7rem; color: var(--muted); }
.card-meta time { font: 400 .75rem/1.4 var(--mono); }
.card-title { margin-top: .3rem; font: 400 1.375rem/1.22 var(--story); }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--magenta); }
.card-dek { margin-top: .5rem; color: var(--ink); }
.parts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.parts a { padding: .12rem .5rem; border: 1px solid var(--rule); font: 400 .75rem/1.5 var(--mono); text-decoration: none; }
.parts a:hover { border-color: var(--magenta); color: var(--magenta); }
.card.lead { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: end; }
.lead .card-title { font: 300 clamp(1.75rem, 3vw, 2.75rem)/1.12 var(--story); }
.lead .card-meta { margin-top: 0; }
.sk { background: var(--shoal-2); }
.feed-note { grid-column: 1 / -1; color: var(--muted); }

/* Start here */
.start { background: var(--shoal-2); }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.rail a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night); color: #fff; text-decoration: none; }
.rail img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rail a:hover img { transform: scale(1.03); }
.rail a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 24 36 / 0) 35%, rgb(13 24 36 / .9) 100%); }
.rail-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem; }
.rail-text .land-label { display: block; margin-bottom: .3rem; }
.rail-text strong { display: block; font: 400 1.25rem/1.2 var(--story); }

/* Literary interlude: a Karl May line set like a book epigraph on warm paper */
.lit { background: #f6f1e7; border-block: 1px solid #e6dcc8; }
.lit-quote { max-width: 46rem; margin: 0 auto; text-align: center; }
.lit-quote::before { content: "\201C"; display: block; height: 2.25rem; font: 300 5.5rem/1 var(--story); color: #c6a15b; }
.lit-quote blockquote p { font: italic 300 clamp(1.75rem, 3.6vw, 2.75rem)/1.25 var(--story); letter-spacing: -.005em; text-wrap: balance; }
.lit-quote figcaption { margin-top: 1.5rem; font: 500 .75rem/1.5 var(--ui); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lit-quote figcaption::before { content: ""; display: block; width: 3rem; height: 1px; margin: 0 auto 1.1rem; background: #c6a15b; }
.lit-quote figcaption cite { font: italic 400 .9375rem/1.5 var(--story); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* GREAT1001 handbook: dark band in the colours of its cover */
.great { background: var(--night); color: #eceef0; }
.great-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 280px); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
/* Flat cover lifted off the dark band: fine gold edge, warm glow behind it, soft drop shadow */
.great-cover { width: 100%; border-radius: 2px; box-shadow: 0 0 0 1px rgb(198 161 91 / .5), 0 0 90px 16px rgb(198 161 91 / .26), 0 22px 44px rgb(0 0 0 / .6); }
.great .land-label { color: #c6a15b; }
.great h2 { margin-top: .35rem; font: 700 clamp(3.25rem, 7.5vw, 6rem)/.95 var(--ui); letter-spacing: -.01em; text-transform: uppercase; }
.great h2 span { color: #c6a15b; }
.great-sub { margin-top: .6rem; font: 500 .8125rem/1.4 var(--ui); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: #b9bec4; }
.great-tag { margin-top: .5rem; font: italic 300 1.3125rem/1.3 var(--story); color: #eceef0; }
.great-copy { margin-top: .9rem; max-width: 56ch; color: #c9ced3; }
.great-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.25rem; }
.great-actions small { color: #9aa1a8; font-size: .875rem; }
.btn-gold { background: #c6a15b; color: var(--night); }
.btn-gold:hover { background: #d8b673; }
.btn-gold-line { border-color: #c6a15b; background: transparent; color: #e6cf9f; }
.btn-gold-line:hover { background: #c6a15b; color: var(--night); }
.great-actions small { flex-basis: 100%; }
.great-facts-box { padding: 1.25rem 1.25rem 1.35rem; border: 1px solid rgb(198 161 91 / .45); }
.great-facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; align-items: baseline; }
.great-facts dt { font: 500 1.75rem/1 var(--mono); color: #c6a15b; text-align: right; }
.great-facts dd { color: #c9ced3; font-size: .9375rem; line-height: 1.35; }
.great-rules { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid rgb(198 161 91 / .3); font: italic 300 1.0625rem/1.4 var(--story); color: #dfe2e5; }
@media (max-width: 1180px) {
  .great-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .great-facts-box { grid-column: 1 / -1; }
  .great-facts { grid-template-columns: repeat(4, auto 1fr); }
}
@media (max-width: 720px) {
  .great-grid { grid-template-columns: minmax(0, 1fr); }
  .great-cover { max-width: 200px; }
  .great-facts { grid-template-columns: auto 1fr; }
}

/* Logo and Nemi */
.nemi { background: #fff; }
.nemi-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.nemi-logo { width: 100%; height: auto; }
.nemi h2 { margin-top: .35rem; font-size: clamp(2.25rem, 4.6vw, 3.875rem); line-height: 1.08; }
.nemi-copy { margin-top: 1rem; max-width: 56ch; font: 300 1.1875rem/1.45 var(--story); }
.nemi-label { margin-top: 1.75rem; color: var(--muted); }
.nemi-list { margin-top: .5rem; border-bottom: 1px solid var(--rule); }
.nemi-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem .25rem; border-top: 1px solid var(--rule); font-weight: 500; text-decoration: none; }
.nemi-list a span { flex: none; color: var(--muted); font: 400 .875rem/1 var(--mono); }
.nemi-list a:hover { color: var(--magenta); }
@media (max-width: 860px) {
  .nemi-grid { grid-template-columns: minmax(0, 1fr); }
  .nemi-logo { max-width: 340px; margin-inline: auto; }
}

/* Book */
.book { background: var(--shoal); }
.book-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 340px); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.book-cover { width: 100%; box-shadow: 0 16px 36px rgb(13 24 36 / .3); }
.book h2 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; margin-top: .25rem; }
.book-sub { margin-top: .4rem; font: 400 1.3125rem/1.25 var(--story); }
.book-copy { margin-top: .9rem; max-width: 52ch; }
.book-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.book-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.book-photo figcaption { margin-top: .45rem; font-size: .875rem; color: var(--muted); }

/* Regions */
.region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.region-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.region-list a:hover { color: var(--magenta); }
.region-name { font: 500 clamp(.9375rem, 1.5vw, 1.1875rem)/1.3 var(--ui); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.region-n { font: 400 .875rem/1 var(--mono); color: var(--muted); }

/* Work */
.work { background: var(--night); color: var(--on-night); }
.work-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.work-photo { width: 100%; aspect-ratio: 607 / 680; object-fit: cover; object-position: 50% 15%; background: var(--ink); }
.work-copy { margin-top: 1rem; font: 300 1.1875rem/1.4 var(--story); }
.work-more { display: inline-block; margin-top: .75rem; color: var(--on-night); font-weight: 600; text-underline-offset: 3px; }
.work h2 { font-size: clamp(2.25rem, 4.6vw, 3.875rem); }
.work-list { margin-top: 1.25rem; border-bottom: 1px solid rgb(240 245 247 / .22); }
.work-row { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; align-items: baseline; gap: .2rem 1.5rem; padding: 1rem .5rem; border-top: 1px solid rgb(240 245 247 / .22); text-decoration: none; transition: background-color .15s; }
.work-row:hover { background: rgb(240 245 247 / .08); }
.work-name { font: italic 300 1.625rem/1.15 var(--story); }
.work-desc { color: var(--on-night-muted); }
.work-cta { margin-top: 1.5rem; }
.btn-light { background: var(--on-night); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-yellow { background: var(--yellow); color: var(--night); }
.btn-yellow:hover { background: #ffd43a; }

/* Signup */
.signup { background: var(--yellow); }
.signup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.25rem 3rem; padding-block: clamp(2rem, 4vw, 3.25rem); }
.signup h2 { font: 200 italic clamp(2rem, 4vw, 3.25rem)/1.08 var(--story); }
.signup-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.signup-form label { flex-basis: 100%; }
#news-email { flex: 1 1 14rem; min-width: 0; padding: .72rem .9rem; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); font: 400 1rem/1.2 var(--ui); }
.signup-status { flex-basis: 100%; font-size: .9375rem; font-weight: 500; }

/* Footer */
.site-foot { background: var(--night); color: var(--on-night-muted); font-size: .9375rem; border-top: 1px solid rgb(240 245 247 / .14); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgb(240 245 247 / .12); }
.foot-line { font: italic 300 1.125rem/1.3 var(--story); color: var(--on-night-muted); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-block: 1.75rem 2.25rem; }
.foot-grid h3 { margin-bottom: .6rem; color: var(--yellow); }
.foot-grid li { margin-bottom: .25rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--on-night); text-decoration: underline; }

/* Stories view */
.page-head { padding-top: clamp(2rem, 4vw, 3.25rem); }
.page-head h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.05; }
.page-sub { margin-top: .5rem; color: var(--muted); max-width: 60ch; }
.atlas-themes { margin-top: .6rem; color: var(--muted); max-width: 60ch; line-height: 1.6; }
.tools { display: grid; gap: .9rem; margin-top: 1.5rem; }
.text-input { display: block; width: 100%; max-width: 30rem; padding: .72rem .9rem; border: 1px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.2 var(--ui); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters-break { flex-basis: 100%; height: 0; }
.filters button { padding: .35rem .65rem; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--ink); font: 500 .875rem/1.2 var(--ui); cursor: pointer; }
.filters button:hover { border-color: var(--magenta); color: var(--magenta); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--deep); }
.filters span { margin-left: .3rem; font: 400 .75rem/1 var(--mono); opacity: .75; }
.load-row { margin-top: 2.25rem; text-align: center; }

/* Story view */
.story-head { max-width: 56rem; margin-inline: auto; padding-top: clamp(2rem, 4vw, 3.5rem); }
.back { font-weight: 600; font-size: .9375rem; color: var(--magenta); text-underline-offset: 3px; }
.story-head h1 { margin-top: .9rem; font: 200 clamp(2.25rem, 5vw, 4.25rem)/1.08 var(--story); letter-spacing: -.01em; }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-top: 1rem; color: var(--muted); }
.story-meta time { font: 400 .8125rem/1.4 var(--mono); }
.story-meta a { color: var(--magenta); font: 400 .8125rem/1.4 var(--mono); }
.story-trip { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.story-hero { max-width: 1120px; margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; }
.story-hero img { width: 100%; max-height: 74vh; object-fit: cover; background: var(--shoal-2); }
.prose { max-width: 40rem; margin: clamp(1.75rem, 3.5vw, 2.75rem) auto 0; font: 400 1.1875rem/1.65 var(--story); }
.prose p { margin: 0 0 1.2em; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin: 2em 0 .55em; font: italic 300 1.75rem/1.2 var(--story); }
.prose a { color: var(--magenta); text-underline-offset: .14em; }
.prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; background: var(--shoal-2); }
.prose > figure, .prose > .wp-block-image { width: min(56rem, calc(100vw - 40px)); margin: 2.25rem 0 2.25rem 50%; transform: translateX(-50%); }
.prose figure { margin-inline: 0; }
.prose > figure { margin-left: 50%; }
.prose figcaption { margin-top: .5rem; font: 400 .875rem/1.4 var(--ui); color: var(--muted); text-align: center; }
.prose > .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; width: min(56rem, calc(100vw - 40px)); margin: 2.25rem 0 2.25rem 50%; transform: translateX(-50%); }
.prose > .gallery.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prose .gallery figcaption { font-size: .8125rem; text-align: left; }
.prose .note { margin: 1.75rem 0; padding: 1rem 1.15rem; background: var(--shoal-2); border-left: 3px solid var(--magenta); font: 400 1rem/1.55 var(--ui); }
.prose .note strong { display: block; margin-bottom: .25rem; font: 600 .75rem/1.3 var(--ui); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .prose > .gallery.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose blockquote { margin: 1.5em 0; padding-left: 1.1rem; border-left: 2px solid var(--magenta); font-style: italic; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose iframe.yt-frame { margin: 0 0 1.2em; }
.prose .yt-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; aspect-ratio: 16 / 9; margin: 0 0 1.2em; padding: 1.25rem; background: var(--night); color: var(--on-night-muted); text-align: center; }
.prose .yt-note { max-width: 46ch; margin: 0; font: 400 .8125rem/1.45 var(--ui); }
.prose .yt-note a { color: var(--on-night); }
.prose video { display: block; width: 100%; height: auto; max-height: 80vh; margin: 0 auto 1.2em; background: #000; }
.prose audio { display: block; width: 100%; margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
/* Pages (contact, press, legal …) rendered from WordPress in the story layout */
.page-prose .page-cta { margin: 1.25rem 0 2.25rem; }
.prose a.btn { text-decoration: none; }
.prose a.btn-magenta { color: #fff; }
.prose a.btn-line { color: var(--ink); }
.page-prose > figure { width: auto; margin: 1.75rem 0; transform: none; }
.page-prose table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font: 400 .9375rem/1.45 var(--ui); }
.page-prose td, .page-prose th { padding: .4rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
/* Page layouts: wide blocks break out of the text column like the photos in the stories */
.page-prose > .card-grid, .page-prose > .page-gallery, .page-prose > .fs { width: min(64rem, calc(100vw - 40px)); margin: 2.25rem 0 2.5rem 50%; transform: translateX(-50%); }
.page-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.page-gallery figure { margin: 0; }
.page-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-grid { display: grid; gap: 1rem; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.page-card { display: flex; flex-direction: column; padding: 1.25rem 1.3rem 1.35rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--ink); font-size: 1.0625rem; }
.page-card h3 { margin: 0 0 .5rem; font: 400 1.5rem/1.2 var(--story); font-style: normal; }
.page-card p { margin: 0 0 .9em; }
.page-card .page-cta { margin: auto 0 0; padding-top: .5rem; }
.card-grid--projects .page-card { padding: 0 0 1.35rem; border-top-width: 1px; }
.card-grid--projects .page-card > :not(figure) { margin-inline: 1.3rem; }
.card-grid--projects .page-card figure { margin: 0 0 1.1rem; }
.card-grid--projects .page-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-card { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--ink); background: #fff; text-decoration: none; transition: background-color .15s; }
.prose a.contact-card { color: var(--ink); }
.contact-card strong { display: block; margin-top: .35rem; font: 500 1.125rem/1.3 var(--ui); overflow-wrap: anywhere; }
.contact-card:hover { background: var(--shoal-2); }
.prose .link-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); font: 400 1rem/1.4 var(--ui); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .15rem; text-decoration: none; }
.link-list a::after { content: "↗"; flex: none; color: var(--muted); }
.link-list a[href^="#"]::after { content: "→"; }
.prose .link-list a { color: var(--ink); }
.prose .link-list a:hover { color: var(--magenta); }
@media (min-width: 900px) { .page-prose > .link-list--cols { width: min(64rem, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); columns: 2; column-gap: 2.5rem; border-top: 0; } .link-list--cols li { break-inside: avoid; } }
@media (max-width: 860px) { .card-grid--3, .card-grid--projects, .contact-cards { grid-template-columns: minmax(0, 1fr); } }
/* Dated updates (recent talks, coverage, Heuereka editions) as a compact timeline */
.page-update { margin: 2.5rem 0; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.4rem 1.6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.logo-strip li, .page-prose .logo-strip li { flex: 0 0 auto; display: flex; align-items: center; min-height: 40px; margin: 0; padding: 0; list-style: none; }
.logo-strip li::before, .logo-strip li::marker { content: none; display: none; }
.logo-strip img { display: block; height: 24px; width: auto; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; opacity: .8; }
.logo-strip .sq img { height: 34px; }
.logo-strip img[src*="ungeskriptet"] { height: 30px; opacity: .9; }
@media (max-width: 560px) { .logo-strip { gap: 1.1rem 1.4rem; } .logo-strip img { height: 19px; } .logo-strip .sq img { height: 28px; } .logo-strip img[src*="ungeskriptet"] { height: 24px; } }
.page-update h2 { margin-top: 0; }
.prose .selection-note { margin: -.2rem 0 .9rem; font: italic 400 .9375rem/1.4 var(--story); color: var(--muted); }
.page-update h3 { margin: 1.75rem 0 .5rem; font: 600 .75rem/1.3 var(--ui); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prose .timeline { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--rule); font: 400 1rem/1.4 var(--ui); }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .7rem .1rem; border-bottom: 1px solid var(--rule); }
.tl-date { font: 500 .8125rem/1.6 var(--mono); color: var(--muted); }
.timeline strong { display: block; font-weight: 600; color: var(--ink); }
.timeline li span:not(.tl-date) { display: block; margin-top: .15rem; color: var(--muted); font-size: .9375rem; }
.timeline li .tl-links { margin-top: .3rem; font-size: .875rem; }
.prose .timeline a { color: var(--ink); text-decoration-color: var(--rule); }
.prose .timeline a:hover { color: var(--magenta); }
.timeline a[target="_blank"]::after { content: " ↗"; color: var(--muted); font-weight: 400; }
/* Flight statistics */
.fs { position: relative; font: 400 1rem/1.45 var(--ui); }
.fs-kicker { color: var(--muted); }
.fs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1rem 1.5rem; margin-top: .75rem; }
.fs-tile { padding-top: .6rem; border-top: 2px solid var(--ink); }
.fs-tile strong { display: block; font: 500 clamp(1.75rem, 3.2vw, 2.5rem)/1.05 var(--mono); letter-spacing: -.02em; }
.fs-tile span { display: block; margin-top: .3rem; font-size: .875rem; color: var(--muted); }
.fs-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: 2.25rem; }
.fs-chart, .fs-mapbox { margin: 0; }
.fs .fs-title { display: block; margin: 0 0 .5rem; font: 600 .9375rem/1.3 var(--ui); color: var(--ink); text-align: left; caption-side: top; }
.fs .fs-shots figcaption { margin-top: .35rem; font: 500 .8125rem/1.3 var(--mono); color: var(--muted); text-align: left; }
.fs svg { display: block; width: 100%; height: auto; }
.fs-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.fs-base { stroke: var(--ink); stroke-width: 1; }
.fs-bar { fill: var(--ink); }
.fs-bar--partial { fill: #7d8fa0; }
.fs-hit { fill: transparent; }
.fs-hit:hover + text, .fs-chart svg path:hover { opacity: .85; }
.fs-axis { font: 400 13px var(--mono); fill: var(--muted); text-anchor: middle; }
.fs-value { font: 600 13px var(--ui); fill: var(--ink); text-anchor: middle; }
.fs-note { margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
.fs-mapbox { margin-top: 2.25rem; }
.fs-land path { fill: #e3e3e3; stroke: #fff; stroke-width: .4; }
.fs-arc { fill: none; stroke: var(--magenta); stroke-width: 2; stroke-linecap: round; }
.fs-arc-hit { fill: none; stroke: transparent; stroke-width: 14; }
.fs-arc-label { font: 600 13px var(--ui); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.fs-dot { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.fs-dot-label { font: 500 12.5px var(--ui); fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.fs-table-wrap { margin-top: 2.25rem; overflow-x: auto; }
.fs-table { width: 100%; min-width: 46rem; border-collapse: collapse; font: 400 .875rem/1.4 var(--ui); }
.fs-table th, .fs-table td { padding: .5rem .55rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.fs-table thead th { font-weight: 600; color: var(--muted); border-bottom-color: var(--ink); }
.fs .fs-table caption.fs-title { display: table-caption; padding: 0 0 .5rem; }
.fs-table td:nth-child(4) { white-space: nowrap; }
.fs-table td:nth-child(2), .fs-table td:nth-child(3), .fs-table td:nth-child(5), .fs-table td:nth-child(6) { font-family: var(--mono); text-align: right; }
.fs-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.fs-shots figure { margin: 0; }
.fs-shots img { width: 100%; border: 1px solid var(--rule); }
.fs-shots figcaption { margin-top: .35rem; font: 500 .8125rem/1.3 var(--mono); color: var(--muted); text-align: left; }
.fs-tip { position: absolute; z-index: 5; max-width: 18rem; padding: .4rem .6rem; background: #fff; border: 1px solid #c8c8c8; box-shadow: 0 1px 4px rgb(0 0 0 / .18); font-size: .8125rem; line-height: 1.35; pointer-events: none; }
@media (max-width: 720px) { .fs-charts { grid-template-columns: minmax(0, 1fr); } }
.prose ul { list-style: disc; }
.story-end { max-width: 56rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: .9rem; }
.next-grid a { display: block; text-decoration: none; }
.next-grid strong { display: block; margin-top: .25rem; font: 400 1.3125rem/1.22 var(--story); }
.next-grid a:hover strong { color: var(--magenta); }
.promo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.1rem; align-items: center; margin-top: 2rem; padding: 1.1rem; background: var(--shoal); }
.promo p { font: 400 1.125rem/1.35 var(--story); }
.promo .more { display: inline-block; margin-top: .3rem; font: 600 .9375rem/1.3 var(--ui); }

/* Atlas view */
.year-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.year-num { font: 500 1.625rem/1.1 var(--mono); }
.year-sub { display: block; margin-top: .25rem; font: italic 400 .9375rem/1.3 var(--story); color: var(--muted); }
.year-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .15rem 1.25rem; }
.year-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: baseline; }
.year-list .sounding { font-size: .75rem; color: var(--muted); }
.year-list a { color: var(--magenta); text-underline-offset: 2px; }

/* About view */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: 1.75rem; }
.about-grid img { width: 100%; }
.about-text { font: 400 1.1875rem/1.6 var(--story); max-width: 38rem; }
.about-text p { margin-bottom: 1.1em; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.25rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.facts dt { font: 500 .9375rem/1.4 var(--mono); }
.facts dd { font-size: 1rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.about-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--rule); }
.about-more h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }

@media (max-width: 1180px) {
  .c-cta .btn { padding: .72rem 1.1rem; font-size: .9375rem; }
  .book-grid { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .book-photo { grid-column: 1 / -1; }
  .book-photo img { aspect-ratio: 21 / 9; object-position: 50% 35%; }
  .scrub { grid-template-columns: auto minmax(0, 1fr); }
  .scrub-track { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .card { grid-column: span 6; }
  .card.lead { grid-column: span 12; grid-template-columns: minmax(0, 1fr); }
  .lead .card-meta { margin-top: .7rem; }
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
  .rail a { flex: 0 0 72%; scroll-snap-align: start; }
  .region-list { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-photo { max-height: 360px; }
  .signup-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-more { grid-template-columns: minmax(0, 1fr); }
  .year-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding-block: .4rem; background: var(--night); border-bottom: 2px solid var(--yellow); box-shadow: 0 10px 20px rgb(13 24 36 / .25); }
  .site-head.open #site-nav { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav a { display: block; padding: .7rem var(--gutter); border: 0; font-size: 1.0625rem; }
  .map-wrap { margin-top: .5rem; }
  #map { width: calc(100% + 40px); max-width: none; margin-inline: -20px; }
  .land { stroke-width: .25px; }
  #today-pin text { font-size: 19px; stroke-width: 4px; }
  .ticks .minor { display: none; }
  .card { grid-column: span 12; }
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .book-cover { max-width: 200px; }
  .book-photo img { aspect-ratio: 16 / 9; }
  .work-row { grid-template-columns: minmax(0, 1fr) auto; }
  .work-desc { grid-column: 1 / -1; grid-row: 2; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .next-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card-img img, .rail img, .land, .btn, .work-row { transition: none; }
  .card-img:hover img, .rail a:hover img { transform: none; }
}
/* Static site: filters and pagination as links */
.filters a { padding: .35rem .65rem; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink); font: 500 .875rem/1.2 var(--ui); text-decoration: none; }
.filters a:hover { border-color: var(--magenta); color: var(--magenta); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--deep); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font: 500 .9375rem/1.3 var(--ui); }
.pager a { color: var(--magenta); text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager-pos { color: var(--muted); font: 400 .8125rem/1 var(--mono); }
.h1-page { font-size: .45em; color: var(--muted); white-space: nowrap; }
.notfound { min-height: 40vh; }
.foot-grid p.land-label { margin-bottom: .6rem; color: var(--yellow); }
/* Language switch at the end of the main navigation */
#site-nav a.lang-switch { padding: .2rem .5rem; border: 1px solid rgb(240 245 247 / .4); border-radius: 2px; font-size: .8125rem; letter-spacing: .04em; }
#site-nav a.lang-switch:hover { border-color: var(--yellow); color: var(--yellow); }
@media (max-width: 720px) { #site-nav a.lang-switch { border: 0; padding: .7rem var(--gutter); font-size: 1.0625rem; } }
