:root {
  --wine: #6e2430;
  --wine-deep: #4a1620;
  --ink: #1c1210;
  --cream: #f6f0e8;
  --amber: #e2a04a;
  --muted: #7d6c64;
  --line: #e6d9cc;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  color: var(--ink);
  background: var(--cream);
  font-family: Sora, "Segoe UI", sans-serif;
}

img { max-width: 100%; }

.cover {
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.photo-frame {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #1a0e10;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ticket {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  margin-top: -26px;
  padding: 28px 22px max(18px, env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(226, 160, 74, 0.16), transparent 46%),
    var(--cream);
}

.stamp {
  position: absolute;
  top: -24px;
  right: 22px;
  width: 52px;
  height: 52px;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--cream);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 26px rgba(40, 10, 16, 0.28);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 9.2vw, 58px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

h1 .last {
  color: var(--wine);
  font-style: italic;
}

.lede {
  max-width: 28ch;
  margin: 14px 0 0;
  color: #5c4d46;
  font-size: 15px;
  line-height: 1.45;
}

.join {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 3px 16px 3px 16px;
  background: var(--wine);
  color: #f8f1e7;
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.join svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.join:hover { background: #812b3a; }

.join:focus-visible,
button:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.quiet {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.story { background: var(--cream); }

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 13px 16px;
  background: var(--wine-deep);
  color: #f3d7a4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.band i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
}

.story-body {
  padding: 28px 22px calc(112px + env(safe-area-inset-bottom));
}

.kicker {
  margin: 0 0 6px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.index {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.index li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.index li:last-child { border-bottom: 1px solid var(--line); }

.index span {
  color: var(--amber);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.index strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 600;
}

.index p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

blockquote {
  margin: 28px 0 0;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--wine);
}

blockquote p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 6vw, 34px);
  font-style: italic;
  line-height: 1.15;
  color: var(--wine-deep);
}

.about {
  margin: 18px 0 0;
  color: #5c4d46;
  font-size: 14px;
  line-height: 1.55;
}

.foot { margin-top: 28px; }

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.foot button,
.foot nav a {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy,
.ads {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.ads a { color: var(--wine); }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 240, 232, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.dock.is-on { transform: translateY(0); }

.dock .join { margin-top: 0; }

.legal {
  width: min(440px, 100%);
  max-height: min(70dvh, 520px);
  margin: 0 auto;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--cream);
  color: var(--ink);
}

.legal::backdrop { background: rgba(20, 8, 10, 0.55); }

.legal h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

.legal p {
  margin: 0;
  color: #5c4d46;
  font-size: 15px;
  line-height: 1.5;
}

.legal-close {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  border: 0;
  border-radius: 3px 14px 3px 14px;
  background: var(--wine);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 959px) {
  .legal {
    position: fixed;
    inset: auto 0 0 0;
  }
}

@media (min-width: 960px) {
  body {
    display: grid;
    grid-template-columns: minmax(480px, 1.08fr) minmax(420px, 0.92fr);
    min-height: 100svh;
    background: var(--cream);
  }

  .cover {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
    background: var(--cream);
  }

  .ticket {
    flex: 1 1 auto;
  }

  .photo-frame {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .photo-frame img {
    position: absolute;
    inset: 0;
    object-fit: contain;
  }

  .story-body { padding: 36px 48px 40px; }

  .dock { display: none; }

  .legal {
    border-radius: 18px;
    margin: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
}
