/* The Comedy Forum — one stylesheet for every page.
   Colors and type were matched to the Carrd pages this replaces. */

:root {
  --text: #2e2e2e;
  --muted: #666;
  --faint: #bababa;
  --blue: #1667e0;
  --blue-dark: #0f52b8;
  --red: #fa4646;
  --gold: #f5b83d;
  --field: #f2faff;
  --field-line: rgba(113, 145, 163, 0.29);
  --band: #f4f4f4;
  --radius: 0.55rem;
  --font: "Google Sans", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.5; }
img, video { max-width: 100%; display: block; }
mark { background: none; color: var(--blue); }
a { color: var(--blue); }
a mark { color: inherit; }
:is(.display, .h1, .lead) a { text-decoration: none; }
:is(.display, .h1, .lead) a:hover { text-decoration: underline; }

/* ── chapter pages ───────────────────────────────────────────────────────── */

.col { max-width: 48rem; margin: 0 auto; padding: 4.5rem 1.25rem 2rem; }
section.col { padding-top: 2.5rem; }
.center { text-align: center; }
.gap { height: 3rem; }
.gap-s { height: 1.25rem; }

.logo { width: 7.5rem; height: auto; margin: 0 auto 1rem; }
.display { font-size: clamp(2.3rem, 7vw, 3.65rem); line-height: 1.22; font-weight: 700; text-align: center; margin: 0.8rem 0; }
.h1 { font-size: clamp(1.85rem, 5.4vw, 2.7rem); line-height: 1.25; font-weight: 700; text-align: center; margin: 0 0 0.6rem; }
.h3 { font-size: clamp(1.45rem, 4vw, 2rem); line-height: 1.4; font-weight: 700; text-align: center; margin: 0.6rem 0; }
.h3.left { text-align: left; }
.stack p { margin: 0 0 0.3em; }
.stack p:last-child { margin-bottom: 0; }
.pitch p { margin: 0 0 1.1em; }
.pitch p:last-child { margin-bottom: 0; }

/* light-blue card behind the "Want to try stand-up comedy?" pitch */
.card {
  background: var(--field); border-radius: 1.75rem; box-shadow: 0 0.55rem 1.6rem #e3e3e3;
  padding: 2.7rem 1.5rem 2.4rem;
}
.card .lead { margin-bottom: 0; }
.kicker { text-align: center; font-weight: 700; font-size: 1.2rem; color: var(--muted); margin: 0 0 0.3rem; }

.lead { text-align: center; font-weight: 700; font-size: 1.22rem; line-height: 1.5; margin: 1rem 0; }
.lead p { margin: 0 0 0.9em; }
.prose { font-size: 1.08rem; line-height: 1.6; }
.prose p { margin: 0 0 1em; }
.dateline { text-align: center; font-size: clamp(1.4rem, 4vw, 2.03rem); font-weight: 500; margin: 1.2rem 0; }
.caption { text-align: center; font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0; }
.caption em, .caption { font-style: italic; }
.note { text-align: center; font-weight: 700; margin: 1.5rem 0 0; }

