/* ============================================================
   WHISPERS OF ENTROPY — LIGHT VERSION theme layer (bespoke we-* tokens)
   Loaded AFTER style.css. "light" (default) flips the CONTENT to warm paper;
   the hero (concert video + Cormorant title + copper "of" + haze/grain) stays
   dark in both themes since its text floats over dark footage. Adds the theme
   toggle + the audio "Sound" arrow.
============================================================ */

/* ---------- NOW-PLAYING PLAYER TOKENS ---------- */
/* Dark default: copper-on-near-black glass card. */
html {
  --np-bg:        rgba(18,10,8,0.93);
  --np-border:    rgba(200,130,74,0.30);
  --np-shadow:    rgba(0,0,0,0.5);
  --np-text:      #f1ebde;
  --np-accent:    #c8824a;
  --np-accent-soft: rgba(200,130,74,0.14);
  --np-dim:       rgba(241,235,222,0.65);
  --np-faint:     rgba(241,235,222,0.55);
  --np-track:     rgba(241,235,222,0.20);
  --np-vol-fill:  rgba(241,235,222,0.6);
  --np-vol-thumb: rgba(241,235,222,0.85);
  --np-divider:   rgba(241,235,222,0.10);
}
/* Light: warm cream card with deeper copper accents. */
html[data-theme="light"] {
  --np-bg:        rgba(236,231,219,0.96);
  --np-border:    rgba(154,90,38,0.32);
  --np-shadow:    rgba(80,50,20,0.22);
  --np-text:      #221b14;
  --np-accent:    #9a5a26;
  --np-accent-soft: rgba(154,90,38,0.12);
  --np-dim:       rgba(34,27,20,0.62);
  --np-faint:     rgba(34,27,20,0.5);
  --np-track:     rgba(34,27,20,0.18);
  --np-vol-fill:  rgba(34,27,20,0.55);
  --np-vol-thumb: rgba(34,27,20,0.8);
  --np-divider:   rgba(34,27,20,0.12);
}

/* ---------- LIGHT PALETTE (content) ---------- */
html[data-theme="light"] {
  --we-bg:     #f4efe6;   /* warm paper */
  --we-bg-2:   #ece4d6;   /* alt section */
  --we-ink:    #221b14;   /* warm near-black */
  --we-ink-dim:#766a58;
  --we-copper: #9a5a26;   /* deeper burnt copper — reads on paper */
  --we-amber:  #8a5520;
  --we-line:   rgba(154, 90, 38, 0.30);
  --we-paper:  #f4efe6;   /* stable page colour for the hero hand-off */
}

/* The hero floats over the dark concert video in BOTH themes — keep its
   palette dark so the title, tagline, links, haze and grain stay correct. */
html[data-theme="light"] .hero--we {
  --we-bg:     #08060a;
  --we-bg-2:   #120a08;
  --we-ink:    #f1ebde;
  --we-ink-dim:#9b8e7b;
  --we-copper: #c8824a;
  --we-amber:  #d99a5b;
  --we-line:   rgba(200, 130, 74, 0.18);
}

/* Keep the hero video IDENTICAL to dark in light mode (no brightening), per Deniz. */
html[data-theme="light"] .we-video { filter: brightness(0.55) saturate(1.05); }

/* Hero veil stays IDENTICAL to dark in light mode (no override): the hero re-asserts
   the dark --we-bg above, so the dark .we-veil renders the same heavy vignette + dark
   bottom in both themes. The light page body still begins below the hero. */

/* footer had a hardcoded near-black background */
html[data-theme="light"] .we-foot { background: var(--we-bg-2); }

