:root {
  --cream: #FFF7F0;
  --cream-deep: #FCEADC;
  --paper: #FFFDF8;
  --shell: #FF8A73;
  --shell-deep: #E5675A;
  --cherry: #E8403A;
  --blush: #FFD9CF;
  --sea: #2E6C78;
  --sea-deep: #1F4F5A;
  --foam: #D3F0E8;
  --sand: #F2E1C9;
  --ink: #3B2C38;
  --muted: #7B6772;
  --rule: #E8D5C8;
  --white: #FFFFFF;
  --shadow: 0 18px 40px -18px rgba(91, 46, 52, 0.35);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.4em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.sprite { display: none; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #C9B8BF; flex: none; }
[data-state="live"] .dot { background: #FF4D6A; animation: pulse 1.8s infinite; }
[data-state="offline"] .dot { background: #9AA8C7; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 247, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 103, 90, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.brand img { width: 52px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 700; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.nav a:hover { background: var(--blush); color: var(--shell-deep); }
.nav .nav-live { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); margin-left: 6px; }
.nav .nav-live:hover { background: var(--cherry); color: var(--white); }
.nav-live .dot { width: 8px; height: 8px; background: #FF6B7F; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.accent { color: var(--shell-deep); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 30ch; }
.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 999px; padding: 8px 16px 8px 12px;
  font-weight: 700; font-size: 0.95rem; box-shadow: 0 6px 20px -10px rgba(91, 46, 52, 0.35);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 1.05rem; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--shell); color: var(--white); box-shadow: 0 12px 24px -10px rgba(229, 103, 90, 0.8); }
.btn-primary:hover { background: var(--shell-deep); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--blush); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--shell); }
.btn-small { font-size: 0.95rem; padding: 11px 18px; }

.hero-art { display: flex; justify-content: center; }
.bubble-disc {
  position: relative; width: min(500px, 100%); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #EAFBF6 0%, var(--foam) 45%, #B4E3D7 100%);
  box-shadow: inset 0 -20px 40px rgba(46, 108, 120, 0.12), var(--shadow);
}
.mascot {
  position: absolute; width: 80%; left: 9%; top: 22%;
  animation: bob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 16px rgba(201, 54, 48, 0.22));
}
.seaweed { position: absolute; bottom: 4%; width: 18%; transform-origin: bottom center; }
.seaweed-left { left: 6%; height: 62%; animation: sway 6s ease-in-out infinite; }
.seaweed-right { right: 5%; height: 48%; animation: sway 7s ease-in-out infinite reverse; }
.pebbles { position: absolute; bottom: 0; left: 0; width: 100%; height: 13%; }
.bubble {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.35) 55%, rgba(255,255,255,0.12));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
  animation: rise linear infinite;
}
.b1 { left: 22%; width: 18px; height: 18px; animation-duration: 7s; }
.b2 { left: 70%; width: 12px; height: 12px; animation-duration: 5.5s; animation-delay: 1.5s; }
.b3 { left: 48%; width: 24px; height: 24px; animation-duration: 9s; animation-delay: 3s; }
.b4 { left: 82%; width: 16px; height: 16px; animation-duration: 8s; animation-delay: 4.5s; }
.b5 { left: 34%; width: 10px; height: 10px; animation-duration: 6s; animation-delay: 2.2s; }

