/* Love Lights public site. Tokens from The Love Lights System Figma file (RFsZ2fnePvDcnNQLxBmz67). */
@font-face { font-family: "TAY Crumb"; src: url("assets/fonts/TAYCrumbRegular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "TAY Birdie"; src: url("assets/fonts/TAYBirdieRegular.woff2") format("woff2"); font-display: swap; }

:root {
  /* Figma: --pink, --ink, --cream */
  --pink: #ff4f87;
  --ink: #130a0b;
  --cream: #f7eddf;

  --bg: var(--cream);
  --surface: #fffaf2;
  --text: var(--ink);
  --text-muted: #5a4a45;
  --border: rgba(19, 10, 11, 0.16);
  --accent: var(--pink);
  --accent-contrast: var(--ink);

  --glass-bg: rgba(247, 237, 223, 0.72);
  --glass-border: rgba(19, 10, 11, 0.12);
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px rgba(19, 10, 11, 0.12);

  --font-display: "TAY Crumb", "Arial Black", sans-serif;
  --font-label: "TAY Birdie", "Arial", sans-serif;
  --font-text: Georgia, "Times New Roman", serif;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.4vw, 4.75rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;

  --dur-instant: 90ms; --dur-fast: 180ms; --dur-base: 320ms; --dur-slow: 600ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stagger: 60ms;
  --page: min(1120px, 100% - 2rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160d10; --surface: #211317; --text: var(--cream); --text-muted: #c9b8ae;
    --border: rgba(247, 237, 223, 0.16);
    --glass-bg: rgba(22, 13, 16, 0.66); --glass-border: rgba(247, 237, 223, 0.14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--step-0)/1.55 var(--font-text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: 0.02em; text-wrap: balance; }
p { margin: 0; }
.label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); }
.wrap { width: var(--page); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 10; background: var(--surface); padding: var(--s-2) var(--s-4); }

/* Glass navigation: floats above the content, solid fallback first. */
.nav {
  position: sticky; top: var(--s-3); z-index: 5;
  width: var(--page); margin: var(--s-3) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-radius: var(--radius-pill); border: 1px solid var(--glass-border);
  background: var(--bg); box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav { background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); backdrop-filter: blur(var(--glass-blur)) saturate(140%); }
}
.wordmark {
  display: block; width: clamp(120px, 30vw, 170px); aspect-ratio: 2042 / 252;
  background: currentColor;
  -webkit-mask: url("assets/brand/love-lights-logo-horizontal.svg") center / contain no-repeat;
  mask: url("assets/brand/love-lights-logo-horizontal.svg") center / contain no-repeat;
}
.nav ul { display: flex; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
.nav a.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  border-radius: var(--radius-pill); text-decoration: none;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1);
  transition: background var(--dur-fast) var(--ease-out);
}
.nav a.link:hover { background: var(--border); }
.nav a.link[aria-current="page"] { background: var(--pink); color: var(--ink); }

/* Pink field: the poster background. */
.pink { background: var(--pink); color: var(--ink); }
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * (44px + var(--s-3) * 2 + var(--s-3))); padding: calc(var(--s-16) * 2.2) 0 var(--s-16); }
.hero .wrap { position: relative; display: grid; gap: var(--s-6); }
.hero h1 { font-size: var(--step-3); max-width: 12ch; }
.hero .tagline { font-family: var(--font-label); letter-spacing: 0.12em; font-size: var(--step-1); }
.hero .lede { max-width: 38ch; font-size: var(--step-1); line-height: 1.45; }
.page-hero { padding: calc(var(--s-16) * 1.9) 0 var(--s-12); }

