/* ============================================================
   THE FOUNDRY PLAYHOUSE : design system
   Warm historic-venue brand: cream + brick red, Cormorant Garamond / Archivo.
   Ported from the Claude Design prototype into a real stylesheet.
   ============================================================ */

:root {
  --bg: #faf7f1;
  --paper: #ffffff;
  --ink: #211d18;
  --dark: #211d18;      /* dark band bg */
  --dark-2: #2a251e;

  --brick: #8a2f22;
  --brick-hover: #73271c;
  --tan: #d8a27a;       /* accent on dark surfaces */

  --hatch-a: #efe9df;
  --hatch-b: #e7e0d3;
  --hatch-dark-a: #2a251e;
  --hatch-dark-b: #322c23;

  --line: rgba(33, 29, 24, .14);
  --line-16: rgba(33, 29, 24, .16);
  --line-30: rgba(33, 29, 24, .30);
  --line-soft: rgba(33, 29, 24, .10);

  --ink-75: rgba(33, 29, 24, .75);
  --ink-70: rgba(33, 29, 24, .70);
  --ink-65: rgba(33, 29, 24, .65);
  --ink-60: rgba(33, 29, 24, .60);
  --ink-55: rgba(33, 29, 24, .55);
  --ink-50: rgba(33, 29, 24, .50);
  --ink-45: rgba(33, 29, 24, .45);

  --cream-70: rgba(250, 247, 241, .70);
  --cream-45: rgba(250, 247, 241, .45);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  --pad-x: 56px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- type helpers ---------- */
.serif { font-family: var(--serif); }
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--brick);
  font-weight: 600;
  text-transform: uppercase;
}

/* ---------- placeholder photo blocks ---------- */
.hatch {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--hatch-a) 0 14px, var(--hatch-b) 14px 28px);
}
.hatch--dark {
  background: repeating-linear-gradient(45deg, var(--hatch-dark-a) 0 14px, var(--hatch-dark-b) 14px 28px);
}
/* Real art drops into any .hatch container as a plain <img>, sibling to the
   (now-removed) placeholder label. This fills the container and crops to it. */
.hatch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hatch__label {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-45);
}
.hatch__label--tr { top: 14px; right: 16px; }
.hatch__label--tl { top: 12px; left: 14px; }
.hatch--dark .hatch__label { color: var(--cream-45); }

/* ============================================================
   MASTHEAD / NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
.nav__brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.nav__brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; }
.nav__brand-sub { font-size: 10.5px; letter-spacing: .28em; color: var(--ink-50); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav__link { color: var(--ink-55); text-decoration: none; transition: color .2s ease; }
.nav__link:hover { color: var(--ink); }
.nav__link--active { color: var(--ink); }
.nav__cta {
  background: var(--brick);
  color: var(--bg);
  padding: 11px 24px;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}
.nav__cta:hover { background: var(--brick-hover); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span { width: 22px; height: 1.5px; background: var(--ink); display: block; }

/* full-screen mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(250, 247, 241, .99);
  flex-direction: column;
  display: none;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.mobile-menu__close {
  font-size: 26px; line-height: 1; padding: 6px 10px; cursor: pointer;
  color: var(--ink); background: none; border: 0;
}
.mobile-menu__list { display: flex; flex-direction: column; padding: 28px 20px; gap: 4px; }
.mobile-menu__link {
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__cta {
  background: var(--brick); color: var(--bg); text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 17px 0; text-align: center;
  border-radius: 2px; margin-top: 24px;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  text-decoration: none;
  border-radius: 2px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  /* Reset native <button> chrome so a show's ticket CTA looks identical
     whether it's a plain link (tickets.html) or a button that triggers the
     modal widget (data-onthestage-production-id). */
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
.btn--brick { background: var(--brick); color: var(--bg); padding: 14px 30px; font-size: 14px; transition: background .2s ease; }
.btn--brick:hover { background: var(--brick-hover); }
.btn--outline { border: 1px solid var(--line-30); padding: 13px 26px; font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s ease; }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 10px 22px; font-size: 13px; font-weight: 500; }
.btn--tan { border: 1px solid var(--tan); color: var(--tan); padding: 12px 26px; font-size: 13px; font-weight: 600; border-radius: 2px; text-decoration: none; }

