/* Joelle — one-page site
   Two grounds: the stage (dark, matched to the portrait shoot) and the gallery wall (light).
   Sections declare data-theme; js/main.js sets the page theme from the section in view. */

:root {
  --stage: #060606;
  --wall: #f4f2ed;
  --bronze: #c09a5b;          /* the singing bowls; fills and large type on dark */
  --bronze-ink: #7a5c2e;      /* bronze for text on the light wall (AA) */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: Figtree, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Theme tokens (dark by default) */
  --bg: var(--stage);
  --ink: #f1eee8;
  --ink-2: #b9b3a8;
  --line: rgba(241, 238, 232, .16);
  --accent: var(--bronze);
}

html[data-theme="light"] {
  --bg: var(--wall);
  --ink: #161512;
  --ink-2: #5b564d;
  --line: rgba(22, 21, 18, .14);
  --accent: var(--bronze-ink);
}

/* Sections that are always dark carry the dark tokens themselves */
.stage, .contact, .foot {
  --bg: var(--stage);
  --ink: #f1eee8;
  --ink-2: #b9b3a8;
  --line: rgba(241, 238, 232, .16);
  --accent: var(--bronze);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; transition: none; }
}

.sound *, .about *, .programme *, .nav * { transition: color 1.1s var(--ease); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--bronze); color: var(--stage); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--pad); top: -4rem; z-index: 20;
  background: var(--bronze); color: #060606; padding: .7rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem var(--pad);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  transition: background-color .6s var(--ease), color 1.1s var(--ease);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .mark { color: var(--ink); font: 400 1.35rem/1 var(--display); letter-spacing: .02em; text-transform: none; text-decoration: none; }
.nav ul { display: flex; gap: 2rem; list-style: none; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.nav ul a:hover { color: var(--ink); }

/* ---------- Stage (first screen) ---------- */
.stage {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--stage); color: var(--ink);
  display: grid; align-items: end;
}
.glow { position: absolute; inset: 0; background: radial-gradient(60% 75% at 50% 38%, rgba(255, 246, 228, .06), transparent 70%); pointer-events: none; }
.figure { position: absolute; inset: 0; }
.figure img {
  position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; aspect-ratio: 3 / 4;
  transform: translateX(-46%); object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.billing {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(22rem, 27rem); align-items: end; gap: 2rem;
  padding: 7rem var(--pad) clamp(2.5rem, 7vh, 5rem);
}
.billing .left { grid-column: 1; }
.billing .right { grid-column: 3; justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
h1 {
  font: 250 clamp(4.5rem, 13vw, 12rem)/.85 var(--display);
  font-variation-settings: "opsz" 96, "wdth" 100; letter-spacing: .005em;
}
.role { margin-top: 1.4rem; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.45; }
.role span { display: block; color: var(--ink-2); }
.venues { font-size: .95rem; white-space: nowrap; color: var(--ink-2); line-height: 1.7; }
.venues .city {
  position: relative; display: block; margin: .15rem 0 .25rem; width: fit-content; margin-left: auto;
  font: 300 clamp(1.6rem, 2.2vw, 2.1rem)/1.1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; transition: color .3s;
}
.venues .city::after {
  content: ""; position: absolute; left: 0; right: .12em; bottom: -.2rem; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.venues .city:hover::after { transform: scaleX(1); transform-origin: left; }
.venues .city:hover { color: var(--bronze); }

/* ---------- Review carousel ---------- */
.reviews {
  --rv-star: var(--bronze); --rv-ink: var(--ink); --rv-muted: var(--ink-2); --rv-line: rgba(241, 238, 232, .22);
  width: 100%; text-align: left; margin-bottom: 2.4rem;
}
.reviews blockquote p { font: 300 clamp(1.35rem, 1.9vw, 1.75rem)/1.3 var(--display); font-variation-settings: "wdth" 90; }
.rv-track { display: grid; }
.rv-slide {
  grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; transform: translateY(10px); filter: blur(4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), visibility 0s .9s;
}
.rv-slide.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.rv-stars { display: flex; gap: 3px; margin-bottom: .9rem; }
.rv-stars svg { width: 15px; height: 15px; fill: var(--rv-star); }
.rv-trans { margin-top: .6rem; font-size: .92rem; line-height: 1.5; color: var(--rv-muted); }
.rv-trans span { white-space: nowrap; }
.rv-slide figcaption { margin-top: 1rem; font-size: .9rem; color: var(--rv-muted); }
.rv-slide figcaption b { color: var(--rv-ink); font-weight: 600; }
.rv-bar { display: flex; align-items: center; gap: .75rem; margin-top: 1.3rem; font-size: .8rem; color: var(--rv-muted); }
.rv-source { white-space: nowrap; }
.rv-progress { flex: 1; min-width: 2rem; height: 1px; background: var(--rv-line); position: relative; overflow: hidden; }
.rv-progress i { position: absolute; inset: 0; background: var(--rv-star); transform-origin: left; transform: scaleX(0); }
.is-playing .rv-progress i { animation: rv-fill var(--rv-delay) linear forwards; }
@keyframes rv-fill { to { transform: scaleX(1); } }
.rv-btn {
  width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--rv-line); background: transparent; color: var(--rv-ink); cursor: pointer; transition: border-color .3s;
}
.rv-btn svg { width: 18px; height: 18px; }
.rv-btn:hover { border-color: var(--rv-star); }
@media (prefers-reduced-motion: reduce) { .rv-slide { transition: none; transform: none; filter: none; } }

/* ---------- Shared section type ---------- */
h2 { font: 300 clamp(2.2rem, 4.4vw, 4rem)/1.02 var(--display); letter-spacing: -.015em; text-wrap: balance; }
section { position: relative; }

/* ---------- Sound (first light section) ---------- */
.sound {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: end;
  padding: clamp(6rem, 16vh, 11rem) var(--pad) clamp(4rem, 10vh, 7rem);
}
.sound-photo { grid-column: 1 / span 8; }
.sound-photo img { width: 100%; box-shadow: 0 30px 60px -30px rgba(22, 21, 18, .35); }
.sound-text { grid-column: 9 / -1; padding-bottom: .5rem; }
.sound-text h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); }
.sound-text p { margin-top: 1.2rem; color: var(--ink-2); max-width: 34ch; }

