@font-face {
  font-family: "Cormorant Garamond Wedding";
  src: url("/assets/fonts/cormorant-garamond-regular-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Cormorant Garamond Wedding";
  src: url("/assets/fonts/cormorant-garamond-italic-subset.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "LXGW WenKai Wedding";
  src: url("/assets/fonts/lxgw-wenkai-wedding.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #edf1ea;
  --paper-warm: #fbf7f4;
  --wine: #8f3e46;
  --wine-dark: #6e2931;
  --wine-soft: #b87b80;
  --line: rgb(143 62 70 / 26%);
  --shadow: 0 18px 50px rgb(68 43 39 / 12%);
  --hand-cn: "LXGW WenKai Wedding", "Kaiti SC", "STKaiti", "Songti SC", serif;
  --french-serif: "Cormorant Garamond Wedding", "Baskerville", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #e8e3de; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--wine);
  background: radial-gradient(circle at 50% 0, rgb(255 255 255 / 88%), transparent 46rem), #e8e3de;
  font-family: var(--hand-cn);
  -webkit-font-smoothing: antialiased;
}

.invitation {
  position: relative;
  width: min(100%, 640px);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("/assets/paper-pattern.svg");
  background-size: 180px 180px;
  box-shadow: var(--shadow);
}

.hero, .film-section, .details { position: relative; isolation: isolate; }
.hero {
  padding: clamp(54px, 13vw, 84px) 7% clamp(50px, 11vw, 72px);
  text-align: center;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto -19% -9% 38%;
  height: 42%;
  border: 1px solid rgb(143 62 70 / 8%);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}
.hero__flourish {
  position: absolute;
  top: 19%;
  width: 58px;
  height: 118px;
  border-top: 1px solid var(--line);
  opacity: 0.7;
}
.hero__flourish--left { left: -20px; border-radius: 0 100% 0 0; transform: rotate(14deg); }
.hero__flourish--right { right: -20px; border-radius: 100% 0 0; transform: rotate(-14deg); }
.hero__heading { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine-soft);
  font-family: var(--french-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 7px;
  color: var(--wine-dark);
  font-size: clamp(29px, 7.5vw, 44px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.invitation-word {
  margin: 0;
  color: var(--wine-dark);
  font-family: var(--french-serif);
  font-size: clamp(24px, 6.4vw, 36px);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.couple-art {
  display: block;
  width: min(78%, 410px);
  height: auto;
  margin: clamp(18px, 4vw, 28px) auto 4px;
  object-fit: contain;
}

.hero__copy {
  margin-top: 8px;
  color: var(--wine-soft);
  font-size: clamp(13px, 3.55vw, 19px);
  letter-spacing: 0.03em;
  line-height: 1.45;
}
.hero__copy p { margin-bottom: 5px; }
.names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(14px, 4vw, 28px);
  margin-top: clamp(35px, 9vw, 58px);
  color: var(--wine-dark);
  font-size: clamp(17px, 4.5vw, 25px);
  font-weight: 400;
  white-space: nowrap;
}
.names span:first-child { text-align: right; }
.names span:last-child { text-align: left; }
.names small { margin-right: 4px; font-size: 0.72em; font-weight: 400; }
.names__heart { color: #a51f2c; font-family: var(--french-serif); font-size: 1.5em; line-height: 1; }

.film-section {
  padding: clamp(50px, 12vw, 76px) 0 clamp(66px, 14vw, 88px);
  text-align: center;
  background: rgb(255 255 255 / 14%);
  border-block: 1px solid rgb(143 62 70 / 9%);
}
.film-section h2, .details h2 {
  margin-bottom: 18px;
  color: var(--wine-dark);
  font-size: clamp(23px, 6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.section-mark {
  display: flex;
  width: 92px;
  align-items: center;
  gap: 7px;
  margin: 0 auto 22px;
  color: var(--wine-soft);
}
.section-mark span { height: 1px; flex: 1; background: currentColor; opacity: 0.55; }
.section-mark i { font-size: 9px; font-style: normal; }
.section-mark--wide { width: min(68%, 330px); margin-bottom: 20px; }

.film-frame {
  width: 80%;
  margin-inline: auto;
  padding: clamp(7px, 1.8vw, 11px);
  background: #050505;
  border: 1px solid rgb(143 62 70 / 55%);
  box-shadow: 0 18px 38px rgb(46 31 28 / 22%), 0 0 0 4px rgb(255 255 255 / 26%);
}
.film {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #000;
  object-fit: contain;
}

.details {
  min-height: 640px;
  padding: clamp(72px, 17vw, 108px) 8% clamp(68px, 16vw, 100px);
  text-align: center;
  background-color: var(--paper-warm);
  background-image: radial-gradient(circle at 50% 0, rgb(237 241 234 / 76%), transparent 48%), url("/assets/paper-pattern.svg");
  background-size: auto, 180px 180px;
}
.details__ornament { margin-bottom: 13px; color: var(--wine-soft); font-size: 22px; transform: rotate(90deg); }
.details time {
  display: block;
  margin-bottom: clamp(38px, 9vw, 58px);
  color: var(--wine);
  font-family: var(--french-serif);
  font-size: clamp(27px, 7vw, 40px);
  font-style: italic;
  letter-spacing: 0.04em;
}
.details address {
  display: grid;
  gap: 5px;
  color: var(--wine);
  font-size: clamp(15px, 4vw, 22px);
  font-style: normal;
  letter-spacing: 0.025em;
}
.details address strong { font-weight: 500; }
.details address span { color: var(--wine-soft); font-size: 0.8em; }
.closing {
  margin-top: clamp(54px, 13vw, 82px);
  color: var(--wine-soft);
  font-size: clamp(14px, 3.7vw, 20px);
  letter-spacing: 0.025em;
  line-height: 1.8;
}
.closing__en { margin-bottom: 10px; font-family: var(--french-serif); font-size: clamp(18px, 4.8vw, 27px); font-style: italic; letter-spacing: 0.025em; }
.details__heart { margin-top: 42px; color: var(--wine); font-size: 18px; }

@media (min-width: 641px) {
  body { padding-block: 28px; }
  .invitation { border-radius: 2px; }
}
@media (max-width: 359px) {
  .hero { padding-inline: 5%; }
  .names { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
