/* Stadtlärm website. System fonts only, no external resources (part of the privacy promise). */

:root {
  color-scheme: light dark;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --ink: #17202e;
  --muted: #4a5668;
  --rule: #d3dae4;
  --blue: #0b5cad;          /* Zürich blue: links, button */
  --on-blue: #ffffff;
  --amber: #b86e00;         /* sodium street light: loud events */
  --trace: #17202e;
  --trace-fill: rgba(23, 32, 46, 0.07);
  --grid: #c9d1dc;
  --focus: #0b5cad;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1626;
    --surface: #142036;
    --ink: #e8edf5;
    --muted: #a8b5c8;
    --rule: #2a3a55;
    --blue: #8ab8f0;
    --on-blue: #0d1626;
    --amber: #f2b33d;
    --trace: #c9d5e6;
    --trace-fill: rgba(201, 213, 230, 0.08);
    --grid: #2a3a55;
    --focus: #8ab8f0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0; }

h2 {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

p, ul, ol, dl { margin: 0 0 1rem; }

section {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--rule);
}

/* ---------- Hero ---------- */

.hero { padding-top: 3rem; padding-bottom: 2rem; }

.hero h1 {
  font-size: clamp(3rem, 15vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero .claim {
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0.9rem 0 0.75rem;
}

.hero .lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 34rem;
}

.button {
  display: inline-block;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; }
/* The second download (Karten-Version): same size, outlined, so the default stays obvious. */
.button-secondary {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
}
.editions dt { font-weight: 650; }
.editions dd { margin: 0 0 0.75rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 0 0.75rem; align-items: baseline; }

.button-note {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.6rem;
}

/* The night: a render of the app's chart (synthetic example data) */
.night {
  margin: 2.25rem 0 0;
}
.night img {
  display: block;
  width: 412px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--grid);
  border-radius: 12px;
}
.night figcaption {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
}

/* ---------- Content ---------- */

.features { padding-left: 1.2rem; }
.features li { margin-bottom: 0.5rem; }
.features li::marker { color: var(--amber); }

.steps { padding-left: 1.6rem; }
.steps li { margin-bottom: 0.75rem; padding-left: 0.25rem; }
.steps li::marker { font-weight: 700; }

.note {
  background: var(--surface);
  border-left: 4px solid var(--amber);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.note p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.25rem 0;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.facts code, code {
  font-family: var(--mono);
  font-size: 0.875em;
}
.facts .hash {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.status { list-style: none; padding: 0; }
.status li { margin-bottom: 1rem; }
.status strong { display: block; }

.small { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Footer ---------- */

footer.wrap {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

/* ---------- Privacy page ---------- */

.page-head { padding-top: 2.5rem; padding-bottom: 1rem; }
.page-head .home { font-weight: 650; text-decoration: none; }
.page-head .home:hover { text-decoration: underline; }
.page-head h1 {
  font-size: clamp(2.1rem, 9vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 1.25rem;
}

@media (min-width: 48rem) {
  .hero { padding-top: 5rem; }
  section { padding-top: 3rem; }
  .facts { padding: 1.25rem 1.5rem; }
  .facts .hash { font-size: 0.875rem; }
}

@media print {
  .button { border: 1px solid currentColor; }
}
