/* ============================================================
   THE BULL RING THEATRE — design system
   Near-black + antique brass, theatrical magenta stage-glow
   Display: Bodoni Moda  /  Sans: Archivo
   ============================================================ */

:root {
  /* surfaces */
  --ink:        #0b0907;
  --ink-2:      #0f0c08;
  --panel:      #15110b;
  --panel-2:    #1c150d;
  --raised:     #241b10;

  /* brass / gold */
  --brass:        #e3c279;
  --brass-bright: #f1d99c;
  --brass-deep:   #c39f54;
  --brass-soft:   #a98f5d;

  /* text */
  --cream:  #efe7d6;
  --text:   #e7dcc4;
  --muted:  #a0937c;
  --muted-2:#6e6450;

  /* theatrical glow */
  --magenta: #ff2f7e;
  --violet:  #8a4bff;
  --rose:    #ff6aa6;

  /* lines */
  --line:        rgba(227,194,121,.14);
  --line-strong: rgba(227,194,121,.30);
  --line-faint:  rgba(227,194,121,.07);

  --shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  --shadow-sm: 0 14px 34px -18px rgba(0,0,0,.8);

  --maxw: 1200px;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;

  /* aliases for preview.css variable names so .tbr-* styles resolve without a .tbr parent */
  --t: var(--text);
  --m: var(--muted);
  --m2: var(--muted-2);
  --disp: var(--display);
  --sns: var(--sans);
  --ln: var(--line);
  --ln-s: var(--line-strong);
  --ln-f: var(--line-faint);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- atmospheric background layers ---- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.atmos .wash {
  position: absolute; inset: -20%;
  background:
    radial-gradient(50% 45% at 18% 8%, rgba(255,47,126,.16), transparent 60%),
    radial-gradient(46% 42% at 88% 14%, rgba(138,75,255,.13), transparent 60%),
    radial-gradient(60% 50% at 50% 108%, rgba(227,194,121,.08), transparent 62%);
  filter: saturate(1.1);
}
.atmos .grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atmos .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 40%, transparent 50%, rgba(0,0,0,.55) 100%);
}

#root { position: relative; z-index: 1; }

/* ---- typography ---- */
.display { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -.01em; }
h1,h2,h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; color: var(--cream); letter-spacing: -.01em; }

.overline {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); 
}
.eyebrow { color: var(--brass); }

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

.serif-it { font-family: var(--display); font-style: italic; font-weight: 500; }

/* selection */
::selection { background: rgba(255,47,126,.32); color: #fff; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }

.video-embed-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.video-embed-frame,
.video-embed-empty {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
  display: block;
  background: #000;
}
.video-embed-frame {
  color-scheme: dark;
}
.video-embed-empty {
  display: flex;
}

.hairline { height: 1px; background: var(--line); border: 0; }
.hairline-brass { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; }

/* ---- buttons ---- */
.btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--brass);
  color: var(--ink); background: var(--brass);
  cursor: pointer; transition: all .25s ease;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
}
.btn:hover { background: var(--brass-bright); border-color: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(227,194,121,.5); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--brass); }
.btn-ghost:hover { background: rgba(227,194,121,.08); color: var(--brass-bright); box-shadow: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 38px; font-size: 14px; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); cursor: pointer; transition: gap .25s ease, color .2s;
  background: none; border: none; padding: 0;
}
.link-arrow:hover { gap: 15px; color: var(--brass-bright); }
.link-arrow svg { transition: transform .25s ease; }

