:root {
  --bg: #f6f1e8;
  --paper: #fbf8f1;
  --text: #3b302b;
  --accent: #a27b42;
  --line: rgba(122, 91, 55, .24);
  --section-space: clamp(7rem, 14vw, 11rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #ddd4c7; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
main { max-width: 1120px; margin: auto; overflow: hidden; box-shadow: 0 0 80px rgba(73, 55, 38, .07); }
[hidden] { display: none !important; }

.hero { height: 100svh; min-height: 640px; position: relative; display: grid; place-items: center; color: #fffaf0; isolation: isolate; overflow: hidden; }
.hero-slides, .hero-photo { position: absolute; inset: 0; }
.hero-slides { z-index: -3; overflow: hidden; background: radial-gradient(circle at 70% 30%, rgba(247,233,202,.56), transparent 22%), linear-gradient(135deg,#493229,#b1916e 45%,#66483b 75%,#2d211e); }
.hero-photo { opacity: 0; background-position: center; background-size: cover; transform: scale(1.03); transition: opacity 800ms ease; }
.hero-photo.active { opacity: 1; animation: hero-zoom 6s ease-out forwards; }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(rgba(24,16,13,.25),rgba(24,16,13,.08) 45%,rgba(24,16,13,.56)); }
.hero-content { text-align: center; padding: 2rem; opacity: 0; transform: translateY(12px); transition: opacity 1.4s .2s, transform 1.4s .2s; }
.loaded .hero-content { opacity: 1; transform: none; }
.eyebrow, .kicker { margin: 0 0 1.25rem; color: var(--accent); text-transform: uppercase; letter-spacing: .32em; font: 500 .68rem/1.4 Baskerville, "Times New Roman", serif; }
.hero .eyebrow { color: inherit; }
.hero h1, .closing h2 { margin: 0; font: 400 clamp(4.7rem,15vw,8.7rem)/.85 "Snell Roundhand", "Apple Chancery", cursive; }
.hero-subtitle { text-transform: uppercase; letter-spacing: .2em; font: .78rem/1.5 Baskerville, "Times New Roman", serif; }
.rule { width: 118px; height: 1px; margin: 2rem auto; position: relative; background: rgba(255,255,255,.44); }
.rule span { position: absolute; width: 5px; height: 5px; border: 1px solid #fff; transform: rotate(45deg); top: -2px; left: calc(50% - 2px); }
.couple { margin: 0; letter-spacing: .16em; font: 500 1rem Baskerville, "Times New Roman", serif; }
.date { letter-spacing: .24em; font: .68rem Baskerville, "Times New Roman", serif; }
.scroll-cue { position: absolute; bottom: 1.8rem; color: inherit; text-decoration: none; display: flex; align-items: center; flex-direction: column; gap: .6rem; letter-spacing: .25em; text-transform: uppercase; font: .55rem Baskerville, "Times New Roman", serif; }
.scroll-cue i { height: 36px; width: 1px; background: rgba(255,255,255,.67); animation: scroll-pulse 2s infinite; }

.section { padding: var(--section-space) clamp(1.5rem,7vw,5rem); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s, transform 1s; }
.reveal.visible { opacity: 1; transform: none; }
h2 { margin: 0; font-weight: 400; font-size: clamp(1.5rem,5vw,2.4rem); line-height: 1.6; letter-spacing: .09em; }
.thanks, .closed { text-align: center; max-width: 760px; margin: auto; }
.ornament { color: var(--accent); margin: 2.2rem; }
.message, .closed > p:last-child { line-height: 2.45; letter-spacing: .06em; }
.message p { margin: 0 0 1.8rem; }
.closed > p:last-child { margin: 2rem 0 0; }

.gallery { padding-left: 0; padding-right: 0; background: var(--paper); }
.section-heading { text-align: center; padding: 0 1.5rem 5rem; }
.section-heading > p:last-child { font-size: .8rem; color: #75665e; }
.gallery-list { display: grid; gap: clamp(4.5rem,12vw,8rem); }
.gallery-item { margin: 0; }
.gallery-photo { height: clamp(380px,72vw,680px); display: grid; place-items: center; background-position: center; background-size: cover; }
.gallery-photo span { color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.6); padding: .8rem 1.2rem; text-transform: uppercase; letter-spacing: .25em; font: .62rem Baskerville, "Times New Roman", serif; }
.gallery-tone-1 { background-image: radial-gradient(circle at 60% 30%,#ead7b8,transparent 27%),linear-gradient(135deg,#61483d,#c6aa83 45%,#40312d); }
.gallery-tone-2 { background-image: radial-gradient(circle at 30% 45%,rgba(255,235,203,.67),transparent 24%),linear-gradient(35deg,#47352f,#9f8268 35%,#d5c2a3); }
.gallery-tone-3 { background-image: linear-gradient(165deg,#2f3530,#71806f 31%,#d0b893 56%,#6d4e3d); }
.gallery-tone-4 { background-image: radial-gradient(circle at 68% 38%,#dfc7a0,transparent 25%),linear-gradient(145deg,#4f3b34,#a47c62 48%,#342a27); }
.gallery-tone-5 { background-image: linear-gradient(35deg,#303831,#82917c 36%,#d7c39f 65%,#574139); }
figcaption { max-width: 750px; margin: 1.2rem auto; padding: 0 1.5rem; color: #77665c; font: italic .85rem Baskerville, "Times New Roman", serif; }
figcaption b { color: var(--accent); margin-right: 1rem; font-size: .66rem; letter-spacing: .2em; }
.gallery-item-2 { width: 82%; margin-left: auto; }
.gallery-item-3 { width: 90%; }
.gallery-item-3 figcaption { text-align: right; }
.gallery-item-4 { width: 84%; margin-left: auto; }
.gallery-item-5 { width: 92%; }

.upload { background: #5a4439; color: #fcf8ef; text-align: center; position: relative; }
.upload::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(224,199,157,.3); pointer-events: none; }
.upload-frame { max-width: 660px; margin: auto; position: relative; }
.camera { width: 46px; height: 35px; border: 1px solid #caa875; border-radius: 3px; margin: 0 auto 2rem; position: relative; }
.camera i { width: 15px; height: 15px; border: 1px solid #caa875; border-radius: 50%; position: absolute; left: 14px; top: 9px; }
.upload .kicker { color: #d8bb8c; }
.upload-body { line-height: 2.1; margin: 2rem auto 1rem; }
.upload-note { font-size: .78rem; color: #d9cfc7; }
.upload-button { width: min(100%,430px); margin: 2.5rem auto 1rem; padding: 1.2rem 1.4rem; background: #f6f0e5; color: #4b392f; text-decoration: none; display: flex; justify-content: space-between; letter-spacing: .08em; transition: transform .25s, background .25s; }
.upload-button:hover { transform: translateY(-2px); background: #fffaf1; }
.upload-button:focus-visible, .faq-item button:focus-visible { outline: 2px solid #d2ad70; outline-offset: 4px; }
.features { list-style: none; padding: 1.5rem 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem 1.5rem; font-size: .68rem; color: #d9cfc7; }
.features li::before { content: "✓"; color: #d8bb8c; margin-right: .4rem; }

.faq { max-width: 760px; margin: auto; text-align: center; }
.faq-list { margin-top: 3rem; border-top: 1px solid var(--line); text-align: left; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { width: 100%; border: 0; background: none; padding: 1.4rem 0; display: grid; grid-template-columns: 2rem 1fr 1rem; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.faq-item button b, .answer b { color: var(--accent); font-family: Baskerville, "Times New Roman", serif; }
.faq-item button i { position: relative; }
.faq-item button i::before, .faq-item button i::after { content: ""; display: block; width: 11px; height: 1px; background: var(--accent); position: absolute; top: 5px; }
.faq-item button i::after { transform: rotate(90deg); transition: transform .3s; }
.faq-item.open button i::after { transform: none; }
.answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s; }
.answer p { overflow: hidden; margin: 0; padding: 0 2rem 0 2.5rem; line-height: 1.9; font-size: .82rem; }
.answer p b { margin-right: .8rem; }
.faq-item.open .answer { grid-template-rows: 1fr; }
.faq-item.open .answer p { padding-bottom: 1.5rem; }

.closing { min-height: 78svh; display: grid; place-items: center; text-align: center; padding: 7rem 1.5rem; color: #fff8e9; background: radial-gradient(circle,#785d49,#312622 65%); }
.closing .kicker { color: #d7bd94; }
.closing p { line-height: 2.1; letter-spacing: .08em; }
.signature { border-top: 1px solid rgba(232,211,176,.35); padding-top: 1.7rem; display: flex; flex-direction: column; gap: .5rem; }
.signature strong, .signature span { font-family: Baskerville, "Times New Roman", serif; letter-spacing: .18em; }

@keyframes hero-zoom { from { transform: scale(1.03); } to { transform: scale(1.08); } }
@keyframes scroll-pulse { 50% { transform: scaleY(.35); opacity: .4; } }
@media (min-width: 760px) {
  .gallery-item-1 { width: 86%; }
  .gallery-item-2 { width: 72%; }
  .gallery-item-3 { width: 78%; }
  .gallery-item-4 { width: 70%; }
  .gallery-item-5 { width: 82%; }
  .upload { margin: 0 clamp(2rem,8vw,5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
