/* prismaphone.com in the app's look (2026-11-04): white glass by day, almost black by night, as the iPhone is set.
   Instrument Serif as in the app's titles (SIL Open Font License, fonts/OFL.txt), the name in expanded capitals, the
   rest in the system font. No external requests. */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-style: normal; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-style: italic; font-display: block; }

:root {
  /* The white look: the app's paper and ink (Ink.color). */
  --bg: rgb(248 247 246);
  --fg: rgb(26 28 33);
  --muted: rgb(26 28 33 / 0.66);
  --subtle: rgb(26 28 33 / 0.44);
  --line: rgb(26 28 33 / 0.14);
  --panel: rgb(255 255 255 / 0.6);
  --button: rgb(26 28 33);
  --button-ink: rgb(255 255 255);
  /* The board's own ground under the page (board.js: paper with a breath of Ode's lavender), for fades into it. */
  --board: rgb(241 241 250);
  --gutter: max(20px, calc(env(safe-area-inset-left, 0px) + 16px), min(8vw, 112px));
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Black dark: Ink.night and the app's light text. */
    --bg: rgb(5 5 6);
    --fg: rgb(237 237 236);
    --muted: rgb(237 237 236 / 0.68);
    --subtle: rgb(237 237 236 / 0.44);
    --line: rgb(237 237 236 / 0.14);
    --panel: rgb(18 18 19 / 0.6);
    --button: rgb(237 237 236);
    --button-ink: rgb(11 11 11);
    --board: rgb(9 8 12);
    color-scheme: dark;
  }
}

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
/* The page stays put on an iPhone (2026-11-05, Robin: "man kann die Page zoomen … es bewegt sich die ganze Seite hin
   und her. Das sollte wirklich locked sein auf dem iPhone"): no pinch zoom and no double-tap zoom, so a finger gliding
   over the board plays it, and nothing wider than the screen lets the page slide sideways. Rows that scroll sideways
   (the photographs, the story's ages) still do. */
html { touch-action: pan-x pan-y; }
html, body { overflow-x: clip; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--fg); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* The app's name: SF Pro Expanded in capitals, widely spaced, where the system has it. */
.name { position: absolute; top: max(24px, calc(env(safe-area-inset-top, 0px) + 16px)); left: var(--gutter); margin: 0; font: 600 13px/1 var(--sans); font-stretch: expanded; letter-spacing: 0.36em; color: var(--muted); text-decoration: none; z-index: 2; }

footer { position: relative; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 40px var(--gutter) max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px)); font-size: 14px; color: var(--subtle); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .owner { margin-left: auto; }
@media (max-width: 520px) { footer .owner { margin-left: 0; width: 100%; } }

/* Privacy, imprint, support. */
.doc { position: relative; max-width: 40rem; padding: 120px var(--gutter) 24px; }
.doc h1 { margin: 0 0 12px; font: 400 clamp(52px, 13vw, 88px)/1 var(--serif); letter-spacing: -0.01em; }
.doc .updated { margin: 0 0 28px; font-size: 14px; color: var(--subtle); }
.doc .intro { margin: 0 0 8px; font-size: 20px; color: var(--fg); }
.doc h2 { margin: 44px 0 8px; font: 400 32px/1.15 var(--serif); }
.doc h3 { margin: 24px 0 4px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin: 0 0 6px; }
.doc strong { color: var(--fg); font-weight: 600; }

/* The bar at the top, as on Apple's pages (2026-11-04, Robin: "Die Story sollte wahrscheinlich oben in die Navigation"):
   glass that lets the board show through, the name on the left, the pages and the download on the right. */
.nav { position: sticky; top: 0; z-index: 10; height: 52px; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line); }
.nav .in { max-width: 1080px; height: 52px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 26px; box-sizing: border-box; }
.nav .mark { margin-right: auto; font: 600 12px/1 var(--sans); font-stretch: expanded; letter-spacing: 0.34em; color: var(--fg); text-decoration: none; }
.nav a.link { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--fg); }
.nav a.get-app { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--button); color: var(--button-ink); text-decoration: none; }
@media (max-width: 560px) { .nav .in { gap: 16px; } .nav a.link.wide { display: none; } }

/* A larger, calmer text on a wide screen (Robin: "Desktop ist die Font stimmt überhaupt nicht"). */
@media (min-width: 1000px) {
  body { font-size: 19px; }
  .doc { font-size: 19px; }
}
.doc { margin: 0 auto; padding-top: 72px; }

