/* The Antique Theatre & Bar
   Dark and smoky, after the Canva original: smog video behind everything,
   Anton poster type, beige merch cards with the skull overlaid. */

:root {
  --ink: #0b0a09;
  --cream: #ece4d4;
  --cream-dim: #b9b0a0;
  --rose: #b8434e;
  --green: #1d6b4f;
  --green-bright: #259267;
  --card: #d9d2c6;
  --card-ink: #181512;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.12em; }

a { color: var(--cream); }

/* ---------- smog video + grain ---------- */
.smog {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 0; pointer-events: none;
}
/* Phones skip the video (see app.js) and get the still frame instead. */
@media (max-width: 799px) {
  .smog { display: none; }
  body { background: var(--ink) url('/assets/smoke-poster.jpg') center / cover fixed no-repeat; }
}
.smog-tint {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(11,10,9,0.45);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .topbar { position: relative; z-index: 2; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(rgba(11,10,9,0.92), rgba(11,10,9,0.75) 80%, transparent);
  backdrop-filter: blur(6px);
}
.brand img { height: 44px; display: block; }
.topbar nav { display: flex; gap: 1.6rem; }
.topbar nav a {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--cream-dim);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.topbar nav a:hover { color: var(--cream); border-color: var(--rose); }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.5rem 3rem;
}
.hero .soon {
  font-family: 'Anton', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.95; letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 0 60px rgba(0,0,0,0.8);
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(30px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero .soon.hidden { display: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-logo {
  width: min(340px, 65vw); margin: 1.5rem 0 1.2rem;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.9));
  opacity: 0; animation: rise 1s 0.3s forwards;
}
.hero-address { color: var(--cream); font-size: 0.9rem; line-height: 1.9; opacity: 0; animation: rise 1s 0.5s forwards; }
.hero-dropin { margin-top: 1rem; color: var(--cream-dim); font-size: 0.8rem; opacity: 0; animation: rise 1s 0.65s forwards; }
.hero-tag {
  margin-top: 1.6rem; font-style: italic; font-size: 1.3rem; color: var(--cream);
  opacity: 0; animation: rise 1s 0.8s forwards;
}

/* ---------- sections ---------- */
.section { padding: 7rem clamp(1.2rem, 6vw, 6rem) 5rem; max-width: 1300px; margin: 0 auto; }
.giant {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95; color: var(--cream); font-weight: 400;
}
.section-sub { margin: 1.4rem 0 3rem; font-style: italic; color: var(--cream-dim); font-size: 1.1rem; }

/* ---------- shows ---------- */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 2.4rem; margin-top: 2rem; }

.show-card {
  background: rgba(20,17,15,0.85);
  border: 1px solid rgba(236,228,212,0.12);
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s;
}
.show-card:hover { transform: translateY(-6px); border-color: rgba(236,228,212,0.35); }

.show-poster { aspect-ratio: 3/4; overflow: hidden; position: relative; background: #1c1916; }
.show-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.show-card:hover .show-poster img { transform: scale(1.04); }
.show-poster .noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif; font-size: 2.2rem; text-align: center; padding: 1rem;
  color: var(--cream-dim); background: radial-gradient(circle at 30% 20%, #2a241f, #14110f);
}
.show-genre {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--rose); color: var(--cream); padding: 0.25rem 0.6rem;
}
.show-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.show-body h3 { font-family: 'Anton', sans-serif; font-size: 1.6rem; font-weight: 400; letter-spacing: 0.02em; }
.show-run { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--cream-dim); letter-spacing: 0.08em; }
.show-teaser { font-size: 0.95rem; color: var(--cream-dim); }
.show-perfs { list-style: none; margin-top: 0.3rem; display: flex; flex-direction: column; gap: 0.45rem; }
.show-perfs li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem;
  border-top: 1px dashed rgba(236,228,212,0.18); padding-top: 0.45rem;
}
.seatsleft { color: var(--cream-dim); font-size: 0.68rem; }
.seatsleft.low { color: var(--rose); }
.morewrap { margin-top: auto; }

.btn-book {
  display: inline-block; width: 100%;
  background: var(--green); color: var(--cream);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; text-decoration: none;
  border: none; border-radius: 999px; padding: 0.85rem 1.4rem; margin-top: 1rem;
  cursor: pointer; transition: background .25s;
}
.btn-book:hover { background: var(--green-bright); }

.shows-empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; }
.shows-empty h3 { font-family: 'Anton', sans-serif; font-size: 3rem; font-weight: 400; letter-spacing: 0.02em; }

