/* Dawra's own colours, each with one job: coral for the word being sung and for what is chosen,
   teal for the thread and links, amber for downloading and nothing else. */
:root {
  color-scheme: dark;
  --sky: #000; --night: #140f24; --raised: #1f1936; --line: #342c55;
  --paper: #f4f1ff; --dim: #b3accd; --coral: #ff6f91; --teal: #54d6e8; --amber: #ffc65c;
  --display: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--night); color: var(--paper); font: 17px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; overflow-wrap: break-word; }
html[dir="rtl"] body { line-height: 1.85; }
a { color: var(--teal); text-underline-offset: .22em; }
a, button, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(84, 214, 232, .25); }
summary:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }
.hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 5; padding: 8px 14px; background: var(--paper); color: var(--night); border-radius: 8px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.18; text-wrap: balance; }
html[dir="rtl"] :is(h1, h2, h3) { line-height: 1.4; }
h1 { font-size: clamp(40px, 5vw, 74px); font-weight: 600; font-stretch: 85%; }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; font-stretch: 88%; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
p, li { text-wrap: pretty; }

.column { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.column > p { max-width: 64ch; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 22px; padding: 14px var(--gutter); background: var(--sky); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); font: 700 21px/1 var(--display); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--paper); text-decoration: underline; }
select { font: inherit; font-size: 15px; color: var(--paper); background: var(--raised); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }

/* ---------- hero: words on one side, the living sky on the other ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(820px, calc(100svh - 66px)); background: var(--sky); }
.hero-words { align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px 12px 48px; padding-inline-start: var(--gutter); }
.lead { font-size: 19px; color: var(--dim); max-width: 46ch; }
.get { display: inline-block; padding: 15px 30px; border-radius: 99px; background: var(--amber); color: #241600; font-weight: 700; font-size: 18px; text-decoration: none; }
.get:hover { background: #ffd78a; }
.note { font-size: 14.5px; color: var(--dim); max-width: 46ch; }
.hero-sky { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hero-sky canvas { flex: 1; width: 100%; height: 0; min-height: 360px; display: block; }
figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px var(--gutter) 14px 12px; font-size: 13px; color: var(--dim); }
figcaption span { max-width: 56ch; }
button { font: inherit; color: var(--paper); background: var(--raised); border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; cursor: pointer; }
button:hover { border-color: #7a6bb0; }
figcaption button { font-size: 13px; }

/* ---------- the stage ---------- */
.stage-part { background: var(--sky); padding: 80px 0 56px; border-top: 1px solid #17122a; }
.stage-part .column p { color: var(--dim); }
.stage { width: min(1320px, 100%); margin: 26px auto 0; aspect-ratio: 16 / 8; min-height: 340px; }
.stage canvas { display: block; width: 100%; height: 100%; }
.chooser { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 22px var(--gutter) 0; }
.stage-pause { text-align: center; padding-top: 16px; }
.stage-pause button { font-size: 13px; }
.chooser button { font-size: 15px; background: transparent; }
.chooser button[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #240a13; font-weight: 700; }

/* ---------- where it shows ---------- */
.places { padding-block: 96px 40px; }
.screens { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; margin-top: 26px; }
.screens svg { display: block; width: 100%; margin-bottom: 16px; border-radius: 10px; outline: 1px solid var(--line); }
.screens p { color: var(--dim); font-size: 15.5px; }
.more { margin-top: 40px; }
.s-ground { fill: #251d43; } .s-black { fill: #000; } .s-bar { fill: #0f0b1c; } .s-window { fill: #1a1530; stroke: #4a3f74; }
.s-clock { fill: var(--paper); font: 600 36px var(--display); text-anchor: middle; direction: ltr; }
.s-disc { fill: #0b0814; stroke: #463a6d; stroke-width: 2; } .s-label { fill: var(--coral); }
.s-card { fill: #ffffff1c; stroke: #ffffff40; } .s-text { fill: var(--paper); } .s-faint { fill: #ffffff38; } .s-teal { fill: var(--teal); }
.s-thread { fill: none; stroke: #aebbf0; stroke-width: 1; opacity: .65; } .s-run { fill: none; stroke: var(--coral); stroke-width: 2.5; }
.s-stars { fill: #fff; } .s-icons { fill: #8d82b8; } .s-eq { fill: var(--teal); }

/* ---------- lyrics sources: an order of preference, so numbered ---------- */
.words { padding-block: 56px 96px; }
.sources { list-style: none; counter-reset: source; margin-top: 22px; max-width: 760px; }
.sources li { counter-increment: source; position: relative; padding-block: 0 28px; padding-inline-start: 62px; }
.sources li::before { content: counter(source); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font: 600 17px/1 var(--display); }
/* the thread runs from one to the next, as it does in the star map */
.sources li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17px; top: 42px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), transparent); }
.sources p { color: var(--dim); }

/* ---------- download ---------- */
.download { background: var(--raised); padding-block: 84px; }
.download .column { max-width: 800px; }
.free { font-size: 20px; margin-bottom: 22px; }
.download .note { margin-top: 10px; }
.setup-video { margin-top: 36px; }
.setup-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); border-radius: 14px; outline: 1px solid var(--line); }
.setup-video figcaption { padding: 10px 2px 0; }
.steps { margin: 34px 0 22px; padding-inline-start: 22px; }
.steps li { margin-bottom: 18px; padding-inline-start: 8px; }
.steps li::marker { color: var(--coral); font-weight: 700; }
.steps p, .needs li { color: var(--dim); }
.needs { padding-inline-start: 20px; margin-top: 8px; }
.needs li { margin-bottom: 10px; }
details { border-block-end: 1px solid var(--line); padding-block: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 8px; color: var(--dim); max-width: 66ch; }
#check { margin-bottom: 40px; }
pre { margin-top: 10px; padding: 12px 14px; background: #0d0919; border-radius: 10px; font: 13.5px/1.6 "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; }

/* ---------- questions, footer, privacy ---------- */
.questions { max-width: 800px; padding-block: 84px 60px; }
.bottom { padding: 28px var(--gutter) 40px; background: #0f0b1c; color: var(--dim); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.bottom p:first-child { display: flex; gap: 20px; }
.page { max-width: 760px; padding-block: 56px 80px; }
.page h2 { font-size: 26px; margin: 38px 0 8px; }
.page ul { padding-inline-start: 22px; }
.page li { margin-bottom: 10px; }
.page > p { margin-top: 12px; }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .92em; unicode-bidi: isolate; }
.noscript { padding: 14px var(--gutter); background: var(--amber); color: #241600; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-sky { order: -1; }
  .hero-sky canvas { flex: none; height: 56svh; min-height: 320px; }
  figcaption { padding-inline: var(--gutter); }
  .hero-words { padding: 18px var(--gutter) 52px; }
  .screens { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .stage { aspect-ratio: auto; height: 62svh; }
}
@media (max-width: 600px) {
  .top { flex-wrap: wrap; gap: 10px 14px; }
  .top .language { margin-inline-start: auto; }
  .top nav { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