/* Coming soon (Robin 2026-11-04: "Ein coming soon wäre noch gut bei Download und App Store Button"; 2026-11-05: "die
   Warteliste auf der Website"): until the app is in the App Store, the bar's Download reads "Join the waitlist" and opens
   the sign-up (waitlist.js), every App Store badge gives way to a "Join the waitlist" button, and "For iPhone" beside it
   reads "Coming soon for iPhone". At release: delete this block, set MODE in waitlist.js, bump site.css?v= in the pages. */
a.badge { display: none; }
button.join { display: inline-flex; }
div.get small { font-size: 0; }
div.get small::after { content: "Coming soon for iPhone"; font-size: 14px; }
.nav a.get-app { font-size: 0; }
.nav a.get-app::after { content: "Join the waitlist"; font-size: 13px; }
@media (max-width: 400px) { .nav a.get-app::after { content: "Waitlist"; } }

/* The film in a popover (film.js, 2026-11-05): Robin playing Ode with its sound, opened by any button with data-film on
   any page; wide on a wide screen, upright on a phone. */
dialog.watch-film { width: min(92vw, calc(84svh * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
dialog.watch-film.tall { width: min(92vw, calc(78svh * 9 / 16)); }
dialog.watch-film::backdrop { background: rgb(5 5 6 / 0.84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.watch-film[open] { animation: watch-in 0.35s ease-out; }
@keyframes watch-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
dialog.watch-film .frame { position: relative; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.7); }
dialog.watch-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
dialog.watch-film.tall video { aspect-ratio: 9 / 16; }
dialog.watch-film video:focus { outline: none; }
dialog.watch-film .close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: 50%; background: rgb(0 0 0 / 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; cursor: pointer; }
dialog.watch-film .close svg { width: 18px; height: 18px; }
dialog.watch-film .versions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
dialog.watch-film .versions button { height: 36px; padding: 0 16px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; background: transparent;
  color: rgb(255 255 255 / 0.78); font: 500 14px/1 var(--sans); cursor: pointer; }
dialog.watch-film .versions button[aria-pressed="true"] { background: rgb(255 255 255 / 0.92); border-color: transparent; color: rgb(20 20 22); }
dialog.watch-film .versions button.next { border-color: rgb(255 255 255 / 0.92); color: #fff; animation: next-film 1.6s ease-in-out 2; }
@keyframes next-film { 50% { background: rgb(255 255 255 / 0.18); } }
@media (prefers-reduced-motion: reduce) { dialog.watch-film .versions button.next { animation: none; } }
/* The buttons that open it, on the board's ground: a glass pill with a round play mark, the length beside the words. */
.play-film { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 8px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--fg); font: 500 15px/1 var(--sans);
  white-space: nowrap; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.play-film:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--fg) 32%, transparent); }
.play-film i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--button); color: var(--button-ink); }
.play-film svg { width: 14px; height: 14px; margin-left: 2px; }
.play-film small { font-size: 13px; color: var(--subtle); }
.see { margin: 28px 0 0; }

/* The waitlist's button and popover (waitlist.js, 2026-11-05). The button shows only while the Coming soon block above is
   in; the popover is the page's own paper, the form as the app's buttons. */
.join { display: none; align-items: center; gap: 10px; height: 50px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--button); color: var(--button-ink); font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.join:hover { transform: translateY(-1px); opacity: 0.9; }
.join i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.join i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0.6; animation: join-ping 1.6s ease-out infinite; }
@keyframes join-ping { to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .join i::after { animation: none; } }
dialog.waitlist { width: min(calc(100vw - 32px), 440px); max-width: none; padding: 0; border: 1px solid var(--line); border-radius: 28px;
  background: var(--bg); color: var(--fg); box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.45); }
dialog.waitlist::backdrop { background: rgb(5 5 6 / 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.waitlist[open] { animation: watch-in 0.3s ease-out; }
dialog.waitlist .card { position: relative; padding: 34px 28px 24px; }
dialog.waitlist h2 { margin: 0 44px 12px 0; font: 400 36px/1.02 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
dialog.waitlist .body { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
dialog.waitlist input[type="email"] { display: block; width: 100%; box-sizing: border-box; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--panel); color: var(--fg); font: 400 16px/1.2 var(--sans); }
dialog.waitlist input[type="email"]:focus { outline: none; border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
dialog.waitlist .send { display: block; width: 100%; margin-top: 10px; padding: 15px; border: 0; border-radius: 16px; background: var(--button);
  color: var(--button-ink); font: 600 16px/1 var(--sans); cursor: pointer; }
dialog.waitlist .send:disabled { opacity: 0.6; cursor: default; }
dialog.waitlist .note { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--subtle); }
dialog.waitlist .note a { color: var(--muted); }
dialog.waitlist .close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
dialog.waitlist .close:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }
dialog.waitlist .close svg { width: 18px; height: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