.video { width: min(100%, 39.3rem); margin: 1rem auto 0; aspect-ratio: 16 / 9; background: #000; border-radius: 0.4rem; overflow: hidden; }
.video video { width: 100%; height: 100%; object-fit: cover; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-tall { width: min(100%, 24rem); }
.video-soon { display: grid; place-items: center; background: #f2faff; border: 2px dashed #b9d7ef; color: #5b7a93; font-size: 1.1rem; }
.photo { width: 100%; height: auto; border-radius: 0.6rem; margin: 0 0 1.5rem; }

.arrow-down { width: 1.6rem; margin: 1.2rem auto; color: #111; }

/* navy band around the RSVP button */
.rsvp-band { background: #024778; padding: 2.7rem 1.25rem; text-align: center; }
.btn-rsvp {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-size: 1.22rem; color: #000; background: #fff; border: 8px solid #ff0000;
  border-radius: var(--radius); padding: 0.55rem 1.9rem; transition: transform 0.15s;
}
.btn-rsvp:hover { transform: translateY(-2px); }
.rsvp-band + .testimonials { margin-top: 0; }
.btn-rsvp mark { color: inherit; }

.btn-plain, .btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font-size: 1.1rem; border-radius: var(--radius); padding: 1.05rem 1.8rem; margin-top: 1rem;
  transition: background-color 0.15s, color 0.15s;
}
.btn-plain { color: #7a7a7a; background: #fff; }
.btn-plain:hover { color: var(--blue); background: rgba(22, 103, 224, 0.05); }
.btn-primary { color: #fff; background: var(--blue); font-weight: 500; }
.btn-primary:hover { background: var(--blue-dark); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* testimonials */
.testimonials { background: #f7f7f7; padding: 2.7rem 1.25rem; margin-top: 2.5rem; }
.testimonials .grid { max-width: 61rem; margin: 0 auto; display: grid; gap: 0 2.2rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.testimonials figure { margin: 0; text-align: center; }
.testimonials figure + figure::before {
  content: ""; display: block; height: 1px; background: rgba(46, 46, 46, 0.12); margin: 0.2rem 0 1.6rem;
}
.stars { display: flex; justify-content: center; gap: 0.05rem; margin-bottom: 0.55rem; }
.stars svg { width: 0.85rem; height: 0.85rem; fill: var(--gold); }
.testimonials blockquote { margin: 0; font-style: italic; font-size: 1.22rem; line-height: 1.25; }
.testimonials figcaption { margin: 1.2rem 0; font-size: 0.81rem; font-weight: 700; }
@media (max-width: 736px) {
  .testimonials .grid { grid-template-columns: 1fr; max-width: 26rem; }
  .testimonials .tcol + .tcol figure:first-child::before {
    content: ""; display: block; height: 1px; background: rgba(46, 46, 46, 0.12); margin: 0.2rem 0 1.6rem;
  }
}

/* sign-up form */
.signup { margin: 0.5rem auto 0; max-width: 39rem; }
.signup .fields { display: grid; gap: 1rem; }
.signup input[type="text"], .signup input[type="tel"], .signup textarea, .signup select {
  width: 100%; font: inherit; font-size: 1.08rem; color: #616161; background: var(--field);
  border: 2px solid var(--field-line); border-radius: var(--radius); padding: 0 1.1rem; height: 3.25rem;
  -webkit-appearance: none; appearance: none;
}
.signup textarea { height: 7.5rem; padding: 0.85rem 1.1rem; resize: vertical; }
.signup select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23616161' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
  padding-right: 2.75rem; text-overflow: ellipsis;
}
.signup :is(input, textarea, select):focus { outline: none; border-color: var(--blue); }
.signup .tried :is(input, textarea, select):invalid { border-color: #e0574f; }
.signup .check { display: flex; gap: 0.9rem; align-items: center; font-size: 0.95rem; line-height: 1.5; color: #454545; font-weight: 400; cursor: pointer; padding: 0.4rem 0 0.4rem 0.25rem; }
.signup .check input {
  width: 1.65rem; height: 1.65rem; margin: 0; flex: none; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: var(--field);
  border: 2px solid var(--field-line); border-radius: 0.4rem; display: grid; place-content: center;
}
.signup .check input:checked { background: var(--blue); border-color: var(--blue); }
.signup .check input:checked::after { content: ""; width: 0.45rem; height: 0.8rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.signup button {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: min(100%, 32.5rem); height: 3.8rem; margin: 0.6rem auto 0;
  font: inherit; font-size: 1.2rem; color: #fff; background: var(--blue); border: 0; border-radius: var(--radius); cursor: pointer;
}
.signup button:hover { background: var(--blue-dark); }
.signup button[disabled] { opacity: 0.6; cursor: wait; }
.form-msg { margin: 1rem 0 0; text-align: center; font-weight: 700; min-height: 1.5em; }
.form-msg.err { color: #c43c33; }
/* Sign-up success: green card with a check mark (matches the Let's Go form) */
.form-msg.ok {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  width: min(100%, 32.5rem); margin: 1.2rem auto 0; padding: 1.8rem 1.5rem; box-sizing: border-box;
  color: #12804a; font-size: 1.35rem; line-height: 1.4;
  background: #e9f6ee; border: 2px solid #a6d9b8; border-radius: var(--radius);
}
.form-msg.ok .ok-tick {
  width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #12904f; flex: none;
  display: grid; place-content: center;
}
.form-msg.ok .ok-tick::after {
  content: ""; width: 0.8rem; height: 1.5rem; border: solid #fff; border-width: 0 0.3rem 0.3rem 0;
  transform: translateY(-0.15rem) rotate(45deg);
}
.signup.is-done .fields { display: none; }

/* show night password screen */
.gate { display: grid; gap: 1rem; max-width: 26rem; margin: 1.5rem auto 0; }
.gate input {
  width: 100%; font: inherit; font-size: 1.15rem; text-align: center; color: var(--text); background: #fff;
  border: 2px solid var(--field-line); border-radius: var(--radius); padding: 0 1.1rem; height: 3.5rem;
  -webkit-appearance: none; appearance: none;
}
.gate input:focus { outline: none; border-color: var(--blue); }
.gate button {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; height: 3.5rem;
  font: inherit; font-size: 1.2rem; color: #fff; background: var(--blue); border: 0; border-radius: var(--radius); cursor: pointer;
}
.gate button:hover { background: var(--blue-dark); }
.gate .form-msg { margin: 0; }
.gate .form-msg[hidden] { display: none; }

/* show night: Christine's note */
.letter .photo { margin-bottom: 1.75rem; }
.letter .prose { max-width: 38rem; margin: 1.25rem auto 0; font-size: 1.12rem; line-height: 1.7; }
.letter .signature { width: min(15rem, 60%); height: auto; margin: 0.25rem auto 0 calc(50% - 19rem); }
@media (max-width: 42rem) { .letter .signature { margin-left: 0; } }

/* show night photos: rows of equal height, each photo as wide as its shape needs */
.photos { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1.25rem 1rem; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; --row: 15rem; }
/* every row, including the last, stretches to the full width; the height cap only
   matters when a single tall photo ends up alone on the last row */
.photo-grid a { flex: var(--r) 1 calc(var(--r) * var(--row)); display: block; max-height: 44rem; border-radius: 0.4rem; overflow: hidden; background: var(--band); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.photo-grid a:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .photo-grid { --row: 8.5rem; gap: 0.35rem; } }

.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 0.3rem; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 0.6rem 1rem; }
.lb-close { top: 0.3rem; right: 0.5rem; }
.lb-prev { left: 0.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.2rem; top: 50%; transform: translateY(-50%); }

/* FAQ — same look and behaviour as the Carrd embed */
.faq { margin: 1.9rem auto 0; max-width: 43.3rem; text-align: left; font-size: 1.22rem; }
.faq-item { border-bottom: 1px solid rgba(46, 46, 46, 0.13); }
.faq-item:first-child { border-top: 1px solid rgba(46, 46, 46, 0.13); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1em 0.6em; margin: 0; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-weight: 700; line-height: 1.35; color: var(--text); text-align: left; cursor: pointer;
  transition: background-color 160ms, color 160ms;
}
.faq-q:hover { background: rgba(22, 103, 224, 0.05); color: var(--blue); }
.faq-q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq-item.is-open .faq-q { color: var(--blue); }
.faq-icon { position: relative; flex: none; width: 0.8em; height: 0.8em; transition: transform 340ms; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--blue); border-radius: 2px; }
.faq-icon::before { width: 100%; height: 2.5px; }
.faq-icon::after { width: 2.5px; height: 100%; transition: opacity 340ms; }
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 340ms cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner > div { padding: 0 0.6em 1.4em; font-size: 0.92em; color: var(--muted); line-height: 1.6; }
.faq-a-inner p { margin: 0 0 0.8em; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner strong { color: var(--text); }

.foot { text-align: center; padding: 3rem 1.25rem 2.5rem; }
.foot-logo { width: 7.85rem; height: auto; margin: 0 auto 1.2rem; }
.foot p { font-size: 0.68rem; color: var(--faint); margin: 0; }

@media (max-width: 600px) {
  .col { padding-top: 3rem; }
  .gap { height: 2.25rem; }
  .lead { font-size: 1.1rem; }
}

/* ── home page ───────────────────────────────────────────────────────────── */

body.home { background: #000; color: #fff; min-height: 100vh; min-height: 100svh; }
.bg-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bg-shade { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1; }
.hero {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.25rem;
}
.hero-logo { width: 9rem; height: auto; margin-bottom: 1rem; }
.hero-kicker { margin: 0.6rem 0; font-size: clamp(1rem, 3vw, 1.42rem); font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.hero-title { margin: 0.4rem 0 1.4rem; font-size: clamp(2.3rem, 8vw, 3.72rem); line-height: 1.12; font-weight: 700; letter-spacing: 0.067em; text-transform: uppercase; }
.hero-note { margin: 0 0 1.5rem; color: rgba(255, 255, 255, 0.8); }
.hero-btns { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: inherit; font-weight: 600; letter-spacing: 0.035em; text-transform: uppercase; text-decoration: none;
  color: #fff; border-radius: 4.25rem; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.pill:hover { transform: translateY(-1px); }
.pill-red { background: var(--red); border: 0; height: 3.55rem; padding: 0 1.8rem; font-size: clamp(1.1rem, 3.5vw, 1.42rem); }
.pill-red:hover { background: #ff5c5c; }
.pill-ghost { background: transparent; border: 2px solid #fff; height: 3.55rem; padding: 0 1.8rem; font-size: clamp(0.95rem, 3vw, 1.24rem); }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.pill-small { background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.35); height: 2.5rem; padding: 0 1.25rem; font-size: 0.9rem; }
.pill-small svg { width: 1.1em; height: 1.1em; }
.hero-rule { width: min(20rem, 70%); border: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); margin: 2.4rem 0 1.6rem; }

.modal { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(0, 0, 0, 0.7); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; }
.modal-close { position: absolute; top: 0.4rem; right: 0.6rem; z-index: 1; border: 0; background: none; font-size: 1.9rem; line-height: 1; cursor: pointer; color: inherit; padding: 0.25rem 0.5rem; }
.video-box { max-width: 62rem; color: #fff; }
.video-box .modal-close { top: -2.6rem; right: 0; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-box { max-width: 33rem; background: #fff; color: #000; padding: 2.4rem 1.5rem 2rem; text-align: center; border-radius: 0.25rem; }
.contact-email { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; color: #000; text-decoration: none; font-weight: 700; font-size: clamp(1.05rem, 4.2vw, 1.6rem); letter-spacing: 0.12em; text-transform: uppercase; word-break: break-all; }
.contact-email svg { width: 1.3rem; height: 1.3rem; }
.contact-email:hover span { color: #5f0b87; }
.contact-label { margin: 2rem 0 0.4rem; font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.3rem); letter-spacing: 0.12em; text-transform: uppercase; }
.contact-link { color: #5f0b87; font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.3rem); letter-spacing: 0.12em; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ── listen to your bio ──────────────────────────────────────────────────── */
.page-listen .col { padding-top: 2.5rem; }
.page-listen .lead { font-weight: 400; }
.listen-bio { max-width: 36rem; margin: 1rem auto 0; font-size: 1.15rem; }
