/*
 * The skin every page on this origin wears.
 *
 * ── Why this file exists ────────────────────────────────────────────────────
 *
 * The site strip has been identical on every page for a while (see
 * sitenav.css, and the tests that keep it so). The pages *under* it were not:
 * ten standalone HTML files had each grown their own copy of the palette,
 * their own body background — one a sheet of graph paper, four a pair of
 * coral-and-blue radial blooms, the front page something else again — their
 * own reading measure, and with it their own position for the strip's
 * wordmark, which visibly jumped as you walked from page to page. Each copy
 * was defensible on its own and the set of them was not a design.
 *
 * So the tokens, the background, the type and the page column live here,
 * once. A page still styles what is genuinely its own — a download table, a
 * terminal transcript, a feedback form — in its own <style> block, which is
 * loaded after this file and therefore wins wherever it disagrees.
 *
 * ── One strip position ──────────────────────────────────────────────────────
 *
 * `--sitenav-measure` is set here and only here. It used to follow each
 * page's reading measure, which is a coherent idea — the origin node over the
 * content's left edge — and which in practice meant the strip re-laid itself
 * out on every navigation, 880px here, 980px there, 760px on the forms. The
 * strip is furniture: it should be the one thing on screen that does not move.
 * The page column keeps its own width through `--measure`.
 *
 * ── Themes ──────────────────────────────────────────────────────────────────
 *
 * Three states, matching /theme.js: light, dark, and no choice at all. The
 * last is the default and follows `prefers-color-scheme`; the `:not()` guard
 * is what lets an explicit light choice win over a dark system setting.
 */

:root {
	/* Paper, ink and one accent. Surfaces run *lighter* than the page in
	   daylight and darker at night, so a card reads as a sheet laid on the
	   page rather than a hole cut into it. */
	--paper: #f3f1ec;
	--paper-dim: #e9e6dd;
	--paper-low: #fbfaf7;
	--paper-high: #ebe8e0;
	--ink: #14171b;
	--ink-soft: #3d4249;
	--muted: #63666b;
	--outline: #dcd8ce;
	--outline-soft: #e6e2d9;
	/* One accent, three jobs, because one hex cannot do all three and stay
	   legible. --coral is the mark: the dot beside the wordmark, the rule over
	   a heading, a node on a thread — shapes, never words. --coral-ink is the
	   accent as *text* on paper, and is darker because the brand coral on this
	   paper is 2.7:1, well under the 4.5:1 that small text needs. --coral-fill
	   is a filled button, darker again so that white on it clears the same
	   bar. Both were the brand coral before, and both failed it. */
	--coral: #f26a4b;
	--coral-ink: #b8431e;
	--coral-fill: #c2451d;
	--coral-soft: #fbdcd2;
	--coral-on: #ffffff;
	--rail: #1f4ea1;
	--rail-on: #0a1f44;
	--rail-soft: #d9e2f4;
	/* The second structural colour, beside coral: a deep slate blue for
	   the one band on a page that is set in reverse — the promises on the
	   front page — and for depth wherever the coral would shout. Blue is
	   what this product already means by rail; slate is rail at dusk. Never
	   a button: coral is still the only thing to press. The four tokens are
	   a palette of their own, because ink on slate is not ink on paper. */
	--slate: #22303f;
	--slate-high: #2c3c4e;
	--slate-ink: #eef2f6;
	--slate-muted: #b4bfcc;
	--slate-line: rgb(255 255 255 / 0.14);
	--slate-accent: #ffa48c;
	--bus: #2a7f52;
	--tram: #b8672c;
	--walk: #7a7b7a;
	--shadow: 0 1px 2px rgb(20 23 27 / 0.04), 0 12px 32px rgb(20 23 27 / 0.06);
	--shadow-lift: 0 2px 4px rgb(20 23 27 / 0.05), 0 22px 54px rgb(20 23 27 / 0.10);
	--sans: "Helvetica Neue", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--radius: 12px;
	/* The reading column. Each page sets its own; this is the widest one. */
	--measure: 1320px;
}

/* A desk-sized screen reads in a wider column, and the strip above it keeps
   to the same one: on a 2560-wide display the 1320px column stood in a sea
   of paper with a 40px strip across all of it (2026-10-23). The front
   page's type scales with the viewport up to here and no further. */