/* ============================================================
   THEME TOGGLE (fixed, top-right; legible over hero + content)
============================================================ */
.theme-toggle {
  position: fixed;
  top: clamp(14px, 2.2vw, 26px);
  right: clamp(14px, 2.2vw, 26px);
  z-index: 60;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200,130,74,0.5);
  background: rgba(8,6,10,0.34);
  color: #f1ebde;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: border-color .3s, color .3s, background .3s, transform .2s;
}
.theme-toggle:hover { border-color: #c8824a; color: #c8824a; }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .ico-moon  { display: none; }
.theme-toggle .ico-sun { display: block; }

html[data-theme="light"] .theme-toggle {
  border-color: rgba(154,90,38,0.45);
  background: rgba(255,253,248,0.6);
  color: #221b14;
  box-shadow: 0 2px 12px rgba(80,50,20,0.18);
}
html[data-theme="light"] .theme-toggle:hover { border-color: #9a5a26; color: #9a5a26; }
html[data-theme="dark"] .theme-toggle .ico-moon  { display: block; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }

@media (max-width: 520px) {
  .theme-toggle { width: 36px; height: 36px; top: 12px; right: 12px; }
}

/* "Listen" chip: fixed top-right, sits just LEFT of the light/dark toggle.
   THEME-STABLE: hardcoded colours that match the dark-glass hero pills
   (.we-watch); it does NOT recolour on light/dark toggle. */
.we-listen {
  position: fixed; z-index: 60;
  top: clamp(14px, 2.2vw, 26px);
  right: calc(clamp(14px, 2.2vw, 26px) + 50px);   /* 40px toggle + 10px gap */
  height: 40px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(200,130,74,0.5);
  background: rgba(0,0,0,0.45);
  color: #f1ebde;
  font-family: 'Spectral', sans-serif;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,0,0,0.85);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: border-color .4s, color .4s, background .4s, transform .2s;
}
.we-listen:hover { border-color: #c8824a; color: #c8824a; background: rgba(200,130,74,0.12); }
.we-listen:active { transform: scale(.96); }
.we-listen .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #c8824a; flex-shrink: 0;
  animation: we-listen-pulse 2.4s ease-in-out infinite;
}
@keyframes we-listen-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,130,74,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(200,130,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,130,74,0); }
}
@media (prefers-reduced-motion: reduce) {
  .we-listen .dot { animation: none; box-shadow: 0 0 8px #c8824a; }
}
@media (max-width: 520px) {
  .we-listen { top: 12px; right: calc(12px + 44px); height: 36px; padding: 0 13px; font-size: 10px; letter-spacing: 0.16em; }
}

/* ============================================================
   AUDIO ARROW HINT — points at the speaker icon (inside .we-audio,
   so it inherits the hero's light palette). Fades out after first use.
============================================================ */
.audio-hint {
  position: absolute;
  left: 15px;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 7px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity .7s ease, transform .7s ease;
}
.audio-hint.is-hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }
.audio-hint__label {
  font-family: 'Spectral', sans-serif;
  font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--we-ink); white-space: nowrap;
  text-shadow: 0 0 8px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.6);
}
.audio-hint__pointer {
  display: flex; flex-direction: column; align-items: center;
  animation: audioHintBob 2.4s ease-in-out infinite;
}
.audio-hint__line { width: 1px; height: 22px; background: linear-gradient(to bottom, transparent, var(--we-ink)); opacity: 0.7; }
.audio-hint__arrow {
  width: 7px; height: 7px; margin-top: -4px;
  border-right: 1px solid var(--we-ink);
  border-bottom: 1px solid var(--we-ink);
  transform: rotate(45deg); opacity: 0.85;
}
@keyframes audioHintBob {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(3px); opacity: 1;    }
}
@media (prefers-reduced-motion: reduce) { .audio-hint__pointer { animation: none; } }

