/*
 * Single stylesheet for the whole page, shared verbatim by:
 *   - the site (linked from src/layouts/Layout.astro)
 *   - the CMS live preview (CMS.registerPreviewStyle in src/admin/preview.jsx)
 * It lives in public/ (not src/styles/) so the admin can load it unhashed.
 *
 * Layout: base/global rules first, then one section per src/ui component.
 * Component selectors are prefixed with the component's root (.hero, nav, ...)
 * - generic child class names (.badge, .card, .photo) repeat across sections
 * and must stay scoped to their component.
 */

:root {
  --bg: #0B0710;
  --bg-deep: #07050a;
  --plum: #1C0F2E;
  --card: #140B20;
  --ink: #F2EAD9;
  --ink-85: rgba(242, 234, 217, 0.85);
  --ink-75: rgba(242, 234, 217, 0.75);
  --ink-65: rgba(242, 234, 217, 0.65);
  --ink-60: rgba(242, 234, 217, 0.62);
  --ink-border: rgba(242, 234, 217, 0.4);
  --gold: #C6A15B;
  --gold-light: #E8CF9A;
  --gold-border: rgba(198, 161, 91, 0.3);
  --gold-border-strong: rgba(198, 161, 91, 0.5);
  --gold-grad: linear-gradient(180deg, #E0BE7A, #C6A15B 45%, #9C7A38);
  --pink: #E23E8F;
  --on-gold: #1a1206;
  --buybar-clearance: 110px;
  --font-display: 'Rozha One', Georgia, serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-light);
}

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

