/* Wild7s tickets page (tickets.html, mock-up 2026-11-12). Loads after tokens.css and site.css, which
   give it the sponsor bar, the nav, the buttons, the marks, the entrances and the footer.
   Direction "the page is the object" (.taste-skill/tickets/, seed 806233844): a printed card opens the
   page and the all-in pass follows as a tear-off stub, beside a picture of the room it gets you
   into. Order: the stage (card, pass, room), Every price, the questions. The comparison table and
   the spectator and front-row stubs were removed on 2026-11-18; their rules below are unused. */

/* the stage sits on the maroon-black ground, like objects on a table; so does the page above it */
.page-tickets { background: var(--fg); }

.stage {
  --ground: var(--fg); /* the notches are cut in the ground's colour */
  --top: calc(var(--s-6) + 54px + var(--s-4)); /* just under the pinned nav */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-6);
  padding: 0 var(--gutter); background: var(--ground); color: var(--bg);
}
.stage-text { padding-bottom: var(--s-16); }

/* ---------- the card: cream paper, the jacket's knit cuff along its top ---------- */
.opener { min-height: calc(100svh - var(--bar-h) - var(--s-6) - 54px); display: grid; align-content: center; padding-block: var(--s-8); }
.card {
  display: grid; justify-items: center; text-align: center;
  padding: 0 var(--s-8) var(--s-8); background: var(--bg); color: var(--fg);
}
/* the knit: a maroon band with two cream stripes, as on the cuffs and collar of the W7 jacket */
.knit {
  --band: 14px; --stripe: 6px;
  justify-self: stretch; margin: 0 calc(-1 * var(--s-8)) var(--s-8); padding-block: var(--band);
  background: var(--accent);
}
.knit::before { content: ""; display: block; height: calc(var(--stripe) * 2 + 16px); border-block: var(--stripe) solid var(--bg); }
.card .mark { height: 112px; width: auto; color: var(--accent); }
.card-title {
  margin-top: var(--s-6); max-width: 13em;
  font-size: var(--t-xl); font-weight: var(--w-strong); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance;
}
.card-lead { margin-top: var(--s-6); max-width: 36ch; font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.card .button { margin-top: var(--s-8); }
.card-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); margin-top: var(--s-8); }
.card-links a {
  font-weight: var(--w-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--m-ui) var(--ease-ui);
}
.card-links a:hover { color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- the tickets: filled stubs with a perforation and two notches ---------- */
.ticket-slot { min-height: 72svh; display: grid; align-content: center; padding-block: var(--s-16); }

.ticket {
  --stub: 168px; --notch: 12px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--paper); color: var(--ink);
}
.ticket.is-pass { --paper: var(--accent); --ink: var(--on-accent); }
.ticket.is-spectator { --paper: var(--bg); --ink: var(--fg); }
.ticket.is-front { --paper: var(--surface); --ink: var(--fg); }
/* the notches, top and bottom, where the stub tears off */
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: calc(var(--stub) - var(--notch));
  width: calc(var(--notch) * 2); aspect-ratio: 1; border-radius: 50%; background: var(--ground);
}
.ticket::before { top: calc(-1 * var(--notch)); }
.ticket::after { bottom: calc(-1 * var(--notch)); }

.ticket-main { padding: var(--s-8); }
.ticket-name { font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1.05; letter-spacing: -0.025em; }
.ticket-for { margin-top: var(--s-2); font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; }
.ticket-list { display: grid; gap: var(--s-1); margin-top: var(--s-6); }
.ticket-list li { padding-left: var(--s-6); text-indent: calc(-1 * var(--s-6)); }
.ticket-list li::before { content: "+"; display: inline-block; width: var(--s-6); text-indent: 0; font-weight: var(--w-strong); }
.ticket-note { margin-top: var(--s-4); max-width: 44ch; color: var(--ink); opacity: 0.8; }
.ticket .button { margin-top: var(--s-6); }
.ticket.is-pass .button { background: var(--on-accent); color: var(--accent); }
.ticket.is-pass .button:hover { background: var(--fg); color: var(--on-accent); }
.ticket.is-pass :focus-visible { outline-color: var(--on-accent); }

/* the stub: the price at the top, the admit line at the foot, a row of round dots down its edge */
.ticket-stub { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--s-8) var(--s-6); }
.ticket-stub::before {
  content: ""; position: absolute; left: -2px; top: var(--s-4); bottom: var(--s-4); width: 4px;
  background: currentColor; opacity: 0.45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 10'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/svg%3E") top center / 4px 10px repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 10'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/svg%3E") top center / 4px 10px repeat-y;
}
.stub-price { font-size: var(--t-xl); font-weight: var(--w-strong); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ticket-stub .label { color: inherit; opacity: 0.8; line-height: 1.5; }

/* the line under the pass: the countdown */
.slot-after { margin-top: var(--s-6); max-width: 52ch; color: var(--bg); }
.slot-after a { text-decoration: underline; text-underline-offset: 3px; transition: opacity var(--m-ui) var(--ease-ui); }
.slot-after a:hover { opacity: 0.75; }

/* ---------- the room: one tall picture, held beside the tickets, changing with them ---------- */
.room {
  position: sticky; top: var(--top); align-self: start;
  height: calc(100svh - var(--top) - var(--gutter)); margin: 0; overflow: hidden; background: var(--surface);
}
.room > * {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08);
  opacity: 0; transition: opacity 1.6s var(--ease-soft);
}
.room > .is-on { opacity: 1; }
.room img:first-child { object-position: 50% 40%; }
@media (prefers-reduced-motion: reduce) { .room > * { transition: none; } }

