/* Color system */
:root {
  --emerald-900: #0f5132; /* deep emerald */
  --emerald-700: #146c43;
  --emerald-100: #d1e7dd;
  --gold-500: #c6a44b; /* warm gold */
  --gold-600: #b89237;
  --gold-200: #efe3b8;
  --white: #ffffff;
  --offwhite: #f8faf7;
  --ink: #1a1f1d;
  --muted: #6c7a73;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 0 0 1px rgba(198, 164, 75, 0.2);
}

/* Reset & base */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
}

/* Layout: static background + centered scroll panel */
.layout {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 0;
  position: relative;
}

.layout::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?q=80&w=2400&auto=format&fit=crop') center/cover no-repeat fixed;
  z-index: 0;
  pointer-events: none;
}

.scroll-viewport {
  width: 72vw;
  height: 100dvh;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.92)
    );
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  border: 1px solid rgba(198, 164, 75, 0.25);
  position: relative;
  z-index: 1;
}

/* Decorative edge frame to emphasize static sides */
.layout::after {
  content: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--emerald-900);
  line-height: 1.2;
  margin: 0 0 0.6rem 0;
}

p { margin: 0 0 1rem 0; }

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2rem);
  background: url('img/proposal-small.png') center/cover no-repeat;
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,81,50,0.55), rgba(15,81,50,0.85));
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; text-align: center; }
.hero__personal { color: var(--gold-200); margin: 0 0 0.35rem; letter-spacing: 0.12em; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--gold-200); letter-spacing: 0.02em; }
.hero__date { color: var(--offwhite); font-weight: 300; font-size: 1.1rem; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.92));
  border-bottom: 1px solid rgba(198, 164, 75, 0.25);
}
.nav__list { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; list-style: none; margin: 0; padding: 0.6rem 1rem; }
.nav__link {
  display: inline-block;
  padding: 0.45rem 0.2rem;
  color: var(--emerald-900);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav__link[aria-current="page"], .nav__link.is-active { border-bottom-color: var(--gold-500); color: var(--emerald-700); }
.nav__cta { margin-left: auto; }

/* Content */
.content { padding: 1.25rem; }
.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section__header { text-align: center; margin-bottom: 1.5rem; }
.section__underline { width: 80px; height: 2px; margin: 0.5rem auto 0; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); }

/* Cards */
.cards, .details { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.cards > .card, .details > .card { grid-column: span 12; background: var(--white); border-radius: calc(var(--radius) - 4px); padding: 1rem 1rem; border: 1px solid rgba(198,164,75,0.25); box-shadow: 0 1px 0 rgba(198,164,75,0.15); }
@media (min-width: 680px) { .details > .card { grid-column: span 4; } .cards > .card { grid-column: span 4; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 90px 20px 1fr; gap: 0.75rem; align-items: start; padding: 0.5rem 0; }
.timeline__time { color: var(--gold-600); font-weight: 600; }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); margin: 0.4rem auto; box-shadow: 0 0 0 6px rgba(198,164,75,0.15); }
.timeline__content h4 { margin: 0 0 0.15rem 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.gallery img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(198,164,75,0.25); }
.gallery img:nth-child(1) { grid-column: span 6; }
.gallery img:nth-child(2) { grid-column: span 6; }
.gallery img:nth-child(3) { grid-column: span 4; }
.gallery img:nth-child(4) { grid-column: span 4; }
.gallery img:nth-child(5) { grid-column: span 4; }
@media (min-width: 820px) {
  .gallery img { height: 220px; }
}

/* RSVP form */
.rsvp-form { max-width: 700px; margin: 0 auto; }
.form__row { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
label { font-weight: 600; color: var(--emerald-900); }
input, select, textarea { font: inherit; padding: 0.7rem 0.8rem; border-radius: 10px; border: 1px solid rgba(15,81,50,0.25); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(198,164,75,0.2); }
.form__actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

/* Registry */
.registry { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.registry__item { display: inline-block; padding: 0.7rem 1rem; border: 1px dashed rgba(198,164,75,0.5); border-radius: 999px; color: var(--emerald-900); text-decoration: none; }
.registry__item[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }

/* Footer */
.footer { text-align: center; color: var(--muted); padding: 1.5rem 0 2rem; }

/* Buttons */
.btn { display: inline-block; cursor: pointer; border-radius: 999px; padding: 0.75rem 1.1rem; text-decoration: none; border: 1px solid transparent; transition: transform .06s ease, box-shadow .2s ease, background .2s ease; }
.btn--primary { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #1f1a00; border-color: rgba(184,146,55,0.6); box-shadow: 0 4px 14px rgba(184,146,55,0.25); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184,146,55,0.3); }
.btn--outline { background: transparent; color: var(--emerald-900); border-color: rgba(15,81,50,0.35); }
.btn--small { padding: 0.45rem 0.75rem; font-size: 0.95rem; }

/* Utilities */
.section--details .card h3,
.section--travel .card h3 { color: var(--emerald-700); }

/* Slides (journey pages) */
.section--slide { padding: 2rem 1rem; }
.slide { max-width: min(900px, 88%); margin: 0 auto; display: grid; gap: 1rem; justify-items: center; text-align: center; }
.slide__title { font-size: clamp(2rem, 6vw, 3.2rem); color: var(--emerald-900); letter-spacing: 0.01em; }
.slide__figure { margin: 0; }
.slide__image { width: min(720px, 90%); max-height: 62vh; object-fit: cover; background: transparent; border-radius: 16px; border: 1px solid rgba(198,164,75,0.35); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.slide__caption { color: var(--muted); font-size: 0.95rem; }

/* Embedded page (flipbook) */
.section--embed { padding: 0; }
.embed-wrapper { position: relative; width: 100%; height: 100%; min-height: 100dvh; }
.embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000; /* heyzine has its own background; black prevents white flashes */
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .nav__list { gap: 0.3rem 0.7rem; }
  .timeline li { grid-template-columns: 70px 20px 1fr; }
}

/* Make scroll panel wider on small screens for readability */
@media (max-width: 760px) {
  .scroll-viewport { width: 96vw; }
}