/* One-page layout: poster + line on top, then Schedule, DJs, Partner. */
.hero-grid { display: grid; gap: var(--s-8); align-items: center; }
/* Poster carousel: centered, full width. The current poster is large, its neighbors peek in. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-center { padding: calc(var(--s-16) * 1.6) 0 var(--s-12); }
.carousel { position: relative; width: 100%; }
.track {
  position: relative; display: flex; align-items: center; gap: clamp(12px, 3vw, 32px);
  margin: 0; padding: var(--s-6) 50%; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: none; }
.track:focus-visible .slide.is-active img { outline: 3px solid var(--ink); outline-offset: 6px; }
.slide { flex: 0 0 auto; scroll-snap-align: center; scroll-snap-stop: always; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); transform: scale(0.86); opacity: 0.45; }
.slide.is-active { transform: none; opacity: 1; }
/* Each poster keeps its own shape: width is the smaller of 82vw and the max height times its ratio (--r). */
.slide img { display: block; width: min(82vw, calc(min(70svh, 720px) * var(--r, 0.65))); height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(19, 10, 11, 0.38); }
.carousel-btn {
  position: absolute; top: calc(50% - 22px - var(--s-6)); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: rgba(247, 237, 223, 0.85); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer;
  box-shadow: var(--glass-shadow); transition: transform var(--dur-instant) var(--ease-out), background var(--dur-fast);
}
@supports (backdrop-filter: blur(1px)) { .carousel-btn { background: rgba(247, 237, 223, 0.6); backdrop-filter: blur(12px); } }
.carousel-btn:hover { background: var(--cream); }
.carousel-btn:active { transform: scale(0.94); }
.carousel-prev { left: max(var(--s-4), calc(50% - 360px)); }
.carousel-next { right: max(var(--s-4), calc(50% - 360px)); }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: var(--s-2); }
.dots button { width: 22px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(19, 10, 11, 0.3); transition: width var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.dots button[aria-current="true"]::before { width: 22px; background: var(--ink); }
@media (max-width: 520px) {
  .carousel-btn { display: none; }
  .dots button { width: 16px; }
  .dots button::before { width: 6px; height: 6px; }
  .dots button[aria-current="true"]::before { width: 16px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.hero-text { display: grid; gap: var(--s-4); }
.hero-text h1 { font-size: var(--step-3); max-width: 11ch; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: minmax(280px, 460px) 1fr; } }
section[id] { scroll-margin-top: 88px; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.section-bar h2 { font-size: var(--step-2); }
.section-meta { color: var(--text-muted); margin-bottom: var(--s-8); }
#djs-section .section-bar { margin-bottom: var(--s-8); }
.partner { display: block; }
.partner .wrap { display: grid; gap: var(--s-6); }
.partner h2 { font-size: var(--step-2); }
.partner .lede { max-width: 46ch; font-size: var(--step-1); line-height: 1.45; }

/* The pink light: two slow glows behind the hero. The one signature moment. */
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: breathe 6s var(--ease-out) infinite alternate; }
.glow.one { width: 60vmax; height: 60vmax; right: -20vmax; top: -25vmax; background: radial-gradient(circle, #ffd2e1 0%, transparent 65%); opacity: 0.8; }
.glow.two { width: 40vmax; height: 40vmax; left: -15vmax; bottom: -25vmax; background: radial-gradient(circle, #ff2f71 0%, transparent 65%); opacity: 0.6; animation-delay: -3s; }
@keyframes breathe { from { transform: scale(0.92); opacity: 0.55; } to { transform: scale(1.06); opacity: 0.85; } }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-6);
  border-radius: var(--radius-pill); border: 2px solid var(--ink); text-decoration: none;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1);
  transition: transform var(--dur-instant) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button.solid { background: var(--ink); color: var(--cream); }
section:not(.pink) .button.solid { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.button:not(.solid):hover { background: rgba(19, 10, 11, 0.08); }

section { padding: var(--s-16) 0; }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--step-2); }
.section-head p:not(.label) { color: var(--text-muted); max-width: 46ch; }
.statement { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; max-width: 22ch; margin: 0 0 var(--s-12); }

/* Next Saturday card */
.next {
  display: grid; gap: var(--s-2); padding: var(--s-6); border-radius: var(--radius-lg);
  background: var(--pink); color: var(--ink); max-width: 560px; border: 3px solid var(--ink);
  box-shadow: 0 0 0 1px var(--pink), 0 18px 60px rgba(255, 79, 135, 0.35);
}
.next h3 { font-size: var(--step-2); }
.next .lineup { font-family: var(--font-label); letter-spacing: 0.1em; text-transform: uppercase; }
.next .meta { font-size: var(--step--1); }

.cards { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { padding: var(--s-6); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); display: grid; gap: var(--s-2); align-content: start; }
.card .label { color: var(--text-muted); }
.card h3 { font-size: var(--step-1); }

.flow { list-style: none; margin: var(--s-12) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.flow li { padding: var(--s-4); border-top: 3px solid var(--pink); display: grid; gap: var(--s-1); }
.flow b { font-family: var(--font-label); letter-spacing: 0.1em; }
.flow strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.flow span { color: var(--text-muted); font-size: var(--step--1); }

.facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-12); padding: var(--s-6) 0; border-block: 1px solid var(--border); }
.facts span { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); }
.facts strong { color: var(--pink); font-weight: 400; }

/* Schedule */
.season + .season { margin-top: var(--s-12); }
.season h2 { font-size: var(--step-2); margin-bottom: var(--s-4); }
.nights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.night { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.night time { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); padding-top: 0.2em; }
.night time span { display: block; color: var(--text-muted); }
.night h3 { font-size: var(--step-1); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.night .sound { color: var(--text-muted); }
.night .lineup { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); margin-top: var(--s-1); }
.night .promise { margin-top: var(--s-1); max-width: 52ch; }
.tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; padding: 0.25em 0.7em; border-radius: var(--radius-pill); background: var(--pink); color: var(--ink); }
.tag.dark { background: var(--ink); color: var(--cream); }
.night.past { opacity: 0.45; }
.night.off h3 { font-family: var(--font-text); font-style: italic; }
.night.is-next { background: linear-gradient(90deg, rgba(255, 79, 135, 0.14), transparent 70%); padding-left: var(--s-3); margin-left: calc(-1 * var(--s-3)); border-radius: var(--radius-sm); }
@media (min-width: 720px) { .night { grid-template-columns: 8rem 1fr; } }

