/* ============================================================
   Raise the Barre — the site's design ("Studio Light")
   Black on white, Playfair Display over Lato.
   Every page loads this file. Show pages add their own palette on
   top (holiday.css for the Variety Show; the Between the Lines page
   keeps its gold-and-blue legacy styles), and use the dark nav.
   Approved design: https://claude.ai/artifact/Q7VCS4u3jdsvKSXSzEyPim
   ============================================================ */

:root {
  --rtb-black: #111111;
  --rtb-black-hover: #3a3a3a;
  --rtb-muted: #5e5e5e;
  --rtb-soft: #b8b8b8;
  --rtb-gray: #f4f4f4;
  --rtb-line: #e4e4e4;
  --rtb-ink: #222222;
  --rtb-white: #ffffff;
  --rtb-wrap: 1120px;
  --rtb-radius: 16px;
  --rtb-serif: 'Playfair Display', Georgia, serif;
  --rtb-sans: 'Lato', system-ui, -apple-system, sans-serif;
}

/* --- Base (new pages; legacy pages bring their own reset) --- */
.rtb, .rtb *, .rtb *::before, .rtb *::after { box-sizing: border-box; }
body.rtb {
  margin: 0;
  font-family: var(--rtb-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--rtb-ink);
  background: var(--rtb-white);
}
.rtb h1, .rtb h2, .rtb h3 { font-family: var(--rtb-serif); font-weight: 700; line-height: 1.15; }
/* The reset has no weight (:where), so a component's own margins (.lede, .heading, ...) win. */
:where(.rtb) :where(h1, h2, h3, p) { margin: 0; }
.rtb img { display: block; max-width: 100%; }
.rtb a { color: var(--rtb-black); text-decoration: none; }
.rtb a:hover { color: var(--rtb-muted); }
.rtb p a:not([class]), .rtb li a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

