/* ============================================================
   SUNRISER — placeholder identity until the client PSD lands.
   Palette (dawn over farmland):
     night ink   #0B1026
     ember       #E07A3F
     sun gold    #F5B942
     dusk rose   #A34A5E
     cream       #F4E9D6
     ground      #160F08
   Type: Alfa Slab One (display) / Archivo (body) / IBM Plex Mono (clock, labels)
   ============================================================ */

:root {
  --night: #0b1026;
  --ember: #e07a3f;
  --gold: #f5b942;
  --rose: #a34a5e;
  --cream: #f4e9d6;
  --ink: #14100b;
  --ink-2: #1d1710;
  --ground: #160f08;
  --ground-far: #2b1c10;
  --accent: var(--ember);      /* JS shifts this with the sky */
  --hero-ink: var(--cream);    /* JS flips this for bright skies */
  /* one family, three widths: expanded display (matches the wordmark's wide
     grotesque), normal body, mono for utility */
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(rgba(10, 8, 5, 0.55), transparent);
}
.topbar a { color: inherit; text-decoration: none; }
.topbar__home { font-weight: 600; }
.topbar__note { opacity: 0.6; flex: 1; }
.topbar__cta { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------- hero / photo scene ----------
   Layer order (bottom to top):
   1 bg plate · 2 tint grade · 3 stars · 4 sun bloom + moon ·
   5 title (behind Lee, poster depth) · 6 Lee plates · 7 scrim · 9 copy */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0b1026;
  cursor: grab;
  touch-action: pan-y; /* horizontal drags scrub time, vertical still scrolls */
}
.hero.is-scrubbing { cursor: grabbing; }
.hero.is-scrubbing * { cursor: grabbing; }

.plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  user-select: none;
  -webkit-user-drag: none;
}
.plate--bg { z-index: 1; will-change: transform; }
.lee { will-change: transform; }

.tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.celestial {
  position: absolute;
  z-index: 4;
  width: 320px;
  height: 320px;
  left: 0;
  top: 0;
  will-change: transform;
  pointer-events: none; /* the whole sky scrubs; bodies don't need their own hits */
}
#sun { pointer-events: auto; cursor: grab; } /* keeps keyboard focus target */
#sun:focus-visible { outline: 3px dashed var(--cream); outline-offset: -60px; border-radius: 50%; }

.sun-bloom {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 244, 214, 0.95) 0%,
    rgba(255, 205, 112, 0.55) 22%,
    rgba(255, 170, 70, 0.22) 45%,
    transparent 68%);
}

.moon { width: 240px; height: 240px; }
.moon-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 36%, #ffffff, #e8ecfa 55%, #b9c2dd 88%);
  box-shadow:
    0 0 30px 6px rgba(235, 240, 255, 0.55),
    0 0 90px 36px rgba(200, 214, 255, 0.28),
    0 0 160px 70px rgba(160, 180, 240, 0.12);
}

.title-block {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  padding-top: clamp(40px, 7vh, 84px);
  text-align: center;
  color: var(--hero-ink);
  transition: color 0.8s ease;
  pointer-events: none;
}
.title-block .eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3); }

