/* Walk the Plank: dusk palette taken from the game's style D */
:root {
  --noc: #1b1530;
  --noc-2: #241c3d;
  --sliwa: #4a2a4e;
  --zar: #ee7440;
  --drewno: #d99a5c;
  --slonce: #ffe2a0;
  --piana: #f6efe6;
  --mgla: #b9aec4;
  --lila: #9a808f;
  --tusz: #120d20;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--noc);
  color: var(--piana);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--slonce); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(var(--noc) 0%, rgba(27, 21, 48, 0) 100%);
}
.bar__name { font: 800 1.25rem/1 var(--display); letter-spacing: .02em; text-decoration: none; }
.bar__cta {
  font: 700 .95rem/1 var(--body); text-decoration: none;
  padding: 12px 18px; border-radius: 999px;
  background: var(--piana); color: var(--tusz);
  transition: background .2s;
}
.bar__cta:hover { background: var(--slonce); }

/* ---------- hero: key art ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
  animation: push 24s ease-out both;
}
@keyframes push { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--noc) 4%, rgba(27, 21, 48, .78) 34%, rgba(27, 21, 48, 0) 64%),
    linear-gradient(to right, rgba(27, 21, 48, .82) 0%, rgba(27, 21, 48, .45) 40%, rgba(27, 21, 48, 0) 70%);
}
.hero__inner { padding: 0 var(--gutter) clamp(40px, 9vh, 96px); max-width: 1180px; }
.hero__sign { width: min(400px, 70vw); margin: 0 0 4px -1.5%; filter: drop-shadow(0 18px 30px rgba(10, 6, 20, .55)); }
.hero__line {
  font: 900 clamp(3rem, 8.2vw, 7.4rem)/.86 var(--display);
  letter-spacing: -.01em; margin: 0;
  text-transform: uppercase;
}
.hero__lede { max-width: 34em; margin: 18px 0 26px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e9e0ee; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: 800 1.15rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 18px 30px 17px; border-radius: 10px;
  background: var(--drewno); color: var(--tusz);
  box-shadow: inset 0 -5px 0 #a8683a, 0 10px 30px rgba(238, 116, 64, .25);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { background: #e7ad70; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 #a8683a; }
.hero__when { color: var(--mgla); font-size: .98rem; }

@media (prefers-reduced-motion: reduce) { .hero__art { animation: none; } }

/* ---------- the plank: full-bleed loop ---------- */
.plank { position: relative; overflow: hidden; isolation: isolate; background: var(--noc-2); }
.plank__video { position: relative; z-index: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.plank::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to right, rgba(27, 21, 48, .6), rgba(27, 21, 48, 0) 55%); }
.plank__text {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 1; max-width: 13ch;
  font: 900 clamp(2.4rem, 6.4vw, 6rem)/.9 var(--display); text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(18, 13, 32, .6);
  margin: 0;
}
.plank__toggle {
  z-index: 1; position: absolute; right: var(--gutter); bottom: 18px;
  font: 600 .85rem/1 var(--body); color: var(--piana);
  background: rgba(18, 13, 32, .55); border: 1px solid rgba(246, 239, 230, .3);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 720px) {
  .plank__video { aspect-ratio: 4 / 5; object-position: 38% 50%; }
  .plank__text { top: auto; bottom: 64px; transform: none; }
}

/* ---------- a day on the ferry (a real sequence: times of day) ---------- */
.day { padding: clamp(72px, 12vw, 150px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.day__title { font: 900 clamp(2.4rem, 5.4vw, 4.6rem)/.95 var(--display); text-transform: uppercase; margin: 0 0 clamp(36px, 6vw, 72px); max-width: 16ch; }
.day__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--sliwa); }
.day__item { padding: 26px 28px 8px 0; position: relative; }
.day__item::before {
  content: ""; position: absolute; top: -8px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--noc); border: 2px solid var(--drewno);
}
.day__item--vote::before { background: var(--zar); border-color: var(--zar); box-shadow: 0 0 0 6px rgba(238, 116, 64, .2); }
.day__time { font: 800 2.6rem/1 var(--display); color: var(--slonce); display: block; margin: 0 0 10px; }
.day__item--vote .day__time { color: var(--zar); }
.day__item h3 { font: 700 1.15rem/1.3 var(--body); margin: 0 0 6px; }
.day__item p { margin: 0; color: var(--mgla); max-width: 30ch; }
@media (max-width: 860px) {
  .day__list { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--sliwa); }
  .day__item { padding: 4px 0 34px 30px; }
  .day__item::before { top: 10px; left: -8px; }
}