/* ---------- merch ---------- */
.merch { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; margin-top: 3rem; }
.merch-card { background: var(--card); color: var(--card-ink); transition: transform .3s; }
.merch-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.merch-img { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.merch-img > img { width: 88%; height: 88%; object-fit: contain; }
.merch-logo {
  position: absolute; left: 50%; top: 50%;
  width: 26%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.merch-logo.on-tee { width: 22%; top: 46%; }
.merch-logo.on-hoodie { width: 30%; top: 42%; }
.merch-logo.on-beanie { width: 24%; top: 64%; }
.merch-logo.on-mug { width: 34%; top: 50%; left: 44%; }
.merch-info { padding: 0 1.2rem 1.3rem; }
.merch-info h3 { font-family: 'Spectral', serif; font-weight: 400; font-size: 1.15rem; }
.merch-price { font-family: 'IBM Plex Mono', monospace; font-size: 1rem; margin-top: 0.2rem; }

/* ---------- booking modal ---------- */
.booking-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(11,10,9,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  overflow-y: auto;
}
.booking-modal {
  width: min(460px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: #14110f; border: 1px solid rgba(236,228,212,0.3);
  padding: 2.2rem; position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}
.booking-modal h3 { font-family: 'Anton', sans-serif; font-size: 1.8rem; font-weight: 400; margin-bottom: 1.4rem; padding-right: 2rem; }
.booking-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none; color: var(--cream-dim);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.booking-close:hover { color: var(--rose); }
.booking-form { display: flex; flex-direction: column; gap: 0.45rem; }
.booking-form label { font-size: 0.65rem; color: var(--cream-dim); margin-top: 0.6rem; }
.booking-form input, .booking-form select {
  background: var(--cream); color: var(--ink); border: none;
  padding: 0.65rem 0.8rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem;
}
.booking-form input:focus, .booking-form select:focus { outline: 3px solid var(--rose); }
.booking-prices { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem;
  border-top: 1px dashed rgba(236,228,212,0.18); padding-top: 0.5rem;
}
.price-row .qty { width: 4.2rem; }
.booking-form .btn-book { margin-top: 1.4rem; }
.booking-note { font-size: 0.62rem; color: var(--cream-dim); text-align: center; }
.booking-msg { font-size: 0.75rem; text-align: center; min-height: 1.2em; }
.booking-msg.err { color: var(--rose); }
.booking-done { text-align: center; font-size: 1.05rem; line-height: 2; padding: 1.5rem 0; }

/* ---------- about ---------- */
.about-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin: 3.5rem 0 6rem; }
.about-block { display: flex; flex-direction: column; }
.about-photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border: 10px solid var(--card);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
}
.about-photo.theatre { background-image: url('/assets/venue_theatre.jpg'); }
.about-photo.bar { background-image: url('/assets/venue_bar.jpg'); }
.about-photo.space { background-image: url('/assets/venue_space.jpg'); }
.about-photo span {
  font-family: 'Anton', sans-serif; font-size: 2.4rem; color: var(--cream);
  padding-bottom: 1.2rem; text-shadow: 0 4px 30px rgba(0,0,0,0.9);
}
.about-block figcaption { margin-top: 1.4rem; text-align: center; color: var(--cream-dim); font-size: 0.98rem; padding: 0 0.6rem; }

.giant.minds { margin-top: 2rem; }
.minds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; margin-top: 3.5rem; }
.mind img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border: 10px solid var(--card);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  filter: grayscale(20%);
  transition: filter .3s;
}
.mind:hover img { filter: grayscale(0%); }
.mind figcaption { margin-top: 1rem; text-align: center; font-size: 1.1rem; }
.mind figcaption a { font-size: 0.7rem; color: var(--cream-dim); text-decoration-color: var(--rose); }

/* ---------- pre-opening gate ---------- */
body.gated .section, body.gated .footer, body.gated .topbar nav { display: none; }
.gate-card { margin-top: 3rem; opacity: 0; animation: rise 1s 1s forwards; }
.gate-sub { font-style: italic; font-size: 1.05rem; margin-top: 0.4rem; }
.gate-blurb { margin-top: 1.1rem; color: var(--cream-dim); font-size: 0.95rem; line-height: 1.8; }
#preview-link {
  display: inline-block; margin-top: 1.2rem;
  font-style: italic; font-size: 1.02rem; color: var(--cream);
  text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 4px;
}
#preview-link:hover { color: var(--rose); }
#preview-link[hidden] { display: none; }

/* ---------- community ---------- */
.community { display: flex; justify-content: center; }
.community-card {
  width: min(620px, 100%);
  border: 1px solid rgba(236,228,212,0.25);
  background: rgba(20,17,15,0.85);
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.community-card h2 { font-family: 'Anton', sans-serif; font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: 0.04em; font-weight: 400; }
.community-card .mono { margin: 0.9rem 0 1.4rem; font-size: 0.75rem; color: var(--cream-dim); }
#subscribe-form { display: flex; flex-direction: column; gap: 0.9rem; }
#subscribe-form input {
  background: var(--cream); color: var(--ink);
  border: none; padding: 0.9rem 1.1rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.95rem;
}
#subscribe-form input:focus { outline: 3px solid var(--rose); }
#subscribe-form button {
  background: var(--cream); color: var(--ink);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: 999px; padding: 0.85rem; cursor: pointer; transition: background .25s, color .25s;
}
#subscribe-form button:hover { background: var(--rose); color: var(--cream); }
.subscribe-msg { margin-top: 1rem; font-size: 0.78rem; min-height: 1.2em; }
.subscribe-msg.ok { color: var(--green-bright); }
.subscribe-msg.err { color: var(--rose); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(236,228,212,0.18); padding: 4rem clamp(1.2rem, 6vw, 6rem) 3rem; background: rgba(11,10,9,0.7); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; max-width: 1300px; margin: 0 auto; align-items: start; }
.footer h3 { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--cream-dim); margin-bottom: 1rem; }
.hours td { padding: 0.15rem 0; font-size: 0.85rem; font-family: 'IBM Plex Mono', monospace; }
.hours td:first-child { padding-right: 2rem; color: var(--cream-dim); }
.small { margin-top: 1.2rem; font-size: 0.72rem; color: var(--cream-dim); }
.footer-mid { text-align: center; }
.footer-logo { width: 170px; opacity: 0.95; }
.footer-era { margin-top: 1rem; font-style: italic; letter-spacing: 0.06em; }
.footer-right { text-align: right; font-size: 0.8rem; line-height: 2; }
.footer-right p { margin-bottom: 0.9rem; }
.footer-right a { color: var(--cream); text-decoration-color: var(--rose); }
.footer-right .ig { display: inline-block; vertical-align: middle; margin-left: 0.5rem; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-right { text-align: center; }
  .hours { margin: 0 auto; }
  .topbar nav { gap: 0.9rem; }
  .topbar nav a { font-size: 0.68rem; }
}
