/* Lyricsync landing page */

@property --fillc { syntax: "<color>"; inherits: true; initial-value: #ffc233; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 72px); }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 12px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--stage) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mark {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 720; font-stretch: 115%; font-size: 1.3rem; letter-spacing: -.012em; line-height: 1;
}
.mark-glyph { width: 28px; height: 28px; color: var(--paper); }
.top nav { margin-left: auto; display: flex; gap: 1.75rem; }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 500; padding: .4rem 0; }
.top nav a:hover { color: var(--paper); }
.top-cta { min-height: 42px; padding: .4em 1.1em .35em; }

/* ---------------------------------------------------------------- hero: the lyric sheet */
.hero {
  position: relative;
  min-height: calc(100svh - 66px);
  display: grid; grid-template-rows: 1fr auto;
  padding: clamp(28px, 7vh, 88px) clamp(20px, 5vw, 72px) clamp(28px, 6vh, 64px);
}
.sheet { list-style: none; margin: 0; padding: 0; align-self: center; }
.sheet li {
  --fillc: var(--marigold);
  display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); align-items: baseline;
  transition: --fillc .9s var(--ease);
}
.sheet time {
  font-size: var(--s-1); font-weight: 500; color: var(--dim); letter-spacing: .02em;
  transition: color .3s;
}
.sheet p {
  margin: 0; font-size: clamp(2.6rem, 8.4vw, 8.4rem); line-height: 1; font-weight: 760; font-stretch: 78%;
  letter-spacing: -.012em; padding-block: .03em;
}
.sheet .kw { --fill: var(--fillc); --unsung: var(--haze); }
.sheet li.now time { color: var(--marigold); }
.sheet li.past { --fillc: var(--paper); }

.replay {
  position: absolute; top: clamp(20px, 4vh, 40px); right: clamp(20px, 5vw, 72px);
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .8rem;
  border: 0; border-radius: 999px; background: color-mix(in srgb, var(--night) 55%, transparent);
  color: var(--dim); font-size: var(--s-1); font-weight: 500; cursor: pointer;
}
.replay:hover { color: var(--paper); }
.replay svg { width: 16px; height: 16px; }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.75rem 3rem;
  padding-left: 7.25rem; margin-top: clamp(1.75rem, 4vh, 3rem);
}
.lede { margin: 0; max-width: 44ch; font-size: var(--s1); line-height: 1.42; color: var(--soft); }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn.big { min-height: 58px; font-size: 1.15rem; padding: .7em 1.6em .65em 1.3em; }

/* ---------------------------------------------------------------- shared section type */
section h2 {
  margin: 0 0 .45em; max-width: 19ch;
  font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.02; font-weight: 720; font-stretch: 84%; letter-spacing: -.012em;
}
.section-lede { margin: 0 0 3.25rem; max-width: 54ch; font-size: var(--s1); line-height: 1.45; color: var(--soft); }

/* ---------------------------------------------------------------- how it works: a time ruler */
.how { background: var(--night); padding-block: clamp(80px, 13vh, 150px); }
.ruler {
  list-style: none; margin: 0; padding: 2.6rem 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.ruler::before {
  /* the ruler itself: a baseline with small ticks every 14px and tall ones every 70px */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background:
    linear-gradient(var(--haze), var(--haze)) left bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--haze) 0 1.5px, transparent 1.5px 70px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--haze) 60%, transparent) 0 1px, transparent 1px 14px) left bottom / 100% 6px no-repeat;
}
.ruler li { position: relative; }
.ruler li::before {
  content: ""; position: absolute; left: 0; top: calc(-2.6rem + 8px); width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 5px var(--night);
}
.ruler li:last-child::before { background: var(--marigold); }
.ruler-time { display: block; font-size: var(--s-1); font-weight: 600; color: var(--marigold); letter-spacing: .02em; }
.ruler h3 { margin: .4rem 0 .45rem; font-size: var(--s2); line-height: 1.1; font-weight: 660; font-stretch: 92%; }
.ruler p { margin: 0; color: var(--soft); max-width: 30ch; }
.sources { margin: 4rem 0 0; max-width: 70ch; color: var(--dim); }
.sources span { color: var(--paper); font-weight: 600; }

