/* SHELAYMA — THE MUSIC FESTIVAL
   One page, one Shabbos. Starts in Friday gold, keeps Shabbos in the
   dark middle, ends under crimson stage light. The canvas is the sky;
   the type crosses havdalah with it. */

:root {
  --ink: #33241a;
  --ink-soft: #5c4634;
  --cream: #f6e7cd;
  --ash: #e9ddc8;
  --smoke: #a3937d;
  --smoke-dim: #6f6353;
  --flame: #f28c38;
  --gold: #ffd9a0;
  --crimson: #e6394a;
  --crimson-hot: #ff6b5e;
  --hairline-d: rgba(233, 221, 200, 0.15);
  --hairline-l: rgba(51, 36, 26, 0.2);
  --display: "Cormorant Upright", Georgia, serif;
  --loud: "Big Shoulders Display", Impact, sans-serif;
  --body: "Alegreya", Georgia, serif;
  --hebrew: "Frank Ruhl Libre", serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: #120b06;
  color: var(--ash);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.68;
  overflow-x: hidden;
}

::selection { background: var(--flame); color: #120b06; }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

#arc {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

main { position: relative; z-index: 2; }

/* ---------- topbar & hud ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  z-index: 10;
  transition: color 0.5s ease;
}
.topbar.on-light { color: var(--ink); }
.topbar.on-dark { color: var(--ash); }

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: inherit;
}

.topbar nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: center; }
.topbar nav a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.topbar nav a:hover { opacity: 1; }

.nav-cta {
  border: 1px solid currentColor;
  padding: 0.42rem 0.95rem;
  border-radius: 99px;
  opacity: 1 !important;
}

.hud-day {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  z-index: 10;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-family: var(--body);
  transition: color 0.5s ease;
}
.hud-day.on-light { color: var(--ink-soft); }
.hud-day.on-dark { color: var(--smoke); }
.day-phase.heb { font-family: var(--hebrew); font-size: 1.05rem; letter-spacing: 0.3em; }
.day-phase.show-on { color: var(--crimson-hot); }
.day-clock.hidden { opacity: 0; }
.day-clock { transition: opacity 0.6s ease; }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.light-sect .eyebrow { color: var(--ink-soft); }
.dark-sect .eyebrow, .show-sect .eyebrow { color: var(--smoke); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.95s ease, transform 0.95s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 6rem clamp(1.25rem, 5vw, 4rem) 4rem;
}
.light-sect { color: var(--ink); }
.dark-sect { color: var(--ash); }
.show-sect { color: #f2ede4; }

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: 1.0;
  margin: 1.3rem 0 1.5rem;
}

.hero-thesis {
  max-width: 36em;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}
.light-sect .hero-thesis { color: var(--ink-soft); }
.dark-sect .hero-thesis { color: var(--smoke); }

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.light-sect .hero-meta { color: var(--ink-soft); }
.dark-sect .hero-meta { color: var(--smoke-dim); }
.hero-meta .dot { color: var(--flame); }

.down-cue {
  margin-top: 3.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  text-decoration: none;
}
.cue-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.light-sect .cue-label { color: var(--ink-soft); }
.dark-sect .cue-label { color: var(--smoke); }
.cue-line {
  display: block; width: 1px; height: 58px;
  background: linear-gradient(var(--flame), transparent);
  animation: cueDrop 2.5s ease-in-out infinite;
}
@keyframes cueDrop {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .cue-line { animation: none; } }

/* ---------- movements ---------- */

.mv {
  min-height: 96svh;
  display: flex; align-items: center;
  padding: 5rem clamp(1.25rem, 6vw, 6rem);
}
.mv-body { max-width: 34em; }
#fire .mv-body { margin-right: auto; margin-left: clamp(0rem, 6vw, 6rem); }
#erev .mv-body { margin-left: auto; margin-right: clamp(0rem, 6vw, 6rem); }
#adalos .mv-body { margin-left: auto; margin-right: clamp(0rem, 6vw, 6rem); }
#shabbos .mv-body { margin-left: clamp(0rem, 6vw, 6rem); }
#show .mv-body { margin-left: auto; margin-right: auto; text-align: center; }

.mv h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.05;
  margin: 0.9rem 0 1.2rem;
}
.mv p { margin-bottom: 1rem; }
.light-sect p { color: var(--ink-soft); }
.dark-sect p { color: var(--smoke); }

.mv-rule {
  font-style: italic;
  color: var(--flame) !important;
}

.mv-times {
  list-style: none;
  margin-top: 1.8rem;
  border-top: 1px solid var(--hairline-l);
}
.dark-sect .mv-times, .show-sect .mv-times { border-top-color: var(--hairline-d); }
.mv-times li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 1.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline-l);
  font-size: 0.98rem;
}
.dark-sect .mv-times li, .show-sect .mv-times li { border-bottom-color: var(--hairline-d); }
.mv-times li span {
  font-family: var(--display);
  font-weight: 600;
  color: var(--flame);
}

/* ---------- three stars ---------- */

.stars-sect {
  min-height: 70svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
}
.stars-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.25;
}
.stars-line em { font-style: italic; color: var(--gold); }

/* ---------- the show ---------- */

.show-sect .eyebrow { color: var(--crimson-hot); }

.show-title {
  font-family: var(--loud) !important;
  font-weight: 900 !important;
  font-size: clamp(3.4rem, 12vw, 9rem) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.85 !important;
}

.show-sect p { color: var(--smoke); }
.show-rule { color: var(--gold) !important; }
.show-times li span { font-family: var(--loud); font-weight: 800; color: var(--crimson-hot); }

/* ---------- the list ---------- */

.list-sect {
  min-height: 80svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 5rem clamp(1.25rem, 5vw, 4rem) 7rem;
}
.list-sect h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.06;
  margin: 0.9rem 0 1.1rem;
  color: var(--ash);
}
.list-lede { max-width: 34em; margin: 0 auto 2.2rem; }

.list-form { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; width: min(30em, 100%); }
.list-form input {
  flex: 1 1 14em;
  background: rgba(233, 221, 200, 0.06);
  border: 1px solid var(--hairline-d);
  border-radius: 3px;
  color: var(--ash);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
}
.list-form input::placeholder { color: var(--smoke-dim); }
.list-form input:focus-visible { outline-offset: 0; border-color: var(--flame); }
.list-form button {
  background: var(--flame);
  color: #120b06;
  border: 0;
  border-radius: 3px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.list-form button:hover { background: var(--gold); transform: translateY(-1px); }

.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--smoke-dim); }
.form-note.sent { color: var(--gold); }

/* ---------- footer ---------- */

.site-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline-d);
  padding: 3.4rem clamp(1.25rem, 5vw, 4rem) 2.6rem;
  background: rgba(18, 11, 6, 0.82);
  color: var(--ash);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
  max-width: 74em;
  margin: 0 auto 2.4rem;
  font-size: 0.92rem;
  color: var(--smoke);
}
.brand-foot {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.foot-grid a { color: var(--ash); text-decoration-color: var(--flame); }
.foot-fine {
  max-width: 74em; margin: 0 auto;
  font-size: 0.8rem; font-style: italic;
  color: var(--smoke-dim);
}

@media (max-width: 640px) {
  .topbar nav a:not(.nav-cta) { display: none; }
  #erev .mv-body, #shabbos .mv-body { margin: 0; }
}