/* ---------- About ---------- */
.about { padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.pull {
  font: 250 clamp(2.4rem, 6vw, 5.6rem)/1.02 var(--display); letter-spacing: -.02em;
  max-width: 16ch; text-wrap: balance; margin-bottom: clamp(3.5rem, 9vh, 6rem);
}
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.portrait { grid-column: 1 / span 5; position: sticky; top: 6rem; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.bio { grid-column: 7 / -1; max-width: 38rem; }
.bio h2 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); margin-bottom: 1.6rem; }
.bio p + p { margin-top: 1.1rem; }
.bio .lede { font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.6rem; }
.bio p:not(.lede) { color: var(--ink-2); }

/* ---------- Where to find Joelle ---------- */
.programme {
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start;
}
.programme-head { grid-column: 1 / span 4; position: sticky; top: 6rem; }
.programme-head > p { margin-top: 1.2rem; color: var(--ink-2); max-width: 30ch; }
.studios { list-style: none; padding: 0; margin-top: 2.2rem; }
.studios li { padding: .9rem 0; border-top: 1px solid var(--line); }
.studios li:last-child { border-bottom: 1px solid var(--line); }
.studios a { color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; font: 400 1.3rem/1.2 var(--display); text-decoration: none; transition: color .3s; }
.studios a:hover { color: var(--accent); }
.studios span:not(.sr) { display: block; margin-top: .25rem; font-size: .9rem; color: var(--ink-2); }
.ext { width: .8em; height: .8em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.schedule { grid-column: 6 / -1; list-style: none; padding: 0; border-top: 1px solid var(--line); }
.schedule li {
  display: grid; grid-template-columns: 10rem 9.5rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.schedule .day { font: 300 clamp(1.6rem, 2.2vw, 2rem)/1.1 var(--display); }
.schedule .time { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.schedule .class { font-weight: 500; }
.schedule .class small { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.schedule .studio { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-size: .92rem; text-decoration: none; white-space: nowrap; }
.schedule .studio:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact {
  background: var(--stage); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center;
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
}
.contact-photo { grid-column: 1 / span 5; }
.contact-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.contact-text { grid-column: 7 / -1; }
.contact-text > p { color: var(--ink-2); margin-top: 1.2rem; }
.channels { list-style: none; padding: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.channels a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font: 300 clamp(1.4rem, 2.2vw, 2rem)/1.2 var(--display); font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.channels a > * { transition: transform .4s var(--ease); }
.channels a small { font: 500 .8rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.channels a:hover { color: var(--bronze); }
.channels a:hover > * { transform: translateX(.5rem); }

.foot a { color: var(--ink); text-decoration-color: var(--line); }
.foot a:hover { color: var(--bronze); }
.foot {
  background: var(--stage); color: var(--ink-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 2rem var(--pad); font-size: .85rem; border-top: 1px solid var(--line);
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  /* one column: the 12-column gaps alone are wider than a phone */
  .sound, .about-grid, .programme, .contact { grid-template-columns: minmax(0, 1fr); }
  .sound-photo, .sound-text, .programme-head, .schedule,
  .portrait, .bio, .contact-photo, .contact-text { grid-column: 1 / -1; }
  .portrait, .programme-head { position: static; }
  .schedule li { grid-template-columns: 8rem 8rem minmax(0, 1fr) auto; }
  .bio { max-width: 40rem; }
}
@media (max-width: 760px) {
  .nav { padding: 1rem; font-size: .72rem; letter-spacing: .12em; }
  .nav ul { gap: 1.1rem; }
  .nav .mark { font-size: 1.2rem; }

  /* Stage: tall portrait, name set into the bottom of the photo */
  .stage { display: block; }
  .figure { position: relative; height: 86svh; min-height: 34rem; }
  .figure img { left: 0; width: 100%; transform: none; object-position: 50% 30%;
    -webkit-mask-image: none; mask-image: none; }
  .figure::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,6,6,.55) 0%, transparent 18%, transparent 55%, #060606 96%); }
  .glow { display: none; }
  .billing { display: block; padding: 0 1rem 3.5rem; margin-top: -12.5rem; }
  h1 { font-size: clamp(5rem, 27vw, 7.5rem); }
  .role { margin-top: 1rem; font-size: 1.05rem; }
  .billing .right { align-items: stretch; text-align: left; margin-top: 2.75rem; }
  .venues { order: -1; white-space: normal; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .venues .city { margin-left: 0; font-size: 1.9rem; }

  /* Reviews: controls first, quote hangs from the top so spare height falls below */
  .reviews { display: flex; flex-direction: column; margin: 2.75rem 0 0; }
  .rv-bar { order: -1; margin: 0 0 1.4rem; }
  /* on phones the box follows the review on screen, so short quotes leave no gap */
  .rv-track { position: relative; }
  .rv-slide { position: absolute; inset: 0 0 auto; }
  .rv-slide.is-active { position: relative; }
  .reviews blockquote p { font-size: 1.35rem; }

  /* Light sections */
  .sound { padding: 3rem 1rem 3.5rem; gap: 1.5rem; }
  .sound-photo { margin: 0 -1rem; }
  .sound-photo img { box-shadow: none; }
  .about { padding: 4.5rem 1rem 3rem; }
  .programme { padding: 3rem 1rem 4.5rem; }
  .pull { margin-bottom: 2.5rem; }
  .portrait img { aspect-ratio: 1 / 1; object-position: 50% 92%; }
  .bio h2 { margin-top: .5rem; }
  .bio .lede { font-size: 1.15rem; }

  .schedule li { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; padding: 1.3rem 0; }
  .schedule .day { grid-column: 1; }
  .schedule .time { grid-column: 2; text-align: right; }
  .schedule .class { grid-column: 1 / -1; margin-top: .3rem; }
  .schedule .studio { grid-column: 1 / -1; }

  .contact { padding: 3.5rem 1rem 4rem; gap: 2.5rem; }
  .contact-photo { margin: 0 -1rem; }
  .contact-photo img { aspect-ratio: 4 / 5; }
  .channels a { flex-direction: column; gap: .4rem; }
  .foot { padding: 2rem 1rem; }
}