.btn-gold {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--on-gold);
  background: var(--gold-grad);
  box-shadow: 0 8px 32px rgba(198, 161, 91, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.btn-gold:hover {
  color: var(--on-gold);
  filter: brightness(1.06);
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* the site's only animations: Film marquee and the hero scroll hint */
  .track,
  .scroll-hint {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- ImageSlot ---------- */

.image-slot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-slot.placeholder {
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(198, 161, 91, 0.08), rgba(226, 62, 143, 0.05)),
    var(--card);
  border: 1px dashed rgba(198, 161, 91, 0.35);
  color: var(--ink-60);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

/* ---------- Nav ---------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(180deg, rgba(7, 5, 10, 0.85), transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

nav .badge {
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--gold);
}

nav .name {
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

nav .links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

nav .links > a {
  color: var(--ink);
}

nav .links > a:hover {
  color: var(--gold-light);
}

nav .cta {
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

nav .menu {
  display: none;
}

@media (max-width: 900px) {
  nav {
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(7, 5, 10, 0.92), rgba(7, 5, 10, 0.4));
  }

  nav .badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  nav .name {
    font-size: 13px;
  }

  nav .links {
    display: none;
  }

  nav .menu {
    display: block;
    position: relative;
  }

  nav summary {
    list-style: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold-border-strong);
    border-radius: 8px;
    cursor: pointer;
  }

  nav summary::-webkit-details-marker {
    display: none;
  }

  nav .burger,
  nav .burger::before,
  nav .burger::after {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--gold-light);
  }

  nav .burger {
    position: relative;
  }

  nav .burger::before,
  nav .burger::after {
    content: '';
    position: absolute;
    left: 0;
  }

  nav .burger::before {
    top: -5px;
  }

  nav .burger::after {
    top: 5px;
  }

  nav .panel {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--gold-border);
    border-radius: 12px;
    background: var(--bg-deep);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }

  nav .panel a {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  nav .panel a:hover {
    color: var(--gold-light);
    background: rgba(198, 161, 91, 0.08);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 720px;
  display: flex;
}

.hero .media {
  position: absolute;
  inset: 0;
}

.hero .scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 7, 16, 0.6),
    rgba(11, 7, 16, 0.2) 40%,
    rgba(11, 7, 16, 0.55) 70%,
    rgba(11, 7, 16, 0.97)
  );
}

.hero .content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 0 24px 64px;
  gap: 18px;
}

.hero .badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero .badge {
  display: none;
}

.hero .edition {
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 120px;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.hero .tagline {
  margin: 0;
  font-style: italic;
  font-size: 20px;
  color: var(--gold-light);
}

.hero .facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-85);
}

.hero .dot {
  color: var(--gold);
}

.hero .actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.hero .buy {
  padding: 18px 52px;
  font-size: 16px;
}

.hero .trailer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  border: 1px solid var(--ink-border);
}

.hero .trailer:hover {
  color: var(--gold-light);
  border-color: var(--gold-border-strong);
}

.hero .scroll-hint {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--ink-60);
  margin-top: 16px;
  animation: drift 1.6s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  .hero {
    min-height: 640px;
    height: 92vh;
    height: 100svh;
  }

  .hero .content {
    align-items: flex-start;
    text-align: left;
    padding: 0 24px 26px;
    gap: 14px;
  }

  .hero .badge {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    place-items: center;
    font-size: 13px;
    color: var(--gold);
  }

  .hero .edition {
    font-size: 10px;
    letter-spacing: 0.4em;
  }

  .hero h1 {
    font-size: 56px;
    line-height: 0.95;
  }

  .hero .tagline {
    font-size: 17px;
  }

  .hero .facts {
    justify-content: flex-start;
    font-size: 12.5px;
    gap: 8px 14px;
  }

  .hero .actions {
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
    margin-top: 6px;
  }

  .hero .buy {
    height: 52px;
    padding: 0;
    font-size: 15px;
  }

  .hero .trailer {
    height: 46px;
    padding: 0;
    justify-content: center;
    font-size: 13px;
  }

  .hero .scroll-hint {
    align-self: center;
    margin-top: 8px;
  }
}

/* ---------- Intro ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 110px 96px;
  background: linear-gradient(180deg, var(--bg), var(--plum));
}

.intro .rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
}

.intro h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
}

.intro .accent {
  font-style: italic;
  color: var(--gold-light);
}

.intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-75);
  margin: 22px 0 0;
  max-width: 480px;
}

.intro .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.intro .tag {
  padding: 9px 18px;
  border: 1px solid var(--gold-border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-light);
}

.intro .tag.highlight {
  border-color: rgba(226, 62, 143, 0.6);
  color: var(--pink);
}

.intro .collage {
  position: relative;
  height: 460px;
}

.intro .main-photo {
  position: absolute;
  inset: 0 40px 40px 0;
}

.intro .inset-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 220px;
  height: 220px;
  border: 1px solid var(--gold-border-strong);
  border-radius: 14px;
  padding: 8px;
  background: var(--bg);
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 24px 48px;
  }

  .intro .rule {
    width: 44px;
    margin-bottom: 18px;
  }

  .intro h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .intro p {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 14px;
  }

  .intro .tags {
    gap: 8px;
    margin-top: 22px;
  }

  .intro .tag {
    padding: 7px 14px;
    font-size: 11.5px;
  }

  .intro .collage {
    height: 300px;
  }

  .intro .inset-photo {
    width: 150px;
    height: 150px;
  }
}

/* ---------- Essentials ---------- */

.essentials {
  padding: 90px 96px;
  background: var(--plum);
}

.essentials .kicker {
  margin: 0 0 32px;
  font-weight: 400;
}

.essentials .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.essentials .card {
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 24px 20px;
  background: rgba(11, 7, 16, 0.4);
}

.essentials .label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-60);
  text-transform: uppercase;
}

.essentials .value {
  font-size: 26px;
  margin-top: 8px;
}

.essentials .age {
  border-color: rgba(226, 62, 143, 0.45);
}

.essentials .age .value {
  color: var(--pink);
}

@media (max-width: 900px) {
  .essentials {
    padding: 48px 24px;
  }

  .essentials .kicker {
    font-size: 10px;
    letter-spacing: 0.35em;
    margin: 0 0 20px;
  }

  .essentials .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .essentials .card {
    border-radius: 12px;
    padding: 16px 14px;
  }

  .essentials .value {
    font-size: 20px;
    margin-top: 6px;
  }
}

/* ---------- Film ---------- */

.film {
  padding: 110px 0 80px;
  background: linear-gradient(180deg, var(--plum), var(--bg) 35%);
}

.film h2 {
  margin: 0 0 36px;
  text-align: center;
  font-size: 52px;
}

.film .accent {
  font-style: italic;
  color: var(--gold-light);
}

.film .player {
  position: relative;
  display: block;
  margin: 0 96px;
  height: 560px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.film .play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.film .play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(11, 7, 16, 0.55);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.film .marquee {
  margin-top: 24px;
  overflow: hidden;
}

.film .track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.film .frame {
  height: 190px;
  flex-shrink: 0;
}

.film .frame.wide {
  width: 280px;
}

.film .frame.narrow {
  width: 200px;
}

@media (max-width: 900px) {
  .film {
    padding: 56px 0 48px;
  }

  .film h2 {
    text-align: left;
    padding: 0 24px;
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.1;
  }

  .film .player {
    margin: 0 16px;
    height: 220px;
    border-radius: 14px;
  }

  .film .play-btn {
    width: 62px;
    height: 62px;
  }

  .film .marquee {
    margin-top: 18px;
  }

  .film .track {
    gap: 10px;
    animation-duration: 28s;
  }

  .film .frame {
    height: 110px;
  }

  .film .frame.wide {
    width: 150px;
  }

  .film .frame.narrow {
    width: 110px;
  }
}

/* ---------- PastEditions ---------- */

.past {
  padding: 90px 96px;
  background: var(--bg);
}

.past .kicker {
  margin-bottom: 8px;
}

.past h2 {
  margin: 0 0 40px;
  font-size: 44px;
}

.past .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.past .card {
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.past .photo {
  height: 300px;
}

.past .body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.past .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.past h3 {
  margin: 0;
  font-size: 28px;
}

.past .date {
  font-size: 12px;
  color: var(--ink-60);
}

.past p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-65);
}

.past .links {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.past .links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 900px) {
  .past {
    padding: 48px 24px;
  }

  .past .kicker {
    font-size: 10px;
    letter-spacing: 0.35em;
    margin-bottom: 6px;
  }

  .past h2 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .past .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .past .card {
    border-radius: 14px;
  }

  .past .photo {
    height: 170px;
  }

  .past .body {
    padding: 16px 18px;
    gap: 6px;
  }

  .past h3 {
    font-size: 20px;
  }

  .past .date {
    font-size: 11px;
  }

  .past p {
    font-size: 12px;
  }

  .past .links {
    gap: 14px;
    margin-top: 6px;
    font-size: 12px;
  }
}

/* ---------- Performers ---------- */

.performers {
  padding: 90px 96px;
  background: linear-gradient(180deg, var(--bg), var(--plum));
}

.performers .kicker {
  margin-bottom: 8px;
}

.performers h2 {
  margin: 0 0 40px;
  font-size: 44px;
}

.performers .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.performers .performer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.performers .photo {
  height: 280px;
  margin-bottom: 6px;
}

.performers .name {
  font-weight: 700;
  font-size: 15px;
}

.performers .role {
  font-size: 12px;
  color: var(--gold);
}

.performers .more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(198, 161, 91, 0.4);
  border-radius: 14px;
  text-align: center;
  padding: 20px;
}

