:root {
  --ivory: #fbf7ef;
  --paper: #fffdf8;
  --ink: #252321;
  --muted: #6f6a64;
  --gold: #b8842c;
  --gold-soft: #d8b56f;
  --sage: #74856f;
  --sage-dark: #4f6250;
  --blush: #ead0c7;
  --rose: #c9978a;
  --line: rgba(184,132,44,.28);
  --shadow: 0 20px 50px rgba(71,55,39,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(234,208,199,.30), transparent 25%),
    radial-gradient(circle at 88% 30%, rgba(216,181,111,.12), transparent 24%),
    var(--ivory);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.eyebrow { letter-spacing: .24em; text-transform: uppercase; font-size: .75rem; color: var(--sage-dark); font-weight: 700; }
.script { font-family: 'Brush Script MT','Segoe Script','Snell Roundhand',cursive; font-weight: 400; }
.gold { color: var(--gold); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  background: rgba(251,247,239,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,132,44,.15);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-size: 1.18rem; letter-spacing: .04em; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: .9rem; }
.nav-links a { text-decoration: none; color: #4e4944; }
.nav-links a:hover { color: var(--gold); }
.nav-rsvp { border: 1px solid var(--gold); padding: 8px 14px; border-radius: 999px; }

.hero { min-height: 100vh; padding-top: 68px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: stretch; }
.hero-copy { padding: 9vw 6vw 7vw max(7vw, calc((100vw - 1120px)/2)); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-copy:before, .hero-copy:after { content:'♡'; position:absolute; color: rgba(184,132,44,.18); font-family: Georgia, serif; }
.hero-copy:before { font-size: 9rem; right: 4%; top: 10%; transform: rotate(-8deg); }
.hero-copy:after { font-size: 4rem; left: 7%; bottom: 8%; transform: rotate(14deg); }
.hero-title { font-size: clamp(4.5rem, 9vw, 8.6rem); line-height: .78; margin: 18px 0 26px; position: relative; z-index: 1; }
.hero-title .amp { display: block; font-size: .42em; margin: .26em 0 .12em 1.8em; color: var(--gold); }
.hero-kicker { font-size: clamp(1.25rem,2vw,1.8rem); max-width: 580px; margin: 0 0 28px; }
.date-pill { display: inline-flex; align-items:center; gap:12px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.52); width: fit-content; font-size: 1.02rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height: 46px; padding: 0 20px; border-radius: 999px; text-decoration:none; border:1px solid var(--gold); transition:.2s ease; font-family: Arial,sans-serif; font-size:.9rem; letter-spacing:.04em; cursor:pointer; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background:#9d6d20; border-color:#9d6d20; transform:translateY(-1px); }
.btn-light { background:rgba(255,255,255,.65); }
.btn-light:hover { background:#fff; }
.hero-photo { position: relative; min-height: 640px; overflow: hidden; }
.hero-photo img { width:100%; height:100%; object-fit:cover; object-position:center 33%; }
.hero-photo:after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(251,247,239,.18), transparent 24%), linear-gradient(0deg, rgba(37,35,33,.15), transparent 42%); }
.hero-badge { position:absolute; z-index:2; left:28px; bottom:28px; width:170px; aspect-ratio:1; border-radius:50%; background:rgba(251,247,239,.92); border:1px solid var(--gold-soft); display:grid; place-items:center; text-align:center; transform:rotate(-5deg); box-shadow:var(--shadow); }
.hero-badge strong { display:block; font-size:1.55rem; line-height:1.1; color:var(--gold); }
.hero-badge span { display:block; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; margin-top:5px; }

section { padding: 96px 0; }
.section-head { text-align:center; max-width:760px; margin:0 auto 44px; }
.section-head h2 { font-size: clamp(2.4rem,5vw,4.4rem); margin:.2em 0 .12em; font-weight:400; }
.section-head p { color:var(--muted); margin:0; }

.story { background: rgba(255,255,255,.38); border-block:1px solid rgba(184,132,44,.10); }
.story-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:54px; align-items:center; }
.story-photo { border-radius: 44% 44% 10px 10px; overflow:hidden; box-shadow:var(--shadow); position:relative; }
.story-photo img { aspect-ratio: 1.22; object-fit:cover; width:100%; }
.story-photo:after { content:''; position:absolute; inset:16px; border:1px solid rgba(255,255,255,.78); border-radius: 42% 42% 8px 8px; pointer-events:none; }
.story-copy h3 { font-size:clamp(2.2rem,4vw,3.8rem); margin:0 0 14px; font-weight:400; }
.story-copy p { color:#57514b; font-size:1.04rem; }
.quote { margin-top:28px; padding:20px 24px; border-left:3px solid var(--gold-soft); background:rgba(255,255,255,.55); font-style:italic; }

.details-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.card { background:rgba(255,255,255,.72); border:1px solid rgba(184,132,44,.18); border-radius:22px; padding:28px; box-shadow:0 10px 30px rgba(78,60,44,.06); }
.icon { width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:rgba(216,181,111,.14); border:1px solid rgba(184,132,44,.22); font-size:1.35rem; margin-bottom:18px; }
.card h3 { margin:0 0 10px; font-size:1.35rem; }
.card p { margin:0; color:var(--muted); }
.card .small { font-size:.9rem; margin-top:10px; }

.countdown-wrap { padding: 26px 0 0; }
.countdown { display:grid; grid-template-columns:repeat(4,1fr); max-width:720px; margin:0 auto; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:rgba(255,255,255,.6); }
.count-item { padding:20px 10px; text-align:center; border-right:1px solid var(--line); }
.count-item:last-child { border-right:0; }
.count-num { display:block; font-size:clamp(1.8rem,4vw,3.2rem); color:var(--gold); }
.count-label { font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); }

.gallery { background: linear-gradient(180deg, rgba(116,133,111,.08), transparent 100%); }
.gallery-grid { display:grid; grid-template-columns:repeat(12,1fr); grid-auto-rows:130px; gap:12px; }
.gallery-grid figure { margin:0; border-radius:18px; overflow:hidden; position:relative; background:#ddd; }
.gallery-grid img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.gallery-grid figure:hover img { transform:scale(1.035); }
/* Keep faces fully visible in the portrait seventh gallery photo. */
.g7 img { object-position: center 22%; }
.g1 { grid-column:span 5; grid-row:span 3; }
.g2 { grid-column:span 7; grid-row:span 2; }
.g3 { grid-column:span 4; grid-row:span 2; }
.g4 { grid-column:span 3; grid-row:span 2; }
.g5 { grid-column:span 5; grid-row:span 3; }
.g6 { grid-column:span 7; grid-row:span 2; }
.g7 { grid-column:span 4; grid-row:span 2; }
.g8 { grid-column:span 3; grid-row:span 2; }

.gift { background: var(--sage-dark); color:#fff; position:relative; overflow:hidden; }
.gift:before { content:'♡'; position:absolute; right:5%; top:-20px; font-size:15rem; color:rgba(255,255,255,.05); }
.gift .section-head p { color:rgba(255,255,255,.76); }
.gift-box { max-width:760px; margin:0 auto; padding:38px; border:1px solid rgba(255,255,255,.26); border-radius:24px; background:rgba(255,255,255,.07); text-align:center; }
.gift-box p { margin:0; font-size:1.16rem; }
.eft-details { margin-top:28px; font-family:Arial,sans-serif; }
.eft-details summary { display:inline-block; cursor:pointer; border:2px solid #ead8b8; border-radius:999px; padding:15px 25px; background:#ead8b8; color:#253c37; font-size:1rem; font-weight:700; letter-spacing:.04em; list-style:none; box-shadow:0 8px 20px rgba(0,0,0,.18); }
.eft-details summary::-webkit-details-marker { display:none; }
.eft-details summary:hover, .eft-details summary:focus-visible { background:rgba(255,255,255,.13); }
.eft-card { max-width:430px; margin:22px auto 0; padding:20px; border-radius:16px; background:#fff; color:#253c37; text-align:left; }
.eft-card p { display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid #e5e9e6; font-size:1rem; }
.eft-card span { text-align:right; overflow-wrap:anywhere; }
.eft-copy { margin-top:18px; padding:12px 18px; border:0; border-radius:999px; background:#253c37; color:white; font:600 1rem Arial,sans-serif; cursor:pointer; }
.eft-copy:focus-visible { outline:3px solid #b08a52; outline-offset:3px; }

.rsvp-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:44px; align-items:start; }
.rsvp-copy { position:sticky; top:100px; }
.rsvp-copy h2 { font-size:clamp(3rem,6vw,5.2rem); margin:0 0 16px; font-weight:400; }
.rsvp-form { background:var(--paper); border:1px solid rgba(184,132,44,.2); border-radius:24px; padding:30px; box-shadow:var(--shadow); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1/-1; }
label { font-family:Arial,sans-serif; font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:#5b554f; }
input, select, textarea { width:100%; border:1px solid #d9d0c4; background:#fffefa; border-radius:12px; padding:13px 14px; font:inherit; color:var(--ink); outline:none; }
textarea { min-height:90px; resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:var(--gold-soft); box-shadow:0 0 0 3px rgba(216,181,111,.13); }
.submit-note { font-size:.84rem; color:var(--muted); margin-top:12px; }
.form-status { margin-top:14px; padding:12px 14px; background:rgba(116,133,111,.10); border-radius:12px; display:none; }

.footer { padding:52px 0; text-align:center; border-top:1px solid rgba(184,132,44,.14); }
.footer-name { font-size:2.5rem; color:var(--gold); margin-bottom:8px; }
.footer p { margin:4px 0; color:var(--muted); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-rsvp) { display:none; }
  .hero { grid-template-columns:1fr; }
  .hero-copy { padding:90px 26px 60px; min-height:72vh; text-align:center; align-items:center; }
  .hero-title .amp { margin:.2em 0; }
  .hero-photo { min-height:68vh; }
  .story-grid, .rsvp-grid { grid-template-columns:1fr; }
  .rsvp-copy { position:static; text-align:center; }
  .details-grid { grid-template-columns:1fr; }
  .gallery-grid { grid-auto-rows:110px; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { grid-column:span 6; grid-row:span 2; }
}
@media (max-width: 600px) {
  section { padding:74px 0; }
  .container { width:min(100% - 24px,1120px); }
  .hero-copy { padding-left:18px; padding-right:18px; }
  .hero-title { font-size:clamp(4rem,24vw,6.4rem); }
  .hero-photo { min-height:62vh; }
  .hero-badge { width:130px; left:16px; bottom:16px; }
  .gallery-grid { display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:180px; }
  .g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8 { grid-column:span 1; grid-row:span 1; }
  .g1,.g5 { grid-column:1/-1; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .countdown { grid-template-columns:repeat(2,1fr); }
  .count-item:nth-child(2) { border-right:0; }
  .count-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}