/* DJs: black and white portraits in the notched poster frame. */
.djs { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; }
.frame {
  --notch: 14px;
  position: relative; aspect-ratio: 4 / 5; padding: 6px; background: var(--ink);
  -webkit-mask: radial-gradient(circle var(--notch) at top left, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at top right, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at bottom left, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at bottom right, #0000 98%, #000) bottom right / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at top left, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at top right, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at bottom left, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at bottom right, #0000 98%, #000) bottom right / 51% 51% no-repeat;
}
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); background: #2a1c1c; }
.frame-initials { display: grid; place-items: center; width: 100%; height: 100%; background: #2a1c1c; color: var(--pink); font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5.5rem); letter-spacing: 0.04em; }

/* DJ card: the whole card is the link. */
.dj-card {
  display: grid; gap: var(--s-4); height: 100%; padding: var(--s-3) var(--s-3) var(--s-4);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.dj-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 14px 40px rgba(255, 79, 135, 0.22); }
.dj-card:active { transform: translateY(-1px); }
.dj-card-info { display: grid; gap: var(--s-2); padding-inline: var(--s-1); }
.dj-card h2 { font-size: var(--step-1); line-height: 1.1; }
.playing { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--text-muted); }
.playing b { white-space: nowrap; font-weight: 400; background: var(--pink); color: var(--ink); padding: 0.1em 0.5em; border-radius: var(--radius-pill); }
.dj-card-cta { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); color: var(--pink); }
.dj-card-cta::after { content: " ›"; }

/* DJ detail */
.dj-detail { display: grid; gap: var(--s-8); align-items: center; }
.dj-detail .frame { --notch: 22px; padding: 8px; width: min(100%, 380px); }
.dj-detail-text { display: grid; gap: var(--s-4); }
.dj-detail-text h1 { font-size: var(--step-3); }
.dj-detail-text .lede { max-width: 40ch; font-size: var(--step-1); line-height: 1.45; white-space: pre-line; }
@media (min-width: 760px) { .dj-detail { grid-template-columns: minmax(260px, 380px) 1fr; } }
.back { display: inline-block; margin-bottom: var(--s-6); font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step--1); text-decoration: none; }
.back::before { content: "‹ "; }
.muted { color: var(--text-muted); }

/* Footer */
footer { background: var(--ink); color: var(--cream); padding: var(--s-12) 0; }
footer .wrap { display: grid; gap: var(--s-6); }
footer .wordmark { width: min(320px, 70vw); color: var(--pink); }
footer .cols { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
footer p { color: #d8c9bd; }
footer a { color: var(--pink); }
footer .label { color: var(--cream); margin-bottom: var(--s-1); display: block; }

/* Entrances: short and staggered. */
.reveal { animation: rise var(--dur-base) var(--ease-out) both; }
.reveal:nth-child(2) { animation-delay: var(--stagger); }
.reveal:nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
.reveal:nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 520px) {
  .nav { padding-left: var(--s-3); gap: var(--s-2); }
  .wordmark { width: 104px; }
  .nav ul { gap: 0; }
  .nav a.link { padding: 0 var(--s-2); letter-spacing: 0.05em; font-size: 0.78rem; }
}
