:root {
  --ink: #0d0812;
  --ink-2: #1a1022;
  --plum: #2c1a3a;
  --paper: #f4ead9;
  --paper-2: #e9dcc5;
  --text: #f6eff5;
  --muted: #b9abc0;
  --dark-muted: #5d5062;
  --hot: #ff2f7d;
  --hot-deep: #d3135e;
  --peach: #ffb37c;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.04; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 7vw, 84px); }
h3 { font-size: clamp(28px, 3.4vw, 40px); }

/* Header */
.top {
  position: absolute; z-index: 5; inset: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px var(--gutter);
  font: 600 13px/1.2 var(--mono);
}
.top__brand { text-decoration: none; white-space: nowrap; }
.top__brand span { color: var(--peach); }
.top__tag { margin: 0; color: #e6dbe8; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0 0 auto; z-index: -2;
  width: 100%; height: 46%;
  object-fit: cover; object-position: 86% 0;
  animation: drift 24s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(13 8 18 / .5) 0, transparent 14%),
    linear-gradient(180deg, transparent 24%, rgb(13 8 18 / .8) 39%, var(--ink) 46%);
}
@keyframes drift { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__body { position: relative; padding-top: 31svh; padding-bottom: 28px; }

.status {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  margin: 0 0 14px; padding: 8px 14px 8px 12px;
  background: var(--peach); color: var(--ink);
  font: 700 clamp(18px, 2vw, 23px)/1.15 var(--display); text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--hot); transform: rotate(-1deg); transform-origin: left center;
}
.status i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hot-deep); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.date { display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 24px); font-family: var(--display); font-weight: 700; line-height: .86; }
.date__day { font-size: clamp(112px, 34vw, 264px); letter-spacing: -.01em; color: var(--text); }
.date__time { display: flex; flex-direction: column; gap: 8px; padding-bottom: .12em; font-size: clamp(38px, 11vw, 88px); color: var(--hot); }
.date__time small { font: 600 clamp(10px, 2.6vw, 13px)/1.3 var(--mono); color: var(--muted); letter-spacing: 0; max-width: 11ch; }

h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 18px; font-weight: 700; }

.lead { margin: 12px 0 0; max-width: 40ch; color: #dfd5e3; }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-top: 18px; font-family: var(--mono); }
.count div { padding: 8px 10px 6px; background: var(--ink-2); border: 1px solid var(--plum); text-align: center; }
.count b { display: block; font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.count span { font-size: 11px; color: var(--muted); }
[data-phase="live"] .count { display: none; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 12px 20px;
  background: var(--hot); color: #fff; border: 0; border-radius: 0; cursor: pointer;
  font: 700 21px/1.1 var(--display); text-transform: uppercase; text-decoration: none;
  box-shadow: 6px 6px 0 var(--peach);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn > span { white-space: nowrap; }
.btn small { font: 700 25px/1 var(--display); text-transform: none; white-space: nowrap; padding-left: 14px; border-left: 1px solid rgb(255 255 255 / .5); }
.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--peach); background: var(--hot-deep); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--peach); }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); box-shadow: 6px 6px 0 var(--hot); }
.btn--ink:hover { background: var(--plum); box-shadow: 4px 4px 0 var(--hot); }

.link { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--peach); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.link--dark { color: var(--ink); }

/* Plan */
.plan { background: var(--paper); color: var(--ink); padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.plan h2 { max-width: 13em; }
.steps { list-style: none; margin: clamp(40px, 7vw, 80px) 0 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 88px); }
.step { display: grid; gap: 20px; align-items: center; }
.step__text { max-width: 52ch; }
.step__text p { margin: 10px 0 0; color: #3b3040; }
.step h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.step h3 b { color: var(--hot-deep); }
.step__tag { display: inline-block; padding: 4px 8px; font: 600 12px/1.2 var(--mono); background: var(--paper-2); }
.step.is-now .step__tag { background: var(--hot); color: #fff; }
.step .link { display: inline-block; margin-top: 10px; }

.photo {
  --tilt: -1.4deg; --tape-left: 46%; --tape-tilt: -3deg; --tape-flip: 1;
  margin: 0; position: relative; padding: 11px 11px 36px;
  background: #f8f4ea url("assets/paper-grain.svg");
  border-radius: 2px;
  transform: rotate(var(--tilt));
  box-shadow:
    0 0 0 1px rgb(44 26 58 / .03),
    0 1px 3px rgb(44 26 58 / .1),
    0 6px 16px rgb(44 26 58 / .08),
    0 18px 40px -8px rgb(44 26 58 / .14),
    0 36px 70px -20px rgb(44 26 58 / .12);
}
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.94) contrast(.97); }
.photo::after {
  content: ""; position: absolute; inset: 11px 11px 36px; pointer-events: none;
  background: linear-gradient(112deg, rgb(255 255 255 / .17) 0, rgb(255 255 255 / .05) 24%, transparent 38%, transparent 72%, rgb(255 255 255 / .06) 100%);
  box-shadow: inset 0 0 0 1px rgb(13 8 18 / .08), inset 0 0 28px rgb(13 8 18 / .1);
}
.photo::before {
  content: ""; position: absolute; z-index: 2; top: -19px; left: var(--tape-left); width: 128px; height: 42px; margin-left: -64px;
  background: url("assets/tape.svg?v=2") center / 100% 100% no-repeat;
  transform: rotate(var(--tape-tilt)) scaleX(var(--tape-flip));
}
.step:nth-child(2) .photo { --tilt: 1.1deg; --tape-left: 24%; --tape-tilt: -6deg; --tape-flip: -1; }
.step:nth-child(3) .photo { --tilt: -.7deg; --tape-left: 74%; --tape-tilt: 4deg; }
.step:nth-child(4) .photo { --tilt: 1.6deg; --tape-left: 54%; --tape-tilt: 1.5deg; --tape-flip: -1; }