@media (min-width: 1900px) {
	:root {
		--measure: 1560px;
		/* And the type with it: 17px at the root, so a page set in rem grows
		   a little with the room it has. */
		font-size: 17px;
	}
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0d1014;
		--paper-dim: #1a1f25;
		--paper-low: #151a20;
		--paper-high: #222831;
		--ink: #ecebe6;
		--ink-soft: #c3c5c8;
		--muted: #969ba1;
		--outline: #272d34;
		--outline-soft: #333a42;
		--coral: #ff8f76;
		--coral-ink: #ff8a68;
		--coral-fill: #ff8a68;
		--coral-soft: #4c2015;
		--coral-on: #1a0d07;
		--rail: #6f9ae4;
		--rail-on: #d9e2f4;
		--rail-soft: #0e2a5a;
		--slate: #161e28;
		--slate-high: #1f2935;
		--slate-ink: #eef2f6;
		--slate-muted: #aab5c2;
		--slate-line: rgb(255 255 255 / 0.12);
		--slate-accent: #ff9f84;
		--bus: #5bb682;
		--tram: #e0905a;
		--walk: #9c9c9c;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.28);
		--shadow-lift: 0 2px 4px rgb(0 0 0 / 0.35), 0 22px 54px rgb(0 0 0 / 0.4);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--paper: #0d1014;
	--paper-dim: #1a1f25;
	--paper-low: #151a20;
	--paper-high: #222831;
	--ink: #ecebe6;
	--ink-soft: #c3c5c8;
	--muted: #969ba1;
	--outline: #272d34;
	--outline-soft: #333a42;
	--coral: #ff8f76;
	--coral-ink: #ff8a68;
	--coral-fill: #ff8a68;
	--coral-soft: #4c2015;
	--coral-on: #1a0d07;
	--rail: #6f9ae4;
	--rail-on: #d9e2f4;
	--rail-soft: #0e2a5a;
	--slate: #161e28;
	--slate-high: #1f2935;
	--slate-ink: #eef2f6;
	--slate-muted: #aab5c2;
	--slate-line: rgb(255 255 255 / 0.12);
	--slate-accent: #ff9f84;
	--bus: #5bb682;
	--tram: #e0905a;
	--walk: #9c9c9c;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.28);
	--shadow-lift: 0 2px 4px rgb(0 0 0 / 0.35), 0 22px 54px rgb(0 0 0 / 0.4);
	color-scheme: dark;
}

/* The UA's own colours — form controls, scrollbars — must not stay on the
   system's dark side when the reader has pinned light. */
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* One warm breath of colour behind the top of the page, and nothing else.
   There used to be a sheet of graph paper on one page and two saturated
   blooms on four others; both read as a texture applied to the page rather
   than as anything the product does, and the graph paper fought every
   hairline in the search card it sat behind. */
body::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 780px;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(70rem 34rem at 88% -14%, color-mix(in srgb, var(--coral) 11%, transparent), transparent 68%),
		radial-gradient(58rem 30rem at 4% -18%, color-mix(in srgb, var(--rail) 8%, transparent), transparent 66%);
}

a { color: inherit; }

::selection { background: color-mix(in srgb, var(--coral) 26%, transparent); }

:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}

.page {
	width: min(var(--measure), 100%);
	margin: 0 auto;
	padding: 28px clamp(18px, 4vw, 48px) 52px;
}

/* Set here and nowhere else; see the note at the top of this file. */
.sitenav { --sitenav-measure: 1320px; }

@media (min-width: 1900px) {
	.sitenav { --sitenav-measure: 1560px; }
}

/* ── The page's own title ────────────────────────────────────────────────────
 *
 * One scale for every page that has a plain title over it. The front page
 * overrides this — its headline is the whole design of that page — and so may
 * anything else with a reason.
 */
