/* Colours follow the original site: lavender wash, magenta accent, plum ink. */
:root {
  --bg: #f5eef4;
  --surface: #ffffff;
  --inset: #eee2ed;
  --ink: #2a1a2c;
  --ink-2: #6a586c;
  --ink-3: #94829a;
  --line: #e5d6e4;
  --accent: #a21caf;
  --accent-ink: #ffffff;
  --accent-soft: #f6dcf8;
  --primary: #2a1a2c;
  --primary-ink: #ffffff;
  --good: #2f7d4f;
  --hero: #26142a;
  --hero-ink: #fbf3fb;
  --hero-ink-2: #cfb9d2;
  --glow: #eaa6f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42,26,44,.06), 0 8px 24px rgba(42,26,44,.07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171018; --surface: #211722; --inset: #2b1f2d; --ink: #f7eef7; --ink-2: #c9b6cb; --ink-3: #96849a;
    --line: #3a2b3c; --accent: #c344cf; --accent-soft: #3e2142; --primary: #f7eef7; --primary-ink: #171018;
    --hero: #0f0a10; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #171018; --surface: #211722; --inset: #2b1f2d; --ink: #f7eef7; --ink-2: #c9b6cb; --ink-3: #96849a;
  --line: #3a2b3c; --accent: #c344cf; --accent-soft: #3e2142; --primary: #f7eef7; --primary-ink: #171018;
  --hero: #0f0a10; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--hero) 92%, transparent); backdrop-filter: blur(10px); color: var(--hero-ink); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--hero-ink-2); }
.brand span { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 20px; color: var(--hero-ink); letter-spacing: .02em; }
nav.links { margin-left: auto; display: flex; gap: 4px; }
nav.links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--hero-ink-2); }
nav.links a:hover { color: var(--hero-ink); background: rgba(255,255,255,.08); }
nav.links a.cta { background: var(--accent); color: #fff; font-weight: 600; }
nav.links a, .brand { white-space: nowrap; }
@media (max-width: 560px) { nav.links a:not(.cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 18px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .08s, background .15s, border-color .15s; white-space: nowrap; min-height: 46px; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, white); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark-ghost { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: var(--hero-ink); }
.btn-dark-ghost:hover { background: rgba(255,255,255,.13); }
.btn-sm { padding: 8px 12px; min-height: 38px; font-size: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Old-site banner */
.banner { background: #2a2018; }
.banner img { display: block; width: 100%; max-height: 420px; object-fit: cover; object-position: center top; }

/* Hero / player */
.hero { background: var(--hero); color: var(--hero-ink); padding: 28px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 20px; } }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0; }
.hero .eyebrow { color: var(--glow); }
.tagline { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 22px; }
.tagline em { font-style: italic; color: var(--glow); }
.player { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05)); border: 0; padding: 0; }
.player .play span { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: transform .15s; }
.player .play:hover span { transform: scale(1.07); }
.player .play svg { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.now { padding-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(234,166,242,.16); color: var(--glow); }
.now h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 10px 0 4px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.share-row .btn { width: 100%; }
.share-row .wide { grid-column: 1 / -1; }
.share-hint { font-size: 13px; color: var(--hero-ink-2); margin: 10px 0 0; }
.desc-wrap { margin-top: 14px; }
.desc { font-size: 15px; color: var(--ink-2); margin: 0; white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.desc.open { display: block; }
.on-dark .desc { color: var(--hero-ink-2); }
.more-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.on-dark .more-btn { color: var(--glow); }

/* Single-song page */
.song-hero .player { max-width: 900px; margin: 0 auto; }
.song-hero .song-head, .song-hero .desc-wrap, .pass-on { max-width: 900px; margin-left: auto; margin-right: auto; }
.song-head { margin-top: 22px; }
.song-head h1 { font-size: clamp(26px, 4vw, 40px); margin-top: 6px; }
.pass-on { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.pass-on h2 { font-size: 20px; }
.pass-on .share-row { max-width: 520px; }

/* Intro for the all-songs page */
.intro { background: var(--hero); color: var(--hero-ink); padding: 40px 0 44px; text-align: center; }
.intro .eyebrow { color: var(--glow); }
.intro h1 { font-size: clamp(30px, 5vw, 48px); margin: 10px 0 10px; }
.intro p:last-child { color: var(--hero-ink-2); max-width: 520px; margin: 0 auto; font-size: 17px; }

/* Sections */
section.block { padding: 48px 0; }
section.block.tight { padding-top: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { margin: 4px 0 0; color: var(--ink-2); }
.see-all { font-weight: 600; color: var(--accent); text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--inset); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .pill { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.thumb .pill svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body .meta { font-size: 13px; color: var(--ink-3); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-actions .btn { flex: 1; }

/* Coming soon (premieres) */
.soon-section { padding-bottom: 8px; }
.soon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.soon + .soon { margin-top: 16px; }
@media (max-width: 700px) { .soon { grid-template-columns: 1fr; } }
.soon-art { position: relative; aspect-ratio: 16/9; background: #000; }
.soon-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.6) brightness(.55); }
.soon-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.6); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.soon-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.soon-title { font-size: 22px; }
.soon-when { color: var(--ink-2); margin: 0; font-weight: 500; }
.countdown { display: flex; gap: 8px; margin: 8px 0 4px; }
.countdown:empty { display: none; }
.countdown div { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 8px 10px; min-width: 62px; text-align: center; }
.countdown b { display: block; font: 700 22px/1.1 Fraunces, Georgia, serif; }
.countdown small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.soon-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.soon-hero { background: var(--hero); padding: 32px 0 40px; }
.soon-big { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }
.soon-big .soon-title { font-size: clamp(26px, 4vw, 38px); }
.soon-big .soon-body { padding: 26px; }

/* Notify: one card, notifications first, email tucked underneath */
.notify { background: var(--inset); }
.notify-card { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px 20px; box-shadow: var(--shadow); text-align: center; }
.nc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; }
.nc-icon svg.i { width: 26px; height: 26px; }
.notify-card h2 { font-size: clamp(24px, 3vw, 30px); margin: 14px 0 6px; }
.nc-sub { color: var(--ink-2); margin: 0 auto 18px; max-width: 420px; }
.n-action .big, .sheet .big { width: 100%; margin-top: 10px; font-size: 16px; min-height: 52px; }
.fine { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.center { text-align: center; }
.on-state { display: flex; gap: 12px; align-items: center; text-align: left; background: color-mix(in srgb, var(--good) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); color: var(--ink); border-radius: 14px; padding: 14px 16px; }
.on-state > svg.i { color: var(--good); width: 24px; height: 24px; }
.on-state small { display: block; color: var(--ink-2); }
.linkish { background: none; border: 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; margin-top: 12px; padding: 4px; }
.status { margin-top: 12px; font-size: 14px; padding: 10px 14px; border-radius: 10px; background: var(--inset); color: var(--ink-2); text-align: left; }
.status.ok { color: var(--good); }
.email-alt { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; text-align: left; }
.email-alt summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.email-alt summary::-webkit-details-marker { display: none; }
.email-alt[open] summary { margin-bottom: 12px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input { flex: 1 1 200px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); min-height: 46px; }
.field .btn { flex: 1 1 120px; }

/* Install / open-in-browser guides */
.app-icon { width: 52px !important; height: 52px; aspect-ratio: 1 !important; border-radius: 12px !important; }
.app-icon.lg { width: 76px !important; height: 76px; border-radius: 18px !important; }
.sheet-inner.center { text-align: center; }
.sheet-inner.center h3 { font-family: Fraunces, Georgia, serif; font-size: 24px; margin-top: 14px; }
.sheet-why { color: var(--ink-2); font-size: 15px; margin: 14px 0 0; }
.guide { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 10px; }
.guide li { display: flex; gap: 12px; align-items: flex-start; background: var(--inset); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.guide .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.guide small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-weight: 600; font-size: 14px; color: #0a84ff; }
.chip.wide { color: var(--ink); margin-top: 4px; }
.glyph { width: 18px; height: 18px; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Share the collection */
.spread { text-align: center; }
.spread h2 { font-size: clamp(22px, 3vw, 30px); }
.spread p { color: var(--ink-2); margin: 8px auto 20px; max-width: 520px; }
.spread .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.linkbox { display: flex; align-items: center; gap: 8px; max-width: 460px; margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; }
.linkbox code { flex: 1; font: 500 14px/1.2 Inter, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* Mobile bottom bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; }
@media (max-width: 760px) { .dock { display: flex; } footer { padding-bottom: 110px; } }

/* Share sheet */
dialog.sheet { border: 0; padding: 0; border-radius: 20px; width: min(480px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.sheet::backdrop { background: rgba(20,10,22,.55); }
@media (max-width: 560px) { dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.sheet-inner { padding: 20px; }
.sheet-top { display: flex; gap: 12px; align-items: center; }
.sheet-top img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: var(--inset); }
.sheet-top img[src=""] { display: none; }
.sheet-top h3 { font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.sheet-top small { color: var(--ink-3); }
.x { margin-left: auto; align-self: start; border: 0; background: var(--inset); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sheet label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 18px 0 6px; }
.sheet textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); font-size: 15px; }
.sheet .big { width: 100%; margin-top: 12px; }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; text-decoration: none; }
.opt:hover { border-color: var(--ink-3); }
.opt svg.i { width: 22px; height: 22px; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; transition: .2s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
