/* Lyric looks B (Big word) and C (World change) on the look stage.
   Faces: SIL OFL 1.1, latin subsets, licences beside the files. */
@font-face{font-family:"GN Lyric Lato";src:url("./assets/fonts/lyric/Lato-Semibold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"GN Lyric Lato";src:url("./assets/fonts/lyric/Lato-SemiboldItalic.woff") format("woff");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"GN Lyric Barlow Condensed";src:url("./assets/fonts/lyric/BarlowCondensed-SemiBold.woff") format("woff");font-weight:600;font-style:normal;font-display:swap}

/* Type: each look draws in its own type unless the musician picked another. */
html[data-gn-glow] .gn-look-stage[data-lyric-type] .gn-look-text{text-align:center;line-height:var(--gn-look-leading,1.35)}
html[data-gn-glow] .gn-look-stage[data-lyric-type] .gn-look-line{min-height:calc(var(--gn-look-leading,1.35) * 1em)}
html[data-gn-glow] .gn-look-stage[data-lyric-type="world-change"] .gn-look-text{font-family:"GN Lyric Lato";font-weight:600;font-style:normal;letter-spacing:0}
html[data-gn-glow] .gn-look-stage[data-lyric-type="big-word"] .gn-look-text{font-family:"GN Lyric Barlow Condensed";font-weight:600;font-style:normal;letter-spacing:0;text-transform:uppercase}
html[data-gn-glow] .gn-look-stage[data-lyric-type="house"] .gn-look-text{font-family:"GN Lyric Lato";font-weight:600;font-style:italic;letter-spacing:0}
html[data-gn-glow] .gn-look-stage[data-lyric-type="compact"] .gn-look-text{font-family:"GN Lyric Lato";font-weight:600;font-style:normal;letter-spacing:0}

/* The world layer sits over the frame and under every word. */
html[data-gn-glow] .gn-lyric-world{position:absolute;inset:0;pointer-events:none;opacity:0;display:none}
/* Above the photo frame's foot tint (z 1), under the words (z 3) and the season band (z 4). */
html[data-gn-glow] .gn-look-stage[data-lyric-look] .gn-lyric-world{display:block;z-index:2}
html[data-gn-glow] .gn-look-stage[data-lyric-look] :is(.gn-look-text,.gn-look-eyebrow,.gn-look-title,.gn-look-foot,.gn-look-medallion){z-index:3}
html[data-gn-glow] .gn-look-stage[data-lyric-look]::before{z-index:4}
/* The lyric rows hide on page looks without sung words. */
html[data-gn-glow] .gn-look-choices[hidden]{display:none}

/* C, World change: the words never move; at a refrain the season colour
   rises from below the horizon (2.6 s in, 2.8 s back out at the next verse). */
html[data-gn-glow] .gn-look-stage[data-lyric-look="world-change"] .gn-lyric-world{background:radial-gradient(150% 95% at 50% 114%,color-mix(in srgb,var(--gn-look-band) 62%,transparent) 0%,color-mix(in srgb,var(--gn-look-band) 30%,transparent) 48%,transparent 78%);transition:opacity 2800ms cubic-bezier(.37,0,.63,1)}
html[data-gn-glow] .gn-look-stage[data-lyric-look="world-change"][data-frame="day"] .gn-lyric-world,html[data-gn-glow] .gn-look-stage[data-lyric-look="world-change"][data-frame="plain"] .gn-lyric-world{background:radial-gradient(150% 95% at 50% 114%,color-mix(in srgb,var(--gn-look-band) 34%,transparent) 0%,color-mix(in srgb,var(--gn-look-band) 14%,transparent) 48%,transparent 78%)}
html[data-gn-glow] .gn-look-stage[data-lyric-look="world-change"][data-refrain="true"] .gn-lyric-world{opacity:1;transition-duration:2600ms}

/* B, Big word: at a refrain the page turns to the other register (150 ms),
   and turns back at the next verse. projection.js allows one turn a second. */
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"] .gn-lyric-world{background:var(--gn-look-tint);transition:opacity 150ms ease-in-out}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-frame="photo"] .gn-lyric-world{background:color-mix(in srgb,var(--gn-look-tint) 86%,transparent)}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-frame="day"] .gn-lyric-world,html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-frame="plain"] .gn-lyric-world{background:var(--gn-night)}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-refrain="true"] .gn-lyric-world{opacity:1}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"] .gn-look-text,html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"] .gn-look-eyebrow,html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"] .gn-look-foot{transition:color 150ms ease-in-out}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-refrain="true"]:is([data-frame="night"],[data-frame="photo"]) :is(.gn-look-text,.gn-look-eyebrow,.gn-look-foot){color:var(--gn-look-ink)}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"][data-refrain="true"]:is([data-frame="day"],[data-frame="plain"]) :is(.gn-look-text,.gn-look-eyebrow,.gn-look-foot){color:var(--gn-night-ink)}

/* Advance: C fades the whole block in after the old one is gone; B brings
   its rows in one after another. Only the live screen marks an entrance. */
@keyframes gnLyricWorldEnter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes gnLyricWordEnter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
html[data-gn-glow] .gn-look-stage[data-lyric-look="world-change"].is-entering .gn-look-line{animation:gnLyricWorldEnter 200ms cubic-bezier(.22,1,.36,1) 60ms both}
html[data-gn-glow] .gn-look-stage[data-lyric-look="big-word"].is-entering .gn-look-line{animation:gnLyricWordEnter 150ms cubic-bezier(.22,1,.36,1) calc(70ms + var(--gn-lyric-row,0) * 30ms) both}
/* Reduce motion: every change is a cut. Selectors match the motion rules'
   weight so these, being later, always win. */
@media (prefers-reduced-motion:reduce){
  html[data-gn-glow] .gn-look-stage[data-lyric-look][data-refrain] .gn-lyric-world,html[data-gn-glow] .gn-look-stage[data-lyric-look][data-refrain] :is(.gn-look-text,.gn-look-eyebrow,.gn-look-foot){transition:none}
  html[data-gn-glow] .gn-look-stage[data-lyric-look].is-entering .gn-look-line{animation:none}
}
