:root {
  --sage: #adb29e;
  --sage-deep: #9aa089;
  --cream: #efe9da;
  --cream-card: #f3eee1;
  --beige-card: #e4d8be;
  --black: #121210;
  --ink: #1b1b18;
  --line: rgba(27, 27, 24, 0.45);
  /* content stays a centred ~430px column; section colours go full-width */
  --pad-x: max(24px, calc((100% - 430px) / 2));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* full-width sections, content centred via --pad-x */
.page {
  width: 100%;
  overflow-x: hidden;
}

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

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.section-title strong { font-weight: 900; }
.section-title--light { color: var(--cream); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--outline {
  background: var(--cream-card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--dark   { background: var(--black); color: var(--cream); }
.btn--cream  { background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); }
.btn--block  { display: block; width: 100%; }
.btn--dark:hover, .btn--cream:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* ===================== HERO ===================== */
.hero {
  background: var(--sage);
  padding: 30px var(--pad-x) 0;
  text-align: center;
}
.hero__mark {
  font-family: "Caveat", cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 0.5px;
}
.hero__mark span { display: block; margin-left: 36px; }

.hero__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin-top: 6px;
  border-bottom: 1.5px solid var(--cream);
}
.hero__name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--cream);
  padding-bottom: 22px;
  flex: 1;
  min-width: 0;
}
.hero__name--left  { text-align: left; }
.hero__name--right { text-align: right; }
.hero__couple {
  width: 120px;
  flex: 0 0 auto;
  margin-bottom: -1.5px;   /* sit on the divider */
}

/* feather the JPEG edges so the sage background blends seamlessly */
.hero__couple, .recs__couple {
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* ===================== LOCATION ===================== */
.location {
  background: var(--cream);
  padding: 34px var(--pad-x) 44px;
  text-align: center;
}
.location .section-title {
  font-size: 2.3rem;
  text-align: right;
  line-height: 1;
}
.location__place {
  text-align: right;
  font-size: 1rem;
  font-weight: 500;
  color: #4a4a42;
  margin: 4px 0 22px;
}
.map {
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid rgba(27,27,24,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  margin-bottom: 18px;
  aspect-ratio: 16 / 10;
}
.map iframe { width: 100%; height: 100%; border: 0; }

.card {
  border-radius: 22px;
  padding: 22px 24px;
  margin: 22px 0;
  text-align: center;
}
.card--time { background: var(--cream-card); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.card--time h3 {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.card--time__hours { font-size: 0.95rem; color: #4a4a42; }
.card--time__date {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 5px;
  margin-top: 4px;
}
.location__hint {
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  color: #4a4a42;
  margin: 14px 0 0;
}
.card--folder { background: var(--beige-card); }
.card--folder p { font-size: 0.95rem; margin-bottom: 16px; }

/* ===================== LOTTERY ===================== */
.lottery {
  background: #000;
  color: var(--cream);
  padding: 40px var(--pad-x) 48px;
}
.lottery__head { text-align: right; }
.lottery__head .section-title { font-size: 2.5rem; }
.lottery__sub { color: #cfcabb; font-weight: 500; margin-top: 2px; }

.lottery__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.lottery__machine { width: 100%; filter: invert(0); }
.lottery__arrow {
  display: none;
}
.lottery__cta { text-align: center; }
.lottery__caption { font-size: 0.78rem; color: #cfcabb; margin-top: 8px; }
.lottery__ticket {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--cream);
}
.lottery__ticket strong {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

/* ===================== RECOMMENDATIONS ===================== */
.recs {
  background: var(--sage);
  padding: 38px var(--pad-x) 50px;
  text-align: center;
  color: var(--cream);
}
.recs .section-title {
  color: var(--cream);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.recs__couple { width: 200px; margin: 4px auto 10px; }

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.carousel__arrow {
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  width: 70px;
}
.carousel__chev { font-size: 2rem; line-height: 1; }
.carousel__label { font-family: "Caveat", cursive; font-size: 1.1rem; }
.carousel__arrow:hover .carousel__chev { transform: scale(1.2); }
.carousel__chev { transition: transform 0.15s ease; }

.carousel__stage {
  position: relative;
  width: 180px;
  height: 180px;
  flex: 0 0 auto;
  perspective: 800px;
}
.carousel__card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 0;
  transform: rotateY(90deg);
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
}
.carousel__card.is-active {
  opacity: 1;
  transform: rotateY(0deg);
  pointer-events: auto;
}
.carousel__hint {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  margin-top: 14px;
  color: var(--cream);
}

.recs__outro { margin-top: 32px; }
.recs__welcome {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--cream);
}
.recs__signature {
  font-family: "Playfair Display", serif;
  letter-spacing: 6px;
  font-size: 0.95rem;
  margin: 6px 0 20px;
  color: #f1ecdd;
}

@media (max-width: 360px) {
  .carousel__arrow { width: 54px; }
  .carousel__stage { width: 150px; height: 150px; }
  .location .section-title { font-size: 2.2rem; }
}

/* ---------- Web / desktop: wider column + larger everything ---------- */
@media (min-width: 768px) {
  :root { --pad-x: max(24px, calc((100% - 640px) / 2)); }
  html { font-size: 19px; }

  .hero { padding-top: 48px; }
  .hero__couple  { width: 180px; }

  .location { padding-top: 56px; padding-bottom: 64px; }
  .map { aspect-ratio: 16 / 9; }

  .lottery { padding-top: 60px; padding-bottom: 68px; }

  .recs { padding-top: 56px; padding-bottom: 72px; }
  .recs__couple { width: 300px; }
  .carousel { gap: 18px; }
  .carousel__arrow { width: 120px; }
  .carousel__stage { width: 280px; height: 280px; }
  .carousel__chev { font-size: 2.6rem; }
}

@media (min-width: 1100px) {
  :root { --pad-x: max(24px, calc((100% - 720px) / 2)); }
  html { font-size: 20px; }
  .carousel__stage { width: 320px; height: 320px; }
}