/* Editions */
.editions { padding: clamp(64px, 10vw, 128px) 0; background: var(--ink); }
.editions__head { display: grid; gap: 24px; align-items: end; }
.editions__intro { margin: 18px 0 0; max-width: 54ch; color: #dfd5e3; }
.cover { display: none; margin: 0; }
.choose { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 36px 0 18px; }
.choose p { flex-basis: 100%; margin: 0 0 2px; font: 600 14px var(--mono); color: var(--peach); }
.choose button {
  flex: 1 1 140px; min-height: 50px; padding: 8px 16px; cursor: pointer;
  background: transparent; color: var(--text); border: 2px solid var(--muted);
  font: 700 18px/1.1 var(--display); text-transform: uppercase;
}
.choose button:hover { border-color: var(--text); }
.choose button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

.cards { display: grid; gap: 16px; align-items: start; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px 20px; background: var(--ink-2); border: 2px solid var(--plum); transition: border-color .15s ease; }
.card.is-picked { border-color: var(--hot); }
.card__verdict { display: none; position: absolute; top: -13px; left: 16px; margin: 0; padding: 3px 8px; background: var(--hot); color: #fff; font: 600 12px/1.3 var(--mono); }
.card.is-picked .card__verdict { display: block; }
.card__price { margin: 8px 0 0; font: 700 clamp(52px, 8vw, 76px)/1 var(--display); color: var(--peach); }
.card__for { margin: 12px 0 0; color: #dfd5e3; }
.ticks { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; flex: 1; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .34em; width: 11px; height: 6px; border: solid var(--hot); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks strong { color: var(--peach); font-weight: 600; }
.fine { margin: 20px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 70ch; }
.fine--dark { color: var(--dark-muted); }

/* Bonus */
.bonus { position: relative; isolation: isolate; color: var(--ink); padding: clamp(64px, 10vw, 128px) 0; overflow: hidden; }
.bonus__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.bonus h2 { max-width: 12em; }
.bonus__intro { margin: 16px 0 0; font-weight: 500; max-width: 50ch; }
.bonus__grid { display: grid; gap: 14px; margin-top: 32px; max-width: 880px; }
.ticket { padding: 20px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.ticket p { margin: 8px 0 0; font-size: 16px; color: #3b3040; }

/* Facts */
.facts { padding: clamp(64px, 10vw, 128px) 0; background: var(--ink); }
.factlist { margin: 36px 0 0; border-top: 2px solid var(--plum); }
.factlist > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 2px solid var(--plum); }
.factlist dt { font: 700 26px/1.1 var(--display); text-transform: uppercase; color: var(--peach); }
.factlist dd { margin: 0; color: #dfd5e3; max-width: 62ch; }

/* Vidhul */
.vidhul { background: var(--paper-2); color: var(--ink); padding: clamp(64px, 10vw, 128px) 0; }
.vidhul h2 { font-size: clamp(38px, 6vw, 68px); }
.vidhul__grid { display: grid; gap: 32px; align-items: center; }
.vidhul__grid > div > p:not(.fine) { margin: 16px 0 0; max-width: 46ch; }
.form { display: grid; gap: 12px; margin-top: 22px; }
.form label { display: grid; gap: 4px; font: 600 13px var(--mono); }
.form input, .form select {
  width: 100%; min-height: 50px; padding: 10px 12px; background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; font: 400 16px var(--body);
}
.form input::placeholder { color: #7c6f80; }
.vidhul__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }

.paper { position: relative; padding: 28px 24px 36px; background: #fffdf8; font: 400 16px/1.5 var(--body); box-shadow: 0 18px 40px rgb(44 26 58 / .25); transform: rotate(.8deg); overflow: hidden; }
.paper p { margin: 0 0 14px; }
.paper__to { margin-left: auto !important; width: min(68%, 280px); font-size: 14px; }
.paper__title { margin: 26px 0 18px !important; text-align: center; font: 700 36px/1 var(--display); text-transform: uppercase; }
.paper__sign { margin-top: 30px !important; display: flex; align-items: flex-end; gap: 8px; }
.paper__sign span { flex: 0 1 160px; border-bottom: 1px solid var(--ink); height: 1.2em; }
.stamp {
  position: absolute; right: 16px; bottom: 26px; margin: 0 !important; padding: 6px 12px;
  border: 3px solid var(--hot); color: var(--hot); transform: rotate(-11deg);
  font: 700 24px/1.1 var(--display); text-transform: uppercase;
}

/* Final */
.final { position: relative; isolation: isolate; overflow: hidden; min-height: 76svh; display: flex; align-items: flex-end; }
.final__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(13 8 18 / .92) 88%); }
.final__body { padding-block: 40px 44px; }

/* Footer */
.foot { background: var(--ink); padding: 32px 0 112px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.foot p { margin: 0 0 12px; max-width: 86ch; }
.foot strong { color: var(--text); font-weight: 600; }

/* Sticky CTA */
.sticky {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(calc(100% + 28px));
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, visibility 0s linear .45s;
}
.sticky.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .35s ease, visibility 0s;
}
.sticky__btn {
  display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 10px 20px;
  background: var(--hot); color: #fff;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px rgb(13 8 18 / .45);
  transition: background .15s ease;
}
.sticky__btn:hover { background: var(--hot-deep); }
.sticky__ps { flex: none; box-sizing: content-box; padding: 6px 12px 6px 0; border-right: 1px solid rgb(255 255 255 / .5); }
.sticky__label { margin-left: 2px; font: 600 18px/1.1 var(--body); }
.sticky__price { font: 700 19px/1.1 var(--body); white-space: nowrap; }
.sticky__arrow { flex: none; margin-left: auto; transition: transform .15s ease; }
.sticky__btn:hover .sticky__arrow { transform: translate(2px, -2px); }

/* Date-based visibility */
[data-hidden] { display: none !important; }

@media (min-width: 720px) {
  .step { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
  .step:nth-child(even) .photo { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bonus__grid { grid-template-columns: 1fr 1fr; }
  .factlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .factlist > div { border-top: 2px solid var(--plum); border-bottom: 0; }
  .vidhul__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .paper { padding: 40px 36px 44px; }
  .choose p { flex-basis: auto; margin-right: 8px; }
  .choose button { flex: 0 0 auto; }
  .editions__head { grid-template-columns: 1fr 240px; gap: 48px; }
  .cover { display: block; transform: rotate(3deg); box-shadow: 0 18px 40px rgb(0 0 0 / .5); }
}

@media (min-width: 1000px) {
  .hero__img { left: 8%; height: 100%; object-position: 100% 12%; }
  .hero::after {
    background:
      linear-gradient(180deg, rgb(13 8 18 / .5) 0, transparent 16%),
      linear-gradient(90deg, var(--ink) 8%, rgb(13 8 18 / .9) 36%, transparent 62%),
      linear-gradient(0deg, rgb(13 8 18 / .7) 0, transparent 34%);
  }
  .hero__body { padding-top: 88px; padding-bottom: 40px; }
  .date__day { font-size: clamp(150px, 14.5vw, 216px); }
  .date__time { font-size: clamp(52px, 5vw, 76px); }
  h1 { max-width: 10em; }
  .sticky { left: auto; right: 24px; bottom: 24px; }
  .sticky__btn { gap: 12px; padding-inline: 26px 22px; }
  .sticky__arrow { margin-left: 16px; }
  .foot { padding-bottom: 48px; }
}

@media (min-width: 481px) {
  .count { max-width: 400px; }
  .hero__cta .btn { width: 400px; justify-content: space-between; }
}

@media (max-width: 480px) {
  h1 { font-size: min(51px, 13.6vw); }
  .hero__body { padding-top: 27svh; }
  .final { min-height: 56svh; }
  .hero__cta .btn { width: 100%; justify-content: space-between; gap: 10px; padding-inline: 16px; font-size: 19px; }
  .hero__cta .btn small { padding-left: 10px; }
}

@media (max-width: 480px) and (max-height: 760px) {
  .hero__body { padding-top: 24svh; }
}

@media (max-width: 359px) {
  .sticky__ps { display: none; }
}

@media (max-width: 349px) {
  .hero__cta .btn { flex-wrap: wrap; justify-content: center; }
  .hero__cta .btn small { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