/* ---------- tank (home page stream) ---------- */
.tank { position: relative; background: var(--sea); color: var(--white); padding: 30px 0 120px; }
.wave { position: absolute; left: 0; width: 100%; height: 80px; display: block; }
.wave-top { top: -79px; color: var(--sea); }
.wave-bottom { bottom: -1px; color: var(--cream); }
.tank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tank-head h2 { margin: 0; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; text-decoration: none; color: #FFC2B5;
}
.text-link:hover { color: var(--white); }
.text-link .icon { transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- player ---------- */
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden;
  background: var(--sea-deep);
  border: 10px solid var(--cream);
  box-shadow: 0 30px 60px -24px rgba(10, 30, 36, 0.7);
}
.player video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--sea-deep); }
.player-offline {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 24px; color: var(--white);
  background: radial-gradient(circle at 50% 40%, #2F7480, var(--sea-deep) 75%);
  transition: opacity 0.4s;
}
.player-offline img { width: clamp(120px, 26%, 230px); margin-bottom: 16px; animation: bob 4.5s ease-in-out infinite; }
.offline-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 600; margin: 0 0 4px; }
.offline-sub { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 1rem; }
.player[data-state="live"] .player-offline { opacity: 0; pointer-events: none; }
.live-pill {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 79, 90, 0.72); backdrop-filter: blur(8px);
  color: var(--white); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px 7px 11px; border-radius: 999px;
}
.player[data-state="live"] .live-pill { background: rgba(232, 64, 58, 0.92); }
.player[data-state="live"] .live-pill .dot { background: var(--white); animation: none; }
.player-controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 10px; opacity: 0; transition: opacity 0.25s; }
.player[data-state="live"] .player-controls { opacity: 1; }
.ctrl {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.95rem;
  color: var(--ink); background: rgba(255, 247, 240, 0.92); backdrop-filter: blur(8px);
  padding: 10px 16px; border-radius: 999px; transition: transform 0.15s, background 0.2s;
}
.ctrl:hover { transform: translateY(-1px); background: var(--white); }
.ctrl-round { padding: 10px; }

/* Volume: speaker button + slider in one pill. --fill is set by player.js. */
.volume {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 247, 240, 0.92); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 5px 16px 5px 5px;
}
.volume:has(.volume-slider[hidden]) { padding-right: 5px; }
.ctrl-icon {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); background: transparent;
  transition: background 0.2s, color 0.2s;
}
.ctrl-icon:hover { background: var(--blush); color: var(--shell-deep); }
.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 6px; margin: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--shell-deep) var(--fill, 0%), #E6D6CF var(--fill, 0%));
}
.volume-slider[hidden] { display: none; }
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--shell-deep); box-shadow: 0 1px 4px rgba(59, 44, 56, 0.25);
}
.volume-slider::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--shell-deep); box-shadow: 0 1px 4px rgba(59, 44, 56, 0.25);
}
.volume-slider::-moz-range-track { background: transparent; }
.ctrl-icon:focus-visible, .volume-slider:focus-visible { outline: 3px solid #FFC2B5; outline-offset: 3px; }
.ctrl:focus-visible, .btn:focus-visible, .nav a:focus-visible, .text-link:focus-visible { outline: 3px solid #FFC2B5; outline-offset: 3px; }

/* ---------- agenda: written on lined paper ----------
   Everything inside .sheet sits on a 32px line grid: every line box is 32px
   (or a multiple), every gap is whole lines, and the ruled line is drawn just
   under each line's text baseline, so the writing rests on the rules. */
.agenda { padding: 80px 0 70px; }
.sheet {
  --line: 32px;
  --rule-at: 24px;               /* baseline of 15-21px text in a 32px line box */
  --margin-x: 196px;             /* the notebook margin line, between time and session */
  position: relative; max-width: 860px; margin: 0 auto;
  background:
    repeating-linear-gradient(to bottom, transparent 0 var(--rule-at), rgba(46, 108, 120, 0.16) var(--rule-at) calc(var(--rule-at) + 1.5px), transparent calc(var(--rule-at) + 1.5px) var(--line)),
    var(--paper);
  border-radius: 6px;
  padding: calc(var(--line) * 2) 48px var(--line);
  line-height: var(--line);
  box-shadow: 0 1px 0 rgba(59, 44, 56, 0.06), 0 24px 50px -28px rgba(91, 46, 52, 0.45);
  transform: rotate(-0.6deg);
}
.sheet::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--margin-x); width: 2px;
  background: rgba(232, 96, 96, 0.45);
}
.sheet p, .sheet h2, .sheet h3, .sheet ol { margin: 0; }
.tape {
  position: absolute; top: -16px; left: 50%; width: 150px; height: 34px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 170, 150, 0.55);
  box-shadow: 0 2px 6px rgba(91, 46, 52, 0.12);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 96%, 2% 100%, 0 48%);
}
.sheet-head { padding-left: calc(var(--margin-x) - 48px + 20px); margin-bottom: var(--line); }
.sheet-org { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--shell-deep); }
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; column-gap: 16px; flex-wrap: wrap; }
/* Two lines tall, nudged so its baseline lands on the second rule. The nudge
   depends on font size, so the size is fixed per breakpoint, not fluid. */