/* ---------- Every price: set like a menu, the heading at the left, two columns at the right ---------- */
.prices, .questions { background: var(--bg); color: var(--fg); }
.prices { align-items: start; }
.prices-title { grid-column: 1 / 4; font-size: var(--t-lg); font-weight: var(--w-strong); line-height: 1.05; letter-spacing: -0.025em; }
.price-menu { grid-column: 5 / 13; columns: 2; column-gap: var(--s-16); }
.menu-group { break-inside: avoid; padding-bottom: var(--s-16); }
.menu-head { font-size: var(--t-md); font-weight: var(--w-strong); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: var(--s-4); }
.menu-rows { display: grid; gap: var(--s-4); }
.menu-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-6); font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.02em; }
.menu-name { min-width: 0; }
.menu-desc { display: block; margin-top: var(--s-1); max-width: 36ch; font-size: var(--t-base); line-height: 1.4; letter-spacing: -0.01em; color: var(--muted); }
.menu-price { flex: none; font-variant-numeric: tabular-nums; }
a.menu-price {
  margin-right: calc(-1 * var(--s-2)); padding: var(--s-1) var(--s-2); border-radius: var(--r-pill);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: background-color var(--m-ui) var(--ease-ui), color var(--m-ui) var(--ease-ui);
}
a.menu-price:hover, a.menu-price:focus-visible { background: var(--fg); color: var(--bg); text-decoration-color: transparent; }
/* the ladder's states, as on the launch page: today's step in the accent, past steps struck through */
.menu-rows [aria-current] { color: var(--accent); font-weight: var(--w-strong); }
.menu-rows .is-past { color: var(--muted); text-decoration: line-through; }
.menu-note { margin-top: var(--s-4); font-weight: var(--w-strong); color: var(--accent); }

/* ---------- the comparison: one table at one size on the surface field ---------- */
.compare { padding: var(--s-32) var(--gutter); background: var(--surface); color: var(--fg); }
.compare-title { font-size: var(--t-xl); font-weight: var(--w-strong); line-height: 0.95; letter-spacing: -0.03em; }
.table-wrap { margin-top: var(--s-16); }
.compare table { width: 100%; border-collapse: collapse; font-size: var(--t-lg); line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: var(--s-4) 0; text-align: left; font-weight: var(--w-regular); vertical-align: baseline; }
.compare thead th, .compare tfoot th, .compare tfoot td { font-weight: var(--w-strong); }
.compare tbody tr, .compare tfoot tr { border-top: var(--border); }
.compare th[scope="row"] { width: 40%; padding-right: var(--s-6); }
.compare td, .compare thead th { width: 20%; }
.compare .no { color: var(--muted); }
.compare tfoot td { color: var(--accent); }

/* ---------- the questions: reading text in two columns, each question a run-in ---------- */
.questions { align-items: start; }
.notes { grid-column: 5 / 13; columns: 2; column-gap: 56px; }
.notes p { break-inside: avoid; margin-bottom: var(--s-6); line-height: 1.5; }
.q-run { font-weight: var(--w-strong); }
.notes a { text-decoration: underline; text-underline-offset: 3px; transition: color var(--m-ui) var(--ease-ui); }
.notes a:hover { color: var(--accent); }

/* ---------- tablet: the room on top, the card and the tickets beneath in one column ---------- */
@media (max-width: 1023px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-6); }
  .room { position: relative; top: auto; order: -1; height: 56svh; }
  .room > :not(:first-child) { display: none; }
  .opener { min-height: 0; margin-top: calc(-1 * var(--s-6)); padding: 0 var(--s-6); }
  .ticket-slot { min-height: 0; padding-block: var(--s-8); }
  .prices-title { grid-column: 1 / -1; }
  .price-menu, .notes { grid-column: 1 / -1; margin-top: var(--s-8); }
  .compare table { font-size: var(--t-md); line-height: 1.3; }
}

/* ---------- phone: the stub tears off along the bottom ---------- */
@media (max-width: 767px) {
  .compare { padding: var(--s-16) var(--gutter); }
  .compare-title { font-size: var(--t-lg); line-height: 1.05; letter-spacing: -0.025em; }
  .opener { padding: 0; }
  .card { padding: 0 var(--s-6) var(--s-6); }
  .knit { --band: 10px; --stripe: 4px; margin: 0 calc(-1 * var(--s-6)) var(--s-6); }
  .card .mark { height: 80px; }
  .card-title { font-size: var(--t-lg); }
  .card-links { flex-direction: column; gap: var(--s-2); }
  .room { height: 48svh; }

  .ticket { --stub: 96px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto var(--stub); }
  .ticket::before, .ticket::after { right: auto; top: auto; bottom: calc(var(--stub) - var(--notch)); }
  .ticket::before { left: calc(-1 * var(--notch)); }
  .ticket::after { right: calc(-1 * var(--notch)); }
  .ticket-main { padding: var(--s-6); }
  .ticket-stub { flex-direction: row; align-items: center; padding: var(--s-4) var(--s-6); }
  .ticket-stub::before {
    left: var(--s-4); right: var(--s-4); top: -2px; bottom: auto; width: auto; height: 4px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 4'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/svg%3E"); -webkit-mask-size: 10px 4px; -webkit-mask-repeat: repeat-x;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 4'%3E%3Ccircle cx='2' cy='2' r='2'/%3E%3C/svg%3E"); mask-size: 10px 4px; mask-repeat: repeat-x;
  }
  .stub-price { font-size: var(--t-md); }
  .ticket-stub .label { text-align: right; }

  .price-menu, .notes { columns: 1; }
  .menu-group { padding-bottom: var(--s-8); }
  .compare th[scope="row"] { width: 40%; padding-right: var(--s-3); }
  .compare td, .compare thead th { width: 20%; }
  .compare table { font-size: var(--t-base); line-height: 1.3; }
  .compare thead th { font-size: var(--t-sm); }
}