.link-brick {
  font-size: 13px; font-weight: 600; color: var(--brick);
  border-bottom: 1px solid var(--brick); padding-bottom: 3px; text-decoration: none;
}

/* ============================================================
   SPLIT EDITORIAL HERO (Home)
   ============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border-bottom: 1px solid var(--line);
}
.hero-split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 80px var(--pad-x);
}
.hero-split__title { font-family: var(--serif); font-size: 74px; font-weight: 500; line-height: 1.02; margin: 0; }
.hero-split__byline { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink-65); }
.hero-split__lede { font-size: 15.5px; line-height: 1.65; color: var(--ink-75); max-width: 460px; }
.hero-split__actions { display: flex; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.hero-split__media { position: relative; min-height: 560px; }

/* ============================================================
   SEASON ROWS (Home)
   ============================================================ */
.season { padding: 64px var(--pad-x); display: flex; flex-direction: column; }
.season__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.season__title { font-family: var(--serif); font-size: 34px; font-weight: 500; }
.season-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.season-row:last-child { border-bottom: 1px solid var(--line); }
.season-row__when { font-size: 12px; letter-spacing: .14em; color: var(--ink-50); }
.season-row__info { display: flex; flex-direction: column; gap: 3px; }
.season-row__name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.season-row__desc { font-size: 13.5px; color: var(--ink-60); }
.season-row__price { font-size: 13px; color: var(--ink-55); }

/* ============================================================
   DARK BAND (patrons / subscription)
   ============================================================ */
.band { display: grid; grid-template-columns: 1fr 1fr; background: var(--dark); color: var(--bg); }
.band__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 60px var(--pad-x); }
.band__eyebrow { font-size: 12px; letter-spacing: .28em; color: var(--tan); font-weight: 600; text-transform: uppercase; }
.band__title { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.25; margin: 0; }
.band__text { font-size: 15px; line-height: 1.65; color: var(--cream-70); max-width: 440px; }
.band__media { position: relative; min-height: 340px; }

.sub-band {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 60px var(--pad-x); background: var(--dark); color: var(--bg); text-align: center;
}
.sub-band__title { font-family: var(--serif); font-size: 32px; font-weight: 500; margin: 0; }
.sub-band__text { font-size: 14.5px; color: var(--cream-70); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-55);
  gap: 16px;
  flex-wrap: wrap;
}
.footer--plain { border-top: 0; }
.footer__logo { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.pagehead {
  padding: 56px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.pagehead__title { font-family: var(--serif); font-size: 52px; font-weight: 500; line-height: 1.05; margin: 0; }
.pagehead__sub { font-size: 15px; color: var(--ink-65); }

.pagehead--left {
  align-items: flex-start;
  text-align: left;
  max-width: 820px;
  padding: 64px var(--pad-x) 40px;
  gap: 14px;
}
.pagehead--left .pagehead__title { font-size: 58px; }
.pagehead--left .pagehead__sub { font-size: 15.5px; line-height: 1.65; color: var(--ink-70); max-width: 560px; }

/* ============================================================
   SEASON PAGE : production feature rows
   ============================================================ */
.prod-list { display: flex; flex-direction: column; padding: 0 var(--pad-x) 64px; }
.prod-row {
  display: grid;
  grid-template-columns: 420px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.prod-row:last-child { border-bottom: 1px solid var(--line); }
.prod-row__media { height: 260px; position: relative; }
.prod-row__info { display: flex; flex-direction: column; gap: 10px; }
.prod-row__when { font-size: 12px; letter-spacing: .2em; color: var(--ink-50); }
.prod-row__name { font-family: var(--serif); font-size: 32px; font-weight: 600; }
.prod-row__byline { font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--ink-60); }
.prod-row__desc { font-size: 14.5px; line-height: 1.65; color: var(--ink-70); max-width: 520px; }

/* ============================================================
   GROUPS PAGE : offer cards
   ============================================================ */
.offer-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 var(--pad-x) 56px; }
.offer-cards--4 { grid-template-columns: repeat(4, 1fr); }
.offer-card {
  border: 1px solid var(--line-16);
  background: var(--paper);
  border-radius: 2px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card__title { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.offer-card__text { font-size: 14px; line-height: 1.65; color: var(--ink-70); }

/* ============================================================
   SHARED : plain flowing body copy
   ============================================================ */
.copy-block { padding: 0 var(--pad-x) 48px; max-width: 720px; }
.copy-block p { font-size: 15px; line-height: 1.7; color: var(--ink-70); margin: 0 0 16px; }
.copy-block p:last-child { margin-bottom: 0; }

/* ============================================================
   TOUR PAGE : photo gallery
   ============================================================ */
.tour-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 var(--pad-x) 64px; }
.tour-gallery .hatch { height: 260px; }

.tour-list { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--pad-x) 64px; max-width: 640px; }
.tour-list__item {
  display: flex; gap: 14px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-70);
}
.tour-list__item:last-child { border-bottom: 1px solid var(--line); }
.tour-list__item strong { color: var(--ink); font-weight: 600; min-width: 130px; }