.performers .more span {
  font-style: italic;
  font-size: 20px;
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .performers {
    padding: 48px 24px;
  }

  .performers .kicker {
    font-size: 10px;
    letter-spacing: 0.35em;
    margin-bottom: 6px;
  }

  .performers h2 {
    font-size: 30px;
    margin-bottom: 24px;
  }

  .performers .grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .performers .performer {
    gap: 4px;
  }

  .performers .photo {
    height: 150px;
    margin-bottom: 4px;
  }

  .performers .name {
    font-size: 13px;
  }

  .performers .role {
    font-size: 11px;
  }

  .performers .more {
    border-radius: 12px;
    padding: 16px;
  }

  .performers .more span {
    font-size: 16px;
  }
}

/* ---------- FinalCta ---------- */

.final-cta {
  padding: 130px 96px;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(226, 62, 143, 0.16), transparent 70%),
    var(--plum);
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
}

.final-cta .accent {
  font-style: italic;
  color: var(--gold-light);
}

.final-cta p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-75);
  margin: 18px 0 30px;
}

.final-cta .buy {
  padding: 20px 64px;
  font-size: 16px;
}

.final-cta .note {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
}

@media (max-width: 900px) {
  .final-cta {
    padding: 64px 24px;
    background:
      radial-gradient(400px 300px at 50% 20%, rgba(226, 62, 143, 0.18), transparent 70%),
      var(--plum);
  }

  .final-cta h2 {
    font-size: 36px;
    line-height: 1.1;
  }

  .final-cta p {
    font-size: 13px;
    margin: 14px 0 22px;
  }

  .final-cta .buy {
    display: grid;
    height: 54px;
    padding: 0;
    font-size: 15px;
  }
}

/* ---------- Footer ---------- */

footer {
  padding: 64px 96px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(198, 161, 91, 0.25);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

footer .brand {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 14px;
}

footer .about p {
  font-size: 12.5px;
  color: rgba(242, 234, 217, 0.55);
  max-width: 280px;
  line-height: 1.6;
  margin: 0;
}

footer .sponsors {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  opacity: 0.45;
}

footer .sponsors span {
  width: 72px;
  height: 24px;
  border: 1px solid var(--ink-border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 8px;
  letter-spacing: 0.15em;
}

footer .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

footer .heading {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-60);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* pages that don't exist yet; becomes an <a> when they do */
footer .placeholder-link {
  color: var(--ink-60);
}

@media (max-width: 900px) {
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 24px var(--buybar-clearance);
  }

  footer .about {
    grid-column: span 2;
  }

  footer .brand {
    font-size: 18px;
  }
}

/* ---------- StickyBuyBar ---------- */

.buy-bar {
  display: none;
}

@media (max-width: 900px) {
  .buy-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(7, 5, 10, 0.92) 40%);
    pointer-events: none;
  }

  .buy-bar .bar {
    pointer-events: auto;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--gold-grad);
    color: var(--on-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  .buy-bar .bar:hover {
    color: var(--on-gold);
  }

  .buy-bar .label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .buy-bar .price {
    font-size: 11px;
    font-weight: 700;
  }
}
