/* Backstage Black: concert-poster type, red ink and rough-cut tickets.
   All assets stay local; legacy theme tokens remain compatibility aliases. */
@font-face {
  font-family: 'Bebas';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #111114;
  --surface: #242328;
  --surface-raised: #2d2b30;
  --text: #f4f1ed;
  --accent: #e64a37;
  --accent-hover: #f4604d;
  --muted: #b7b7bf;
  --rule: #414045;
  --paper: var(--background);
  --paper-light: #1c1b20;
  --ink: var(--text);
  --pine: var(--accent);
  --pine-deep: #111114;
  --brass: var(--accent);
  --brass-light: #ffada2;
  --berry: #ffada2;
  --serif: 'Bebas', 'Arial Narrow', Impact, sans-serif;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.65 var(--sans);
  background: repeating-linear-gradient(118deg, transparent 0 90px, #ffffff02 90px 91px), var(--background);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ''; display: block; height: 4px; background: var(--accent); }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: #ffada2; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #fff; outline-offset: 4px;
}
button:focus:not(:focus-visible) { outline: none; }
::selection { color: var(--background); background: #ffada2; }
[hidden] { display: none !important; }
.masthead {
  width: min(1324px, calc(100% - 96px)); min-height: 80px;
  margin: 0 auto; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 28px; border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  min-width: 0; gap: 13px; color: var(--text);
  font: 700 12px/1.4 var(--sans); text-transform: uppercase;
  letter-spacing: .15em; text-decoration: none; overflow-wrap: anywhere;
}

.account {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  gap: 4px 24px; min-width: 0; color: var(--muted);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.account form { margin: 0; min-width: 0; }
.account button, .account a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 3px; border: 0; border-radius: 0;
  background: transparent; color: var(--muted); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px;
}
.account button:hover, .account a:hover { color: var(--text); background: transparent; }
.shell { width: min(1324px, calc(100% - 96px)); margin: 0 auto; padding: 36px 0 26px; }
.intro { max-width: 100%; padding-bottom: 36px; }
.calendar-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.intro-copy { flex: 1 1 auto; min-width: 0; }
.eyebrow {
  margin: 0 0 14px; color: var(--accent); font: 700 11px/1.6 var(--sans);
  letter-spacing: .23em; text-transform: uppercase; overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 {
  margin: 0 0 20px; font-size: clamp(44px, 6.1vw, 84px);
  line-height: 1; letter-spacing: .01em; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.calendar-title { transform: skew(-5deg); transform-origin: left center; text-shadow: 2px 2px #000; }
.title-accent, h1 em { color: var(--accent); font-style: normal; }
.lede { margin: 0; max-width: 820px; color: var(--muted); font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.sideword {
  flex: 0 0 130px; border-right: 3px solid var(--accent); padding: 8px 17px 8px 0;
  color: var(--muted); font: 24px/1.12 var(--serif); letter-spacing: .04em;
  text-transform: uppercase; text-align: right;
}
.sideword strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 47px; font-weight: 400; }
.sideword p { margin: 0; }
.sideword small { display: block; font: inherit; }
.calendar-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; margin: 0 0 18px; padding: 11px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.calendar-meta p { margin: 0; }
.calendar-meta strong { color: var(--text); font-weight: 600; }
.calendar-meta span { min-width: 0; overflow-wrap: anywhere; }
.calendar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px 12px; }
.door {
  position: relative; isolation: isolate; display: flex; min-width: 0; min-height: 135px;
  flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden; padding: 28px 8px 19px; border: 1px solid #414147;
  border-bottom: 0; border-radius: 0; background: #16171a; color: #a8a8b0;
  clip-path: polygon(0 0,100% 0,100% 96%,94% 100%,88% 96%,82% 100%,76% 96%,70% 100%,64% 96%,58% 100%,52% 96%,46% 100%,40% 96%,34% 100%,28% 96%,22% 100%,16% 96%,10% 100%,4% 96%,0 100%);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.door-top {
  position: absolute; top: 10px; left: 11px; right: 29px; text-align: left;
  color: inherit; font-size: 7px; line-height: 1.4; letter-spacing: .12em;
  text-transform: uppercase;
}
.door-mark { position: absolute; right: 10px; top: 9px; color: inherit; font-size: 10px; line-height: 1; }
.door-number {
  display: block; margin-top: 3px; font: 400 clamp(46px, 4.4vw, 62px)/1 var(--serif);
  letter-spacing: .015em; font-variant-numeric: lining-nums tabular-nums; transform: skew(-5deg);
}
.door-label {
  display: block; max-width: 100%; margin-top: 11px; font-size: 9px; font-weight: 700;
  line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; overflow-wrap: anywhere;
}
.door[aria-disabled='true'] { cursor: help; }
.door[aria-disabled='true']:hover { background: #202025; border-color: #727178; }
.door.available { background: #242328; color: var(--text); border-color: #756b6d; }
.door.available::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
}
.door.available:hover { background: #322d32; border-color: #b5a6a8; transform: translateY(-2px); }
.door.available:active { transform: translateY(0); }
/* Declare the combined state last, including hover: today's ink stays dark. */
.door.today, .door.available.today, .door.today:hover, .door.available.today:hover {
  background: var(--accent); color: var(--background); border-color: var(--accent);
}
.door.today .door-number, .door.today .door-label, .door.today .door-mark, .door.today .door-top { color: var(--background); }
.door.opened::before {
  content: ''; position: absolute; bottom: 12px; width: 22px;
  border-top: 2px solid currentColor; opacity: .65;
}
.door:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
#status { min-height: 28px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.site-footer {
  width: min(1324px, calc(100% - 96px)); margin: 0 auto;
  padding: 18px 0 28px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere;
}
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.login-shell { width: min(calc(100% - 48px), 560px); margin: 48px auto 64px; }
.login-card { position: relative; padding: 36px; border: 1px solid #575157; border-top: 3px solid var(--accent); background: var(--paper-light); }
.login-card h1 { font-size: clamp(36px, 6vw, 50px); margin-bottom: 18px; }
.login-card h2 { margin: 0 0 16px; font-size: 32px; line-height: 1.2; }
.login-card p { color: var(--muted); overflow-wrap: anywhere; }
.login-card form { margin-top: 24px; }
label { display: block; margin: 20px 0 7px; color: var(--text); font-size: 13px; font-weight: 700; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']), select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid #767079;
  border-radius: 0; background: #111114; color: var(--text); padding: 11px 13px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.primary, .secondary {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  max-width: 100%; min-height: 46px; padding: 12px 22px; border: 1px solid var(--accent);
  border-radius: 0; font: 700 13px/1.5 var(--sans); text-align: center;
  text-decoration: none; overflow-wrap: anywhere; transition: background-color .15s ease, color .15s ease;
}
.primary { background: var(--accent); color: var(--background); }
.primary:hover { background: var(--accent-hover); color: var(--background); border-color: var(--accent-hover); }
.secondary { background: transparent; color: var(--text); border-color: #817980; }
.secondary:hover { background: var(--surface-raised); color: #fff; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .65; }
.login-card .primary { width: 100%; margin-top: 28px; }
.login-tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 14px; margin: 0 0 26px; border-bottom: 1px solid var(--rule); }
.login-tabs a, .login-tabs button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0;
  border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.login-tabs [aria-current], .login-tabs .active, .login-tabs [aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.error, .notice {
  margin: 20px 0; padding: 15px 18px; border: 1px solid #736b72;
  background: #242328; color: var(--text); font-size: 14px; overflow-wrap: anywhere;
}
.error, .login-card .error { background: #321d20; border-color: #d27569; color: #ffd3cb; }
.notice, .login-card .notice { color: var(--text); }
.fine-print { margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
dialog {
  width: min(860px, calc(100% - 40px)); max-width: calc(100% - 40px);
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid #81747b; border-radius: 0;
  background: var(--paper-light); color: var(--text); box-shadow: 0 24px 100px #0009;
  overflow-y: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: #050507e6; }
.modal-heading {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px; padding: 24px 28px 20px;
  border-bottom: 1px solid var(--rule); background: var(--paper-light);
}
.modal-heading > div { min-width: 0; }
.modal-heading .eyebrow { margin-bottom: 7px; font-size: 10px; }
.modal-heading h2 { margin: 0; font-size: 36px; line-height: 1.12; letter-spacing: .02em; overflow-wrap: anywhere; }
#close-dialog {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 10px;
  border: 1px solid #817980; background: var(--paper-light); color: var(--text);
  font-size: 12px; text-decoration: none;
}
#close-dialog:hover { background: var(--surface-raised); }
#video-body { min-width: 0; padding: 26px 28px 30px; overflow-wrap: anywhere; }
#video-body:empty { padding: 0; }
.consent-intro { margin: 0 0 14px; font: 30px/1.25 var(--serif); }
.encouragement { max-width: 680px; margin: 0 0 24px; color: var(--text); font-size: 18px; line-height: 1.75; text-wrap: pretty; }
.video-original { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; margin-top: 14px; padding: 8px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#video-body iframe { display: block; width: 100%; max-width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 0; background: #09090b; }
.loading-message { min-height: 120px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
@media (min-width: 1400px) {
  .shell { padding-top: 36px; }
  .calendar-intro { min-height: 226px; }
}
@media (max-width: 1050px) {
  .masthead, .shell, .site-footer { width: calc(100% - 64px); }
  .calendar { gap: 12px 10px; }
  .door { padding-inline: 5px; }
  .door-top { left: 7px; font-size: 6px; letter-spacing: .07em; }
  .door-label { font-size: 8px; letter-spacing: .03em; }
  .sideword { flex-basis: 108px; font-size: 21px; }
  .sideword strong { font-size: 41px; }
}
@media (max-width: 800px) {
  .masthead { flex-wrap: wrap; gap: 4px 20px; padding-block: 12px; }
  .masthead, .shell, .site-footer { width: calc(100% - 40px); }
  .brand { font-size: 11px; letter-spacing: .1em; }
  .account { margin-left: auto; font-size: 10px; gap: 4px 14px; }
  .shell { padding-top: 30px; }
  .intro { padding-bottom: 28px; }
  .calendar-intro { gap: 20px; }
  .calendar-title { font-size: clamp(40px, 7.7vw, 61px); }
  .eyebrow { font-size: 10px; letter-spacing: .17em; }
  .lede { font-size: 14px; }
  .sideword { flex-basis: 92px; font-size: 19px; padding-right: 12px; }
  .sideword strong { font-size: 34px; }
  .calendar-meta { font-size: 10px; letter-spacing: .05em; }
  .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .door { min-height: 140px; padding-inline: 7px; }
  .door-number { font-size: 58px; }
  .door-top { left: 9px; font-size: 7px; }
  .door-label { font-size: 9px; }
}
@media (max-width: 540px) {
  .calendar-intro { display: block; }
  .calendar-title { font-size: clamp(37px, 10vw, 53px); }
  .sideword { margin-top: 22px; padding: 0 12px 0 0; font-size: 19px; }
  .sideword strong { display: inline; margin-right: 8px; font-size: 27px; }
  .sideword small, .sideword p { display: inline; }
  .door-top { font-size: 6px; left: 7px; right: 24px; }
  .door-mark { right: 7px; }
  .door-number { font-size: 51px; }
  .door-label { font-size: 8px; letter-spacing: .02em; }
  .login-shell { width: calc(100% - 32px); margin: 30px auto 48px; }
  .login-card { padding: 28px 20px; }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .modal-heading { padding: 18px 16px 16px; gap: 8px; }
  .modal-heading h2 { font-size: 30px; }
  .modal-heading .eyebrow { letter-spacing: .1em; }
  #close-dialog { padding-inline: 8px; }
  #video-body { padding: 22px 16px 24px; }
  .encouragement { font-size: 16px; }
  .consent-intro { font-size: 26px; }
}
@media (max-width: 380px) {
  .masthead, .shell, .site-footer { width: calc(100% - 32px); }
  .brand { gap: 8px; font-size: 10px; }
  .calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .door { min-height: 145px; }
  .door-top { font-size: 7px; }
  .door-number { font-size: 56px; }
  .door-label { font-size: 9px; }
  .calendar-title { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .door { clip-path: none; border: 1px solid ButtonText; }
  .door.today { outline: 2px solid Highlight; outline-offset: -4px; }
  .door:focus-visible { outline: 3px solid Highlight; outline-offset: -7px; }
  .door.opened { border-style: dashed; }
  .primary, .secondary, .login-tabs [aria-current] { border-color: ButtonText; }
}