h1 {
	margin: 0;
	font-size: clamp(2.4rem, 5.6vw, 3.9rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
	text-wrap: balance;
	/* The floor of that clamp is 38.4px, and at 38.4px the German word
	   «Nutzungsbedingungen» is 415px wide. The terms page gives its heading a
	   308px column on a phone, so the word left the card, left the page, and
	   made the document wider than the screen — on the one page nobody reads
	   twice and everybody is entitled to read once.

	   This is the net rather than the fix: it acts only where a single word
	   cannot fit at any break, which is exactly that case, and leaves every
	   heading that fits exactly as it was. The pages that can hyphenate
	   properly say so themselves, next to the `lang` that makes it possible. */
	overflow-wrap: break-word;
}

/* ── Shared furniture ───────────────────────────────────────────────────── */

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1.5px solid var(--outline);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pill:hover {
	border-color: color-mix(in srgb, var(--ink) 40%, transparent);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.pill.primary {
	border-color: transparent;
	background: var(--coral-fill);
	color: var(--coral-on);
	transition: filter 0.15s ease, transform 0.15s ease;
}

.pill.primary:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

/* The screenshot pickers on the feedback, ideas and help pages: the
   browser's own grey «Choose Files» button, 21px tall in a page of 48px
   pills — the one control on them a thumb could miss (2026-10-23). Its
   button wears the secondary pill; the words beside it stay the browser's. */
input[type="file"] {
	max-width: 100%;
	color: var(--muted);
	font: inherit;
	font-size: 0.9rem;
}

input[type="file"]::file-selector-button {
	min-height: 44px;
	margin-right: 12px;
	padding: 0 20px;
	border: 1.5px solid var(--outline);
	border-radius: 999px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

input[type="file"]::file-selector-button:hover {
	border-color: color-mix(in srgb, var(--ink) 40%, transparent);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
}

/* The two forms that write to us, /feedback and /ideas, and the one script
   behind both (/report-form.js). Tried on a Windows desktop on 2026-11-03:
   an image could only be picked, never dropped or pasted, and the thanks
   was a line of small green text beside the button. */

/* Where images come in. On a phone a pill; with a mouse, a box that says it
   takes a drop and a paste, and lights up while a file is dragged over any
   part of the page. */
.drop-zone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding: 12px;
	border: 2px dashed var(--outline-soft);
	border-radius: 14px;
	background: var(--paper);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.drop-zone.desktop {
	flex-direction: column;
	justify-content: center;
	padding: 22px 18px;
	text-align: center;
}

.drop-zone .drop-icon {
	color: var(--muted);
	flex: none;
}

.drop-zone .drop-text {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}

.report-dragging .drop-zone {
	border-color: var(--coral);
	background: color-mix(in srgb, var(--coral) 10%, var(--paper));
}

/* The whole page is the target while a file is in the air; the veil says so
   and lets the drop through to the window, which takes it. */
.drop-veil {
	position: fixed;
	inset: 0;
	/* Over the sticky strip too: the whole window takes the drop. */
	z-index: 1000;
	display: none;
	place-items: center;
	padding: 16px;
	border: 4px dashed var(--coral);
	background: color-mix(in srgb, var(--paper) 82%, transparent);
	color: var(--ink);
	font-size: clamp(1.3rem, 4vw, 2rem);
	font-weight: 800;
	pointer-events: none;
}

.report-dragging .drop-veil { display: grid; }

.send-key {
	color: var(--muted);
	font-size: 0.82rem;
}

.form-note:empty { display: none; }

/* A complaint is a box of its own line, not a word in red beside a button. */
.form-note.bad {
	flex-basis: 100%;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--coral) 45%, transparent);
	border-radius: 10px;
	background: color-mix(in srgb, var(--coral) 10%, transparent);
	color: var(--ink);
}

/* What replaces the form once it has gone: the only thing in view, with a
   heading that takes the focus, a countdown that can be stopped, and the
   way on. */
.sent {
	display: grid;
	justify-items: start;
	gap: 14px;
	padding: clamp(24px, 4vw, 42px);
	border: 2px solid var(--bus);
	border-radius: 18px;
	background: color-mix(in srgb, var(--bus) 9%, var(--paper-low));
}

.sent-mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--bus);
	color: var(--paper);
}

.sent h2 {
	margin: 0;
	font-size: clamp(1.5rem, 4.5vw, 2.2rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.sent h2:focus { outline: none; }

.sent-body {
	margin: 0;
	max-width: 54ch;
	color: var(--muted);
	line-height: 1.6;
}

.sent-countdown {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.sent-countdown:empty { display: none; }

.sent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

@media (max-width: 520px) {
	.sent-actions .pill { flex: 1 1 100%; }
}

/* The one thing on this site that has to be read even when nothing else is. */
.disclaimer {
	padding: 16px 18px;
	border-left: 3px solid var(--coral);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: color-mix(in srgb, var(--coral) 6%, transparent);
	color: var(--ink-soft);
}

/* Anything with the hidden attribute stays hidden, whatever display rule its
   class carries — without this, an empty chip renders as a blank button. */
[hidden] { display: none !important; }

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* A plain list of links that wraps: names, in the link colour, side by side.
   The front page's stations (docs/website.md, *The front page*). */
.link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list a {
	color: var(--coral-ink);
	font-weight: 600;
	text-decoration: none;
}

.link-list a:hover {
	text-decoration: underline;
}
