/* Theater Lovers. Brand red #831314, charcoal from the logo, Gobold headings,
   IckyTicket Mono for ticket-stub details. */

@font-face {
  font-family: 'Gobold';
  src: url('/assets/fonts/Gobold-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Gobold';
  src: url('/assets/fonts/Gobold-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IckyTicket';
  src: url('/assets/fonts/IckyTicketMono.ttf') format('truetype');
  font-display: swap;
}

:root {
  --red: #831314;
  --red-dark: #5f0d0e;
  --ink: #3a3a3c;
  --ink-soft: #66666a;
  --paper: #f8f4ee;
  --line: #e4dbcf;
  --white: #fff;
  --display: 'Gobold', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --ticket: 'IckyTicket', 'Courier New', monospace;
  --body: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.visually-hidden, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; margin: 0 0 .4em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }
h2::after { content: ''; display: block; width: 64px; height: 5px; background: var(--red); margin-top: 14px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: 13px 24px; border: 2px solid transparent; border-radius: 2px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: var(--white); color: var(--red); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-outline-red { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { border-color: var(--red); }
.site-nav .btn { padding: 10px 18px; }
.nav-toggle { display: none; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; background: none; border: 2px solid var(--ink); color: var(--ink); padding: 8px 14px; border-radius: 2px; cursor: pointer; }

/* Hero: a red house curtain with a spotlight */
.hero { color: var(--white); background:
    radial-gradient(ellipse 60% 75% at 50% 0%, rgba(255, 214, 170, .22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .13) 0 2px, transparent 2px 46px, rgba(255, 255, 255, .035) 46px 50px, transparent 50px 92px),
    linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); }
.hero-inner { padding: clamp(64px, 11vw, 132px) 0 clamp(60px, 10vw, 120px); text-align: center; }
.eyebrow { font-family: var(--ticket); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; opacity: .9; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); margin: 0 auto .3em; max-width: 14ch; }
.hero .amp { color: #f3c9a6; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 44ch; margin: 0 auto 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-paper { background: var(--paper); }
.section-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 32px; }
.section-lead.center { margin-inline: auto; }
.loading, .empty { color: var(--ink-soft); font-style: italic; }

/* Ticket cards (Meetup events) */
.ticket-list { display: grid; gap: 18px; }
.ticket { display: grid; grid-template-columns: 132px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(58, 58, 60, .06); }
.ticket-stub { background: var(--red); color: var(--white); font-family: var(--ticket); text-align: center; padding: 20px 8px; display: flex; flex-direction: column; justify-content: center; border-right: 3px dashed var(--white); }
.ticket-stub .mon { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; }
.ticket-stub .day { font-size: 2.6rem; line-height: 1; margin: 4px 0; }
.ticket-stub .yr, .ticket-stub .dow { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ticket-body { padding: 20px 24px; }
.ticket-body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.ticket-when { font-family: var(--ticket); font-size: .92rem; letter-spacing: .04em; color: var(--red); margin: 0 0 8px; text-transform: uppercase; }
.ticket-body p { margin: 0 0 12px; }
.ticket-link { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.badge { display: inline-block; font-family: var(--ticket); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--white); padding: 3px 9px; border-radius: 2px; vertical-align: middle; margin-left: 8px; }
.fallback { text-align: center; padding: 28px; background: var(--white); border: 1px dashed var(--line); border-radius: 6px; }
.fallback p { margin: 0 0 16px; }

.experience-logo { width: min(460px, 86%); margin: 0 auto 10px; }

/* Listings */
.notice { background: var(--paper); border-left: 5px solid var(--red); padding: 14px 18px; margin: 0 0 26px; max-width: 78ch; }
.filters { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 14px; margin-bottom: 10px; align-items: end; }
.filters .btn { padding: 10px 16px; }
label { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--ink); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-family: var(--body); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--white); border: 1px solid #c9bfb1; border-radius: 3px; padding: 11px 12px; }
/* Date boxes: Chrome borrows the computer's own date format, and on some
   Windows settings that leaves a stray comma at the front. Hide the built-in
   punctuation and space the month, day, and year ourselves. */
input[type="date"]::-webkit-datetime-edit-text { display: none; }
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field { margin-right: .4em; }
.count { font-family: var(--ticket); font-size: .9rem; color: var(--ink-soft); margin: 14px 0 8px; }
.listings { border-top: 2px solid var(--ink); margin-bottom: 26px; }
.listing { display: grid; grid-template-columns: 190px 1fr auto; gap: 6px 22px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.listing-dates { font-family: var(--ticket); font-size: .9rem; color: var(--red); text-transform: uppercase; letter-spacing: .03em; }
.listing-show { font-weight: 600; font-size: 1.08rem; }
.listing-where { display: block; font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
.theater-link { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; }
.theater-link:hover { color: var(--red); text-decoration-style: solid; }
.listing-link { font-size: .92rem; white-space: nowrap; }
.now { display: inline-block; font-family: var(--ticket); font-size: .72rem; letter-spacing: .08em; background: var(--red); color: var(--white); padding: 2px 7px; border-radius: 2px; margin-left: 8px; text-transform: uppercase; vertical-align: middle; }

/* Report a correction */
.listing-actions { display: flex; gap: 16px; align-items: baseline; white-space: nowrap; font-size: .92rem; }
.fix-link { font: inherit; font-size: .88rem; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fix-link:hover { color: var(--red); }
.fix-dialog { width: min(520px, calc(100% - 32px)); border: 0; border-top: 6px solid var(--red); border-radius: 0 0 6px 6px; padding: clamp(20px, 4vw, 30px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink); }
.fix-dialog::backdrop { background: rgba(58, 58, 60, .6); }
.fix-dialog form { display: grid; gap: 14px; }
.fix-dialog h3 { font-size: 1.5rem; margin: 0; }
.fix-about { margin: 0; font-weight: 600; }
.fix-actions { display: flex; gap: 12px; }

/* Add a show */
.add-show { margin-top: 48px; padding: clamp(20px, 3.5vw, 34px); background: var(--paper); border-top: 5px solid var(--red); border-radius: 0 0 6px 6px; }
.add-show h3 { font-size: 1.6rem; }
.add-show-intro p { margin: 0; max-width: 60ch; }
#show-form { display: grid; gap: 16px; margin-top: 20px; max-width: 820px; }
#show-form .notice { background: var(--white); margin: 0; }
#show-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#show-form .new-theater .hint { grid-column: 1 / -1; }
.hint { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.show-rows legend { margin-bottom: 10px; }
.show-row { display: grid; grid-template-columns: 2fr 1fr 1fr 40px; gap: 12px; align-items: end; margin-bottom: 12px; }
.row-remove { height: 44px; border: 1px solid #c9bfb1; background: var(--white); color: var(--ink-soft); border-radius: 3px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.row-remove:hover { color: var(--red); border-color: var(--red); }
.show-row:only-child .row-remove { visibility: hidden; }
.btn-small { padding: 9px 16px; font-size: .85rem; }
#show-form > .btn { justify-self: start; }
.show-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.show-results li { background: var(--white); border-left: 5px solid #1c6b3a; padding: 10px 14px; }
.show-results li.held { border-color: #c98a00; }
.show-results li.duplicate { border-color: var(--ink-soft); }

/* About */
.about { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-mark img { border-radius: 6px; box-shadow: 0 12px 30px rgba(95, 13, 14, .25); }
.about p { font-size: 1.12rem; max-width: 62ch; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.quote { margin: 0; padding: 26px 28px; background: var(--paper); border-top: 5px solid var(--red); border-radius: 0 0 6px 6px; }
.quote blockquote { margin: 0 0 14px; }
.quote blockquote::before { content: '\201C'; font-family: Georgia, serif; font-size: 3.4rem; line-height: .6; color: var(--red); display: block; margin-bottom: 4px; }
.quote figcaption { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; color: var(--red); }

/* Forms */
.section-red { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); }
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.form-card { background: var(--white); border-radius: 6px; padding: clamp(22px, 3.5vw, 36px); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-card form { display: grid; gap: 14px; }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; padding: 0; margin-bottom: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.form-card .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1c6b3a; }
.form-status.err { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding: 44px 0 36px; text-align: center; }
.footer-inner img { width: 120px; margin: 0 auto 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 18px; }
.site-footer a { color: var(--white); font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; }
.site-footer a:hover { border-color: var(--white); }
.site-footer p { margin: 0; font-size: .88rem; opacity: .75; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .brand img { height: 42px; }
  .about, .forms, .quotes { grid-template-columns: 1fr; }
  .about-mark { max-width: 220px; margin-inline: auto; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child, .filters label:nth-child(2) { grid-column: 1 / -1; }
  .filters .btn { grid-column: 1 / -1; justify-self: start; }
  .listing { grid-template-columns: 1fr; gap: 2px; }
  .listing-actions { margin-top: 4px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .ticket { grid-template-columns: 92px 1fr; }
  .ticket-stub .day { font-size: 2rem; }
  .ticket-body { padding: 16px; }
  .ticket-body h3 { font-size: 1.2rem; }
  .form-card .row, #show-form .row { grid-template-columns: 1fr; }
  .show-row { grid-template-columns: 1fr 1fr; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .show-row label:first-child { grid-column: 1 / -1; }
  .show-row .row-remove { grid-column: 1 / -1; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
