/* The public site. Colours, type and form controls come from style.css; this file is layout
   and the two pictures: the fan of tickets and the matched bank statement. */
/* minmax(0, 1fr): a grid track otherwise grows to its widest word and pushes the page sideways. */
body.site main { max-width: 1080px; padding: 0 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }
.site h1 { font-size: clamp(30px, 7.6vw, 56px); line-height: 1.06; letter-spacing: -0.035em; margin: 0; text-wrap: balance; hyphens: auto; }
.site h2 { font-size: clamp(21px, 4.8vw, 30px); line-height: 1.15; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.site h3 { font: 700 19px/1.25 var(--body); letter-spacing: 0; margin: 0; }
.site p { margin: 0; }
.site section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
.site section > p, .site section > ul.ticks, .site section > dl { max-width: 62ch; color: var(--muted); font-size: 18px; }

.top { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand svg rect { fill: var(--accent); } .brand svg path { fill: var(--sun); }
.top nav { display: flex; justify-content: flex-start; gap: 4px 20px; flex-wrap: wrap; align-items: center; padding: 0; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a.signin { color: var(--on-accent); background: var(--accent); font-weight: 700; border-radius: 99px; padding: 8px 16px; }

.intro { gap: 36px; padding-top: 24px; align-items: center; }
.intro > div:first-child { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.intro .lead { font-size: clamp(18px, 4.4vw, 21px); color: var(--muted); max-width: 52ch; }
.intro .card { width: 100%; max-width: 470px; margin: 0; border-width: 1.5px; box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 14%, transparent); }
.intro .card h2 { font-size: 17px; letter-spacing: -0.02em; }
.pill { font: 700 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: #17123a; background: var(--sun); border-radius: 99px; padding: 7px 12px; }
@media (min-width: 900px) { .site .intro:not(.plain) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.intro.plain { padding-top: 40px; }

.invite { display: grid; gap: 12px; }
.invite .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.invite small a { color: inherit; }

/* ---- the fan of tickets ---- */
.fan { position: relative; width: 100%; max-width: 420px; height: 330px; justify-self: center; }
.tk { --r: 0deg; position: absolute; left: 0; width: 86%; height: 108px; display: grid; grid-template-columns: 84px 1fr auto; align-items: center;
  background: var(--accent); color: var(--on-accent); border-radius: 18px; transform: rotate(var(--r)); box-shadow: 0 16px 34px rgb(23 18 58 / 0.22);
  animation: deal 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.tk:nth-child(1) { --r: -6deg; top: 8px; left: 0; }
.tk:nth-child(2) { --r: 4deg; top: 108px; left: 12%; animation-delay: 0.09s; }
.tk:nth-child(3) { --r: -2.5deg; top: 208px; left: 4%; animation-delay: 0.18s; }
@keyframes deal { from { opacity: 0; transform: translateY(46px) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .tk { animation: none; } }
.tk-date { height: 100%; display: grid; align-content: center; justify-items: center; border-right: 2px dashed color-mix(in srgb, var(--on-accent) 55%, transparent); position: relative; }
/* notches at both ends of the tear line */
.tk-date::before, .tk-date::after { content: ""; position: absolute; right: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.tk-date::before { top: -9px; } .tk-date::after { bottom: -9px; }
.tk-date b { font: 800 34px/0.95 var(--display); letter-spacing: -0.04em; }
.tk-date i { font: 700 12px/1.4 var(--body); font-style: normal; letter-spacing: 0.1em; }
.tk-main { padding: 0 6px 0 16px; display: grid; gap: 3px; min-width: 0; }
.tk-main b { font: 700 16px/1.15 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tk-main i { font-style: normal; font-size: 14px; opacity: 0.88; }
.tk-price { align-self: start; margin: 12px 12px 0 0; font: 700 13px/1 var(--body); padding: 6px 9px; border-radius: 99px; background: color-mix(in srgb, var(--on-accent) 18%, transparent); white-space: nowrap; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-self: stretch; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid .card { margin: 0; padding: 22px; align-content: start; justify-items: start; gap: 10px; }
.grid .card p { color: var(--muted); }
/* a torn-off stub carrying the thing itself: a time, a code, a language list */
.tag { font: 700 13px/1 var(--mono); letter-spacing: 0.02em; color: var(--on-accent); background: var(--accent); padding: 8px 12px 8px 18px; border-radius: 4px 10px 10px 4px;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 96%, #000); mask: radial-gradient(circle 5px at 0 50%, #0000 96%, #000); }
.price { font: 700 clamp(20px, 5vw, 26px)/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink) !important; }

/* ---- the matched statement ---- */
.match { justify-self: stretch; max-width: 820px; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 6px 18px; }
.match-head, .match-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 14px 0; }
.match-head { font: 700 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.match-row { border-top: 1px solid var(--line); }
.match .line { font: 500 14px/1.5 var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.match .line > :last-child { margin-left: auto; color: var(--ink); font-weight: 700; }
.match mark { background: none; color: var(--muted); }
.match mark.code { color: #17123a; background: var(--sun); border-radius: 6px; padding: 1px 7px; font-weight: 700; }
.match .guest { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; }
.match .guest b { grid-column: 1; }
.match .guest small { grid-column: 1; }
.match .guest::after { content: "✓"; grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0b7f5f; font-weight: 800; }
@media (max-width: 640px) {
  .match-head { display: none; }
  .match-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .match-row:first-of-type { border-top: 0; }
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 62ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 2px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font: 700 17px/1 var(--display); color: var(--on-accent); background: var(--accent); }
.steps b { font-size: 18px; align-self: end; }
.steps span { color: var(--muted); grid-column: 2; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site section > ul.ticks { color: var(--ink); font-size: 17px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

.more { font-weight: 700; text-decoration: none; }
.band { justify-self: stretch; padding: 28px; border-radius: 24px; background: var(--card); border: 1.5px solid var(--line); }
/* the one loud block on each page */
.band.closing { justify-items: center; text-align: center; padding: 48px 22px; background: var(--ink); border-color: var(--ink); }
.band.closing h2 { color: var(--paper); }
.site .band.closing > p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.band.closing .button { width: auto; padding-inline: 28px; background: var(--sun); border-color: var(--sun); color: #17123a; }

.faq { gap: 0 !important; justify-items: stretch !important; max-width: 780px; }
.faq details { border-bottom: 1.5px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.faq details p { margin-top: 8px; color: var(--muted); max-width: 62ch; }

.items { display: grid; gap: 4px; margin: 0; }
.items dt { font-weight: 700; margin-top: 18px; color: var(--ink); }
.items dt:first-child { margin-top: 0; }
.items dd { margin: 0; }

.foot { max-width: 1080px; margin: 0 auto; padding: 28px 20px 44px; border-top: 1.5px solid var(--line); display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }

/* ---- what a guest sees: a small real event page in a phone ---- */
@media (min-width: 860px) { .site .guests-see { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: center; } }
.guests-see > div:first-child { display: grid; gap: 20px; }
.phone { width: 100%; max-width: 300px; justify-self: center; display: grid; gap: 12px; padding: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 34px; box-shadow: 0 20px 50px rgb(23 18 58 / 0.16); }
.phone .cover.poster { border-radius: 22px; padding: 14px 16px 26px; margin: 0; }
.phone .cover.poster .day { font-size: 76px; }
.phone .cover.poster .month { font-size: 16px; }
.phone .cover.poster::after { background: radial-gradient(circle at 12px 9px, var(--card) 8px, transparent 8.6px) 0 0 / 24px 18px repeat-x; }
.phone .ph-title { font: 700 18px/1.15 var(--display); letter-spacing: -0.02em; }
.phone .tt { border-color: var(--ink); }
.phone .stepper { gap: 12px; font-weight: 700; }
.phone .stepper span { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.phone .ph-btn { text-align: center; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 12px; }

.start { display: grid; gap: 10px; justify-items: start; }
.start .button { width: auto; padding-inline: 30px; min-height: 58px; display: grid; place-items: center; font-size: 18px; }
.intro .help summary { cursor: pointer; font-weight: 700; }
.intro .help[open] summary { margin-bottom: 4px; }

/* ---- alignment on wide screens: every block ends at the same right edge ---- */
/* the statement beside its explanation, not under it */
@media (min-width: 960px) {
  .site section.split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 48px; grid-template-rows: auto 1fr; align-items: start; }
  .site section.split > h2, .site section.split > p { grid-column: 1; }
  .site section.split > .match { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
}
/* the organiser's four steps as a row of stubs, each in a ticket colour */
@media (min-width: 900px) {
  .steps.wide { max-width: none; justify-self: stretch; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .steps.wide li { grid-template-columns: minmax(0, 1fr); row-gap: 10px; align-content: start; padding: 20px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; }
  .steps.wide li::before { grid-row: auto; }
  .steps.wide span { grid-column: 1; }
  .steps.wide li:nth-child(1)::before { background: #e0432a; }
  .steps.wide li:nth-child(2)::before { background: #2b63e6; }
  .steps.wide li:nth-child(3)::before { background: #ffc41f; color: #17123a; }
  .steps.wide li:nth-child(4)::before { background: #0b8563; }
}
/* a long list of small things reads better in columns */
.site section > ul.ticks.cols { max-width: none; justify-self: stretch; }
@media (min-width: 700px) { .ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; } }
@media (min-width: 1000px) { .ticks.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- the pictures an event comes with ---- */
.shots { justify-self: stretch; display: flex; gap: 22px; align-items: flex-end; justify-content: space-between; overflow-x: auto; padding: 14px 14px 44px; margin-bottom: -30px; scroll-snap-type: x proximity; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
/* on a wide screen the four fit in the row exactly */
@media (min-width: 1100px) { .shots { padding-inline: 6px; } }
.shots figure { margin: 0; flex: 0 0 auto; display: grid; gap: 12px; justify-items: center; scroll-snap-align: center; }
.shots img { display: block; border-radius: 16px; box-shadow: 0 18px 40px rgb(23 18 58 / 0.2); background: var(--card); }
.shots figure:nth-child(odd) img { transform: rotate(-1.5deg); }
.shots figure:nth-child(even) img { transform: rotate(1.5deg); }
.shots figcaption { font: 700 14px/1.2 var(--body); color: var(--muted); }
