/* landing.css — takt.sirache.ch/ (choose a city). Moosnacht tokens mirrored from ../../../DESIGN.md (edit DESIGN.md first).
   Always light (paper), whatever the visitor's system setting – the maps keep their own day/night theme.
   The one loud element: the city names in Overpass, as in the city mark, over the real network of each edition. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/overpass-medium-latin.woff2") format("woff2"); }

/* Paper only: the start page is light, also on systems set to dark (decided 25.10.2026). */
:root {
  color-scheme: light;
  --accent: oklch(42% 0.09 160); --accent-fg: #fff;
  --canvas: oklch(95% 0.008 140); --panel-bg: oklch(99% 0.004 140);
  --panel-fg: oklch(18% 0.02 160); --muted: oklch(46% 0.03 160);
  --line: oklch(88% 0.012 140); --btn-bg: oklch(93% 0.012 140); --btn-bg-hover: oklch(89% 0.014 140);
  --shadow: 0 8px 26px -8px rgba(20,50,35,.3), 0 0 0 1px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 36px -8px rgba(20,50,35,.35), 0 0 0 1px rgba(0,0,0,.06);
  /* city cards: light network photos (img/<city>-light.jpg) */
  --on-map: var(--panel-fg);
  --map-bg: oklch(90% 0.012 150);
  --map-scrim: oklch(99% 0.004 140 / 0.96);
  --card-line: var(--line);
  --card-muted: var(--muted);
  --go-bg: var(--accent); --go-fg: #fff; --go-bg-hover: oklch(36% 0.09 160);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Overpass", "Inter", system-ui, sans-serif;
  --radius: 16px; --radius-btn: 10px;
  --ease: cubic-bezier(.2,.8,.2,1); --t-hover: 120ms;
  --gutter: clamp(16px, 4vw, 40px);
  --vbz: #1F3F8F; --bvg: #F0D722; --wl: #E3000F; --pid: #00A562; --ch: #FF0000;   /* operator colours of the city marks (DESIGN.md logo) */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--panel-fg);
  font: 400 16px/1.55 var(--font); font-feature-settings: "tnum" 0;
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
}
.top, main, .foot { max-width: 1160px; margin-inline: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header: main mark Λ + "takt. transit" ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: max(20px, env(safe-area-inset-top, 0px)) 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mark { width: 30px; height: 31px; flex: none; }
.mark path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: var(--accent); stroke: var(--canvas); stroke-width: 3; }
.wm { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.wm .d, .wm .line { color: var(--accent); }
.btn {
  font: 600 14px/1 var(--font); color: var(--panel-fg); background: var(--btn-bg); border: 0; border-radius: var(--radius-btn);
  min-width: 44px; height: 44px; padding: 0 12px; cursor: pointer; transition: background var(--t-hover);
}
.btn:hover { background: var(--btn-bg-hover); }

/* ---------- intro ---------- */
.intro { padding: clamp(24px, 4.5vw, 56px) 0 clamp(22px, 3vw, 36px); max-width: 52rem; }
h1 { font: 700 clamp(34px, 4.8vw, 56px)/1.05 var(--font); letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
p { text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 38em; }

/* ---------- city choice: the hero ---------- */
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.cities .city-card.schweiz { grid-column: 1 / -1; }   /* the country comes first and spans the row, the cities below it in pairs */
.city-card.schweiz .card-body { margin-top: clamp(220px, 34vw, 430px); }
.city-card.schweiz { background-position: center top; }   /* the panel covers the lower part; the country sits in the upper one */
.city-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--on-map);
  background: var(--map-bg) center / cover no-repeat; box-shadow: var(--shadow);
  transition: box-shadow var(--t-hover), transform var(--t-hover) var(--ease);
}
/* WebP (1200 px, ~60 % lighter) with the JPEG as fallback for browsers without image-set() */
.city-card.schweiz { background-image: url("img/schweiz-light.jpg"); background-image: image-set("img/schweiz-light.webp" type("image/webp"), "img/schweiz-light.jpg" type("image/jpeg")); }
.city-card.zurich { background-image: url("img/zurich-light.jpg"); background-image: image-set("img/zurich-light.webp" type("image/webp"), "img/zurich-light.jpg" type("image/jpeg")); }
.city-card.berlin { background-image: url("img/berlin-light.jpg"); background-image: image-set("img/berlin-light.webp" type("image/webp"), "img/berlin-light.jpg" type("image/jpeg")); }
.city-card.wien { background-image: url("img/wien-light.jpg"); background-image: image-set("img/wien-light.webp" type("image/webp"), "img/wien-light.jpg" type("image/jpeg")); }
.city-card.prag { background-image: url("img/prag-light.jpg"); background-image: image-set("img/prag-light.webp" type("image/webp"), "img/prag-light.jpg" type("image/jpeg")); }
.city-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.city-card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