/* ============== NOW PLAYING — floating media player (Whispers copper) ============== */
.now-playing{position:fixed;bottom:20px;right:20px;z-index:100;width:min(300px,calc(100vw - 28px));padding:16px 20px 14px;background:var(--np-bg);color:var(--np-text);border:1px solid var(--np-border);border-radius:12px;box-shadow:0 10px 32px var(--np-shadow);font-family:'Spectral',-apple-system,BlinkMacSystemFont,'Helvetica Neue',sans-serif;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:transform .4s cubic-bezier(.4,0,.2,1),opacity .4s,background .4s,border-color .4s,color .4s;}
.now-playing.is-hidden{transform:translateY(150%);opacity:0;pointer-events:none;}
.np-close{position:absolute;top:9px;right:12px;width:24px;height:24px;background:transparent;border:none;color:var(--np-faint);font-size:22px;cursor:pointer;line-height:1;padding:0;font-family:inherit;}
.np-close:hover{color:var(--np-accent);}
.np-fs{position:absolute;top:12px;right:42px;width:22px;height:22px;background:transparent;border:none;color:var(--np-faint);cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;}
.np-fs:hover{color:var(--np-accent);}
.np-fs svg{width:13px;height:13px;display:block;}
.np-label{font-family:'Spectral',sans-serif;font-size:11px;letter-spacing:0.18em;text-transform:uppercase;color:var(--np-accent);margin:0 0 6px;display:flex;align-items:center;gap:7px;}
.np-label .np-dot{width:6px;height:6px;border-radius:50%;background:var(--np-accent);display:inline-block;box-shadow:0 0 8px var(--np-accent);}
.np-title{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:23px;font-weight:500;color:var(--np-text);margin:0 0 2px;line-height:1.15;}
.np-artist{font-family:'Spectral',sans-serif;font-size:12.5px;letter-spacing:0.02em;color:var(--np-dim);margin:0 0 10px;}
.np-controls{display:flex;align-items:center;gap:10px;}
.np-play{flex-shrink:0;width:34px;height:34px;border-radius:50%;border:1px solid var(--np-accent);background:transparent;color:var(--np-accent);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;transition:background .2s,transform .15s,border-color .4s,color .4s;}
.np-play:hover{background:var(--np-accent-soft);}
.np-play:active{transform:scale(.94);}
.np-play svg{width:11px;height:11px;display:block;}
.np-play .icon-pause{display:none;}
.np-play[data-state="playing"] .icon-play{display:none;}
.np-play[data-state="playing"] .icon-pause{display:block;}
.np-progress{flex:1;position:relative;height:18px;cursor:pointer;touch-action:none;}
.np-progress-track,.np-progress-fill{position:absolute;left:0;top:50%;height:1px;transform:translateY(-50%);pointer-events:none;}
.np-progress-track{width:100%;background:var(--np-track);}
.np-progress-fill{background:var(--np-accent);width:0%;}
.np-progress-thumb{position:absolute;top:50%;left:0%;width:6px;height:6px;border-radius:50%;background:var(--np-accent);transform:translate(-50%,-50%);pointer-events:none;transition:transform .2s;}
.np-progress:hover .np-progress-thumb{transform:translate(-50%,-50%) scale(1.5);}
.np-time{flex-shrink:0;font-family:'Spectral',sans-serif;font-size:12px;color:var(--np-dim);font-variant-numeric:tabular-nums;letter-spacing:0.02em;}
.np-volume{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--np-divider);}
.np-vol-icon{font-family:'Spectral',sans-serif;font-size:10px;color:var(--np-dim);flex-shrink:0;letter-spacing:0.16em;}
.np-vol-slider{flex:1;position:relative;height:14px;cursor:pointer;touch-action:none;}
.np-vol-track,.np-vol-fill{position:absolute;left:0;top:50%;height:1px;transform:translateY(-50%);pointer-events:none;}
.np-vol-track{width:100%;background:var(--np-track);}
.np-vol-fill{background:var(--np-vol-fill);width:0%;}
.np-vol-thumb{position:absolute;top:50%;left:0%;width:5px;height:5px;border-radius:50%;background:var(--np-vol-thumb);transform:translate(-50%,-50%);pointer-events:none;transition:transform .2s;}
.np-vol-slider:hover .np-vol-thumb{transform:translate(-50%,-50%) scale(1.6);}
/* always-on "Sound" arrow above the player (per Deniz, never dissolves) */
.np-hint{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;}
.np-hint__label{font-family:'Spectral',sans-serif;font-size:9.5px;letter-spacing:0.26em;text-transform:uppercase;color:var(--np-accent);white-space:nowrap;text-shadow:0 0 8px rgba(0,0,0,0.6);}
.np-hint__pointer{display:flex;flex-direction:column;align-items:center;animation:audioHintBob 2.4s ease-in-out infinite;}
.np-hint__line{width:1px;height:18px;background:linear-gradient(to bottom,transparent,var(--np-accent));opacity:0.8;}
.np-hint__arrow{width:7px;height:7px;margin-top:-4px;border-right:1px solid var(--np-accent);border-bottom:1px solid var(--np-accent);transform:rotate(45deg);opacity:0.9;}
@media (max-width:520px){.now-playing{bottom:14px;right:14px;left:14px;width:auto;}}
