/* mainstory.quest — styles ported from the Mainstory.dc.html design.
   Palette, type scale, borders and animations are kept as designed; layout is
   extended with breakpoints the 1440px design preview never had to handle. */

:root {
  --accent: oklch(0.62 0.16 58);
  --accent-hex: #e2711d;
  --paper: oklch(0.985 0.004 85);
  --card: oklch(1 0 0);
  --ink: oklch(0.24 0.012 70);
  --ink-strong: oklch(0.2 0.012 70);
  --ink-soft: oklch(0.44 0.012 70);
  --ink-muted: oklch(0.55 0.012 70);
  --line: oklch(0.6 0.01 70 / 0.18);
  --line-strong: oklch(0.6 0.01 70 / 0.28);
  --accent-line: oklch(0.68 0.15 55 / 0.45);
  --wash: oklch(0.955 0.022 62);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  overflow-x: hidden;
}

::selection { background: oklch(0.78 0.16 62 / 0.5); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- animations ---------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes pulseDot { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes astroSpin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes starDrift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-90px, -150px, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- background orrery ---------- */

.orrery {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--paper);
}
.orrery__stars {
  position: absolute;
  inset: -10%;
  animation: starDrift 300s linear infinite;
  background-image: radial-gradient(oklch(0.6 0.01 70 / 0.1) 1px, transparent 1.4px);
  background-size: 160px 160px;
}
.orrery__ring {
  position: absolute;
  top: 8vh; left: 2vw;
  width: 92vh; height: 92vh;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: astroSpin 420s linear infinite;
  background: repeating-conic-gradient(from 0deg, oklch(0.68 0.15 55 / 0.22) 0deg 0.35deg, transparent 0.35deg 9deg);
  -webkit-mask-image: radial-gradient(circle, transparent 46%, black 47%, black 49.5%, transparent 50.5%);
  mask-image: radial-gradient(circle, transparent 46%, black 47%, black 49.5%, transparent 50.5%);
}
.orrery__circle {
  position: absolute;
  bottom: -34vh; right: -18vw;
  width: 104vh; height: 104vh;
  border-radius: 50%;
  border: 1px solid oklch(0.6 0.01 70 / 0.14);
  transform: translate(-50%, -50%);
}

.shell { position: relative; z-index: 1; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  background: oklch(1 0 0 / 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 3px double oklch(0.6 0.01 70 / 0.35);
}
.masthead__left { display: flex; align-items: center; gap: 32px; min-width: 0; }
.masthead__right { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 14px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__bang {
  font-size: 30px;
  font-weight: 700;
  line-height: 0.8;
  color: var(--accent);
  text-shadow: 0 0 18px oklch(0.75 0.15 62 / 0.3);
  animation: bob 3.6s ease-in-out infinite;
}
.brand__word {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand__tld { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: oklch(0.5 0.012 70);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { font-weight: 600; color: var(--accent); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
  min-width: 0;
  padding: 5px 6px 5px 14px;
  background: oklch(0.97 0.004 85);
  border: 1px solid oklch(0.6 0.01 70 / 0.2);
  border-radius: 2px;
}
.search input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13.5px;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  padding: 6px 0;
}

.chip-city {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 14px;
  border: 1px solid oklch(0.6 0.01 70 / 0.22);
  border-radius: 3px;
  font-size: 13px;
  color: oklch(0.4 0.012 70);
}
.chip-city__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.6s ease-in-out infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn--primary { color: oklch(1 0 0); background: var(--accent); }
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: oklch(0.96 0.006 80); }

/* ---------- hero ---------- */

/* overflow:hidden keeps the oversized decorative dial from widening the page
   on narrow screens. */
.hero { position: relative; overflow: hidden; padding: 58px 40px 40px; text-align: center; }
/* While a filter is on, the hero collapses to a sliver so the results — the
   only thing that responded to the query — are on screen straight away. */
.hero--compact { padding: 0; }
.hero--compact .hero__dial { display: none; }
.hero__dial {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: astroSpin 300s linear infinite;
  background: repeating-conic-gradient(from 0deg, oklch(0.7 0.15 58 / 0.3) 0deg 0.3deg, transparent 0.3deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 47.5%, black 48.5%, black 50%, transparent 51%);
  mask-image: radial-gradient(circle, transparent 47.5%, black 48.5%, black 50%, transparent 51%);
}
.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero__inner { position: relative; max-width: 700px; }

/* ---------- Luma ---------- */

.hero__witch { flex: none; }
.witch {
  width: 256px;
  height: 256px;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.witch__sprite {
  width: 128px;
  height: 128px;
  background: url('assets/witch-atlas-128.png') 0 0 / 768px 768px;
  image-rendering: pixelated;
  /* Integer scale keeps the pixel art crisp — see the pack's README. */
  transform: scale(2);
  transform-origin: center;
  transition: translate 0.18s ease-out;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: oklch(0.55 0.16 52);
  padding: 3px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  margin-bottom: 20px;
  background: oklch(0.955 0.04 62);
}
.hero__badge span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- section furniture ---------- */

.wrap { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.55 0.17 48);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ''; width: 14px; height: 3px; background: var(--accent); }

/* ---------- next up ---------- */

.nextup { padding: 12px 40px 8px; }
.nextup__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.nextup__label { font-size: 12.5px; font-weight: 600; color: oklch(0.3 0.012 70); }
.nextup__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.upcard {
  display: block;
  padding: 20px 22px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.upcard:hover { transform: translateY(-3px); border-color: oklch(0.65 0.16 55 / 0.55); }
.upcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.upcard__slot {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upcard__title {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.upcard__meta { font-size: 13px; color: oklch(0.46 0.012 70); }
.upcard__venue { font-size: 13px; color: var(--ink-muted); }

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  flex: none;
  white-space: nowrap;
}

/* ---------- main listings layout ---------- */

.listings {
  scroll-margin-top: 84px; /* clears the sticky masthead */
  padding: 56px 40px 90px;
  display: grid;
  grid-template-columns: minmax(0, 264px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cal__month { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  font-family: inherit;
  font-size: 14px;
  width: 27px; height: 27px;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  border: 1px solid oklch(0.6 0.01 70 / 0.22);
  color: oklch(0.36 0.012 70);
  transition: background 0.2s ease;
}
.cal__nav button:hover:not(:disabled) { background: oklch(0.94 0.008 80); }
.cal__nav button:disabled { opacity: 0.35; cursor: default; }

.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__weekdays { margin-bottom: 6px; }
.cal__weekdays div {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.58 0.012 70);
  text-align: center;
}
.cal__cell {
  height: 38px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: inherit;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cal__cell--blank { background: transparent; border: 1px solid transparent; }
.cal__cell--empty { background: oklch(0.985 0.003 85); border: 1px solid oklch(0.6 0.01 70 / 0.14); color: oklch(0.74 0.008 70); cursor: default; }
.cal__cell--has { background: oklch(0.955 0.035 62); border: 1px solid oklch(0.68 0.15 55 / 0.35); color: var(--ink-strong); cursor: pointer; }
.cal__cell--has:hover { transform: translateY(-2px); }
.cal__cell--sel { background: var(--accent); border: 1px solid var(--accent); color: oklch(1 0 0); cursor: pointer; }
.cal__cell span { font-size: 12.5px; font-weight: 600; line-height: 1; }
.cal__dots { display: flex; gap: 3px; }
.cal__dots i { width: 4px; height: 4px; border-radius: 50%; display: block; }

.filter-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.56 0.012 70);
  margin-bottom: 11px;
}
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 3px;
  cursor: pointer;
  background: var(--card);
  color: oklch(0.4 0.012 70);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.pill:hover { border-color: oklch(0.65 0.16 55 / 0.6); }
.pill[aria-pressed='true'] { background: var(--accent); color: oklch(1 0 0); border-color: var(--accent); }

.results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.results__title {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.results__meta { display: flex; align-items: center; gap: 12px; }
.results__count { font-size: 13px; color: oklch(0.52 0.012 70); }
.results__clear {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: oklch(0.36 0.012 70);
}
.results__clear:hover { background: oklch(0.96 0.006 80); }

.groups { display: flex; flex-direction: column; gap: 44px; }
.group__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.group__date { display: flex; align-items: baseline; gap: 10px; }
.group__day {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: oklch(0.58 0.17 50);
}
.group__month { font-size: 16px; font-weight: 600; color: oklch(0.3 0.012 70); }
.group__dow { font-size: 14px; color: oklch(0.5 0.012 70); }
.group__countdown {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.52 0.16 50);
  padding: 4px 10px;
  border-radius: 3px;
  background: oklch(0.94 0.05 58);
}
.group__rule { flex: 1; height: 1px; min-width: 40px; background: linear-gradient(90deg, oklch(0.6 0.01 70 / 0.3), transparent); }
.group__list { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 100px) minmax(0, 1fr) 26px;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid oklch(0.6 0.01 70 / 0.16);
  border-left: 3px solid oklch(0.6 0.01 70 / 0.16);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.row:hover {
  background: oklch(0.985 0.008 75);
  border-left-color: var(--accent);
  transform: translateX(3px);
}
.row__start { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.row__end { font-size: 12px; color: var(--ink-muted); }
.row__title {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  transition: color 0.25s ease;
}
.row:hover .row__title { color: oklch(0.58 0.18 45); }
.row__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; }
.row__venue { font-size: 13px; color: oklch(0.5 0.012 70); }
.row__price { font-size: 13px; font-weight: 600; color: oklch(0.52 0.16 50); }
.row__bang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid oklch(0.68 0.15 55 / 0.5);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  justify-self: end;
  transition: background 0.25s ease, transform 0.25s ease;
}
.row:hover .row__bang { background: oklch(0.75 0.15 58 / 0.16); transform: scale(1.1); }

.expand {
  width: 100%;
  margin-top: 34px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--card);
  border: 1px solid oklch(0.68 0.15 55 / 0.35);
  padding: 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.expand:hover { background: oklch(0.96 0.006 80); transform: translateY(-1px); }
.expand--less { background: transparent; border-color: var(--line-strong); color: oklch(0.38 0.012 70); }

.empty { text-align: center; padding: 70px 20px; color: oklch(0.52 0.012 70); font-size: 14px; }

/* ---------- regulars ---------- */

.regulars { padding: 0 40px 80px; }
.regulars__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.regulars__note { font-size: 12.5px; color: var(--ink-muted); }
.regulars__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.regular {
  display: block;
  padding: 18px 20px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.regular:hover { transform: translateY(-3px); border-color: oklch(0.65 0.16 55 / 0.55); }
.regular__name {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.regular__when {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(0.55 0.16 52);
  margin-bottom: 8px;
}
.regular__what { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.regular__area { font-size: 12.5px; color: var(--ink-muted); margin-top: 8px; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 66px 40px;
  text-align: center;
  border-top: 1px solid oklch(0.6 0.01 70 / 0.16);
  background: oklch(0.955 0.008 80);
}
.cta h2 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 31px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.cta p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 24px; }
.cta .btn { font-size: 14px; padding: 12px 26px; }

/* ---------- detail page ---------- */

.detail { max-width: 1080px; margin: 0 auto; padding: 32px 40px 90px; animation: fadeUp 0.35s ease both; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: oklch(0.5 0.012 70);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}
.back:hover { color: var(--ink); }

.detail__hero {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  padding: 44px;
  margin-bottom: 34px;
  background: var(--wash);
  border: 1px solid oklch(0.68 0.15 55 / 0.3);
}
.detail__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(oklch(0.55 0.01 70 / 0.18) 1px, transparent 1.2px);
  background-size: 64px 64px;
  opacity: 0.5;
  pointer-events: none;
}
.detail__heroinner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.detail__tags { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.detail__countdown {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.55 0.16 52);
}
.detail__hero h1 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}
.detail__when { text-align: right; }
.detail__dow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: oklch(0.36 0.012 70); }
.detail__daynum { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.detail__monthyear { font-size: 22px; font-weight: 600; color: oklch(0.3 0.012 70); }
.detail__time { font-size: 14px; color: oklch(0.36 0.012 70); margin-top: 8px; }

.detail__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail__body p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 24px; text-wrap: pretty; }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist span { font-size: 12.5px; padding: 6px 13px; border-radius: 3px; border: 1px solid oklch(0.6 0.01 70 / 0.24); color: var(--ink-soft); }

.factbox {
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
}
.factbox__rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.factbox__k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); margin-bottom: 4px; }
.factbox__v { font-size: 14.5px; font-weight: 600; }
.factbox__sub { font-size: 13.5px; color: oklch(0.46 0.012 70); }
.factbox__sub a { text-decoration: underline; text-underline-offset: 2px; }
.factbox__sub a:hover { color: var(--accent); }
.factbox .btn { width: 100%; font-size: 14px; padding: 12px; margin-bottom: 10px; }
.factbox__source { font-size: 11.5px; color: var(--ink-muted); margin-top: 14px; line-height: 1.5; }
.factbox__source a { text-decoration: underline; text-underline-offset: 2px; }

.similar { margin-top: 64px; }
.similar__list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.simrow {
  display: grid;
  grid-template-columns: minmax(0, 112px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 3px;
  background: var(--card);
  border: 1px solid oklch(0.6 0.01 70 / 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.simrow:hover { transform: translateX(4px); border-color: oklch(0.65 0.16 55 / 0.5); }
.simrow__date { font-size: 15px; font-weight: 600; }
.simrow__cd { font-size: 12px; color: oklch(0.54 0.012 70); }
.simrow__title {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.simrow__time { font-size: 13px; color: oklch(0.5 0.012 70); }

/* ---------- submit / about ---------- */

.page { max-width: 720px; margin: 0 auto; padding: 64px 40px 100px; animation: fadeUp 0.35s ease both; }
.page--narrow { max-width: 620px; }
.page__bang {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 32px oklch(0.75 0.15 62 / 0.28);
  margin-bottom: 14px;
  animation: bob 3.6s ease-in-out infinite;
  text-align: center;
}
.page h1 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 31px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.page h2 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 34px 0 10px;
}
.page p, .page li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }
.page p { margin: 0 0 14px; }
.page ul { margin: 0 0 14px; padding-left: 20px; }
.page a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 14px;
  color: inherit;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { padding: 13px; font-size: 14px; }
.form__note { font-size: 12.5px; color: var(--ink-muted); line-height: 1.6; }
.form__status { font-size: 13.5px; line-height: 1.6; margin: 0; }
.form__status:empty { display: none; }
.form__status--ok {
  padding: 12px 14px;
  border-radius: 3px;
  background: oklch(0.955 0.04 62);
  border: 1px solid var(--accent-line);
  color: oklch(0.36 0.06 55);
  font-weight: 600;
}
.form__status--err { color: oklch(0.5 0.17 28); font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:disabled:hover { transform: none; filter: none; }

.notice {
  padding: 14px 16px;
  border-radius: 3px;
  background: oklch(0.955 0.04 62);
  border: 1px solid var(--accent-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: oklch(0.36 0.06 55);
}

/* ---------- footer ---------- */

.footer {
  padding: 28px 40px;
  border-top: 1px solid oklch(0.6 0.01 70 / 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { transition: color 0.2s ease; }
.footer__links a:hover { color: oklch(0.3 0.012 70); }

/* ---------- breakpoints ---------- */

@media (max-width: 1080px) {
  .listings { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 32px; }
  .sidebar > * { flex: 1 1 280px; }
  .detail__body { grid-template-columns: 1fr; }
  .factbox { position: static; }
}

@media (max-width: 860px) {
  .masthead { flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
  .masthead__left { gap: 18px; width: 100%; justify-content: space-between; }
  .masthead__right { flex-wrap: wrap; }
  .search { max-width: none; flex: 1 1 200px; }
  .hero { padding: 32px 20px 28px; }
  .hero h1 { font-size: 34px; }
  .hero__dial { width: 420px; height: 420px; }
  /* Side by side leaves the headline barely 200px on a phone — stack instead,
     at 1× so the pixel grid stays sharp. */
  .hero__stage { flex-direction: column; gap: 0; }
  .witch { width: 128px; height: 128px; }
  .witch__sprite { transform: scale(1); }
  .nextup, .listings, .regulars, .cta, .detail, .page, .footer { padding-left: 20px; padding-right: 20px; }
  .detail__hero { padding: 26px; }
  .detail__hero h1 { font-size: 28px; }
  .detail__heroinner { gap: 20px; }
  .detail__when { text-align: left; }
  .detail__daynum { font-size: 34px; }
  .row { grid-template-columns: minmax(0, 84px) minmax(0, 1fr); gap: 14px; padding: 16px 18px; }
  .row__bang { display: none; }
  .row__title { font-size: 17px; }
  .simrow { grid-template-columns: minmax(0, 96px) minmax(0, 1fr); }
  .simrow__time { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer { justify-content: flex-start; }
}

@media (max-width: 520px) {
  /* Brand + nav stop fitting on one line around here; let the nav drop rather
     than push the page wider than the screen. Wrapping makes the bar ~124px
     tall, which is too much to keep pinned on a phone — so it scrolls away
     here and the listings get the full screen. */
  .masthead { position: static; padding: 12px 16px; }
  .listings { scroll-margin-top: 12px; }
  .masthead__left { flex-wrap: wrap; gap: 10px 16px; }
  .brand__word { font-size: 18px; }
  .brand__bang { font-size: 26px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .chip-city { display: none; }
  .btn--primary { padding: 9px 14px; }
  .hero { padding: 24px 16px 24px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .nextup, .listings, .regulars, .cta, .detail, .page, .footer { padding-left: 16px; padding-right: 16px; }
  .listings { padding-top: 32px; }
  .group__day { font-size: 26px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row__times { display: flex; align-items: baseline; gap: 8px; }
  /* Comfortable thumb targets in the date grid. */
  .cal__cell { height: 44px; }
  .pill { padding: 9px 14px; }
  .results__head { gap: 8px; }
}