/* ---- cards ---- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  position: relative; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: var(--line-strong); }

/* corner ticks (clockwork/playbill detail) */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border-color: var(--brass-deep); pointer-events: none;
}
.ticked::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.ticked::after  { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid var(--line-strong); color: var(--brass);
}
.badge-live { border-color: rgba(255,47,126,.5); color: var(--rose); }
.badge-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ---- forms ---- */
.field { display: block; margin-bottom: 18px; }
.field label { display:block; font-size: 11px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color: var(--muted); margin-bottom: 9px; }
.input, .select, textarea.input {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line);
  color: var(--cream); font-family: var(--sans); font-size: 15px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(227,194,121,.12);
}
.input::placeholder { color: var(--muted-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- stepper (ticket qty) ---- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.stepper button {
  width: 42px; height: 42px; background: transparent; border: 0; color: var(--brass);
  font-size: 20px; cursor: pointer; transition: background .2s; font-family: var(--sans);
}
.stepper button:hover:not(:disabled) { background: rgba(227,194,121,.1); }
.stepper button:disabled { color: var(--muted-2); cursor: not-allowed; }
.stepper .qty { width: 46px; text-align: center; font-size: 17px; color: var(--cream); font-variant-numeric: tabular-nums; }

/* ---- nav ---- */
.tbr-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 30px; border-bottom: 1px solid var(--line);
  background: rgba(11,9,7,.7); position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tbr-nav .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.tbr-nav .brand img { height: 34px; width: auto; }
.tbr-nav .bt { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--cream); line-height: 1; }
.tbr-nav .bs { font-size: 8px; letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-top: 3px; }
.tbr-nav .links { display: flex; align-items: center; gap: 20px; }
.tbr-nav .links a {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; text-decoration: none;
}
.tbr-nav .links a:hover { color: var(--cream); }
.tbr-nav .links a.active { color: var(--brass); }
.nav-cart { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--magenta); color: #fff; border-radius: 9px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* burger — hidden on desktop, shown on mobile */
.tbr-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.tbr-burger span {
  display: block; height: 1.5px; border-radius: 2px; background: var(--cream);
  transition: transform .2s, opacity .2s;
}
.tbr-nav .tbr-burger { display: none; }

/* override preview.css conflicts when .tbr is on root */
.tbr .btn { cursor: pointer; }
.tbr .wrap { max-width: var(--maxw); }

/* mobile menu */
.tbr-mobile-menu {
  position: fixed; inset: 67px 0 0; z-index: 49; overflow-y: auto;
  background: rgba(11,9,7,.97); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tbr-mobile-link {
  display: block; padding: 14px 30px; font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.tbr-mobile-link:hover { color: var(--cream); }
.tbr-mobile-link.active { color: var(--brass); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 64px 0 36px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.footer a, .footer p { display:block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer-bottom { display:flex; justify-content: space-between; align-items:center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-faint); color: var(--muted-2); font-size: 12.5px; }

/* ---- show card ---- */
.show-card { overflow: hidden; cursor: pointer; }
.show-card .img { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.show-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); filter: saturate(1.05); }
.show-card:hover .img img { transform: scale(1.06); }
.show-card .img::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(11,9,7,.85)); }
.show-card .body { padding: 22px 24px 26px; }

/* image placeholder */
.ph {
  background:
    repeating-linear-gradient(45deg, rgba(227,194,121,.05) 0 10px, transparent 10px 20px),
    var(--panel);
  display:flex; align-items:center; justify-content:center;
  color: var(--muted-2); font-family: var(--sans); font-size: 11px; letter-spacing:.2em; text-transform:uppercase;
}

/* utility */
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.muted { color: var(--muted); }
.brass { color: var(--brass); }
.center { text-align:center; }
.flex { display:flex; }
.between { justify-content: space-between; }
.items-center { align-items:center; }
.tnum { font-variant-numeric: tabular-nums; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.lead { font-size: 19px; line-height: 1.65; color: var(--text); }
.page-head { padding: 70px 0 30px; }

/* divider dot row */
.dots { display:flex; gap: 8px; align-items:center; color: var(--brass-deep); }

/* ---- article body (server-rendered markdown) ---- */
.article-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body p  { margin-bottom: 1.4em; }
.article-body h2 { margin: 2em 0 .7em; font-size: clamp(22px,3vw,30px); }
.article-body h3 { margin: 1.6em 0 .5em; font-size: 19px; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { border-left: 2px solid var(--brass-deep); margin: 1.8em 0; padding: .4em 0 .4em 1.4em; color: var(--muted); font-style: italic; }
.article-body a { color: var(--brass); text-decoration: underline; text-decoration-color: rgba(227,194,121,.4); }
.article-body a:hover { color: var(--brass-bright); }
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body img { max-width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .tbr-nav .links { display: none; }
  .tbr-nav .tbr-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 22px; }
}
