:root {
  --paper: #f5ede4;
  --ink: #171113;
  --wine: #9f2042;
  --wine-deep: #5d1026;
  --line: rgba(245, 237, 228, 0.28);
  --sans: "DM Sans", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--paper);
  background: #110c0e;
  font-family: var(--sans);
  overflow: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.stage {
  position: relative;
  width: 100%;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: #1a1215;
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.015);
  filter: saturate(.82) contrast(1.04);
  transition: opacity .42s ease, transform 1.1s cubic-bezier(.2,.75,.2,1);
  z-index: -3;
}
.portrait.is-loading { opacity: .24; transform: scale(1.045); }

.veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16,9,12,.8) 0%, rgba(16,9,12,.36) 44%, rgba(16,9,12,.06) 72%),
    linear-gradient(0deg, rgba(16,9,12,.72) 0%, transparent 46%, rgba(16,9,12,.28) 100%);
}
.veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  opacity: .15;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: .9;
  text-decoration: none;
  letter-spacing: -.055em;
}
.wordmark span, .gate-mark span { color: #ff416d; }
.edition {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.caption {
  position: absolute;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 94px));
  width: min(650px, calc(100% - 48px));
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.caption h1, .info-panel h2, .gate-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .9;
}
.caption h1 { font-size: clamp(50px, 9vw, 112px); }
.intro {
  max-width: 480px;
  margin: 20px 0 0;
  color: rgba(245,237,228,.82);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
}

.controls {
  position: absolute;
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
}
.shuffle, .info-button, .enter {
  min-height: 50px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.shuffle {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  color: #fff;
  background: var(--wine);
}
.shuffle:hover { background: #b9234b; }
.shuffle:active { transform: translateY(1px); }
.shuffle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
.info-button {
  padding: 0 18px;
  color: var(--paper);
  background: rgba(17,12,14,.36);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.info-button:hover { background: rgba(17,12,14,.62); }
.shuffle:focus-visible, .info-button:focus-visible, .enter:focus-visible, .leave:focus-visible, .close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.credit {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(39px, calc(env(safe-area-inset-bottom) + 15px));
  margin: 0;
  color: rgba(245,237,228,.65);
  font-size: 11px;
}

.info-panel {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  min-height: 100%;
  padding: 100px 40px 40px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: -30px 0 80px rgba(0,0,0,.26);
}
.info-panel[hidden] { display: none; }
.info-panel h2 { margin-bottom: 28px; font-size: clamp(54px, 7vw, 78px); }
.info-panel p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
.info-panel .fine { margin-top: 40px; color: #6f5e63; font-size: 12px !important; }
.close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(23,17,19,.2);
  color: var(--ink);
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(rgba(17,12,14,.74), rgba(17,12,14,.86)),
    url("https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=1600&q=70") center 30% / cover;
  backdrop-filter: blur(12px);
}
.age-gate.is-dismissed { display: none; }
.gate-card {
  width: min(560px, 100%);
  padding: clamp(28px, 6vw, 58px);
  background: var(--paper);
  box-shadow: 0 30px 120px rgba(0,0,0,.46);
}
.gate-mark {
  margin: 0 0 52px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.05em;
}
.gate-card h2 { font-size: clamp(60px, 10vw, 94px); }
.gate-card > p:not(.eyebrow):not(.gate-mark):not(.gate-fine) {
  max-width: 440px;
  margin: 26px 0 0;
  color: #5f5055;
  line-height: 1.65;
}
.gate-actions { display: grid; gap: 12px; margin-top: 34px; }
.enter { padding: 0 22px; color: #fff; background: var(--wine-deep); }
.enter:hover { background: var(--wine); }
.leave {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: #65555a;
  font-size: 13px;
}
.gate-fine { margin: 28px 0 0; color: #8e7c82; font-size: 11px; text-align: center; }
.noscript { position: fixed; inset: auto 0 0; z-index: 200; padding: 12px; color: #fff; background: #a31236; text-align: center; }

@media (max-width: 700px) {
  .veil { background: linear-gradient(0deg, rgba(16,9,12,.84) 0%, rgba(16,9,12,.14) 70%), linear-gradient(90deg, rgba(16,9,12,.42), transparent); }
  .portrait { object-position: center 25%; }
  .caption { bottom: max(118px, calc(env(safe-area-inset-bottom) + 104px)); }
  .caption h1 { font-size: clamp(48px, 15vw, 76px); }
  .intro { display: none; }
  .credit { display: none; }
  .controls { justify-content: space-between; }
  .shuffle { flex: 1; justify-content: space-between; }
  .info-panel { padding: 92px 28px 32px; }
  .site-header { padding-top: max(22px, env(safe-area-inset-top)); }
}

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