/* ONE NIGHT STAND – ONE MORE TIME landing
   Tokens, roles and the reasoning: DESIGN.md */

:root {
  /* Sampled from the organiser's banner: its ground is pure black and its lettering is #ff0015.
     The page uses the same black so the banner has no visible edge – page and afisha are one surface. */
  --black: #000000;
  --red: #ff0015;
  --red-btn: #e60013; /* button surface: white on it is 4.8:1, the brand red alone would be 4.0:1 */
  --white: #ffffff;
  --ash: #b8b8bd; /* secondary text, 9.4:1 on black */
  --line: rgba(255, 255, 255, 0.16);

  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 40px);
  --container: 1080px;
  --section: clamp(48px, 6vw, 88px);
  --rail-h: 44px;
  --bar-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--white);
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- edition switcher ---------- */

/* Two shows, one hall, one evening: the page opens on the choice between them. Equal halves, so the
   pair is symmetric before any content starts. Not sticky – the rail above the fold does that job,
   and this decision is made once, at the start. */
.editions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.editions__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 10px;
  padding: 9px 12px;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.editions__item + .editions__item {
  border-left: 1px solid var(--line);
}

.editions__item:hover {
  color: var(--white);
}

/* A red rule, not a red fill: the first screen already spends its red on the lockup and the buy
   button, and a filled bar up here would out-shout both. */
.editions__item--on {
  color: var(--white);
  border-bottom-color: var(--red);
}

.editions__item--on:hover {
  color: var(--white);
}

.editions__time {
  font-weight: 700;
}

/* ---------- rail ---------- */

.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--rail-h);
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.rail__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  gap: 20px;
}

.rail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  display: none;
}