/* Lee rides above the title; rim + cast are painted through his own alpha */
.lee {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.lee-cast, .lee-rim {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("assets/lee.png");
  mask-image: url("assets/lee.png");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: 50% 22%;
  mask-position: 50% 22%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.lee-cast { mix-blend-mode: multiply; }
.lee-rim { mix-blend-mode: screen; }

.drag-hint {
  position: absolute;
  z-index: 8;
  right: 5vw;
  bottom: 36px;
  width: min(380px, 34vw);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.drag-hint.is-hidden { opacity: 0; }

/* always-visible day scrubber: the whole 24h as a gradient track */
.time-scrub {
  position: absolute;
  z-index: 9;
  right: 5vw;
  bottom: 62px;
  width: min(380px, 34vw);
  height: 24px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.time-scrub::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    #0d1430 0%, #35306a 19%, #f5b942 27%, #cfe3ee 38%,
    #bcd9ee 50%, #f2c063 73%, #a05468 81%, #35306a 88%, #0d1430 100%);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.time-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff3d0, var(--gold) 60%, #eb8f2d);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(245, 185, 66, 0.8);
}
.time-scrub::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    #0d1430 0%, #35306a 19%, #f5b942 27%, #cfe3ee 38%,
    #bcd9ee 50%, #f2c063 73%, #a05468 81%, #35306a 88%, #0d1430 100%);
}
.time-scrub::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.time-scrub:focus-visible { outline: 2px dashed var(--cream); outline-offset: 6px; }

.now-chip {
  position: absolute;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
}

.hero__scrim {
  position: absolute;
  z-index: 7;
  inset: auto 0 0 0;
  height: 38vh;
  background: linear-gradient(transparent, rgba(10, 8, 5, 0.72));
  pointer-events: none;
}

.hero__copy {
  position: absolute;
  z-index: 9;
  left: 0;
  bottom: 0;
  padding: 0 clamp(24px, 5vw, 64px) clamp(28px, 5vh, 56px);
  text-align: left;
  color: var(--cream);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 125%;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(10, 8, 5, 0.12);
}

/* wordmark rendered as a mask so it recolors with the time of day */
.logo-mark {
  display: none;
  margin: 0 auto;
  width: min(88vw, 1200px);
  background-color: currentColor;
  -webkit-mask: var(--logo-url) center / contain no-repeat;
  mask: var(--logo-url) center / contain no-repeat;
}
.title-block.has-logo .logo-mark { display: block; }
.logo-mark.is-color {
  position: relative;
  width: min(62vw, 780px);
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  -webkit-mask: none;
  mask: none;
  filter: drop-shadow(0 4px 26px rgba(15, 10, 5, 0.45));
}
/* dark-bronze render of the same lockup, faded in as the sky brightens */
.logo-dark {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(#4a3818, #201507);
  -webkit-mask: url("assets/logo-color.png") center / contain no-repeat;
  mask: url("assets/logo-color.png") center / contain no-repeat;
  opacity: 0;
}
.title-block.has-color-logo .eyebrow { display: none; } /* lockup carries the name */
.title-block.has-logo .title-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.dek {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.clock {
  margin: 20px 0 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.clock__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}
.clock__digits {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--gold);
  color: #241500;
  box-shadow: 0 4px 24px rgba(245, 185, 66, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245, 185, 66, 0.45); }
.btn--ghost {
  border: 1.5px solid var(--cream);
  color: var(--cream);
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
}
.btn--ghost:hover { background: rgba(244, 233, 214, 0.12); }
.btn--ghost[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- shared section chrome ---------- */
section { position: relative; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  transition: color 1s ease;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 680;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  line-height: 1.08;
}
.section-dek {
  margin-top: 14px;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ---------- today ---------- */
.today {
  background: var(--ink);
  padding: 96px 0 84px;
  text-align: center;
}
.today .section-dek, .today__line { margin-inline: auto; }

.today__track {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin-top: 6px;
}
.today__line {
  margin-top: 18px;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.85;
}

.tunespeak { margin-top: 44px; }
.tunespeak__frame {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 32px;
  border: 2px dashed rgba(244, 233, 214, 0.35);
  border-radius: 16px;
  background: var(--ink-2);
}
.tunespeak__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.tunespeak__copy {
  margin: 12px auto 22px;
  max-width: 380px;
  line-height: 1.6;
  opacity: 0.75;
}

/* ---------- album / listen ---------- */
.listen {
  background: var(--ink-2);
  padding: 96px 0;
}
.listen__wrap {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-bottom: 52px;
}
.listen__cover {
  width: clamp(180px, 24vw, 300px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  flex: none;
}
.listen__sub { white-space: nowrap; }
.listen__spec {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.listen__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.listen__more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

.tracklist {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}
.tracklist__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  break-inside: avoid;
  padding: 18px 10px 10px;
  font-family: var(--font-display);
  font-weight: 680;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(244, 233, 214, 0.18);
}
.tracklist__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.tracklist__tag--soon { color: var(--accent); }
.track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-bottom: 1px solid rgba(244, 233, 214, 0.07);
  break-inside: avoid;
}
.track.is-playable { cursor: pointer; }
.track.is-playable:hover { background: rgba(244, 233, 214, 0.05); }
.track.is-playing { background: rgba(245, 185, 66, 0.1); }
.track.is-playing .track__title { color: var(--gold); }
.track__n {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.45;
  width: 22px;
}
.track__title { flex: 1; font-weight: 600; font-size: 0.98rem; }
.track__cue {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.8;
}
.track:not(.is-playable) .track__cue { color: var(--accent); opacity: 0.6; }

/* ---------- mini player ---------- */
.player[hidden] { display: none; }
.player {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20, 16, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(244, 233, 214, 0.15);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
}
.player__art { width: 44px; height: 44px; border-radius: 6px; flex: none; }
.player__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.player__title {
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__side {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.player__controls { display: flex; align-items: center; gap: 6px; }
.player__btn {
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  line-height: 1;
}
.player__btn:hover { background: rgba(244, 233, 214, 0.1); }
.player__btn--main {
  background: var(--gold);
  color: #241500;
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.player__btn--main:hover { background: #ffd066; }
.player__progress {
  flex: 1.2;
  height: 5px;
  border-radius: 3px;
  background: rgba(244, 233, 214, 0.15);
  cursor: pointer;
  overflow: hidden;
}
.player__bar { height: 100%; width: 0; background: var(--gold); border-radius: 3px; }
.player__note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  flex: none;
}
body.has-player { padding-bottom: 84px; }

/* ---------- calendar ---------- */
.calendar {
  background: var(--ink-2);
  padding: 96px 0;
}
.cal-remind { margin-top: 26px; }

.rise-meter {
  margin: 44px auto 8px;
  max-width: 640px;
  text-align: center;
}
.rise-arc {
  fill: none;
  stroke: rgba(244, 233, 214, 0.22);
  stroke-width: 2;
  stroke-dasharray: 4 7;
}
.rise-horizon {
  stroke: rgba(244, 233, 214, 0.35);
  stroke-width: 2;
}
.rise-sun {
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(245, 185, 66, 0.9));
}
.rise-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.cal-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  list-style: none;
}
.cal-tile {
  border: 1px solid rgba(244, 233, 214, 0.14);
  border-radius: 12px;
  padding: 14px 14px 16px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--ink);
}
.cal-tile__day {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.cal-tile__date {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.55;
}
.cal-tile__track {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}
.cal-tile.is-locked .cal-tile__track { opacity: 0.35; }
.cal-tile.is-past { opacity: 0.55; }
.cal-tile.is-past .cal-tile__day::after { content: " ✓"; color: var(--gold); }
.cal-tile.is-today {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 30px rgba(245, 185, 66, 0.2);
}
.cal-tile.is-today .cal-tile__day { color: var(--gold); opacity: 1; }

/* ---------- prize ---------- */
.prize {
  background: var(--ink);
  padding: 96px 0;
}
.prize__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink-2);
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.footer__social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(244, 233, 214, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.footer__social a { text-decoration: none; opacity: 0.75; }
.footer__social a:hover { opacity: 1; color: var(--gold); }
.footer__wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0.7;
}
.footer a { color: inherit; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .hero__copy, .stars { transition: none; }
}

@media (max-width: 760px) {
  /* portrait crops put bright cloud behind the lockup — soft top scrim */
  .hero::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: 0 0 auto 0;
    height: 36vh;
    background: linear-gradient(rgba(10, 8, 5, 0.34), transparent);
    pointer-events: none;
  }
  .listen__wrap {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  .tracklist { columns: 1; }
  .player__note { display: none; }
  .player__progress { flex: 1; }
}

@media (max-width: 640px) {
  /* the hero button already says "play today's game" — keep the pre-add link */
  .topbar__cta { display: none; }
  .hero__ctas { justify-content: center; }
  .logo-mark.is-color { width: 80vw; }
  .celestial { width: 200px; height: 200px; }
  .moon { width: 120px; height: 120px; }
  .hero__copy {
    left: 0;
    right: 0;
    text-align: center;
    padding-bottom: 96px;
  }
  .clock { align-items: center; }
  .time-scrub { bottom: 34px; width: 80vw; right: 10vw; }
  .drag-hint { display: none; }
  .now-chip { bottom: 70px; }
}