/* city lockup set in type: Λ with the operator dot beside the large lowercase city (no "takt.") – on calm lacquer below
   the map, so neither vehicle numbers nor street names run through it */
.cm { display: flex; align-items: flex-end; gap: clamp(10px, 1.4vw, 18px); margin: 0 0 clamp(10px, 1.4vw, 16px); }
.cm .mark { width: clamp(40px, 4.4vw, 60px); height: auto; color: var(--on-map); }
.cm .mark circle { stroke: var(--map-bg); }
.schweiz .cm .mark circle { fill: var(--ch); }
.zurich .cm .mark circle { fill: var(--vbz); }
.berlin .cm .mark circle { fill: var(--bvg); }
.wien .cm .mark circle { fill: var(--wl); }
.prag .cm .mark circle { fill: var(--pid); }
.cm-city { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.82; text-transform: lowercase; margin-left: -0.04em; }

.card-body {
  /* the map above keeps a fixed height and the panel fills the rest: all city names sit on one line, all buttons at the bottom */
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px;
  padding: 26px 26px 28px;
  background: var(--map-scrim); border-top: 1px solid var(--card-line); margin-top: clamp(170px, 17vw, 240px);
}
.tagline { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.what { color: var(--card-muted); font-size: 15px; line-height: 1.45; max-width: 34em; }
.what, .data { margin-bottom: 8px; }   /* with the panel gap: at least 14 px above the button */
.data { color: var(--card-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.go {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-btn); background: var(--go-bg); color: var(--go-fg); font-weight: 600; font-size: 15px;
}
.city-card:hover .go { background: var(--go-bg-hover); }

/* ---------- what the map does ---------- */
.features { padding: clamp(48px, 7vw, 96px) 0 0; }
.features h2 { font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--font); letter-spacing: -0.02em; margin: 0 0 8px; }
.features ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(20px, 3vw, 44px); }
.features li { padding: 22px 0; border-top: 1px solid var(--line); }
.features h3 { font: 600 17px/1.3 var(--font); margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

.about { padding: clamp(36px, 5vw, 64px) 0 0; max-width: 40rem; }
.about p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---------- footer ---------- */
.foot { padding: clamp(40px, 6vw, 72px) 0 32px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.foot p { margin: 0 0 8px; max-width: 72ch; }
.sender b { font-family: var(--font-display); font-weight: 500; color: var(--panel-fg); }
.foot details { margin-top: 8px; }
.foot summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--panel-fg); }
.foot details p { margin-top: 6px; }

/* ---------- narrow screens: larger city names in the two columns, then stacked; features in one or two columns ---------- */
@media (max-width: 1000px) {
  .cm .mark { width: clamp(46px, 6vw, 76px); }
  .cm-city { font-size: clamp(64px, 9vw, 110px); }
}
@media (max-width: 900px) { .features ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .card-body { padding: 22px 22px 24px; }
  .cities { grid-template-columns: 1fr; }
  .city-card { min-height: 0; }
  .features ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .city-card, .btn { transition: none; }
  .city-card:hover { transform: none; }
}