/* ============================================================
   DONATE PAGE : impact stats
   ============================================================ */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 0 var(--pad-x) 56px; max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: 48px; font-weight: 600; color: var(--brick); line-height: 1; }
.stat__label { font-size: 12.5px; letter-spacing: .06em; color: var(--ink-60); }

/* ============================================================
   OTS WIDGET MOUNT
   ============================================================ */
.widget-section { flex: 1; padding: 0 var(--pad-x) 56px; display: flex; justify-content: center; scroll-margin-top: 120px; }
.widget-shell { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 16px; }
.widget-shell__title { font-family: var(--serif); font-size: 28px; font-weight: 500; text-align: center; margin: 0; }

/* placeholder shown until the real OTS embed is dropped in */
#ots-widget {
  min-height: 760px;
  border: 1px dashed rgba(138, 47, 34, .45);
  background: var(--paper);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-50);
  text-align: center;
  padding: 24px;
}
#ots-widget .muted { font-size: 11px; color: var(--ink-45); }

/* ============================================================
   REASSURANCE STRIP (tickets)
   ============================================================ */
.reassure {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-60);
  flex-wrap: wrap;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --pad-x: 20px; }

  .nav { padding: 16px var(--pad-x); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__brand-name { font-size: 20px; }
  .nav__brand-sub { font-size: 9px; letter-spacing: .26em; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-split__media { min-height: 280px; order: -1; }
  .hero-split__copy { padding: 26px var(--pad-x) 34px; gap: 14px; }
  .hero-split__title { font-size: clamp(38px, 11vw, 56px); }
  .hero-split__actions { flex-direction: column; }
  .hero-split__actions .btn { text-align: center; }

  .season { padding: 36px var(--pad-x); }
  .season__title { font-size: 26px; }
  .season-row { grid-template-columns: 1fr auto; gap: 12px; }
  .season-row__when { order: -1; }
  .season-row__price { display: none; }
  .season-row__desc { display: none; }

  .band { grid-template-columns: 1fr; }
  .band__media { min-height: 200px; order: -1; }
  .band__body { padding: 34px var(--pad-x) 40px; }
  .band__title { font-size: 26px; }

  .prod-list { padding: 0 var(--pad-x) 48px; }
  .prod-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .prod-row__media { height: 200px; }
  .prod-row__name { font-size: 26px; }

  .offer-cards { grid-template-columns: 1fr; }

  .tour-gallery { grid-template-columns: 1fr; }
  .tour-gallery .hatch { height: 200px; }
  .tour-list__item { flex-direction: column; gap: 4px; }
  .tour-list__item strong { min-width: 0; }

  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stat__num { font-size: 38px; }

  .pagehead__title { font-size: 40px; }
  .pagehead--left { padding: 40px var(--pad-x) 28px; }
  .pagehead--left .pagehead__title { font-size: 40px; }

  .footer { flex-direction: column; text-align: center; gap: 8px; }
  .reassure { gap: 16px; }
}

@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
}