.rail__facts {
  margin: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(12px, 3.2vw, 15px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Red hairlines between the facts, not middle dots */
.rail__facts span + span {
  margin-left: clamp(10px, 3vw, 18px);
  padding-left: clamp(10px, 3vw, 18px);
  border-left: 1px solid var(--red);
  line-height: 1;
}

/* Phones carry the button in the fixed bottom bar, so the rail must not reserve room for one:
   a hidden-but-laid-out button pushed the page 24px wider than a 320px screen.
   Scoped to .rail so it outranks .btn, which is declared further down. */
.rail .rail__buy {
  display: none;
}

.rail--buy .rail__buy {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 720px) {
  .rail__title {
    display: block;
  }
  .rail__facts {
    margin-left: auto;
  }
  .rail .rail__buy {
    display: inline-flex;
    margin-left: 20px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-btn);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 0;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--red);
  color: var(--white);
}

.btn--hero {
  font-size: clamp(18px, 4.4vw, 24px);
  padding: 18px 44px;
}

.btn--small {
  font-size: 13px;
  padding: 8px 16px;
}

.btn--stub {
  font-size: clamp(17px, 3.6vw, 21px);
  padding: 16px 40px;
}

.btn--bar {
  font-size: 16px;
  padding: 14px 26px;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(28px, 5.5vw, 52px) clamp(24px, 4vw, 40px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lockup {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.86;
}

.lockup__show,
.lockup__edition {
  display: block;
}

.lockup__show {
  color: var(--red);
  font-weight: 500;
  font-size: clamp(26px, 6.4vw, 54px);
  letter-spacing: 0.04em;
}

.lockup__edition {
  color: var(--white);
  font-weight: 700;
  font-size: clamp(46px, 13.5vw, 128px);
  letter-spacing: -0.005em;
}

.hero__line {
  margin: clamp(16px, 2.6vw, 22px) auto 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--ash);
  max-width: 30ch;
}

/* ---------- the banner, inside the hero ---------- */

/* Centred on the page's own black, so the banner has no visible edge and reads as part of the page.
   Phones take it edge to edge, so its baked-in lettering gets every pixel of the screen. */
.hero__afisha {
  margin-block: clamp(20px, 4vw, 36px);
  display: flex;
  justify-content: center;
}

.afisha__img {
  /* native size, never scaled up: 785x273 is all the resolution this visual has */
  width: min(785px, 100%);
}

.hero__cta {
  display: flex;
  justify-content: center;
  padding-inline: var(--pad);
}

/* ---------- story ---------- */

.story {
  padding-block: var(--section);
}

.story__grid {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  justify-items: center;
}

/* The whole story of this edition in one typographic move: the sold-out date struck through,
   the new one under it. Said once, never repeated in prose. */
.again {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
}

.again__gone,
.again__now {
  display: block;
}

.again__gone {
  color: var(--ash);
  font-weight: 500;
  font-size: clamp(20px, 4.4vw, 30px);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.again__now {
  color: var(--white);
  font-size: clamp(28px, 6.4vw, 46px);
}

/* The block is centred on the page, the prose inside it is not: centred paragraphs of four lines
   are markedly harder to read than left-aligned ones. */
.story__text {
  max-width: 62ch;
}

.story__text p {
  margin: 0 0 1em;
  color: var(--ash);
}

.story__text p:last-child {
  margin-bottom: 0;
}

/* ---------- section titles ---------- */

.title {
  margin: 0 0 clamp(22px, 3.5vw, 36px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 4.2vw, 32px);
  letter-spacing: 0.02em;
  color: var(--white);
  text-align: center;
}

/* ---------- lineup ---------- */

.lineup {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

/* Six names in two columns rather than one running list: on a wide screen a single column left half
   the page empty. No rules between the cells – the page's red is spent on the lockup, the strike
   through the sold-out date and the buy button, and six more red lines would drown all three. */
.lineup__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(22px, 4vw, 38px) clamp(28px, 5vw, 64px);
}

.performer {
  text-align: center;
}

.performer__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 5.2vw, 40px);
  line-height: 1.1;
}

.performer__role {
  display: block;
  margin: 4px auto 0;
  color: var(--ash);
  max-width: 34ch;
}

@media (min-width: 720px) {
  .lineup__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- faq ---------- */

.faq {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: clamp(14px, 2.4vw, 20px) 44px clamp(14px, 2.4vw, 20px) 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(17px, 2.6vw, 20px);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* a red plus that becomes a dash when the answer is open */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}

.faq__item summary::before {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 2px;
  height: 16px;
  background: var(--red);
  transform: translateY(-50%);
}

.faq__item[open] summary::before {
  display: none;
}

.faq__answer {
  padding: 0 0 clamp(16px, 2.4vw, 22px);
}

.faq__answer p {
  margin: 0;
  color: var(--ash);
  max-width: 68ch;
}

/* ---------- ticket stub ---------- */

.tickets {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.stub {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  gap: clamp(22px, 4vw, 40px);
}

.date {
  margin: 0 0 12px;
  font-family: var(--font-display);
  line-height: 0.95;
}

.date__num {
  display: block;
  font-weight: 700;
  font-size: clamp(46px, 11vw, 82px);
  color: var(--white);
}

.date__rest {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-weight: 500;
  font-size: clamp(14px, 3vw, 17px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
}

.venue {
  margin: 0;
  color: var(--ash);
}

.venue strong {
  color: var(--white);
  font-weight: 500;
}

.stub__buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.stub__pay {
  margin: 0;
  font-size: 15px;
  color: var(--ash);
  max-width: 34ch;
}

@media (min-width: 720px) {
  .stub {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .stub__buy {
    align-items: flex-end;
    text-align: right;
  }
}

/* ---------- footer ---------- */

.footer {
  padding-block: clamp(32px, 5vw, 56px) calc(var(--bar-h) + 32px);
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-size: 15px;
}

.footer__inner p {
  margin: 0 0 8px;
}

.footer__sister {
  margin-top: 16px;
}

@media (min-width: 720px) {
  .footer {
    padding-bottom: clamp(32px, 5vw, 56px);
  }
}

/* ---------- fixed buy bar (phones and tablets) ---------- */

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: var(--bar-h);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--black);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s ease;
}

.buybar__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.3;
}

.buybar--away {
  transform: translateY(105%);
}

@media (min-width: 720px) {
  .buybar {
    display: none;
  }
}