.wrap { width: 100%; max-width: var(--rtb-wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 768px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Type helpers ------------------------------------------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700; color: var(--rtb-muted); margin-bottom: 8px;
}
.heading { font-size: clamp(30px, 4vw, 40px); color: var(--rtb-black); margin-bottom: 16px; }
.lede { max-width: 680px; margin-bottom: 32px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* --- Buttons ------------------------------------------------ */
.button, .button-outline, .button-light, .button-outline-light {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--rtb-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}
.rtb .button, .button { background: var(--rtb-black); color: var(--rtb-white); border-color: var(--rtb-black); }
.rtb .button:hover, .button:hover { background: var(--rtb-black-hover); border-color: var(--rtb-black-hover); color: var(--rtb-white); }
.rtb .button-outline, .button-outline { background: transparent; color: var(--rtb-black); border-color: var(--rtb-black); }
.rtb .button-outline:hover, .button-outline:hover { background: var(--rtb-black); color: var(--rtb-white); }
.rtb .button-light, .button-light { background: var(--rtb-white); color: var(--rtb-black); border-color: var(--rtb-white); }
.rtb .button-light:hover, .button-light:hover { background: #e6e6e6; border-color: #e6e6e6; color: var(--rtb-black); }
.rtb .button-outline-light, .button-outline-light { background: transparent; color: var(--rtb-white); border-color: var(--rtb-white); }
.rtb .button-outline-light:hover, .button-outline-light:hover { background: rgba(255,255,255,0.12); color: var(--rtb-white); }
.button-small { padding: 11px 20px; font-size: 13px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.center .actions { justify-content: center; }

/* --- Bands (page sections) ---------------------------------- */
.band { padding: 88px 0; }
.band-gray { background: var(--rtb-gray); }
.band-black { background: var(--rtb-black); color: var(--rtb-white); }
.band-black .heading { color: var(--rtb-white); }
.band-black .eyebrow { color: #c4c4c4; }
.band-black p { color: #e6e6e6; }
.fineprint { font-size: 13px; color: #c4c4c4; margin-top: 16px; }

/* --- Site nav ----------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--rtb-white);
  border-bottom: 1px solid var(--rtb-line);
  font-family: var(--rtb-sans);
}
.site-nav-inner {
  max-width: var(--rtb-wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav-logo { height: 44px; width: auto; display: block; }
.site-nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 28px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.site-nav .site-nav-links a { color: var(--rtb-black); text-decoration: none; }
.site-nav .site-nav-links a:hover { color: var(--rtb-muted); }
.site-nav .site-nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .site-nav-links a.site-nav-cta {
  background: var(--rtb-black); color: var(--rtb-white); padding: 11px 20px; border-radius: 999px;
}
.site-nav .site-nav-links a.site-nav-cta:hover { background: var(--rtb-black-hover); color: var(--rtb-white); }
.site-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
}
.site-nav-toggle span { display: block; height: 2px; background: var(--rtb-black); transition: transform 0.2s, opacity 0.2s; }
.site-nav.open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .site-nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Show pages: the same nav, dark. --show-accent is set by the show's palette. */
.site-nav-dark { background: #08170f; border-bottom-color: rgba(255,255,255,0.08); }
.site-nav-dark .site-nav-links a { color: #e9e2d3; }
.site-nav-dark .site-nav-links a:hover,
.site-nav-dark .site-nav-links a[aria-current="page"] { color: var(--show-gold, #f2cf73); }
.site-nav-dark .site-nav-links a.site-nav-cta { background: var(--show-accent, var(--rtb-black)); color: #fff; }
.site-nav-dark .site-nav-links a.site-nav-cta:hover { filter: brightness(1.1); background: var(--show-accent, var(--rtb-black)); }
.site-nav-dark .site-nav-toggle span { background: #e9e2d3; }

@media (max-width: 900px) {
  .site-nav-toggle { display: flex; }
  .site-nav-links { display: none; }
  .site-nav.open .site-nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 20px 24px 28px; background: inherit;
    border-bottom: 1px solid var(--rtb-line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .site-nav-dark.open .site-nav-links { background: #08170f; }
}

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--rtb-black); color: #c4c4c4; padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.14); font-family: var(--rtb-sans); font-size: 14px; }
.site-footer-inner {
  max-width: var(--rtb-wrap); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer-logo { height: 38px; width: auto; display: block; }
.site-footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-footer .site-footer-links a,
.site-footer .site-footer-links button { color: #ffffff; text-decoration: none; }
.site-footer-links button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.site-footer-links a:hover, .site-footer-links button:hover { text-decoration: underline; }
.site-footer-dark { background: #08170f; border-top: 1px solid rgba(255,255,255,0.08); }
.site-footer-dark .site-footer-links a, .site-footer-dark .site-footer-links button { color: var(--show-gold, #f2cf73); }
@media (max-width: 640px) {
  .site-footer-inner { flex-direction: column; text-align: center; }
}

/* --- Home hero ---------------------------------------------- */
.home-hero-light { background: var(--rtb-gray); text-align: center; padding: 88px 0 80px; }
.home-hero-light .home-logo { width: 380px; max-width: 75%; height: auto; margin: 0 auto 28px; }
.home-hero-light .eyebrow { letter-spacing: 0.3em; margin-bottom: 18px; }
.home-tagline {
  font-family: var(--rtb-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45; color: var(--rtb-black); max-width: 720px; margin: 0 auto 34px;
}
.home-hero-light .actions { justify-content: center; }

/* Inner pages' header */
.page-head { background: var(--rtb-gray); padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); color: var(--rtb-black); margin-bottom: 10px; }
.page-head .page-lede {
  font-family: var(--rtb-serif); font-style: italic; font-size: clamp(18px, 2vw, 22px);
  color: #444444; max-width: 760px;
}

/* --- Feature banner (the next show) ------------------------- */
.spotlight-band { padding: 0 0 8px; }
.spotlight {
  transform: translateY(-36px);
  background: var(--rtb-black); color: var(--rtb-white);
  border-radius: 20px; padding: 40px 48px;
  display: flex; gap: 40px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.spotlight-text { flex: 1 1 480px; min-width: 0; }
.spotlight .eyebrow { color: var(--rtb-soft); margin-bottom: 10px; }
.spotlight h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 12px; color: var(--rtb-white); }
.spotlight p { color: #d9d9d9; max-width: 560px; }
.spotlight-holiday { background: #0c1f17; box-shadow: inset 0 0 0 1px #2a4d3a; }
.spotlight-holiday .eyebrow { color: #f2cf73; }
@media (max-width: 640px) { .spotlight { padding: 30px 26px; } }

/* --- Cards -------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--rtb-line); border-radius: var(--rtb-radius);
  padding: 30px 28px; background: var(--rtb-white); color: var(--rtb-ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rtb a.card { color: var(--rtb-ink); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }
.card h3 { font-size: 23px; color: var(--rtb-black); }
.card p { flex: 1; }
.card-more { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rtb-black); }
.card-more::after { content: " \2192"; }

/* A production: poster beside its text */
.production { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.production + .production { margin-top: 56px; }
.production-art {
  width: 260px; height: auto; border-radius: 10px; flex: 0 0 auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.production-text { flex: 1 1 420px; min-width: 0; }
.production-text h2, .production-text h3 { font-size: clamp(30px, 4vw, 40px); color: var(--rtb-black); margin-bottom: 14px; }
.production-text p { max-width: 560px; margin-bottom: 22px; }
.text-link { font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.text-link::after { content: " \2192"; }

/* A small TV set standing in for the Variety Show's poster */
.tv-art {
  width: 260px; flex: 0 0 auto; background: #5a2e1c; border-radius: 26px; padding: 16px 16px 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.tv-art-screen {
  background: radial-gradient(ellipse at 50% 40%, #fdf6e6 0%, #efe0bd 100%);
  border-radius: 18px; padding: 30px 14px; text-align: center;
  font-family: var(--rtb-serif); font-weight: 900; color: #12301f; line-height: 1.05; font-size: 30px;
}
.tv-art-screen em { color: #c42a3c; display: block; }
.tv-art-screen small { display: block; font-family: var(--rtb-sans); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: #c42a3c; margin-bottom: 8px; font-weight: 700; }

/* --- Placeholders (content still to come) ------------------- */
.placeholder {
  border: 2px dashed #c4c4c4; background: var(--rtb-gray); border-radius: var(--rtb-radius);
  padding: 40px 32px; text-align: center;
}
.placeholder p { font-size: 18px; margin-bottom: 20px; }

/* Lists of upcoming dates (calendar page) */
.date-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; }
.date-list li {
  display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
  border: 1px solid var(--rtb-line); border-radius: 12px; padding: 14px 20px;
}
.date-list strong { color: var(--rtb-black); min-width: 220px; }

/* --- Newsletter modal --------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.modal-panel {
  position: relative; background: var(--rtb-white); color: var(--rtb-ink);
  border-radius: 20px; padding: 40px 32px 32px; width: 100%; max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35); font-family: var(--rtb-sans);
}
.modal-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  font-size: 30px; line-height: 1; cursor: pointer; color: var(--rtb-black); width: 44px; height: 44px;
}
.modal-panel h2 { font-family: var(--rtb-serif); font-size: 28px; color: var(--rtb-black); margin: 4px 0 10px; }
.modal-panel p { margin: 0 0 20px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input[type="email"] {
  font: inherit; padding: 14px 16px; border: 1.5px solid #c8c8c8; border-radius: 12px; color: var(--rtb-black);
}
.modal-form input[type="email"]:focus { outline: 2px solid var(--rtb-black); outline-offset: 1px; border-color: var(--rtb-black); }
.modal-fineprint { font-size: 13px; color: #666666; margin-top: 14px; }

/* --- Legacy pages (studio build guides) in the light theme ---
   They keep their own markup and old stylesheets; these rules
   recolour the old classes black on white. */
.theme-light-legacy {
  background: var(--rtb-white);
  /* The old stylesheets' blues, as blacks and grays. */
  --blue-deep: var(--rtb-black); --blue-mid: #333333; --blue-bg: #222222; --text-on-blue: #d9d9d9;
}
.theme-light-legacy .note-box { background: var(--rtb-gray); }
.theme-light-legacy .page-hero { background: var(--rtb-gray); color: var(--rtb-black); padding: 64px 0 56px; }
.theme-light-legacy .page-hero-title { color: var(--rtb-black); }
.theme-light-legacy .page-hero-lede { color: #444444; }
.theme-light-legacy .section-label,
.theme-light-legacy .section-label-gold { color: var(--rtb-black); opacity: 1; }
.theme-light-legacy .section-cream,
.theme-light-legacy .section-dark-blue { background: var(--rtb-gray); color: var(--rtb-ink); }
.theme-light-legacy .section-dark-blue .section-heading,
.theme-light-legacy .section-blue .section-heading { color: var(--rtb-black); }
.theme-light-legacy .section-blue { background: var(--rtb-white); color: var(--rtb-ink); }
.theme-light-legacy .section-light { background: var(--rtb-white); }
.theme-light-legacy .section-dark-blue .section-intro,
.theme-light-legacy .section-blue .section-intro { color: var(--rtb-ink); }
.theme-light-legacy .btn-gold { background: var(--rtb-black); border-color: var(--rtb-black); color: #fff; border-radius: 999px; }
.theme-light-legacy .btn-gold:hover { background: var(--rtb-black-hover); border-color: var(--rtb-black-hover); }
.theme-light-legacy .btn-outline-white { color: var(--rtb-black); border-color: var(--rtb-black); border-radius: 999px; }
.theme-light-legacy .info-card { border-top-color: var(--rtb-black); }
.theme-light-legacy .feature-card-meta { color: var(--rtb-black); }

/* The build guides' text in black; their diagrams keep their blueprint colours. */
.theme-light-legacy .build-guide h1,
.theme-light-legacy .build-guide h2,
.theme-light-legacy .build-guide h3,
.theme-light-legacy .build-guide a,
.theme-light-legacy .build-guide .kicker { color: var(--rtb-black); }
.theme-light-legacy .build-guide a { text-decoration: underline; text-underline-offset: 3px; }
.theme-light-legacy .build-guide .guide-nav a:hover { color: var(--rtb-muted); border-color: var(--rtb-black); }
.theme-light-legacy .build-guide .note { background: var(--rtb-gray); border-left-color: var(--rtb-black); }

/* Between the Lines: its gold-and-blue look, so the dark nav is navy and gold. */
.theme-show-legacy { --show-gold: #c9a84c; --show-accent: #1f3fae; }
.theme-show-legacy .site-nav-dark,
.theme-show-legacy .site-nav-dark.open .site-nav-links,
.theme-show-legacy .site-footer-dark { background: #0d1540; }
