/* ─────────────────────────────────────────────────────────────
   Ben & Kara — reception dinner
   Light & airy theme
────────────────────────────────────────────────────────────── */

:root {
  --cream: #f6f1e8;
  --ink: #2c2a26;
  --muted: #7a7265;
  --gold: #b39a6b;
  --gold-light: #d6c093;
  --line: rgba(122, 114, 101, 0.2);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: linear-gradient(160deg, #33302a 0%, #4a443a 45%, #23201b 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ── Fixed background video (stays put while the frame scrolls) ── */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%,
    rgba(20, 17, 12, 0.20) 0%,
    rgba(20, 17, 12, 0.05) 55%,
    rgba(20, 17, 12, 0.32) 100%);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fdfbf7;
  padding: 2rem;
}

.hero__inner { will-change: opacity, transform; }

.hero__kicker {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.85);
  margin-bottom: 1.75rem;
}

.hero__names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.25rem, 10vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}

.hero__amp { font-style: italic; color: var(--gold-light); }

.hero__date {
  margin-top: 1.75rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.9);
}

.hero__cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: rgba(253, 251, 247, 0.25);
  overflow: hidden;
}

.hero__cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fdfbf7;
  animation: cue 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cue {
  0%   { top: -100%; }
  65%  { top: 100%; }
  100% { top: 100%; }
}

/* ── The frame (scrolls up over the fixed video) ─────────────── */
.frame {
  position: relative;
  z-index: 3;
}

/* ── Manhattan skyline — the top edge of the frame ─────────────
   The shape comes from assets/img/skyline.png.

   To use your own (Photoshop):
   1. New canvas 3000 × 400 px, transparent background.
   2. Draw the skyline silhouette in solid black — building
      tops along the top, and fill everything below the
      skyline line solid (no holes).
   3. Export as PNG-24 with transparency and save over
      assets/img/skyline.png.
   The cream color is applied here in CSS, so your silhouette
   only needs to be black — no color matching required.

   To make the edge taller or shorter, change the aspect-ratio
   below (currently 3000 : 400).
────────────────────────────────────────────────────────────── */
.frame__edge {
  width: 100%;
  aspect-ratio: 3000 / 400;
  min-height: 56px;
  background: var(--cream);
  -webkit-mask-image: url("../assets/img/skyline.png");
          mask-image: url("../assets/img/skyline.png");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

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

/* ── Alternating text / photo rows ───────────────────────────── */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7.5rem) clamp(1.5rem, 7vw, 6rem);
}

.row__text  { order: 1; }
.row__media { order: 2; }

.row--reverse .row__text  { order: 2; }
.row--reverse .row__media { order: 1; }

.row__kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.row h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.row p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
  max-width: 44ch;
}

.row p + p { margin-top: 1rem; }

.row__note {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* Photo with a thin offset frame behind it */
.row__media {
  position: relative;
  margin: 0;
}

.row__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  box-shadow: 0 40px 80px -40px rgba(44, 42, 38, 0.45);
}

.row__media::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(16px, 16px);
  border: 1px solid var(--gold);
  opacity: 0.55;
}

/* ── Lists ───────────────────────────────────────────────────── */
.detail-list {
  list-style: none;
  margin-top: 1.5rem;
}

.detail-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.4rem;
  color: var(--muted);
  font-weight: 300;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline {
  list-style: none;
  margin-top: 1.5rem;
}

.timeline li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:first-child { border-top: 1px solid var(--line); }

.timeline .time {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  min-width: 5.5rem;
}

.timeline .what {
  color: var(--muted);
  font-weight: 300;
}

.menu-list {
  list-style: none;
  margin-top: 1.5rem;
}

.menu-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-list li:first-child { border-top: 1px solid var(--line); }

.menu-list .course {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.menu-list .dish {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

/* ── Button ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.95rem 2.75rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem clamp(4rem, 9vw, 6.5rem);
}

.footer__names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
}

.footer__date {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Scroll reveals ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3.5rem 1.5rem;
  }

  .row__text,
  .row--reverse .row__text { order: 2; }

  .row__media,
  .row--reverse .row__media { order: 1; }

  .row__media::after { transform: translate(10px, 10px); }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cue::after { animation: none; }
}
