/* VIISUALZ public site: black, monospace, lowercase. Colors come from the logo set. */
:root {
  --bg: #000;
  --text: #f2f2f2;
  --dim: #8a8a8a;
  --line: #222;
  --red: #dc143c;
  --red-hover: #f0244c;
  --mono: 'Courier Prime', 'Courier New', Courier, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2 { font-weight: 700; margin: 0; }
.red { color: var(--red); }
.dim { color: var(--dim); }
.label { margin-bottom: 8px; }
::selection { background: var(--red); color: #fff; }

/* ---------- front page ---------- */
.landing { justify-content: space-between; }
.home {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 16px 32px;
}
.home-logo { margin: 0 0 18px; }
.home-logo img { width: min(320px, 72vw); }
.clock { margin: 0 0 26px; letter-spacing: 0.02em; text-transform: lowercase; }
/* Replaces the flyer for the last 24 hours: a big digital-clock timer, then the address */
@font-face { font-family: 'DSEG7'; src: url('/static/fonts/DSEG7Classic-Bold.woff2') format('woff2'); font-weight: 700; font-display: block; }
.countdown {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 37vh; margin: 0 0 22px; padding: 0 12px;
  font-family: 'DSEG7', var(--mono); font-size: clamp(40px, 13vw, 150px); font-weight: 700; line-height: 1.05; letter-spacing: 0.02em;
  color: var(--red); text-shadow: 0 0 18px rgba(220, 20, 60, .45);
}
.countdown { flex-direction: column; }
.countdown.reveal { font-family: var(--mono); font-size: clamp(30px, 8vw, 84px); letter-spacing: 0.01em; color: var(--text); text-shadow: none; text-wrap: balance; }
.cd-addr { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 0.14em; text-decoration-color: #666; }
.cd-addr:hover, .cd-addr:focus-visible { text-decoration-color: var(--red); outline: 0; }
.cd-sign { display: block; margin-top: 22px; font: 400 clamp(12px, 2.4vw, 16px)/1.4 var(--mono); letter-spacing: 0; color: var(--dim); text-shadow: none; }
.countdown[hidden], .home-flyer[hidden] { display: none; }
/* phone: tighter spacing between the clock, the timer/address and the menu (about 30% less) */
@media (max-width: 640px) {
  .clock { margin-bottom: 22px; }
  .countdown { min-height: 32vh; margin-bottom: 20px; }
  .cd-sign { margin-top: 15px; }
}
/* after the event: big centered logo + email signup; flyer, timer and event links are gone */
.signup { display: none; }
.home.is-over .signup { display: block; }
.home.is-over .home-flyer, .home.is-over .countdown, .home.is-over .ev-item { display: none; }
.home.is-over .home-logo { margin-bottom: 26px; }
.home.is-over .home-logo img { width: min(640px, 88vw); }
/* email signup under the menu */
.signup { margin: 34px 0 0; width: min(320px, 84vw); text-align: center; }
.signup-label { display: block; margin-bottom: 10px; color: var(--dim); font-size: 12px; }
.signup-row { display: flex; border-bottom: 1px solid #444; }
.signup-row:focus-within { border-bottom-color: var(--red); }
.signup-row input[type=email] { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 16px/1.4 var(--mono); padding: 8px 0; text-align: left; }
.signup-row input::placeholder { color: #4d4d4d; }
.signup-row button { background: none; border: 0; color: var(--text); font: 700 14px/1 var(--mono); padding: 0 0 0 12px; cursor: pointer; }
.signup-row button:hover:not(:disabled) { color: var(--red); }
.signup-row[hidden], .signup-label[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 12px; color: var(--dim); }
.home-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 92vw; text-align: center; }
.home-menu div { line-height: 1.9; }
.home-menu a:hover { color: var(--red); }
.home-foot {
  display: flex; justify-content: center; gap: 20px;
  padding: 24px 16px 32px; color: var(--dim); font-size: 12px;
}

/* ---------- inner pages ---------- */
.sub {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.sub-back { font-size: 26px; line-height: 1; padding: 0 4px 2px; }
.sub-logo img { height: 30px; width: auto; }
.preview-bar { background: var(--red); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; }
.preview-bar a { text-decoration: underline; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 32px 16px 48px; flex: 1; }
.wrap.narrow { max-width: 640px; }
.empty-state { padding-top: 18vh; }
.page-title { font-size: 20px; margin-bottom: 24px; text-transform: lowercase; }
.page-title.big { font-size: clamp(26px, 6vw, 36px); line-height: 1.15; margin-bottom: 16px; }

/* ---------- flyer (any size: always fits inside the screen, centered on black) ---------- */
.hero { background: #000; border-bottom: 1px solid var(--line); }
.flyer { display: block; }
.hero .flyer img {
  display: block; margin: 0 auto;
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 56px); max-height: calc(100svh - 56px);
}
@media (min-width: 641px) { .hero { padding: 24px 0; } .hero .flyer img { max-height: calc(100vh - 104px); } }

/* ---------- event details ---------- */
.event-title { font-size: clamp(22px, 5vw, 30px); line-height: 1.2; margin: 8px 0 24px; }
.rows { margin: 0 0 28px; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--dim); }
.rows dd { margin: 0; overflow-wrap: anywhere; }
.rows a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #555; }
.desc { margin-bottom: 36px; color: #d6d6d6; }

/* ---------- checkout ---------- */
.buy-wrap { border-top: 1px solid var(--text); padding-top: 4px; }
.row-field {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  border-bottom: 1px solid var(--line); min-height: 52px;
}
.row-field > span { color: var(--dim); }
.row-field input {
  width: 100%; background: transparent; border: 0; outline: none;
  color: var(--text); font: 16px/1.4 var(--mono); padding: 14px 0;
}
.row-field input::placeholder { color: #4d4d4d; }
.row-field:focus-within { border-bottom-color: var(--red); }
.row-field.total strong { font-size: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button {
  width: 36px; height: 36px; background: transparent; color: var(--text);
  border: 1px solid #333; font: 18px/1 var(--mono); cursor: pointer;
}
.stepper button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.stepper button:disabled { color: #333; border-color: #1a1a1a; cursor: not-allowed; }
.stepper output { min-width: 36px; text-align: center; font-size: 16px; }
.form-error { color: var(--red); margin: 14px 0 0; }
.form-error:empty { display: none; }
.buy .btn, .btn {
  display: block; width: 100%; margin-top: 20px; min-height: 52px;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  font: 700 15px/1 var(--mono); text-transform: lowercase; letter-spacing: .04em;
}
.btn:hover { background: var(--red-hover); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }
#paypal-buttons { margin-top: 20px; min-height: 52px; }
.note { color: var(--dim); font-size: 12px; margin: 12px 0 0; }
.buy.is-processing { opacity: .5; pointer-events: none; }
.soldout { color: var(--red); font-size: 22px; font-weight: 700; padding: 20px 0; margin: 0; }

/* ---------- faq ---------- */
.faq-list { margin: 0 0 32px; border-top: 1px solid var(--line); }
.faq-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-list dt { font-weight: 700; margin-bottom: 6px; }
.faq-list dd { margin: 0; color: #cfcfcf; }

/* ---------- order confirmation ---------- */
.order .rows { margin-top: 24px; }
.tickets-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 28px; }
.ticket { border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ticket-head { display: flex; justify-content: space-between; color: var(--dim); }
.qr { width: 100%; aspect-ratio: 1; background: #fff; }
.qr-void { display: flex; align-items: center; justify-content: center; background: #0d0d0d; color: var(--red); }
.ticket.is-void { opacity: .55; }
.ticket-ref { color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 20px 16px 28px; color: var(--dim); font-size: 12px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- front page flyer (any size, fits the screen) ---------- */
.home-flyer { display: flex; justify-content: center; width: 100%; max-width: 1280px; margin: 0 auto 28px; }
.home-flyer img {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 140px); max-height: calc(100svh - 140px);
}
.home-flyer:hover { opacity: .92; }
@media (max-width: 640px) {
  .home { padding-top: 40px; }
  .home-flyer { margin: -24px -16px 28px; width: calc(100% + 32px); max-width: none; }
  .home-flyer img { max-height: 88vh; max-height: 88svh; }
}

/* ---------- contact: just the email, centered on black ---------- */
.contact-only { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; font-size: 13px; }

/* ---------- gallery ---------- */
.wrap.wide { max-width: 1280px; }
.gallery { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.g-tile { margin: 0; }
.g-tile a { display: block; }
.g-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center bottom; background: #000; transition: opacity .15s; }
.g-tile a:hover img { opacity: .8; }
.g-tile figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.96);
  display: flex; align-items: center; justify-content: center; padding: 48px 56px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--text); cursor: pointer;
  font: 32px/1 var(--mono); padding: 12px;
}
.lightbox button:hover { color: var(--red); }
.lightbox button[hidden] { display: none; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; margin: 0; }
@media (max-width: 640px) { .lightbox { padding: 56px 8px 64px; } .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; } }

/* ---------- youtube ---------- */
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; color-scheme: dark; }
.yt-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 14px; font-size: 13px; }
.yt-meta a { white-space: nowrap; }
@media (max-width: 640px) { .youtube-page .wrap { padding-left: 0; padding-right: 0; } .youtube-page .page-title, .yt-meta { padding: 0 16px; } .yt-frame { border-left: 0; border-right: 0; } }