.sheet-title h2 { font-size: 2.6rem; line-height: calc(var(--line) * 2); position: relative; top: 7px; }
.sheet-date { font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); }
.sessions { list-style: none; padding: 0; }
.sessions li {
  display: grid; grid-template-columns: calc(var(--margin-x) - 48px) 1fr auto; column-gap: 20px;
  margin-bottom: var(--line);
}
.sessions time { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 500; color: var(--sea); text-transform: uppercase; letter-spacing: 0.04em; }
.session h3 { font-size: 1.3rem; line-height: var(--line); }
.session p { color: var(--muted); font-size: 1rem; }
.kind {
  display: inline-block; margin-right: 10px; line-height: 1.3; vertical-align: 2px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--shell-deep); border: 1.5px solid currentColor; border-radius: 4px; padding: 0 6px;
}
.room { font-style: italic; font-weight: 600; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.sheet-foot { padding-left: calc(var(--margin-x) - 48px + 20px); font-size: 0.92rem; font-style: italic; color: var(--muted); }

/* ---------- about ---------- */
.about { padding: 30px 0 90px; }
.about-inner {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center;
  background: var(--cream-deep); border-radius: 36px; padding: 44px 52px;
}
.about-inner p { color: var(--muted); max-width: 56ch; }
.about-inner p:last-child { margin-bottom: 0; }
.about-art {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, var(--white), var(--blush) 80%);
}
.about-art img { width: 82%; transform: scaleX(-1) rotate(-6deg); }

/* ---------- live page ---------- */
.page-live { background: var(--sea); }
.page-live .site-header { background: rgba(255, 247, 240, 0.94); }
.live-main { color: var(--white); padding: 40px 0 70px; }
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.live-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 6px; }
.live-head p { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.player-big { border-color: var(--cream); }
.live-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.98rem; }

/* ---------- embed page ---------- */
.page-embed { background: var(--sea-deep); }
.player-embed { position: fixed; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.embed-brand {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--ink);
  background: rgba(255, 247, 240, 0.92); padding: 6px 14px 6px 8px; border-radius: 999px;
}
.embed-brand img { width: 34px; }

/* ---------- footer ---------- */
.site-footer { position: relative; }
.seabed { display: block; width: 100%; height: 120px; }
.footer-inner { background: var(--sand); padding: 6px 0 34px; }
.site-footer-plain .footer-inner { padding-top: 28px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-row p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.footer-row .brand { font-size: 1.25rem; }
.footer-row .brand img { width: 44px; }

/* ---------- motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-260px) translateX(8px); }
  100% { transform: translateY(-560px) translateX(-6px); opacity: 0; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 77, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 32px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .bubble-disc { width: min(380px, 100%); }
  .sheet { --margin-x: 30px; padding: calc(var(--line) * 2) 20px var(--line) 46px; transform: none; }
  .sheet-head, .sheet-foot { padding-left: 0; }
  .sheet-title h2 { font-size: 2.1rem; top: 10px; }
  .sessions li { grid-template-columns: 1fr; }
  .room { white-space: normal; }
  .about-inner { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; gap: 24px; }
  .about-art { width: 200px; margin-inline: auto; }
  .about-inner p { margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 44px; }
  .nav a:not(.nav-live) { display: none; }
  .player { border-width: 6px; border-radius: 22px; }
  .player-embed { border-width: 0; border-radius: 0; }
  .ctrl span { display: none; }
  .ctrl { padding: 10px; }
  .volume-slider { width: 72px; }
  .footer-row { justify-content: center; text-align: center; }
}
