/* Layout: the portrait's own pale studio backdrop is the page ground, so the photo
   dissolves into it. Black wordmark and type sit on that air; the only other
   tone is a near-white panel for the closing reservation section. */
:root {
  --ground: #e4e9f4;
  --paper: #f4f6fb;
  --ink: #14131a;
  --ink-soft: #4b4c5c;
  --line: rgba(20, 19, 26, 0.16);
  --white: #fbfcfe;
  --error: #9c1f3d;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: "Jost", "Avenir Next", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- shared type ---------- */
.label {
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.6;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1em;
  padding: 1.25em 2.1em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn__arrow { font-size: 1.15em; letter-spacing: 0; transition: transform 0.25s ease; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- hero ---------- */
/* Phone: the first screen is label + wordmark + place/date, then the portrait filling
   the rest, with a small reserve button resting just under it. */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  position: relative;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__top {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - 70px), 900px);
  min-height: min(calc(100svh - 70px), 900px);
}
.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(22px, 4.5svh, 44px);
}
.hero__title { display: flex; flex-direction: column; align-items: inherit; gap: clamp(12px, 2vw, 26px); font-weight: 400; }
.hero__title .label { font-size: 0.625rem; letter-spacing: 0.44em; opacity: 0.7; }
.wordmark { width: clamp(135px, 37vw, 185px); }
.hero__when {
  margin-top: clamp(12px, 2vw, 30px);
  font-family: var(--ui);
  font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__when span { opacity: 0.45; padding-inline: 0.35em; }
.hero__photo {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 360px;
  margin-inline: calc(-1 * var(--gutter));
  margin-top: -14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 84%, transparent 100%);
}
.hero__photo img { position: absolute; left: 0; top: -15%; width: 100%; height: 126%; object-fit: cover; object-position: 82% 0; }
.hero__actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -6px;
  padding-bottom: 30px;
}
.hero__actions .btn { font-size: 0.6875rem; padding: 1.2em 1.9em; }

@media (min-width: 900px) {
  .hero__inner { min-height: clamp(640px, 94svh, 960px); justify-content: center; align-items: flex-start; padding-block: 72px; }
  .hero__top { display: block; min-height: 0; align-self: auto; }
  .hero__copy { align-items: flex-start; text-align: left; padding-top: 0; }
  .hero__title .label { font-size: 0.6875rem; }
  .wordmark { width: clamp(230px, 24vw, 350px); }
  .hero__actions { margin-top: clamp(36px, 4vw, 52px); padding-bottom: 0; }
  .hero__actions .btn { font-size: 0.75rem; padding: 1.25em 2.1em; }
  .hero__photo {
    position: absolute;
    right: -80px;
    bottom: 0;
    margin: 0;
    height: 115%;
    min-height: 0;
    aspect-ratio: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 90%, transparent 100%), linear-gradient(to top, transparent 0, #000 14%);
    mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 90%, transparent 100%), linear-gradient(to top, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hero__photo img { top: 0; height: 100%; object-position: center; }
}

/* load-in: one quiet sequence, resting state is fully visible */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy, .hero__actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__actions { animation-delay: 0.2s; }
  .hero__photo { animation: fade 1.4s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; } }
}

/* ---------- invitation ---------- */
.intro {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(72px, 12vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 3.4vw, 40px);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.intro__text {
  max-width: 25em;
  display: flex;
  flex-direction: column;
  gap: 1.05em;
  font-family: var(--display);
  font-variation-settings: "opsz" 14;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- about ---------- */
main { padding-inline: var(--gutter); }
.about {
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 34px);
}
.about__text {
  max-width: 34em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* ---------- film: full-bleed live recording ---------- */
.film {
  margin-inline: calc(-1 * var(--gutter));
  padding-bottom: clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.film__frame { position: relative; width: 100%; background: var(--ink); }
.film__video {
  display: block;
  width: 100%;
  height: auto; /* without this the height attribute pins it at 576px */
  aspect-ratio: 5 / 4; /* the recording's own shape: uncropped on phones */
  object-fit: cover;
  object-position: 50% 28%;
}
@media (max-width: 899px) {
  .film__sound { right: 12px; bottom: 12px; padding: 0.9em 1.2em; font-size: 0.625rem; letter-spacing: 0.2em; }
}
@media (min-width: 900px) {
  .film__video { aspect-ratio: 16 / 9; max-height: 86vh; max-height: 86svh; }
}
.film__sound {
  position: absolute;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  bottom: clamp(14px, 2.4vw, 28px);
  padding: 1em 1.5em;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: rgba(20, 19, 26, 0.55);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.film__sound:hover, .film__sound[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.film__sound:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.film__caption { padding-inline: var(--gutter); text-align: center; color: var(--ink-soft); }
.film__caption span { opacity: 0.45; padding-inline: 0.35em; }

/* ---------- label + body rows ---------- */
.split {
  max-width: 900px;
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 96px);
  display: grid;
  gap: 22px;
}
.split { border-top: 1px solid var(--line); }
.split__body { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 44px); min-width: 0; }
.bio { max-width: 36em; color: var(--ink-soft); text-wrap: pretty; }
@media (min-width: 760px) {
  .split { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .split > .label { padding-top: 0.45em; }
}

.lineup { border-top: 1px solid var(--line); }
.lineup li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 24px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.lineup__name { font-family: var(--display); font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.3; }
.lineup__role {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- closing band ---------- */
.finale { background: var(--white); color: var(--ink); margin-top: clamp(24px, 4vw, 48px); }
.finale__inner {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(80px, 12vw, 150px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2.6vw, 30px);
}
.finale__sep { opacity: 0.4; font-weight: 400; }
.finale__note { max-width: 30em; text-wrap: balance; }
.finale__price {
  font-family: var(--ui);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.finale .btn { margin-top: 8px; }

/* ---------- footer ---------- */
.footer {
  padding: clamp(48px, 7vw, 80px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
}
.footer__mark { width: 76px; }

/* ---------- reservation dialog ---------- */
.modal {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 56px clamp(24px, 6vw, 48px) clamp(30px, 6vw, 44px);
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(20, 19, 26, 0.28);
}
.modal:focus, .modal:focus-visible { outline: none; }
.modal::backdrop { background: rgba(20, 19, 26, 0.55); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .modal[open]::backdrop { animation: fade 0.4s ease both; }
}
.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.modal__form, .modal__done { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.modal__title { font-size: clamp(1.875rem, 6vw, 2.5rem); margin-bottom: 6px; }
.modal__done:focus { outline: none; }

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label {
  font-family: var(--ui);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem; /* ≥16px so iOS does not zoom */
  line-height: 1.3;
}
.field input::placeholder { color: rgba(20, 19, 26, 0.32); }
.field input:focus-visible { outline: none; border-bottom-width: 2px; padding-bottom: 11px; }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }
.field__msg { font-family: var(--ui); font-size: 0.8125rem; color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__error { font-family: var(--ui); font-size: 0.875rem; line-height: 1.5; color: var(--error); }
.modal__note { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.modal .btn { margin-top: 6px; }

/* Bodoni hairlines (hyphens, dashes) vanish at text sizes: use the sturdier small optical size */
.lineup__name { font-variation-settings: "opsz" 9; }

.modal__meta span { display: block; white-space: nowrap; }