/* ---------------------------------------------------------------- ways in + film */
.film { padding-block: clamp(80px, 13vh, 150px); }
.film-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 84px); align-items: start; }
.ways { margin: 2rem 0 0; display: grid; gap: 1.35rem; }
.ways dt { font-weight: 660; font-size: var(--s1); font-stretch: 94%; line-height: 1.2; }
.ways dd { margin: .2rem 0 0; color: var(--soft); max-width: 46ch; }
.float-note {
  margin: 2.25rem 0 0; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--night); color: var(--soft);
}
.float-note strong { color: var(--paper); font-weight: 650; }
.film-frame { margin: 0; position: sticky; top: 96px; }
.film-frame video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--night);
  box-shadow: 0 40px 90px -40px rgba(4, 5, 40, .85);
}
.film-frame figcaption { margin-top: .8rem; font-size: var(--s-1); color: var(--dim); }

/* ---------------------------------------------------------------- scripts */
.scripts { background: var(--night); padding-block: clamp(80px, 13vh, 150px); }
.script-pick {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--stage);
}
.script-pick button {
  min-height: 44px; padding: .45em 1.25em .4em; border: 0; border-radius: 999px; background: transparent;
  color: var(--soft); font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.script-pick button:hover { color: var(--paper); }
.script-pick button[aria-checked="true"] { background: var(--marigold); color: var(--ink); }
.script-lines { margin-top: 2.25rem; min-height: 2.6em; }
.sl {
  margin: 0; font-size: clamp(2.3rem, 6.8vw, 6rem); line-height: 1.12; font-weight: 700; font-stretch: 82%;
  color: var(--marigold); transition: opacity .18s, transform .18s var(--ease);
}
.sl.next { color: var(--haze); }
.script-lines[data-script="deva"] .sl, .script-lines[data-script="guru"] .sl { line-height: 1.3; font-stretch: 90%; }
.script-lines.swap .sl { opacity: 0; transform: translateY(.12em); }
.script-note { margin: 1.75rem 0 0; color: var(--dim); font-size: var(--s-1); }

/* ---------------------------------------------------------------- get it (paper) */
.get { background: var(--paper); color: var(--ink); padding-block: clamp(80px, 13vh, 150px); }
.get .section-lede { color: #33378a; }
.platforms { list-style: none; margin: 0; padding: 0; }
.platforms li {
  display: grid; grid-template-columns: minmax(11rem, 3fr) minmax(0, 9fr); gap: 1rem 2.5rem;
  padding: 2.1rem 0; border-top: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.platforms h3 { grid-row: span 2; margin: 0; font-size: var(--s3); line-height: 1.05; font-weight: 720; font-stretch: 84%; }
.platforms li > :not(h3) { grid-column: 2; }
.platforms p { margin: 0 0 1.15rem; max-width: 60ch; color: #2a2e82; }
.row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.fine { font-size: var(--s-1); color: #464a98; max-width: 52ch; }
.fine code { font-family: inherit; font-weight: 650; background: rgba(20, 23, 102, .08); padding: .08em .35em; border-radius: 4px; }

/* ---------------------------------------------------------------- footer */
.foot { padding-block: 3rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: start; }
.foot p { margin: 0; max-width: 62ch; color: var(--dim); font-size: var(--s-1); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-frame { position: static; }
  .ruler { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
}
@media (max-width: 760px) {
  .top { gap: 1rem; }
  .top nav { display: none; }
  .top-cta { margin-left: auto; }
  .sheet li { grid-template-columns: 1fr; }
  .sheet time { margin-top: .9rem; }
  .sheet p { font-size: clamp(2.5rem, 12.5vw, 4.5rem); }
  .hero-foot { padding-left: 0; }
  .replay { top: 14px; }
  .ruler { grid-template-columns: 1fr; padding: 0 0 0 2.4rem; }
  .ruler::before {
    left: 0; right: auto; top: 0; bottom: 0; width: 14px; height: auto;
    background:
      linear-gradient(var(--haze), var(--haze)) left top / 2px 100% no-repeat,
      repeating-linear-gradient(180deg, color-mix(in srgb, var(--haze) 60%, transparent) 0 1px, transparent 1px 14px) left top / 6px 100% no-repeat;
  }
  .ruler li::before { left: calc(-2.4rem - 6px); top: .25rem; }
  .platforms li { grid-template-columns: 1fr; padding: 1.75rem 0; }
  .platforms h3 { grid-row: auto; }
  .platforms li > :not(h3) { grid-column: auto; }
}
