/* Public pages of tile fm (spec 2026-10-11, WEB-ANFORDERUNGEN.md, spec 2026-10-28-senderseite-design §2).
   The app's design system (SPEC §12): system colours, system font, light and dark by
   prefers-color-scheme, no theme switch. One web-only exception: the first screen of a station
   page is flooded with the station's colour (see the station section below). */

:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #000;
  --muted: rgba(60, 60, 67, .62);
  --faint: rgba(60, 60, 67, .4);
  --card: #f2f2f7;
  --line: rgba(60, 60, 67, .2);
  --edge: rgba(0, 0, 0, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --fg: #fff;
    --muted: rgba(235, 235, 245, .6);
    --faint: rgba(235, 235, 245, .36);
    --card: #1c1c1e;
    --line: rgba(84, 84, 88, .65);
    --edge: rgba(255, 255, 255, .06);
  }
}
::selection { background: color-mix(in srgb, var(--fg) 22%, transparent); }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: .25rem; }

/* the page: a container, so the breakpoints follow its width, not the window's */
.site { container-type: inline-size; position: relative; overflow: hidden; min-height: 100dvh; }
.col { --col-width: 45rem; --gutter: 1rem; position: relative; max-width: var(--col-width); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* the brand bar */
.bar { padding-block: 1rem .5rem; }
.bar a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.bar svg { height: 1.375rem; width: auto; display: block; }

/* the small pages (home, missing, invitation) keep a centred head */
.hero { padding-block: 1.5rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.title { display: grid; gap: .25rem; justify-items: center; min-width: 0; }
h1 { margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
/* opaque cards on the pages around the stations (SPEC §12.2) */
.card { background: var(--card); border-radius: .75rem; padding: 1rem 1.125rem 1.125rem; display: grid; gap: .625rem; min-width: 0; }
.card p { margin: 0; overflow-wrap: anywhere; }
.tagline { margin: 0; color: var(--muted); font-size: 1.0625rem; text-wrap: balance; }
.store { display: grid; place-items: center; min-height: 2.75rem; padding: .5rem 1.25rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; text-align: center; }
.hero .store { margin-top: .5rem; }

/* ── The station page: the app's full-screen player (SPEC §6.7) on a first screen that belongs to the station
   (WEB-ANFORDERUNGEN.md, 13.11.2026). The field takes the station's colour — its brand colour, else its logo's —
   and the ink on it is white or black, whichever the server found to keep the contrast. The name is as large as
   the screen allows. Play brings the tile forward, the strokes of the symbol move and a glint runs the live line. */
.col:has(.np) { --col-width: 66rem; }
.label { margin: 0; font-size: .75rem; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.site:has(.np) { --field: var(--card); --ink: #fff; }
.site.ink-dark, .site.field-neutral { --ink: #000; }
@media (prefers-color-scheme: dark) { .site.field-neutral { --ink: #fff; } }
.site:has(.np) { --ink-line: color-mix(in srgb, var(--ink) 30%, transparent); }
.site:has(.np) .bar { position: relative; z-index: 1; color: var(--ink); }
.site:has(.np) .bar a:focus-visible { outline-color: var(--ink); }

.np { position: relative; isolation: isolate; color: var(--ink); padding-block: .75rem 2.25rem; }
/* the field runs from the top of the page across the whole width, under the bar */
.np::before { content: ""; position: absolute; z-index: -2; top: -6rem; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; background: var(--field); }
/* a light that drifts slowly across the field — the page lives before anything plays */
.np::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -6rem; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
  background: radial-gradient(60rem 36rem at var(--lx, 30%) var(--ly, 20%), rgba(255, 255, 255, .26), transparent 70%),
              linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .18));
  mix-blend-mode: soft-light; opacity: .55;
}
.np:has([data-state="playing"])::after { opacity: 1; }
.np ::selection { background: color-mix(in srgb, var(--ink) 30%, transparent); }

.name { margin: 0 0 1.25rem; font-weight: 800; line-height: .9; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.name-xl { font-size: min(25cqi, 11rem); }
.name-l { font-size: min(17cqi, 8.5rem); }
.name-m { font-size: min(12.5cqi, 6.75rem); }
.name-s { font-size: min(9.5cqi, 5.25rem); letter-spacing: -.035em; }
.name-xs { font-size: min(7.5cqi, 4.25rem); letter-spacing: -.03em; }
/* on a wide screen a long name keeps the step of its longest word: it has room for more lines across */
@container (min-width: 56rem) {
  .wide-xl { font-size: 11rem; } .wide-l { font-size: 8.5rem; } .wide-m { font-size: 6.75rem; } .wide-s { font-size: 5.25rem; } .wide-xs { font-size: 4.25rem; }
}

.np-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; row-gap: 1.25rem; align-items: center;
  grid-template-areas: "text text" "art play" "live live" "hint hint";
}
.np-text { grid-area: text; display: grid; gap: .625rem; min-width: 0; }
.np .tagline { margin: 0; color: var(--ink); font-size: 1.1875rem; line-height: 1.3; font-weight: 600; text-wrap: pretty; }

/* the tags, set like the engraving on a front panel; the list is pulled left by one gap and that strip is
   clipped, so the dot of an item that starts a line disappears */
.chips { list-style: none; margin: 0 0 0 -1.25em; padding: 0; display: flex; flex-wrap: wrap; row-gap: .375rem; clip-path: inset(-.5em -.5em -.5em 1.25em); font-size: .75rem; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.chips li { position: relative; margin-left: 1.25em; }
.chips li::before { content: "·"; position: absolute; left: -.85em; }

.art { grid-area: art; container-type: inline-size; width: 100%; max-width: 17rem; }
.tile {
  --plate: #fff;
  aspect-ratio: 1; width: 100%; display: grid; place-items: center; padding: 13%;
  background: var(--plate); border-radius: .875rem;
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .45), 0 .25rem .75rem rgba(0, 0, 0, .12);
  transform: scale(.92) rotate(-1.5deg); transform-origin: 50% 70%;
}
.np:has([data-state="playing"]) .tile { transform: none; box-shadow: 0 2.5rem 4.5rem -1.25rem rgba(0, 0, 0, .55), 0 .25rem .75rem rgba(0, 0, 0, .14); }
.tile picture { display: contents; }
.tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* a logo with a dark variant sits on the card colour in the dark scheme; one without keeps its white plate */
@media (prefers-color-scheme: dark) { .tile.has-dark { --plate: #1c1c1e; } }
/* no logo: the app's generated tile (SPEC §12.7); on its own colour it turns over, ink plate with the colour as letters */
.tile.mono { --plate: var(--ink); color: var(--field); font: 700 30cqi/1 ui-rounded, "SF Pro Rounded", system-ui, sans-serif; letter-spacing: -.01em; }
.field-neutral .tile.mono { --plate: #fff; color: #000; }
.tile.mono span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }

/* the player sits in the grid of the head: its parts take their own places */
.listen { display: contents; }
.play { grid-area: play; width: 5.75rem; height: 5.75rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: var(--field); cursor: pointer; box-shadow: 0 1rem 2.25rem -.75rem rgba(0, 0, 0, .45); }
.field-neutral .play { color: var(--bg); }
.play svg { width: 2.375rem; height: 2.375rem; }
.play .i-play { margin-left: .25rem; }
.play[data-state="playing"] .i-play, .play:not([data-state="playing"]) .i-pause { display: none; }
.play[data-state="loading"] { cursor: progress; }
.play:active { transform: scale(.94); }
.play:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.hint { grid-area: hint; margin: 0; max-width: 26rem; color: var(--muted); font-size: .8125rem; line-height: 1.35; text-wrap: balance; }
.np .hint { color: var(--ink); font-weight: 500; }

.live { grid-area: live; display: flex; align-items: center; gap: .875rem; font-size: .75rem; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.live-tag { display: inline-flex; align-items: center; gap: .5rem; }
.bars { display: inline-flex; align-items: center; gap: .1875rem; height: 1rem; }
.bars i { width: .1875rem; height: 100%; border-radius: 1rem; background: currentColor; transform: scaleY(var(--h)); }
.bars i:nth-child(1), .bars i:nth-child(5) { --h: .33; }
.bars i:nth-child(2), .bars i:nth-child(4) { --h: .5; }
.bars i:nth-child(3) { --h: 1; }
.line { position: relative; flex: 1; height: .125rem; border-radius: 1rem; background: var(--ink-line); overflow: hidden; }
.line::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--ink), transparent); opacity: 0; }
.elapsed:empty { display: none; }
[data-state="playing"] .line::after, [data-state="loading"] .line::after { opacity: 1; }

/* below the field: the description, set large like lyrics, and the way to the app */
.after { display: grid; padding-bottom: 1rem; }
.about { display: grid; gap: 1rem; padding-block: 2.5rem; }
.about p { margin: 0; max-width: 34em; font-size: 1.5rem; line-height: 1.3; font-weight: 650; letter-spacing: -.016em; text-wrap: pretty; overflow-wrap: anywhere; }
.about details > summary { cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--muted); list-style: none; width: fit-content; min-height: 2.75rem; display: flex; align-items: center; }
.about details > summary::-webkit-details-marker { display: none; }
.about details[open] > summary { display: none; }
.more-text { display: grid; gap: 1rem; }
.more-text p { color: var(--muted); }
.site-link { font-weight: 600; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .25rem; width: fit-content; }
.site-link svg { width: 1.125rem; height: 1.125rem; }

.app { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 1rem; align-items: center; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.app .icon { width: 3.5rem; aspect-ratio: 1; border-radius: 22%; background: #0c0c0d; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--edge); }
.app .icon svg { width: 62%; height: auto; display: block; }
.app .copy { display: grid; gap: .125rem; min-width: 0; }
.app .copy strong { font-size: 1.0625rem; }
.app .copy span { color: var(--muted); font-size: .9375rem; }
.app .store { grid-column: 1 / -1; justify-self: start; min-width: 14rem; }

/* tablet */
@container (min-width: 34rem) {
  .col { --gutter: 1.5rem; }
  .np-body { grid-template-columns: 15rem minmax(0, 1fr); grid-template-areas: "art text" "art play" "live live" "hint hint"; column-gap: 2rem; }
  .play { justify-self: start; }
  .about p { font-size: 1.75rem; }
  .app { grid-template-columns: auto 1fr auto; }
  .app .store { grid-column: auto; }
}
/* desktop: the name across, the tile below it, the player beside the tile; what follows hangs on the player's edge */
@container (min-width: 56rem) {
  .np { padding-block: 2.5rem 4rem; }
  .name { margin-bottom: 2.5rem; }
  .np-body { grid-template-columns: 20rem minmax(0, 1fr); grid-template-areas: "art text" "art live" "art play" "art hint"; column-gap: 3.5rem; row-gap: 1.5rem; align-content: center; }
  .art { max-width: none; align-self: start; }
  .np-text { align-self: end; }
  .np .tagline { font-size: 1.5rem; }
  .live { max-width: 30rem; }
  .after { padding-left: calc(20rem + 3.5rem); }
  .about p { font-size: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .8s cubic-bezier(.16, 1, .3, 1); }
  .play { transition: transform .15s ease-out; }
  .np::after { animation: drift 26s ease-in-out infinite alternate; transition: opacity .8s cubic-bezier(.16, 1, .3, 1); }
  .line::after { transition: opacity .4s ease-out; animation: glint 2.6s linear infinite; }
  [data-state="loading"] .line::after { animation-duration: 1.1s; }
  .bars i { animation: breathe 3.2s ease-in-out infinite alternate; }
  .bars i:nth-child(2) { animation-delay: -.8s; }
  .bars i:nth-child(3) { animation-delay: -1.6s; }
  .bars i:nth-child(4) { animation-delay: -.4s; }
  .bars i:nth-child(5) { animation-delay: -1.2s; }
  [data-state="playing"] .bars i { animation: stroke 1.1s ease-in-out infinite alternate; }
  [data-state="playing"] .bars i:nth-child(2) { animation-delay: -.35s; }
  [data-state="playing"] .bars i:nth-child(3) { animation-delay: -.7s; }
  [data-state="playing"] .bars i:nth-child(4) { animation-delay: -.2s; }
  [data-state="playing"] .bars i:nth-child(5) { animation-delay: -.55s; }
}
@property --lx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --ly { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@keyframes drift { 0% { --lx: 18%; --ly: 10%; } 50% { --lx: 70%; --ly: 30%; } 100% { --lx: 40%; --ly: 70%; } }
@keyframes glint { from { translate: -100% 0; } to { translate: 250% 0; } }
@keyframes breathe { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * .8 + .2)); } }
@keyframes stroke { from { transform: scaleY(var(--h)); } to { transform: scaleY(calc(var(--h) * .35 + .65)); } }

/* footer on every page */
.foot { padding-block: .5rem 2.5rem; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; color: var(--muted); font-size: .8125rem; }
.foot a { min-height: 2.75rem; display: inline-flex; align-items: center; }

/* the pages around the stations: privacy, legal notice, support, report, takedown */
.page { display: grid; gap: 1.25rem; padding-bottom: 1rem; }
.page-head { display: grid; gap: .375rem; padding-top: 1.5rem; }
.page-head .lead { margin: 0; color: var(--muted); font-size: 1.0625rem; text-wrap: balance; }
.page-head .meta { margin: .25rem 0 0; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.prose { display: grid; gap: .625rem; max-width: 40rem; }
.prose h2 { margin: 1rem 0 0; font-size: 1.1875rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.summary ul, .card ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .375rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .75rem; margin-top: .5rem; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: .625rem .875rem; text-align: left; vertical-align: top; }
thead th { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; white-space: nowrap; }
.log { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.log time { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: .5rem; }

.faq { display: grid; gap: .5rem; }
.faq details { background: var(--card); border-radius: .75rem; padding: 0 1.125rem; }
.faq summary { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.25rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; line-height: 1.6; overflow-wrap: anywhere; }

.links { display: grid; gap: 1rem; }
.link-card { display: grid; gap: .25rem; text-decoration: none; }
.link-card span { color: var(--muted); font-size: .9375rem; }
.facts { margin: 0; display: grid; gap: .75rem; }
.facts div { display: grid; gap: .125rem; }
.facts dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* the one action of a report page: an email, until forms take reports (decision 2026-11-18) */
.mail { margin: 0; }
.mail .store { display: inline-grid; min-width: 12rem; }

@container (min-width: 34rem) {
  .links { grid-template-columns: 1fr 1fr; }
  .facts div { grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem; }
}
@container (min-width: 56rem) {
  .foot nav { justify-content: flex-start; }
  .page-head { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .store { transition: opacity .2s ease; }
}
