@font-face {
  font-family: "Geysir";
  src: url("../fonts/geysir.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #333333;
  --ink-dim: rgba(51, 51, 51, 0.55);
  --ink-faint: rgba(51, 51, 51, 0.30);
  --bg: #000000;
  --frame: min(440px, 100vw);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geysir", "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #4d4d4d;
}

.page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
}

.frame {
  width: var(--frame);
  position: relative;
  padding: 0;
}

/* ──────────────────────────────────────────────────────────────
   Landing page
   ────────────────────────────────────────────────────────────── */

.landing {
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.landing__frame {
  /* Scale the whole graphic to fit the screen — height-driven so nothing scrolls */
  height: 100svh;
  width: auto;
  max-width: var(--frame);
  position: relative;
  aspect-ratio: 1178 / 2577;
  margin: 0 auto;
  background: url("../img/Landing-Graphic.png") center top / 100% auto no-repeat;
  animation: pageFadeIn 1.4s ease forwards;
  /* Container so child text can scale with the frame's width */
  container-type: size;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.landing__link {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: 0.14em;
  /* 5cqi = 5% of the frame's width — scales with the graphic on every screen size */
  font-size: 5cqi;
  line-height: 1.35;
  font-variant-caps: all-small-caps;
}

.landing__link--club {
  /* "ENTER THE LOTUS CLUB" sits around 52% down the canvas */
  top: 49.5%;
}

.landing__link--pandora {
  /* "MEET PANDORA" sits around 80% down the canvas */
  top: 77.5%;
}

/* ──────────────────────────────────────────────────────────────
   Shared "GO BACK" header
   ────────────────────────────────────────────────────────────── */

.topbar {
  text-align: center;
  padding: 22px 0 14px;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────────────
   Credits / Lyrics page ("Enter the Lotus Club")
   ────────────────────────────────────────────────────────────── */

.credits {
  color: var(--ink);
}

.credits .topbar {
  position: sticky;
  top: 2.5%;
  z-index: 20;
  background: transparent;
  mix-blend-mode: difference;
  color: var(--ink);
}

.credits .topbar a {
  color: inherit;
}

.credits__intro {
  position: relative;
  margin-top: -52px;
  margin-bottom: 0%;
  aspect-ratio: 1178 / 1900;
  text-align: center;
  background: url("../img/Dot-Grid1.png") center top / 100% auto no-repeat;
}

.credits__album,
.credits__song-title,
.credits__attribution,
.credits__cta {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
}

.credits__album,
.credits__song-title {
  letter-spacing: 0.22em;
  font-size: 22px;
  font-variant-caps: all-small-caps;
}

.credits__song-title {
  font-style: normal;
}

.credits__album      { top: 18%; }
.credits__song-title { top: 32%; }

.credits__attribution {
  top: 50.9%;
  font-size: 16.5px;
  line-height: 1.5;
  padding: 0 8%;
}

.credits__cta {
  letter-spacing: 0.18em;
  font-size: 20px;
  font-variant-caps: all-small-caps;
}

.credits__cta:nth-of-type(3) { top: 78%; }
.credits__cta:nth-of-type(4) { top: 92%; }

.song {
  padding: 0 0 10px;
  text-align: center;
}

.song__banner {
  display: block;
  margin: 18px auto 18px;
  width: 88%;
  max-width: 380px;
  height: auto;
}

/* "My Life Is A Dream" banner overlaps with the trailing
   "I can leave" lines from "Escape Plan". */
.song__banner[src*="Banner2"] {
  margin-top: 1px;
  position: relative;
  pointer-events: none;
}

.song__banner--small {
  width: 100%;
  top: -50px;
  max-width: 400px;
}

.song__banner--credits {
  position: relative;
  margin: 0 auto 6px;
  width: 88%;
  max-width: 380px;
}

.song__banner--credits img {
  display: block;
  width: 100%;
  height: auto;
}

.song__banner--credits span {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.18em;
  font-size: 15px;
  font-variant-caps: all-small-caps;
}

.song__number {
  font-size: 18px;
  margin: 6px 0 2px;
}

.song__name {
  font-size: 20px;
  margin: 0 0 2px;
  font-style: normal;
}

.song__length {
  font-size: 15px;
  margin: 0 0 10px;
}

.song__credits {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  padding: 0 18px;
  margin: -26px 0 22px;
  color: var(--ink);
}

.song__credits > div {
  width: 42%;
  text-align: center;
}

.song__lyrics {
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-line;
  margin: 0 auto;
  max-width: 88%;
}

.song__lyrics p {
  margin: 0 0 10px;
}

.song__lyrics p:last-child {
  margin-bottom: 0;
}

.credits__finale {
  text-align: center;
  padding: 30px 0 80px;
}

.credits__finale img {
  width: 90%;
  max-width: 420px;
  height: auto;
}

/* ──────────────────────────────────────────────────────────────
   Pandora chat page
   ────────────────────────────────────────────────────────────── */

.pandora {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pandora .topbar {
  /* Fixed so it floats over the video — video starts at y:0 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  mix-blend-mode: difference;
  color: var(--ink);
}

.pandora .topbar a {
  color: inherit;
}

.pandora__stage {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #050505;
  overflow: hidden;
  position: relative;
}

.pandora__stage video,
.pandora__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pandora__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 38px;
  gap: 22px;
  text-align: center;
}

.pandora__hint {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  transition: opacity .8s ease;
}

.pandora__answer {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 36ch;
  min-height: 1.55em;
  color: var(--ink);
  transition: opacity .6s ease;
  opacity: 0;
}

.pandora__answer.is-visible {
  opacity: 1;
}

.pandora__answer.is-dim {
  opacity: 0.35;
}

.pandora__divider {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 8px auto 0;
  width: 100%;
  max-width: 380px;
}

.pandora__last-question {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 32ch;
  color: var(--ink);
  min-height: 1.4em;
}

.pandora__input {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 4px;
  outline: none;
  caret-color: var(--ink);
}

.pandora__input::placeholder {
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pandora__input:focus::placeholder {
  color: var(--ink-faint);
}

.pandora.is-waiting .pandora__answer.is-visible {
  opacity: 0.35;
}
