/* White Garden — wedding invitation theme. Mobile-first, white base, gold accent. */

:root {
  /* Palette: White + Dusty Rose. --gold/--gold-deep hold the accent (name kept to avoid churn). */
  --white: #ffffff;
  --cream: #fbf7f6;
  --cream-2: #f3e9e7;
  --ink: #40383a;
  --ink-soft: #6b6065;
  --gold: #c48b8b;
  --gold-deep: #a86e6e;
  --sage: #9caf88;
  --line: #ecdcd9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', 'Cormorant Garamond', cursive;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --shadow: 0 18px 50px -24px rgba(61, 58, 52, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px base — easier reading on mobile */
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Tidy line breaks on headings/names (graceful fallback where unsupported). */
.hero-and, .section-title, .couple-name, .footer-names, .invite-text, .picker-script { text-wrap: balance; }

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

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(640px, 100% - 2.5rem); }

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }

/* ---------- shared type ---------- */
.script-accent {
  font-family: var(--script);
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--gold-deep);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1.2rem;
}
.script-accent.light { color: #f7e6e6; text-shadow: 0 2px 18px rgba(0,0,0,.35); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-align: center;
  margin: 0 0 2.6rem;
  color: var(--ink);
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: .9rem auto 0;
}

.flourish {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: .4rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  background: var(--hero) center 22%/cover no-repeat, var(--cream-2);
  background-attachment: scroll;
  isolation: isolate;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(125% 75% at 50% 78%, rgba(255,255,255,.30), rgba(255,255,255,.74) 72%),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.10) 45%, rgba(250,248,245,.96) 100%);
}
.hero-inner { padding: 2rem 1.5rem; max-width: 90%; text-shadow: 0 1px 22px rgba(255,255,255,.85); }
.hero-eyebrow {
  font-family: var(--sans); letter-spacing: .42em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold-deep); margin: 0 0 1.4rem;
}
.hero-and {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 9vw, 4.6rem); line-height: 1.05; margin: 0; color: var(--ink);
}
.hero-amp {
  font-family: var(--script); color: var(--gold);
  font-size: clamp(2rem, 7vw, 3.4rem); margin: .1rem 0; font-weight: 600;
}
.hero-date {
  font-family: var(--serif); letter-spacing: .12em; font-weight: 600;
  font-size: clamp(1.3rem, 4.5vw, 2rem); margin: 1.6rem 0 .4rem;
  padding-top: 1.4rem; border-top: 1px solid var(--line); display: inline-block;
}
.hero-sub { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); letter-spacing: .03em; margin: 0; }

.scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid var(--gold); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 2px;
  background: var(--gold); transform: translateX(-50%);
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* ---------- invite ---------- */
.invite { background: var(--white); text-align: center; }
.invite-text { font-family: var(--serif); font-size: clamp(1.15rem, 3.5vw, 1.5rem); color: var(--ink-soft); margin: 0; }

/* ---------- families ---------- */
.families-section { background: var(--cream); }
.families { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }
.family { flex: 1 1 240px; text-align: center; padding: 1rem; }
.family-label {
  font-family: var(--script); color: var(--gold-deep); font-size: 1.9rem; font-weight: 600; margin: 0 0 .4rem;
}
.family-host { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 .3rem; }
.family-addr { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.family-divider { width: 1px; align-self: stretch; min-height: 70px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent); }

/* ---------- couple ---------- */
.couple { background: var(--white); }
.couple-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.couple-photo { margin: 0; border-radius: 200px 200px 12px 12px; overflow: hidden; box-shadow: var(--shadow); }
.couple-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.couple-copy { text-align: center; }
.couple-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0; }
.couple-role { color: var(--gold-deep); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; margin: .3rem 0 0; }
.couple-heart { color: var(--gold); font-size: 1.6rem; margin: 1.1rem 0; }
@media (min-width: 760px) {
  .couple-grid { grid-template-columns: 1fr 1fr; }
  .couple-photo { max-width: 420px; margin-inline: auto; }
}

/* ---------- countdown ---------- */
.countdown-section {
  position: relative; text-align: center; isolation: isolate;
  background: var(--cd) center/cover fixed no-repeat, var(--ink);
}
.cd-veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40,37,32,.62), rgba(40,37,32,.78)); }
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.6rem, 3vw, 1.6rem); }
.cd-cell {
  background: rgba(255,255,255,.12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
  padding: 1.1rem clamp(.7rem, 3vw, 1.6rem); min-width: 76px; color: #fff;
}
.cd-num { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1; }
.cd-lbl { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .5rem; opacity: .9; }

/* ---------- events ---------- */
.events-section { background: var(--cream); }
.events { display: grid; gap: 1.5rem; }
.event-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 2.2rem 1.6rem; text-align: center; box-shadow: var(--shadow);
}
.event-title { font-family: var(--script); color: var(--gold-deep); font-size: 1.9rem; font-weight: 600; margin: 0 0 .4rem; }
.event-time { font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 600; line-height: 1; margin: 0; }
.event-note { color: var(--ink-soft); font-size: .92rem; margin: .3rem 0 1.2rem; }
.event-venue { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0; }
.event-addr { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin: .3rem 0 1.4rem; }
.maps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; /* comfortable tap target */
  background: var(--gold); color: #fff; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  letter-spacing: .02em; transition: background .25s ease, transform .25s ease;
}
.maps-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
.maps-btn--disabled { background: var(--cream-2); color: var(--ink-soft); cursor: default; pointer-events: none; }
@media (min-width: 720px) { .events { grid-template-columns: 1fr 1fr; } }

/* ---------- album ---------- */
.album-section { background: var(--white); }
.album { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.album-item { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.album-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .6s ease; }
.album-item:hover img { transform: scale(1.05); }
@media (min-width: 640px) { .album { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.footer { background: var(--cream-2); text-align: center; padding: clamp(3rem, 8vw, 5rem) 1.5rem; }
.seal { font-family: var(--serif); color: var(--gold-deep); font-size: 3.2rem; line-height: 1; }
.footer-names { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 5vw, 2rem); margin: 1rem 0 .2rem; }
.footer-date { color: var(--ink-soft); letter-spacing: .1em; font-size: .9rem; margin: 0 0 1.2rem; }
.footer-thanks { font-family: var(--script); color: var(--gold-deep); font-size: 1.5rem; margin: 0; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.album-item.reveal { transition-delay: calc(var(--i) * .12s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .countdown-section, .hero { background-attachment: scroll; }
}
