:root {
  --verdigris: #12302c;   /* the garden at dusk */
  --moss: #183c37;
  --ivy: #3d7d7b;
  --mist: #d6ebea;
  --iron: #c2a24d;        /* the gate */
  --lamplight: #ebd9a0;
  --blossom: #c49aaa;
  --serif: "Cormorant Garamond", Georgia, serif;
  --inscribed: "Cinzel", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
/* day: the same garden in full sun */
:root[data-theme="day"] {
  --verdigris: #e3ece2; --moss: #f2f5ee; --ivy: #8fae9c; --mist: #1d3a34;
  --iron: #8a6d27; --lamplight: #6e5418; --blossom: #8a4f63;
}
:root[data-theme="day"] .song .c, :root[data-theme="day"] .song .d, :root[data-theme="day"] .beds button small,
:root[data-theme="day"] .p-coll, :root[data-theme="day"] .p-time, :root[data-theme="day"] .search input::placeholder { color: #5b7a72; }
:root[data-theme="day"] .songs, :root[data-theme="day"] .song, :root[data-theme="day"] .foot { border-color: #c8d8cc; }
:root[data-theme="day"] .player { background: #f2f5ee; }
:root[data-theme="day"] .zip { color: #fff; background: #6e5418; }
:root[data-theme="day"] .zip:hover { background: #1d3a34; color: #fff; }
:root[data-theme="day"] .beds button[aria-current="true"] { color: #6e5418; }
:root[data-theme="day"] .stage.has3d .inscribed { color: #fffaf0; text-shadow: 0 1px 18px rgba(80,60,10,.55); }
html, body { transition: background-color .9s ease, color .9s ease; }
* { box-sizing: border-box; }
html { background: var(--verdigris); }
body {
  margin: 0; background: var(--verdigris); color: var(--mist);
  font-family: var(--serif); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; padding-bottom: 96px;
}
a { color: var(--lamplight); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lamplight); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lamplight); color: var(--verdigris); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* ── the gate ── */
.gate-wrap { margin: 0 auto; padding: 0 0 8px; text-align: center; }
.stage { position: relative; max-width: 1040px; margin: 0 auto; padding: 24px 16px 0; }
#gate3d { display: none; }
.stage.has3d { max-width: none; padding: 0; height: clamp(440px, 82vh, 860px); }
.stage.has3d #gate3d { display: block; width: 100%; height: 100%; }
.stage.has3d .gate { display: none; }
.stage.has3d::after { content: ""; position: absolute; inset: auto 0 0 0; height: 16%; background: linear-gradient(transparent, var(--verdigris)); pointer-events: none; }
.inscribed { display: none; }
.stage.has3d .inscribed {
  display: block; position: absolute; left: 0; right: 0; top: clamp(14px, 3vh, 34px); margin: 0;
  font-family: var(--inscribed); font-size: clamp(15px, 2.2vw, 24px); letter-spacing: .5em; text-transform: uppercase;
  color: var(--lamplight); opacity: 0; transition: opacity 2.5s ease; text-shadow: 0 0 24px rgba(235,217,160,.45);
}
.stage.has3d.is-open .inscribed { opacity: .92; }
.mode {
  position: absolute; top: 14px; right: 16px; z-index: 2; font: inherit; font-size: 17px; cursor: pointer;
  color: var(--lamplight); background: color-mix(in srgb, var(--verdigris) 70%, transparent);
  border: 1px solid var(--iron); border-radius: 999px; padding: 6px 16px; backdrop-filter: blur(6px);
}
.mode:hover { color: var(--mist); }
.stage:not(.has3d) .mode { position: static; margin: 0 auto 12px; display: block; }
.stage.has3d + .intro { margin-top: -9vh; position: relative; z-index: 1; }
.intro { padding: 0 16px; }
.gate { width: min(560px, 100%); height: auto; display: block; margin: 0 auto -8px; overflow: visible; }
.inscription { font-family: var(--inscribed); font-size: 30px; letter-spacing: .32em; fill: var(--lamplight); }
.door { transform-box: fill-box; transition: transform 2.4s cubic-bezier(.2,.7,.1,1) .4s; }
.door-left { transform-origin: left center; }
.door-right { transform-origin: right center; }
.open .door-left { transform: perspective(800px) scaleX(.22) skewY(-4deg); }
.open .door-right { transform: perspective(800px) scaleX(.22) skewY(4deg); }
@media (prefers-reduced-motion: reduce) { .door { transition: none; } }

.intro h1 {
  font-family: var(--inscribed); font-weight: 400; font-size: clamp(44px, 8vw, 84px);
  letter-spacing: .08em; line-height: 1; margin: 18px 0 4px; color: var(--lamplight);
}
.lede { font-style: italic; font-size: clamp(22px, 3vw, 28px); margin: 0 0 18px; color: var(--blossom); }
.about { max-width: 34em; margin: 0 auto 26px; font-size: 20px; }
.search input {
  width: min(520px, 100%); font: inherit; font-size: 20px; color: var(--mist);
  background: var(--moss); border: 1px solid var(--ivy); border-radius: 999px; padding: 12px 22px;
}
.search input::placeholder { color: #8fb3b1; font-style: italic; }

/* ── the library ── */
.library {
  max-width: 1040px; margin: 48px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start;
}
.beds { position: sticky; top: 16px; }
.beds ul { list-style: none; margin: 0; padding: 0; }
.beds button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: inherit; font-size: 20px; color: var(--mist); background: none; border: 0;
  padding: 5px 0; cursor: pointer; text-align: left;
}
.beds button small { font-family: var(--mono); font-size: 12px; color: #8fb3b1; }
.beds button:hover { color: var(--lamplight); }
.beds button[aria-current="true"] { color: var(--lamplight); font-weight: 600; }
.beds button[aria-current="true"] span::before { content: "❧ "; color: var(--iron); }
.beds .sep { margin: 14px 0 6px; font-style: italic; color: var(--blossom); font-size: 17px; }

.shelf-head { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.shelf-head img { width: 112px; height: 112px; border-radius: 6px; display: block; }
.shelf-head h2 { font-family: var(--inscribed); font-weight: 400; font-size: 32px; letter-spacing: .05em; margin: 0; color: var(--lamplight); line-height: 1.15; }
.shelf-head p { margin: 4px 0 10px; }
.zip {
  display: inline-block; font: inherit; font-size: 18px; color: var(--verdigris); background: var(--lamplight);
  border: 0; border-radius: 999px; padding: 6px 18px; text-decoration: none; cursor: pointer;
}
.zip:hover { background: #fff; color: var(--verdigris); }

.songs { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2c5650; }
.song {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center;
  padding: 8px 4px; border-bottom: 1px solid #2c5650;
}
.song img { width: 44px; height: 44px; border-radius: 4px; display: block; }
.song .t { font-size: 20px; line-height: 1.25; }
.song .c { font-size: 15px; color: #8fb3b1; font-style: italic; }
.song .d { font-family: var(--mono); font-size: 12px; color: #8fb3b1; }
.song .acts { display: flex; gap: 6px; }
.song button, .p-btn, .p-dl {
  font: inherit; font-size: 16px; color: var(--mist); background: none; border: 1px solid var(--ivy);
  border-radius: 999px; padding: 4px 14px; cursor: pointer; white-space: nowrap;
}
.song button:hover, .p-btn:hover, .p-dl:hover { border-color: var(--lamplight); color: var(--lamplight); }
.song.playing { background: var(--moss); }
.song.playing .t { color: var(--lamplight); }
.empty { padding: 28px 4px; font-style: italic; color: var(--blossom); }
.more { margin: 18px 0; }

/* ── terms + footer ── */
.terms { max-width: 40em; margin: 72px auto 0; padding: 0 16px; }
.terms h2 { font-family: var(--inscribed); font-weight: 400; font-size: 28px; letter-spacing: .05em; color: var(--lamplight); margin: 0 0 10px; }
.foot { max-width: 1040px; margin: 56px auto 0; padding: 20px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2c5650; font-size: 17px; }
.foot span { font-family: var(--inscribed); letter-spacing: .08em; color: var(--iron); }

/* ── player ── */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto minmax(80px, 260px) auto auto; gap: 14px; align-items: center;
  padding: 10px max(16px, calc((100vw - 1040px) / 2)); background: #0d2420; border-top: 1px solid var(--iron);
}
.player[hidden] { display: none; }
.player img { border-radius: 4px; display: block; }
.p-title { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lamplight); }
.p-coll { font-size: 14px; font-style: italic; color: #8fb3b1; }
.p-seek { width: 100%; accent-color: var(--iron); }
.p-time { font-family: var(--mono); font-size: 12px; color: #8fb3b1; min-width: 4.5em; text-align: right; }

@media (max-width: 760px) {
  .stage.has3d .inscribed { top: 64px; letter-spacing: .38em; }
  body { font-size: 18px; }
  .library { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .beds { position: static; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
  .beds ul { display: flex; gap: 8px; width: max-content; }
  .beds .sep { display: none; }
  .beds button { border: 1px solid var(--ivy); border-radius: 999px; padding: 8px 16px; font-size: 18px; width: auto; min-height: 44px; align-items: center; }
  .beds button small { font-size: 13px; }
  .mode { min-height: 44px; padding: 8px 18px; font-size: 18px; }
  .search input { min-height: 50px; }
  .zip { min-height: 44px; padding: 10px 20px; }
  .beds button[aria-current="true"], :root[data-theme="day"] .beds button[aria-current="true"] { background: var(--lamplight); color: var(--verdigris); border-color: var(--lamplight); }
  .beds button[aria-current="true"] small, :root[data-theme="day"] .beds button[aria-current="true"] small { color: var(--verdigris); opacity: .8; }
  .beds button[aria-current="true"] span::before { content: none; }
  .shelf-head { grid-template-columns: 76px 1fr; gap: 14px; }
  .shelf-head img { width: 76px; height: 76px; }
  .shelf-head h2 { font-size: 24px; }
  /* phones: one row per song with two thumb-sized round buttons */
  .song { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 10px 4px; gap: 12px; }
  .song img { width: 48px; height: 48px; }
  .song .d { display: none; }
  .song .acts { gap: 8px; }
  .song .acts button { width: 46px; height: 46px; padding: 0; font-size: 0; display: grid; place-items: center; }
  .song .acts button::before { font-size: 19px; line-height: 1; }
  .song [data-act="play"]::before { content: "\25B6\FE0E"; padding-left: 3px; }
  .song [data-act="play"][data-on="true"]::before { content: "\275A\275A"; font-size: 13px; padding-left: 0; letter-spacing: -1px; }
  .song [data-act="dl"]::before { content: "\2193"; font-size: 24px; }
  .song .acts button:disabled::before { content: "\2026"; }
  .song .c { font-size: 16px; }
  .player { grid-template-columns: 44px minmax(0, 1fr) auto auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .player img { width: 44px; height: 44px; }
  .p-btn, .p-dl { min-height: 44px; min-width: 44px; font-size: 17px; }
  .p-coll { font-size: 15px; }
  .p-seek, .p-time { display: none; }
  body { padding-bottom: 110px; }
  .song .t { font-size: 19px; overflow-wrap: anywhere; }
}

/* ── walking into the garden ── */
.enter { display: none; }
.stage.has3d.is-open .enter {
  display: block; position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); z-index: 3;
  font: inherit; font-size: 18px; letter-spacing: .08em; cursor: pointer; color: var(--verdigris);
  background: var(--lamplight); border: 0; border-radius: 999px; padding: 12px 26px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 40px rgba(235,217,160,.55); animation: enter-in 1.2s ease both, enter-glow 3s ease-in-out 1.2s infinite;
}
@keyframes enter-in { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes enter-glow { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 8px 60px rgba(235,217,160,.85); } }
.garden-ui { display: none; }
.stage.has3d.in-garden { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 40; }
.stage.in-garden::after, .stage.in-garden .inscribed, .stage.in-garden .enter { display: none !important; }
.stage.in-garden .garden-ui { display: flex; position: absolute; top: 14px; left: 16px; right: 140px; z-index: 3; gap: 14px; align-items: center; flex-wrap: wrap; }
.leave { font: inherit; font-size: 16px; cursor: pointer; color: var(--lamplight); background: color-mix(in srgb, var(--verdigris) 75%, transparent);
  border: 1px solid var(--iron); border-radius: 999px; padding: 8px 16px; backdrop-filter: blur(6px); }
.garden-hint { margin: 0; font-size: 14px; color: var(--lamplight); background: color-mix(in srgb, var(--verdigris) 70%, transparent); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
body.garden-lock { overflow: hidden; }
body.garden-lock .player { z-index: 60; }
.bed-tags { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; opacity: 0; transition: opacity .8s ease; }
.bed-tags.show { opacity: 1; }
.bed-tag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; transform-origin: 50% 100%;
  display: grid; gap: 1px; padding: 7px 14px 8px; border-radius: 10px; font: inherit; text-align: center; white-space: nowrap;
  color: #2b2208; background: linear-gradient(#f6e7b4, #e5c66f); border: 1px solid #fff6d6;
  box-shadow: 0 6px 22px rgba(0,0,0,.35), 0 0 18px rgba(235,217,160,.35); }
.bed-tag b { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.bed-tag small { font-size: 12px; opacity: .75; }
.bed-tag::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 16px; background: #e5c66f; transform: translateX(-50%); }
.bed-tag.on { background: linear-gradient(#ffffff, #f6e7b4); box-shadow: 0 0 0 3px rgba(255,240,190,.9), 0 0 36px rgba(255,230,160,.95); }
.bed-tag.on b::before { content: "♪ "; }
.bed-tag:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) {
  .stage.in-garden .garden-ui { right: 16px; top: 64px; }
  .garden-hint { font-size: 13px; }
  .bed-tag b { font-size: 14px; }
}

.walk-pad { display: none; }
.stage.in-garden .walk-pad { display: flex; flex-direction: column; gap: 8px; position: absolute; right: 16px; bottom: 96px; z-index: 3; }
.walk-pad button { width: 52px; height: 52px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--verdigris);
  background: var(--lamplight); border: 0; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.walk-pad button:active { transform: scale(.94); }

/* live on YouTube */
.live-pill { display: flex; width: max-content; max-width: 100%; box-sizing: border-box; align-items: center; gap: 10px; margin: 4px auto 18px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid #e0566a; background: rgba(42, 7, 12, 0.55); color: #ffe3e7; text-decoration: none; letter-spacing: 0.04em;
  animation: live-glow 2.4s ease-in-out infinite; }
.live-pill:hover { background: rgba(70, 12, 20, 0.7); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 8px #ff3b4e; animation: live-dot 1.2s ease-in-out infinite; }
@keyframes live-glow { 0%, 100% { box-shadow: 0 0 6px rgba(224, 86, 106, 0.25); } 50% { box-shadow: 0 0 20px rgba(224, 86, 106, 0.65); } }
@keyframes live-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-pill, .live-dot { animation: none; } }

/* Keep the illustrated fallback and the 3D canvas hidden until the updated models are ready. */
.js .stage.loading { min-height: clamp(440px, 82vh, 860px); }
.js .stage.loading .gate, .js .stage.loading #gate3d { visibility: hidden; }
.gate-loading { display: none; }
.js .stage.loading .gate-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--lamplight); pointer-events: none; }
.gate-loading-seal { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid currentColor; border-radius: 50%; font-size: 28px; box-shadow: 0 0 35px rgba(235,217,160,.15), inset 0 0 20px rgba(235,217,160,.08); }
.gate-loading-title { font-family: var(--inscribed); font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: .25em; }
.gate-loading-text { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .8; }
.gate-loading-dots { animation: gate-loading-pulse 1.5s ease-in-out infinite; }
@keyframes gate-loading-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .gate-loading-dots { animation: none; } }

/* The listening room: warm metal, soft glass and a little more breathing room. */
body { background-image: radial-gradient(ellipse at 50% 42%, rgba(62, 111, 86, .13), transparent 50%), linear-gradient(180deg, transparent 30%, rgba(3, 20, 18, .27)); }
.intro { position: relative; max-width: 980px; margin-inline: auto; }
.intro-eyebrow { margin: 0 0 14px; font: 500 10px var(--mono); color: var(--iron); text-transform: uppercase; letter-spacing: .3em; }
.intro-eyebrow span { padding: 0 10px; opacity: .7; }
.intro h1 { text-shadow: 0 2px 28px rgba(235,217,160,.15); }
.about { color: color-mix(in srgb, var(--mist) 88%, transparent); }
.search { display: block; max-width: 560px; margin: 0 auto; }
.search input { width: 100%; padding: 16px 25px; border-color: color-mix(in srgb, var(--iron) 50%, transparent); background: color-mix(in srgb, var(--moss) 82%, transparent); box-shadow: 0 10px 32px rgba(0,0,0,.12), inset 0 1px rgba(255,255,255,.04); transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--lamplight); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iron) 22%, transparent); }
.library { max-width: 1120px; gap: 50px; margin-top: 72px; }
.library-label { padding: 0 0 14px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--iron); }
.beds button { padding: 8px 12px; border-radius: 9px; transition: background .2s, color .2s; }
.beds button:hover, .beds button[aria-current="true"] { background: color-mix(in srgb, var(--ivy) 14%, transparent); }
.shelf-head { padding: 0 0 20px; }
.shelf-head img { border: 1px solid color-mix(in srgb, var(--iron) 50%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.song { padding: 12px 10px; transition: background .2s; }
.song:hover { background: color-mix(in srgb, var(--ivy) 10%, transparent); }
.song img { box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.song.playing { border-left: 2px solid var(--iron); }
.terms { padding: 28px 32px; border: 1px solid color-mix(in srgb, var(--iron) 30%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--moss) 58%, transparent); }
.player { box-shadow: 0 -12px 40px rgba(0,0,0,.22); }
:root[data-theme="day"] body { background-image: radial-gradient(ellipse at 50% 40%, rgba(195, 163, 85, .13), transparent 52%); }
@media (max-width:760px) { .library { gap: 24px; margin-top: 48px; } .library-label { padding-left: 16px; } .beds button { padding: 8px 16px; } .song { padding: 12px 5px; } .terms { margin-inline: 16px; padding: 24px; } }
@media (prefers-reduced-motion:reduce) { .search input, .beds button, .song { transition: none; } }
@media (min-width: 761px) { .stage.has3d.is-open .enter { left: calc(50% + 230px); bottom: 12%; } }
