:root {
  --saffron: #D9822B;
  --saffron-deep: #B86A1C;
  --indigo: #1C2541;
  --cream: #F6F0E4;
  --paper: #FFFDF8;
  --sage: #7F8F74;
  --ink: #2A2A2A;
  --muted: #6B6760;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(255,253,248,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,37,65,.08); }
.top nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.top nav a:not(.btn):hover { color: var(--indigo); }
.wordmark { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--indigo); text-decoration: none; letter-spacing: .01em; }
.wordmark em { color: var(--saffron); font-style: italic; font-weight: 500; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-deep); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: rgba(28,37,65,.25); color: var(--indigo); padding: 8px 16px; }
.btn-ghost-light { border-color: rgba(246,240,228,.5); color: var(--cream); }

.hero { position: relative; overflow: hidden; background: var(--indigo); color: var(--cream);
  padding: clamp(72px, 12vw, 140px) clamp(16px, 6vw, 96px); }
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--saffron); margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: rgba(246,240,228,.85); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-mark { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: min(560px, 70vw);
  color: rgba(217,130,43,.35); }

.band { padding: clamp(56px, 9vw, 104px) clamp(16px, 6vw, 96px); }
.band-cream { background: var(--cream); }
.note { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { padding: 28px; border: 1px solid rgba(28,37,65,.1); border-radius: 16px; background: #fff; }
.steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream);
  color: var(--saffron-deep); font-weight: 600; margin-bottom: 14px; }

.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.schedule li { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; padding: 20px 24px;
  background: var(--paper); border-radius: 12px; }
.schedule li.empty { display: block; color: var(--muted); }
.schedule span { display: block; }
.schedule .desc { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.schedule .price { display: grid; justify-items: end; gap: 6px; text-align: right; }
.schedule .price b { font-family: var(--serif); font-size: 1.4rem; color: var(--indigo); }
.schedule time { color: var(--saffron-deep); font-weight: 600; font-size: .92rem; }
.schedule strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--indigo); }
.schedule span { color: var(--muted); font-size: .9rem; }

.teacher { display: flex; gap: clamp(24px, 5vw, 56px); align-items: center; flex-wrap: wrap; }
.teacher-photo { flex: none; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--sage); font-family: var(--serif); font-size: 2.4rem; }
.teacher p:last-child { color: var(--muted); max-width: 36em; }

.plan { max-width: 440px; padding: 36px; border-radius: 20px; background: #fff; border: 1px solid rgba(28,37,65,.1); }
.plan-name { font-weight: 600; color: var(--indigo); margin: 0; }
.plan-price { font-family: var(--serif); font-size: 3rem; font-weight: 600; margin: 4px 0 16px; color: var(--indigo); }
.plan-price span { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 1.1em; margin: 0 0 24px; color: var(--muted); }
.plan .note { margin: 14px 0 0; }

.join { background: var(--indigo); color: var(--cream); }
.join h2 { color: var(--cream); }
.lede-dark { color: rgba(246,240,228,.8); margin: 0 0 28px; }
#signup { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 720px; }
#signup label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
#signup small { font-weight: 400; color: rgba(246,240,228,.6); }
#signup input, #signup select, #signup textarea { font: 1rem var(--sans); padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(246,240,228,.25); background: rgba(255,255,255,.06); color: var(--cream); }
#signup select option { color: var(--ink); }
#signup input:focus, #signup select:focus, #signup textarea:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }
#signup .wide { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }
.flash { max-width: 720px; padding: 16px 20px; border-radius: 12px; margin: 0 0 20px; }
.flash-ok { background: rgba(127,143,116,.25); border: 1px solid var(--sage); }
.flash-err { background: rgba(217,130,43,.2); border: 1px solid var(--saffron); }

.foot { padding: 40px clamp(16px, 6vw, 96px); text-align: center; color: var(--muted); font-size: .9rem; }
.foot .wordmark { font-size: 1.3rem; margin: 0 0 6px; }

/* shared bits */
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.fine { font-size: .82rem; color: rgba(246,240,228,.6); margin: 0; }
.tag { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; background: rgba(28,37,65,.08); color: var(--indigo); margin-left: 6px; vertical-align: middle; }
.tag-live, .tag-published { background: rgba(127,143,116,.25); color: #4A5A40; }
.tag-warn, .tag-draft { background: rgba(217,130,43,.18); color: var(--saffron-deep); }
.tag-muted, .tag-canceled { color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.inline-form input { flex: 1 1 240px; font: 1rem var(--sans); padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(28,37,65,.2); }
.signin .flash { max-width: 520px; margin-top: 16px; }

/* members area */
.members-shell { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--indigo); color: var(--cream); }
.stage, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage:empty { display: none; }
.player-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.player-msg h2 { color: var(--cream); margin: 0; }
.player-msg p { color: rgba(246,240,228,.75); margin: 0 0 12px; max-width: 30em; }
.player .live { position: absolute; z-index: 2; top: 16px; left: 16px; background: #C0392B; color: #fff; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }
.player-bar { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.player-bar .btn { background: rgba(0,0,0,.45); }
.panel { background: var(--cream); border-radius: 16px; padding: 24px; }
.panel h3 { margin-bottom: 12px; }
.panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.panel li { background: var(--paper); padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.panel li b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--indigo); }
#paid-ok { margin-top: 16px; }

/* admin */
.admin-tag { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-left: 6px; }
.admin-shell { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 32px clamp(16px, 4vw, 48px) 64px; align-items: start; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-list h3 { font-size: 1.2rem; color: var(--muted); margin: 24px 0 10px; }
.admin-card { background: #fff; border: 1px solid rgba(28,37,65,.1); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.admin-card.status-canceled { opacity: .6; }
.ac-top { display: flex; justify-content: space-between; gap: 12px; }
.ac-top strong { font-family: var(--serif); font-size: 1.35rem; color: var(--indigo); display: block; }
.ac-top span { color: var(--muted); font-size: .9rem; }
.ac-roster { margin: 8px 0; font-size: .92rem; }
.admin-card details { font-size: .9rem; margin-bottom: 10px; }
.admin-card details ul { padding-left: 1.1em; margin: 8px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > label { flex: 1 1 120px; }
.admin-side { position: sticky; top: 84px; display: grid; gap: 20px; }
.editor, .studio { display: grid; gap: 12px; }
.editor label, .studio label { display: grid; gap: 5px; font-size: .85rem; font-weight: 500; }
.editor small { font-weight: 400; color: var(--muted); }
.editor input, .editor select, .editor textarea, .studio select { font: .95rem var(--sans); padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(28,37,65,.18); background: #fff; }
.studio video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; object-fit: cover; }
.live-dot { color: #C0392B; }
.admin .flash { margin: 0; }

@media (max-width: 900px) {
  .members-shell, .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .schedule li { grid-template-columns: 1fr; gap: 6px; }
  .schedule .price { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .hero-mark { opacity: .5; }
}
