:root {
  --ink: #312c24;
  --paper: #faf5ea;
  --muted: #766d5f;
  --line: rgba(65, 52, 35, .17);
  --accent: #b95c67;
  --accent-soft: #e4acaa;
  --card: rgba(255, 252, 244, .82);
  --heading: Georgia, 'Times New Roman', serif;
  --body: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page-bg, #eae2d4); font-family: var(--body); }
button, input { font: inherit; }
.top-link { position: fixed; z-index: 5; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); background: rgba(255,255,255,.77); border: 1px solid rgba(255,255,255,.65); padding: 10px 13px; border-radius: 99px; text-decoration: none; font-size: .76rem; font-weight: 800; backdrop-filter: blur(12px); box-shadow: 0 7px 20px rgba(25,20,15,.1); }
.landing { width: min(100%, 540px); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 0 50px rgba(31,22,13,.16); }
.hero { min-height: 100svh; position: relative; padding: 92px 28px 38px; display: flex; flex-direction: column; justify-content: center; text-align: center; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; pointer-events: none; z-index: -1; }
.hero .eyebrow { margin: 0 0 18px; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-family: var(--heading); font-weight: 400; font-size: clamp(3rem, 15vw, 5.25rem); line-height: .86; letter-spacing: -.06em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero .hero-message { max-width: 270px; margin: 24px auto 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.hero-image { width: min(78vw, 330px); aspect-ratio: .75; margin: 29px auto 0; overflow: hidden; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 14px 28px rgba(74,51,34,.2); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scroll-hint { margin: 28px 0 0; display: inline-flex; align-self: center; flex-direction: column; gap: 7px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.scroll-hint::after { content: '↓'; font-size: 1.25rem; color: var(--accent); animation: nudge 1.8s infinite; }
@keyframes nudge { 50% { transform: translateY(7px); } }

.hero-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-atmosphere i { position: absolute; display: block; width: 12px; height: 18px; border-radius: 90% 12% 90% 12%; background: var(--accent-soft); opacity: .72; animation: drift 8s ease-in-out infinite; }
.hero-atmosphere i:nth-child(1) { left: 8%; top: 18%; transform: rotate(28deg); animation-delay: -2s; }.hero-atmosphere i:nth-child(2) { left: 20%; top: 63%; transform: rotate(75deg); animation-delay: -5s; }.hero-atmosphere i:nth-child(3) { right: 13%; top: 25%; transform: rotate(-21deg); animation-delay: -1s; }.hero-atmosphere i:nth-child(4) { right: 8%; bottom: 17%; transform: rotate(48deg); animation-delay: -6s; }.hero-atmosphere i:nth-child(5) { left: 34%; bottom: 8%; transform: rotate(-43deg); animation-delay: -3s; }
@keyframes drift { 50% { translate: 11px -23px; rotate: 18deg; opacity: .38; } }
.hero > :not(.hero-atmosphere) { animation: hero-rise .9s both; }.hero .eyebrow { animation-delay: .06s; }.hero h1 { animation-delay: .16s; }.hero .hero-message { animation-delay: .29s; }.hero .hero-image { animation-delay: .42s; }.hero .scroll-hint { animation-delay: .58s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.landing-section { position: relative; padding: 72px 26px; border-top: 1px solid var(--line); }
.section-icon { display: block; margin-bottom: 13px; color: var(--accent); font-size: 1.42rem; text-align: center; }
.section-kicker { margin: 0 0 8px; color: var(--accent); letter-spacing: .2em; font-size: .65rem; font-weight: 800; text-transform: uppercase; text-align: center; }
.section-title { margin: 0 auto 18px; max-width: 360px; font-family: var(--heading); font-weight: 400; font-size: clamp(2.2rem, 10vw, 3.45rem); line-height: .98; text-align: center; letter-spacing: -.05em; }
.section-copy { max-width: 500px; margin: 0 auto; color: var(--muted); text-align: center; line-height: 1.65; font-size: .94rem; }
.date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; max-width: 620px; margin: 27px auto 0; text-align: center; }
.date-grid div { padding: 15px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.date-grid b { display: block; font-family: var(--heading); font-size: 1.55rem; font-weight: 400; }
.date-grid span { color: var(--muted); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.info-card { max-width: 620px; margin: 27px auto 0; padding: 28px 27px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.info-card h3 { margin: 0 0 6px; font-family: var(--heading); font-size: 1.55rem; font-weight: 400; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .88rem; }
.map-link { display: inline-flex; margin-top: 18px; align-items: center; gap: 8px; color: var(--ink); font-size: .75rem; font-weight: 800; text-decoration: none; }
.schedule { max-width: 620px; margin: 26px auto 0; list-style: none; padding: 0; }
.schedule li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.schedule time { color: var(--accent); font-weight: 800; }
.dress-box { max-width: 620px; margin: 0 auto; padding: 41px 32px; border: 1px solid var(--line); border-radius: 23px; background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.82), transparent 55%), var(--card); text-align: center; }
.dress-box strong { display: block; margin: 12px 0; font-family: var(--heading); font-size: 2rem; font-weight: 400; }
.dress-box p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .9rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 690px; margin: 31px auto 0; }
.gallery figure { position: relative; margin: 0; min-height: 190px; overflow: hidden; border-radius: 13px; background: var(--gallery-gradient); }
.gallery figure:first-child { grid-column: 1 / -1; min-height: 245px; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gallery .art { display: grid; place-items: center; color: rgba(255,255,255,.86); font-size: 1.7rem; text-shadow: 0 2px 11px rgba(0,0,0,.18); }
.rsvp-card { max-width: 620px; margin: 0 auto; padding: 38px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.rsvp-card label { display: block; margin: 18px 0 7px; font-size: .75rem; font-weight: 800; }
.rsvp-card input { display: block; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: rgba(255,255,255,.48); }
.rsvp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.rsvp-actions button { min-height: 50px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; color: var(--ink); background: transparent; font-weight: 800; font-size: .77rem; }
.rsvp-actions button:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.rsvp-note { min-height: 20px; margin: 14px 0 0; color: var(--muted); font-size: .73rem; text-align: center; line-height: 1.45; }
.gifts { background: rgba(255,255,255,.24); }
.gift-card { max-width: 620px; margin: 28px auto 0; padding: 26px; border: 1px solid var(--line); border-radius: 18px; text-align: left; }
.gift-card p { margin: 0 0 14px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gift-card strong { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: .91rem; }
.closing { min-height: 62svh; display: grid; place-items: center; padding: 65px 26px; text-align: center; background: var(--closing); }
.closing h2 { margin: 0; font-family: var(--heading); font-size: clamp(2.7rem, 13vw, 4.25rem); font-weight: 400; line-height: .95; letter-spacing: -.06em; }
.closing p { color: var(--muted); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.theme-wedding { --page-bg: #e8dfd0; --paper: #faf5ea; --accent: #ba5b64; --accent-soft: #d9999d; --closing: radial-gradient(circle at 50% 16%, #fffdf6, #eee5d5); --gallery-gradient: linear-gradient(145deg, #d98b8d, #eec8a6 45%, #6e7c64); }
.theme-wedding .hero::before { width: 450px; height: 450px; top: -180px; left: -160px; background: radial-gradient(circle, rgba(217,139,141,.35), transparent 68%); }
.theme-wedding .hero::after { width: 220px; height: 220px; right: -90px; bottom: 40px; background: radial-gradient(circle, rgba(105,125,96,.22), transparent 68%); }
.theme-wedding .hero { background: linear-gradient(90deg, transparent 0 12%, rgba(157,177,144,.11) 12.2% 12.5%, transparent 12.7% 87.3%, rgba(157,177,144,.11) 87.5% 87.8%, transparent 88%), radial-gradient(circle at 50% 45%, #fffdf8 0 32%, transparent 67%); }.theme-wedding .hero h1 { font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; font-style: italic; font-size: clamp(3.4rem, 14vw, 5.8rem); }.theme-wedding .hero-image { border-radius: 180px 180px 0 0; position: relative; }.theme-wedding .hero-image::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.66); border-radius: inherit; pointer-events: none; }

.theme-party { --ink: #fcf8ef; --paper: #11122a; --muted: #c9c6e5; --line: rgba(255,255,255,.18); --accent: #ffd73e; --accent-soft: #ff6178; --card: rgba(35, 31, 81, .72); --page-bg: #070713; --closing: radial-gradient(circle at 50% 30%, #db2967, #292160 58%, #0b0b24); --gallery-gradient: linear-gradient(135deg, #ffdb40, #fb4d7a 42%, #4d35d4 80%); }
.theme-party .hero { background: radial-gradient(circle at 20% 14%, #ffdb3e 0 2px, transparent 3px), radial-gradient(circle at 84% 21%, #ff5d85 0 5px, transparent 6px), linear-gradient(150deg, #22225a, #11122a 65%); }.theme-party .hero::marker { content: none; }
.theme-party .hero::before { width: 370px; height: 370px; top: -180px; left: -115px; border-radius: 50%; background: rgba(255, 215, 62, .27); filter: blur(8px); }
.theme-party .hero::after { width: 250px; height: 250px; bottom: -110px; right: -100px; border-radius: 50%; background: rgba(242,58,125,.35); filter: blur(8px); }
.theme-party .hero h1 { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(3.8rem, 18vw, 6rem); line-height: .77; letter-spacing: .015em; text-transform: uppercase; }
.theme-party .hero-image { position: relative; border-radius: 50% 50% 16px 16px; background: var(--gallery-gradient); box-shadow: 0 0 0 10px rgba(255,215,62,.12), 0 20px 45px rgba(0,0,0,.36); }
.theme-party .hero-image::after { content: '✦  ✦  ✦'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2rem; letter-spacing: 1rem; transform: rotate(-14deg); }
.theme-party .landing-section:nth-of-type(even) { background: rgba(255,255,255,.035); }
.theme-party .section-title, .theme-party .dress-box strong, .theme-party .info-card h3 { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; letter-spacing: .01em; text-transform: uppercase; }
.theme-party .hero-image img { display: none; }

.theme-event { --ink: #eaf3f1; --paper: #071a22; --muted: #a8bec1; --line: rgba(162,213,204,.19); --accent: #67e2c1; --accent-soft: #57a6d5; --card: rgba(11, 40, 51, .74); --page-bg: #041117; --closing: linear-gradient(150deg, #0a3441, #06161e); --gallery-gradient: linear-gradient(140deg, #0a4050, #168583 47%, #8adcc3); --heading: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.theme-event .hero { background: linear-gradient(rgba(5,19,27,.66), rgba(5,19,27,.88)), repeating-linear-gradient(90deg, transparent 0 39px, rgba(103,226,193,.07) 40px), linear-gradient(130deg, #124e5a, #06141b 59%); }
.theme-event .hero::before { inset: auto -80px 14% auto; width: 280px; height: 280px; border: 1px solid rgba(103,226,193,.45); border-radius: 50%; box-shadow: 0 0 0 40px rgba(103,226,193,.05), 0 0 0 80px rgba(103,226,193,.03); }
.theme-event .hero h1 { font-size: clamp(2.5rem, 11vw, 4.1rem); font-weight: 600; line-height: 1.02; letter-spacing: -.09em; text-transform: uppercase; }
.theme-event .hero-image { display: grid; place-items: center; border: 1px solid rgba(103,226,193,.54); border-radius: 10px; background: linear-gradient(135deg, rgba(103,226,193,.22), rgba(23,79,104,.7)); }
.theme-event .hero-image::after { content: '01\A  EVENT\A  2026'; white-space: pre; color: #a2ffe9; text-align: center; line-height: 1.8; font-family: var(--heading); letter-spacing: .16em; }
.theme-event .hero-image img { display: none; }
.theme-event .section-title, .theme-event .dress-box strong, .theme-event .info-card h3 { font-family: var(--heading); letter-spacing: -.075em; }
.theme-event .section-kicker { letter-spacing: .24em; }

@media (min-width: 700px) { body { padding: 28px 40px; } .landing { width: min(100%, 980px); margin: 0 auto; border-radius: 20px; } .top-link { left: 28px; top: 28px; } .hero { min-height: 720px; padding: 80px 9vw 54px; } .hero-image { width: min(47vw, 420px); aspect-ratio: 1.05; } .hero .hero-message { max-width: 430px; } .landing-section { padding: 92px clamp(45px, 9vw, 112px); } .section-title { max-width: 600px; font-size: clamp(3rem, 5.5vw, 4.7rem); } .theme-wedding .hero-image { aspect-ratio: .9; } .theme-party .hero h1 { font-size: clamp(5rem, 10vw, 7.7rem); } .theme-event .hero h1 { font-size: clamp(3.6rem, 7vw, 5.8rem); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .scroll-hint::after { animation: none; } }