/* ---------- crew and what waits for them ---------- */
.crew { background: var(--lila); color: var(--tusz); padding: clamp(64px, 10vw, 120px) var(--gutter) 0; overflow: hidden; }
.crew__head { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: end; justify-content: space-between; }
.crew__title { font: 900 clamp(2.4rem, 5.4vw, 4.6rem)/.95 var(--display); text-transform: uppercase; margin: 0; max-width: 14ch; }
.crew__note { margin: 0; max-width: 36ch; color: #2b2236; }
.crew__row { max-width: 1320px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 12px; align-items: stretch; }
.crew__fig { margin: 0; display: flex; flex-direction: column; }
.crew__fig img { width: 100%; height: auto; aspect-ratio: 9 / 10; object-fit: cover; }
.crew__fig figcaption { flex: 1; background: var(--tusz); color: var(--piana); padding: 16px 18px 20px; }
.crew__fig b { display: block; font: 800 1.6rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.crew__fig span { font-size: .95rem; color: var(--mgla); }
.crew__fig--foe figcaption { background: #2a1b2c; }
.crew__fig--foe b { color: var(--zar); }
@media (max-width: 860px) {
  .crew__row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- sign-up ---------- */
.signup { position: relative; padding: clamp(80px, 12vw, 150px) var(--gutter); isolation: isolate; overflow: hidden; }
.signup__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.signup::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 30%, rgba(27, 21, 48, .4), var(--noc) 75%); }
.signup__inner { max-width: 640px; }
.signup__title { font: 900 clamp(2.6rem, 6vw, 5rem)/.92 var(--display); text-transform: uppercase; margin: 0 0 18px; }
.signup__lede { margin: 0 0 30px; color: #e3d9e8; max-width: 40ch; }
.form { display: grid; gap: 14px; }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.form__email {
  flex: 1 1 260px; min-width: 0;
  font: 500 1.1rem/1 var(--body); color: var(--tusz);
  padding: 17px 18px; border-radius: 10px; border: 2px solid transparent; background: var(--piana);
}
.form__email::placeholder { color: #7a6f84; }
.form__email[aria-invalid="true"] { border-color: var(--zar); }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: #e3d9e8; cursor: pointer; }
.form__check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--drewno); flex: none; }
.form__check a { color: var(--slonce); }
.form__hp { position: absolute; left: -9999px; }
.form__msg { min-height: 1.6em; margin: 4px 0 0; font-weight: 600; }
.form__msg[data-kind="ok"] { color: var(--slonce); }
.form__msg[data-kind="err"] { color: #ff9b6e; }
.form__young { margin: 18px 0 0; font-size: .92rem; color: var(--mgla); }
.form[data-done="true"] .form__row, .form[data-done="true"] .form__check { display: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--sliwa); padding: 34px var(--gutter) 48px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; color: var(--mgla); font-size: .92rem; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--piana); text-decoration: underline; }

/* ---------- privacy page ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 120px var(--gutter) 80px; }
.doc h1 { font: 900 clamp(2.4rem, 6vw, 4rem)/.95 var(--display); text-transform: uppercase; margin: 0 0 28px; }
.doc h2 { font: 800 1.6rem/1.1 var(--display); text-transform: uppercase; margin: 40px 0 10px; color: var(--slonce); }
.doc p, .doc li { color: #e3d9e8; }

@media (max-width: 720px) {
  .hero__sign { width: 58vw; }
  .hero__lede { font-size: 1rem; margin: 14px 0 22px; }
  .hero__inner { padding-bottom: 32px; }
}
