/* Homecoming Anyway. One typeface (DM Sans), sentence case throughout.
   Palette: navy field (#0b2f68, the SSE Riga blue), butter felt, tomato accent, warm paper. */
:root {
  --felt: #0b2f68;        /* page background */
  --felt-deep: #153d7c;   /* cards sitting on the background */
  --felt-shadow: #071f47; /* flat shadow under the pennant, footer */
  --ink: #0b2f68;         /* text on butter, paper and tomato */
  --butter: #ffd23f;
  --paper: #fff6dc;
  --tomato: #ff5436;
  --chalk: #fffdf4;
  --hair: rgba(255, 253, 244, .16);
  --hair-ink: rgba(7, 26, 60, .12);
  --font: "DM Sans", Tahoma, Verdana, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* The page must never pan sideways on a phone. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--felt);
  color: var(--chalk);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.0625rem/1.2 var(--font); letter-spacing: -.005em; text-decoration: none;
  padding: .95rem 1.5rem; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--tomato); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(7, 26, 60, .28); background: #ff6a4f; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { background: #e3dcc4; color: rgba(7, 26, 60, .55); cursor: not-allowed; transform: none; box-shadow: none; }
.btn--small { font-size: .95rem; padding: .6rem 1rem; border-radius: 10px; background: var(--butter); }
.btn--small:hover { background: #ffdc66; }
.btn--quiet { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px rgba(255, 253, 244, .55); }
.btn--quiet:hover { background: rgba(255, 253, 244, .1); box-shadow: inset 0 0 0 1.5px var(--chalk); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--felt); transition: box-shadow .3s; }
.topbar.is-stuck { box-shadow: 0 1px 0 var(--hair), 0 8px 24px rgba(7, 26, 60, .18); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.topbar-who { font-weight: 600; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(.75rem, 2vw, 1.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.pennant { display: block; width: 100%; height: auto; }
.pennant-felt { fill: var(--butter); }
.pennant-shadow { fill: var(--felt-shadow); }
.pennant-band { fill: var(--tomato); }
.pennant-letters text, .pennant-sticker text { font-family: var(--font); font-weight: 800; fill: var(--ink); }
.pennant-sticker rect { fill: var(--tomato); }
.pennant-sticker .pennant-sticker-shadow { fill: rgba(7, 26, 60, .28); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin-top: clamp(1.5rem, 3.5vw, 2.75rem);
}
.hero-lede { font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; }
.facts { margin: 0 0 1.5rem; background: var(--felt-deep); border-radius: 18px; padding: .35rem 1.25rem; }
.facts div { display: grid; grid-template-columns: 4.75rem 1fr; gap: 1rem; align-items: baseline; padding: .85rem 0; }
.facts div + div { border-top: 1px solid var(--hair); }
.facts dt { font-weight: 600; font-size: .95rem; color: var(--butter); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.facts dd small { display: block; font-size: .95rem; font-weight: 400; opacity: .82; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6.5vw, 5rem) 0; }
.section-title { margin-bottom: 1.5rem; font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.03em; }
.section-intro { margin: -.6rem 0 2rem; max-width: 52ch; font-size: 1.125rem; }

/* ---------- Ticket stub ---------- */
.notice { margin-bottom: 1.25rem; padding: .95rem 1.15rem; border-radius: 14px; background: var(--chalk); color: var(--ink); font-weight: 600; }
.stub { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--paper); color: var(--ink); border-radius: 22px; }
/* Two tones and two punched notches mark where the stub tears off. No rule needed. */
.stub-price { position: relative; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--butter); border-radius: 22px 0 0 22px; }
.stub-price::before, .stub-price::after { content: ""; position: absolute; right: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--felt); z-index: 1; }
.stub-price::before { top: -15px; }
.stub-price::after { bottom: -15px; }
.stub-label { margin-bottom: 1.5rem; font-weight: 600; font-size: .95rem; opacity: .75; }
.tier-row + .tier-row { margin-top: 1.15rem; }
.tier-row-name { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.0625rem; }
.tier-row-price { display: block; font-weight: 800; font-size: clamp(4rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.045em; margin: .1rem 0 .15rem; }
.tier-row-when { font-size: .98rem; }
.tier-row--later .tier-row-price, .tier-row--gone .tier-row-price { font-size: 2rem; letter-spacing: -.03em; }
.tier-row--later, .tier-row--gone { opacity: .62; }
.tag { font-weight: 700; font-size: .8rem; line-height: 1; padding: .34rem .55rem; border-radius: 999px; background: var(--ink); color: var(--butter); }
.countdown { margin-top: 1.5rem; font-weight: 700; }

.stub-form { padding: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label, .field-label { font-weight: 600; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-width: 0; padding: .8rem .9rem; font: 500 1.0625rem/1.25 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid rgba(7, 26, 60, .3); border-radius: 12px; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field select:hover { border-color: rgba(7, 26, 60, .55); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(7, 26, 60, .16); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b2f68' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: .75rem; padding-right: 2.2rem;
}
.stub .btn:focus-visible, .qty button:focus-visible { outline-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.qty { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.qty button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1.5px solid rgba(7, 26, 60, .3); background: #fff; color: var(--ink); font: 600 1.4rem/1 var(--font); cursor: pointer; transition: border-color .2s, transform .15s var(--ease); }
.qty button:hover { border-color: var(--ink); }
.qty button:active { transform: scale(.92); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: -.03em; }
.qty-hint { font-size: .95rem; flex: 1 1 12rem; }
.stub-form .btn { width: 100%; margin-top: .5rem; }
.fineprint { margin-top: 1rem; font-size: .9rem; line-height: 1.45; opacity: .78; }

.rules { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.rules h3 { margin-bottom: .3rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; color: var(--butter); }

/* ---------- The night ---------- */
.night { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.schedule { list-style: none; margin: 0; padding: .35rem 1.5rem; background: var(--felt-deep); border-radius: 18px; }
.schedule li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; align-items: baseline; padding: .95rem 0; }
.schedule li + li { border-top: 1px solid var(--hair); }
.schedule time { font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: -.03em; color: var(--butter); }
.covers { background: var(--felt-deep); border-radius: 18px; padding: 1.5rem; }
.covers h3 { margin-bottom: .8rem; font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; }
.covers ul { margin: 0; padding: 0; list-style: none; }
.covers li { position: relative; padding: .3rem 0 .3rem 1.5rem; }
/* A small pennant as the bullet. */
.covers li::before { content: ""; position: absolute; left: 0; top: .85em; border-style: solid; border-width: .3em 0 .3em .8em; border-color: transparent transparent transparent var(--butter); }
.covers p { margin-top: .9rem; font-size: .98rem; opacity: .86; }

/* ---------- Class board ---------- */
.board { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.board li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; align-items: center; padding: .35rem 0; }
.board-year { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.board-bar { display: flex; align-items: center; width: var(--w); min-width: 3rem; height: 2.2rem; padding: 0 .8rem; background: var(--butter); color: var(--ink); font-weight: 800; font-size: 1.05rem; clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 50%, calc(100% - 1rem) 100%, 0 100%); }
.board-empty { padding: 1.3rem 1.5rem; max-width: 34rem; background: var(--felt-deep); border-radius: 18px; font-size: 1.0625rem; font-weight: 500; }

/* ---------- Partners (light band) ---------- */
.partners { background: var(--paper); color: var(--ink); }
.tier { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.4rem, 3vw, 2rem); background: #fff; border: 1px solid var(--hair-ink); border-radius: 18px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.tier:hover { box-shadow: 0 14px 34px rgba(7, 26, 60, .1); transform: translateY(-2px); }
.tier + .tier { margin-top: 1rem; }
.tier-name { font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.1; letter-spacing: -.025em; }
.tier-price { margin: .3rem 0 .9rem; font-weight: 700; color: #c2401f; }
.tier ul { margin: 0; padding-left: 1.15rem; }
.tier li { padding: .12rem 0; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.tier--main .slots { grid-template-columns: 1fr; }
.slot { min-height: 5.5rem; display: grid; place-items: center; text-align: center; padding: 1rem; border-radius: 14px; text-decoration: none; }
.tier--main .slot { min-height: 9.5rem; }
.slot--open { background: rgba(7, 26, 60, .05); color: rgba(7, 26, 60, .55); font-weight: 600; font-size: .98rem; }
.slot--filled { background: var(--paper); color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.tier--main .slot--filled { font-size: 2rem; }
.slot--filled img { max-width: 72%; max-height: 3.4rem; object-fit: contain; }
.tier--main .slot--filled img { max-height: 5.5rem; }
.partners-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
.partners-cta p { max-width: 38ch; }

/* ---------- Footer ---------- */
.footer { background: var(--felt-shadow); padding: 1.75rem 0 2.25rem; font-size: .95rem; }
.footer p { max-width: 62ch; opacity: .88; }
.footer p + p { margin-top: .35rem; }

/* ---------- Motion ----------
   Hidden states only apply when JS is running (html.js) and the visitor has not asked
   for reduced motion, so the page is complete without either. */
@media (prefers-reduced-motion: no-preference) {
  .js .pennant-flag { animation: pennant-in .9s var(--ease) both; }
  .js .pennant-sticker { transform-box: fill-box; transform-origin: 50% 50%; animation: sticker-on .5s .7s cubic-bezier(.3, 1.5, .5, 1) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .board .board-bar { width: 3rem; transition: width 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .js .board li.is-in .board-bar { width: var(--w); }
  .qty output.is-bumped { animation: qty-bump .28s var(--ease); }
}
@keyframes pennant-in { from { opacity: 0; transform: translateX(-5%); } to { opacity: 1; transform: none; } }
@keyframes sticker-on { from { opacity: 0; transform: scale(1.5) rotate(-9deg); } to { opacity: 1; transform: none; } }
@keyframes qty-bump { 50% { transform: scale(1.22); } }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .hero-grid, .night, .tier { grid-template-columns: 1fr; }
  .hero-lede { max-width: none; }
  .stub { grid-template-columns: 1fr; }
  .stub-price { border-radius: 22px 22px 0 0; }
  .stub-price::before, .stub-price::after { top: auto; bottom: -15px; }
  .stub-price::before { left: -15px; right: auto; }
  .stub-price::after { right: -15px; }
  .rules { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .wrap { width: calc(100% - 2rem); }
  .field-row { grid-template-columns: 1fr; }
  .schedule { padding-inline: 1.1rem; }
  .schedule li { grid-template-columns: 3.9rem 1fr; }
  .schedule time { font-size: 1.25rem; }
  .facts { padding-inline: 1rem; }
  .slots { gap: .6rem; }
}
