/* Hub site layout. Shared fonts, tokens, buttons, panels and nav are in assets/shared/base.css. */

body::before { background-image: url(assets/bg.webp); }
@media (max-width: 736px) { body::before { background-image: url(assets/bg-small.webp); } }

/* ---------- Hero: the forest clearing ---------- */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.1rem;
  min-height: 100svh;
  padding: 5rem 1.25rem 3.5rem;
  text-align: center;
}
/* A soft pool of shade behind the hero text so it reads over the bright painting. */
.hero::before {
  content: '';
  position: absolute;
  inset: 8% 0 4%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 52% at 50% 52%, rgba(14, 20, 8, 0.55), rgba(14, 20, 8, 0) 100%);
  pointer-events: none;
}
.hero-stage { position: relative; width: min(46rem, 92vw); }
.hero-logo img { width: 100%; filter: drop-shadow(0 0.8rem 1.4rem rgba(20, 12, 4, 0.45)); }
.hero-tag {
  font: 700 clamp(1.15rem, 1rem + 0.6vw, 1.55rem) / 1.25 var(--font-display);
  text-shadow: 0 0.1rem 0.7rem rgba(0, 0, 0, 0.65);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 0.3rem; }
.hero .socials { margin-top: 0.5rem; }

/* The Trinket perched on the wordmark. Three layers so effects don't fight:
   button = drop/hop (GSAP), .poke-idle = slow breathing (CSS), img = squish (GSAP). */
.poke {
  position: absolute;
  top: -19%;
  right: 3%;
  width: clamp(4.2rem, 9vw, 7rem);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poke-idle { display: block; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
.poke img { width: 100%; filter: drop-shadow(0 0.35rem 0.4rem rgba(20, 12, 4, 0.45)); pointer-events: none; }
.poke:focus-visible { outline-offset: 6px; border-radius: 50%; }
@keyframes breathe { 50% { transform: scale(1.025, 0.975); } }
.sparkle {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--lantern) 45%, rgba(255, 249, 117, 0) 70%);
  pointer-events: none;
}

/* "Next stream …", filled in by app.js in the visitor's own time zone. */
.next-stream {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-self: center;
  column-gap: 0.65rem;
  padding: 0.5rem 1.2rem 0.45rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(var(--glass-rgb), 0.7);
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: left;
}
.next-stream::before {
  content: '';
  grid-row: 1 / span 2;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--lantern);
  box-shadow: 0 0 0.7rem var(--lantern);
}
.next-stream.is-live::before { background: var(--blush); box-shadow: 0 0 0.8rem var(--blush); }
.next-stream a { color: var(--lantern); }
.ns-main { font-weight: 700; }
.ns-sub { font-size: 0.88em; color: var(--ink-soft); }

/* ---------- Sections ---------- */
main > section { width: var(--page); margin: clamp(4rem, 3rem + 4vw, 7rem) auto 0; }
main { padding-bottom: 2rem; }

/* Home: portrait beside the intro */
.hello { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.hello-art .portrait {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  filter: drop-shadow(0 1.2rem 2rem rgba(10, 14, 5, 0.55));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.hello-text, .about-text { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.hello-text .lede { margin-top: 0.7rem; font-size: 1.1em; }
.stream { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 2px dashed rgba(255, 249, 117, 0.35); }
.stream > * + * { margin-top: 1rem; }

/* The week as a row of lanterns: stream days are lit. */
.week { display: flex; gap: 0.4rem; }
.week li {
  flex: 1;
  max-width: 3.6rem;
  padding: 0.5rem 0 0.35rem;
  border: 2px solid rgba(255, 249, 117, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font: 700 0.95rem / 1 var(--font-display);
  text-align: center;
}
.week li.is-lit { border-color: var(--lantern); background: var(--lantern); color: var(--wine); box-shadow: 0 0 0.9rem rgba(255, 249, 117, 0.6); }

/* About: text with the chibi stepping out beside it */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 2rem; }
.about-text > * + * { margin-top: 1rem; }
.about-text .h2 { margin-bottom: 0.4rem; }
.about-art { width: 100%; max-width: 25rem; margin-inline: auto; filter: drop-shadow(0 1.2rem 2rem rgba(10, 14, 5, 0.55)); }

/* Q&A */
.qa-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.qa-item { padding: 1.4rem 1.6rem 1.5rem; }
.qa-item dt { font: 800 1.4rem / 1.2 var(--font-display); color: var(--lantern); }
.qa-item dd { margin-top: 0.45rem; }
.qa-item--trinket { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; }
.qa-item--trinket .trinket { grid-column: 2; grid-row: 1 / span 2; width: clamp(4.5rem, 3rem + 4vw, 7rem); cursor: pointer; }

/* Mods: gradient tiles in the brand colours */
.mods-intro { max-width: 40em; margin-top: 0.8rem; color: var(--ink-soft); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.3rem 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, var(--lantern) 7%, var(--blush) 70%);
  box-shadow: 0 0.8rem 1.6rem rgba(10, 14, 5, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
  color: var(--wine);
  text-align: center;
}
.mod-art { width: 74%; aspect-ratio: 1; object-fit: contain; margin-bottom: 0.5rem; cursor: pointer; filter: drop-shadow(0 0.5rem 0.4rem rgba(122, 24, 24, 0.22)); }
.mod-name { font: 800 1.6rem / 1.05 var(--font-display); }
.mod-handle { display: block; margin-top: 0.2rem; font: 600 1rem / 1.3 var(--font-body); opacity: 0.85; }
.mod-tag { margin-top: 0.6rem; font-size: 0.98em; line-height: 1.35; }
.mod--soon { justify-content: center; min-height: 14rem; border: 3px dashed var(--line); background: rgba(var(--glass-rgb), 0.5); box-shadow: none; color: var(--ink); }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .hello, .about { grid-template-columns: 1fr; }
  .hello-art .portrait { max-width: 22rem; }
  .about-art { max-width: 18rem; order: -1; }
  .qa-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding-top: 4rem; gap: 0.95rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .week { gap: 0.3rem; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .mod { padding: 1rem 0.7rem 1.1rem; border-radius: 1.25rem; }
  .mod-name { font-size: 1.3rem; }
  .mod-handle, .mod-tag { font-size: 0.88rem; }
  .mod--soon { min-height: 0; grid-column: 1 / -1; padding: 1.4rem; }
}
