
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500&family=Noto+Serif+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --ivory: #fcf7ef;
  --warm-paper: #f3e9d8;
  --cream: #eadbc1;
  --gold: #a9864e;
  --gold-soft: #c9ae78;
  --sage: #76816a;
  --ink: #5b4b39;
  --turquoise: #236e6b;
  --line: rgba(169, 134, 78, .35);
  --glass: rgba(252, 247, 239, .74);
  --shadow: 0 18px 45px rgba(91, 75, 57, .10);
  --display: "Noto Serif Display", Georgia, serif;
  --body: "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.65;
  padding-bottom: 160px;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle at 18% 10%, rgba(169,134,78,.14) 0 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 20;
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.page { position: relative; isolation: isolate; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px 20px 64px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -7%;
  background: url("assets/hero-mobile.webp") center top / cover no-repeat;
  background-attachment: scroll;
  transform: scale(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(252,247,239,.12), rgba(252,247,239,.17) 48%, rgba(252,247,239,.48)),
    radial-gradient(ellipse at 51% 32%, rgba(252,247,239,.78), rgba(252,247,239,.12) 56%, transparent 72%);
}
.hero-content {
  z-index: 1;
  width: min(100%, 362px);
  margin-top: clamp(-40px, -7svh, -10px);
  margin-left: auto;
  margin-right: auto;
}
.occasion {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: .12em;
}
.occasion::before, .occasion::after {
  content: "";
  height: 1px;
  width: 34px;
  background: var(--line);
}
.names {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  font-size: clamp(50px, 15vw, 68px);
  line-height: 1.04;
  color: #6a5239;
  text-shadow: 0 2px 14px rgba(252,247,239,.55);
}
.names.duo {
  font-size: clamp(41px, 12.5vw, 57px);
}
.name-line { display: block; min-height: 1.08em; }
.name-join {
  display: block;
  margin: 9px auto 4px;
  color: var(--gold);
  font-size: .55em;
  line-height: 1;
}
.reveal-char {
  opacity: 0;
  transform: translateY(12px);
  display: inline-block;
  transition: opacity .55s ease, transform .55s ease;
}
.hero.is-ready .reveal-char { opacity: 1; transform: translateY(0); }
.hero-divider {
  margin: 27px auto 18px;
  width: 106px;
  height: 26px;
  color: var(--gold-soft);
}
.event-date {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .06em;
  margin: 0;
  color: var(--ink);
}
.event-time {
  margin: 6px 0 0;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .28em;
}
.scroll-cue {
  position: absolute;
  bottom: 23px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .28em;
  z-index: 2;
  opacity: .8;
}
.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 29px;
  margin: 10px auto 0;
  background: linear-gradient(var(--gold-soft), transparent);
}

.content {
  position: relative;
  padding: 44px 18px 36px;
  max-width: 480px;
  margin: 0 auto;
}
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 56px;
  width: 1px;
  background: linear-gradient(transparent, var(--line));
}
.section {
  margin: 0 auto 30px;
  padding: 30px 22px;
  border-radius: 3px;
  background: var(--glass);
  border: 1px solid rgba(201,174,120,.30);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  margin: 0 0 21px;
  font: italic 400 27px/1.2 var(--display);
  text-align: center;
}
.section-heading::before, .section-heading::after {
  content: "";
  height: 1px;
  width: 26px;
  background: var(--line);
}
.invitation {
  padding-top: 36px;
  text-align: center;
}
.invitation-mark {
  font: italic 400 62px/0.45 var(--display);
  color: var(--gold-soft);
  height: 26px;
}
.invitation-text {
  white-space: pre-line;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.8;
  margin: 12px 0 0;
  color: #695846;
}
.photo-frame {
  padding: 10px;
  background: #fffaf2;
  border: 1px solid var(--line);
  position: relative;
}
.photo-frame::before, .photo-frame::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold-soft);
  pointer-events: none;
}
.photo-frame::before {
  top: 4px; left: 4px;
  border-top: 1px solid var(--gold-soft);
  border-left: 1px solid var(--gold-soft);
}
.photo-frame::after {
  bottom: 4px; right: 4px;
  border-right: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.photo-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  object-position: center 35%;
}
.hosts { text-align: center; }
.host-name {
  margin: 5px 0;
  font: italic 400 28px/1.35 var(--display);
  color: #685440;
}
.timeline {
  list-style: none;
  padding: 2px 0 0 22px;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  position: relative;
  padding: 0 0 24px 9px;
  transition: color .5s ease;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 8px;
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  transition: transform .45s ease, background-color .45s ease, box-shadow .45s ease;
}
.timeline-item.is-active::before {
  transform: scale(1.32);
  background: var(--gold-soft);
  box-shadow: 0 0 0 5px rgba(201,174,120,.17);
}
.time {
  color: var(--gold);
  letter-spacing: .08em;
  font-weight: 400;
  font-size: 14px;
}
.activity { font: 400 17px/1.55 var(--display); }
.venue { text-align: center; }
.venue-hall {
  font: italic 400 30px/1.25 var(--display);
  margin: 0 0 9px;
  color: #685440;
}
.venue-address {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 48px;
  padding: 10px 25px;
  border: 1px solid var(--gold-soft);
  background: rgba(252,247,239,.6);
  color: var(--gold);
  letter-spacing: .1em;
  font-size: 12px;
  transition: background .28s ease, transform .28s ease;
}
.map-btn:hover { background: rgba(234,219,193,.55); transform: translateY(-1px); }
.footer-ornament {
  display: block;
  margin: 37px auto 0;
  width: 138px;
  color: var(--gold-soft);
}

.music {
  position: fixed;
  z-index: 30;
  bottom: 25px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 7px 14px 7px 7px;
  border: 1px solid rgba(169,134,78,.36);
  background: rgba(252,247,239,.91);
  border-radius: 999px;
  box-shadow: 0 9px 23px rgba(91,75,57,.12);
  backdrop-filter: blur(7px);
}
.music-btn {
  width: 37px; height: 37px; border: 0; border-radius: 50%;
  color: var(--gold); background: rgba(234,219,193,.6);
  display: grid; place-items: center; cursor: pointer;
}
.music-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; max-width: 180px; letter-spacing: .04em;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (min-width: 600px) {
  .hero-bg {
    background-image: url("assets/hero-desktop.webp");
    background-position: center center;
  }
  .hero-bg { background-attachment: fixed; }
  .hero-content { margin-left: auto; margin-right: auto; width: min(38vw, 410px); }
  .content { max-width: 470px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .reveal, .reveal-char { opacity: 1; transform: none; }
  .hero-bg { transform: scale(1.05); }
}


/* Fixed full-page background: it remains stationary while page content scrolls. */
.page { position: relative; isolation: isolate; }
.fixed-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("assets/hero-mobile.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.fixed-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(252,247,239,.12), rgba(252,247,239,.17) 48%, rgba(252,247,239,.45)),
    radial-gradient(ellipse at 51% 32%, rgba(252,247,239,.72), rgba(252,247,239,.10) 56%, transparent 72%);
}
.hero { background: transparent; }
.hero-bg { display: none !important; }
.hero-content {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center;
}
.static-ceremony-photo { display: block !important; }
@media (min-width: 600px) {
  .fixed-background {
    background-image: url("assets/hero-desktop.webp");
    background-position: center center;
  }
  .hero-content { width: min(38vw, 410px); }
}
