﻿:root {
  --paper: #f5f1e9;
  --paper-deep: #eae3d7;
  --ink: #302b25;
  --muted: #776e62;
  --accent: #a88b62;
  --line: rgba(91, 77, 57, .2);
  --serif: "Playfair Display", Georgia, serif;
  --sans: Poppins, Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #e6e0d6; color: var(--ink); font-family: var(--sans); line-height: 1.7; }
.invitation-shell { width: min(100%, 760px); margin: 0 auto; overflow: hidden; background: var(--paper); box-shadow: 0 18px 70px rgba(39, 31, 20, .12); }
.section-pad { padding: clamp(64px, 10vw, 106px) clamp(22px, 7vw, 68px); }

.hero { position: relative; display: grid; min-height: min(940px, 100svh); min-height: max(690px, min(940px, 100svh)); place-items: center; overflow: hidden; padding: 70px 24px 98px; color: #fffaf2; text-align: center; isolation: isolate; }
.hero-photo, .closing-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { object-position: center 40%; }
.hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(30, 31, 28, .13) 0%, rgba(30, 31, 28, .2) 38%, rgba(24, 27, 24, .72) 100%); }
.hero-content { width: min(100%, 560px); margin: auto; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.hero-overline, .eyebrow { margin: 0; font-size: .65rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.hero-overline { color: #f4e7d0; }
.hero-ornament { display: block; margin: 27px 0 15px; color: #e3c99f; font-size: .9rem; }
.hero-intro { margin: 0 0 24px; color: rgba(255, 250, 242, .9); font: italic .88rem var(--serif); letter-spacing: .05em; }
.hero h1 { margin: 0; color: #fffaf2; font: 400 clamp(5.3rem, 16vw, 8.6rem)/.7 var(--script); }
.hero h1 span { display: block; }
.hero h1 i { display: block; margin: 22px 0 15px; color: #e5c99c; font: italic 400 1.12rem var(--serif); }
.hero-promise { margin: 27px 0 0; color: #f2e8da; font: italic 1rem var(--serif); letter-spacing: .07em; }
.hero-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 25px auto 17px; color: #e5c99c; }
.hero-divider span { width: 45px; height: 1px; background: rgba(229, 201, 156, .75); }
.hero-divider b { font-size: .55rem; font-weight: 400; }
.hero-date { margin: 0; color: #fffaf2; font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero-date span { padding: 0 5px; color: #e5c99c; }
.hero-location { margin: 6px 0 0; color: #eadcc8; font: italic .82rem var(--serif); letter-spacing: .06em; }
.scroll-cue { position: absolute; bottom: 27px; left: 50%; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); color: rgba(255, 250, 242, .78); font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 28px; background: linear-gradient(#e5c99c, transparent); }

.welcome { background: var(--paper); text-align: center; }
.eyebrow { color: var(--accent); }
.welcome h2, .section-heading h2 { margin: 12px 0 16px; color: var(--ink); font: 400 clamp(2rem, 7vw, 3.25rem)/1.18 var(--serif); }
.welcome h2 em { color: #917653; font-weight: 400; }
.welcome-copy { max-width: 440px; margin: 0 auto; color: var(--muted); font-size: .82rem; line-height: 1.9; }
.tiny-flourish { display: block; margin-top: 25px; color: var(--accent); font-size: 1rem; }

.story { background: #eee8de; }
.section-heading { max-width: 510px; margin: 0 auto 32px; text-align: center; }
.section-heading h2 { margin-bottom: 10px; font-size: clamp(2rem, 6vw, 2.8rem); }
.section-heading > p:last-child { margin: 0 auto; color: var(--muted); font-size: .77rem; line-height: 1.85; }
.moments-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 11px; }
.moment { min-width: 0; min-height: 0; margin: 0; overflow: hidden; background: #d5cbbb; }
.moment-tall { grid-row: span 2; }
.moment img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; transition: transform .7s ease; }
.moment-tall img { min-height: 316px; object-position: 50% 45%; }
.gallery-caption { margin: 18px 0 0; color: #82745f; font: italic .9rem var(--serif); text-align: center; }

.celebration { background: var(--paper); }
.celebration .section-heading { margin-bottom: 31px; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-card { padding: 28px 22px 30px; border: 1px solid var(--line); background: rgba(255, 253, 248, .65); text-align: center; }
.event-card-reception { background: #eee8de; }
.event-number { margin: 0 0 11px; color: var(--accent); font-size: .59rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.event-number span { padding: 0 4px; }
.event-card h3 { margin: 0; color: var(--ink); font: 500 1.55rem/1.25 var(--serif); }
.event-time { margin: 9px 0 0; color: #8c7654; font: italic .86rem var(--serif); }
.event-rule { width: 38px; height: 1px; margin: 20px auto 16px; background: var(--accent); }
.event-place { margin: 0; color: var(--ink); font: 500 1rem var(--serif); }
.event-address { margin: 4px 0 0; color: var(--muted); font-size: .68rem; }

.scan-section { background: #eee8de; }
.scan-section .section-heading { margin-bottom: 30px; }
.qr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qr-card { display: grid; justify-items: center; align-content: start; gap: 15px; min-width: 0; padding: 19px 13px 21px; border: 1px solid var(--line); background: rgba(255, 253, 248, .7); text-align: center; }
.qr-code-box { display: grid; width: min(100%, 174px); aspect-ratio: 1; place-items: center; overflow: hidden; padding: 9px; background: #fff; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.qr-code-box canvas, .qr-code-box img { display: block; width: 100% !important; height: auto !important; }
.qr-code-box.qr-placeholder { border: 1px dashed rgba(91, 77, 57, .35); background: #f8f4ed; color: #8b7a62; }
.qr-card-copy { width: 100%; }
.qr-label { margin: 0 0 4px; color: var(--accent); font-size: .55rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.qr-card h3 { margin: 0; color: var(--ink); font: 500 1.12rem/1.3 var(--serif); }
.qr-link { display: inline-block; margin-top: 8px; color: #806643; font-size: .64rem; text-decoration-color: rgba(128, 102, 67, .45); text-underline-offset: 3px; }
.qr-link:hover { color: var(--ink); }
.qr-note { margin: 7px auto 0; max-width: 190px; color: var(--muted); font-size: .62rem; line-height: 1.6; }

.closing { position: relative; display: grid; min-height: 540px; place-items: center; overflow: hidden; padding: 72px 24px; color: #fffaf2; text-align: center; isolation: isolate; }
.closing-photo { object-position: center 48%; }
.closing-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(27, 29, 26, .48), rgba(25, 28, 25, .72)); }
.closing-content .eyebrow { color: #ead3ad; }
.closing-content h2 { margin: 15px 0 21px; color: #fffaf2; font: 400 clamp(2.3rem, 7vw, 3.5rem)/1.2 var(--serif); }
.closing-names { margin: 0; color: #ead3ad; font: 400 3.2rem/1.15 var(--script); }
.closing-names span { padding: 0 5px; font: italic 1.1rem var(--serif); }
.closing-date { margin: 15px 0 0; color: #f3e8d6; font-size: .65rem; letter-spacing: .2em; }
.footer { display: grid; justify-items: center; gap: 3px; padding: 23px 16px 25px; background: #e9e2d6; color: #776e62; text-align: center; }
.footer p { margin: 0; color: var(--ink); font: italic 1rem var(--serif); }
.footer span { font-size: .54rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 560px) {
  .hero { min-height: max(660px, 100svh); padding-right: 20px; padding-left: 20px; }
  .hero h1 { font-size: clamp(5rem, 20vw, 6.8rem); }
  .section-pad { padding: 65px 22px; }
  .event-list { grid-template-columns: 1fr; gap: 10px; }
  .event-card { padding: 25px 18px 27px; }
  .qr-grid { grid-template-columns: 1fr; gap: 9px; }
  .qr-card { grid-template-columns: 116px minmax(0, 1fr); justify-items: stretch; align-items: center; gap: 17px; padding: 14px; text-align: left; }
  .qr-code-box { width: 116px; }
  .qr-card-copy { min-width: 0; }
  .qr-card h3 { font-size: 1.05rem; }
  .qr-note { margin-left: 0; }
  .closing { min-height: 480px; }
}

@media (max-width: 360px) {
  .hero { min-height: 650px; }
  .hero h1 { font-size: 4.7rem; }
  .hero-date { font-size: .63rem; }
  .moments-grid { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
