:root {
  --ink: #30271f;
  --paper: #f5ede1;
  --cream: #fbf7f0;
  --sand: #cfaa7f;
  --rust: #a34f35;
  --wine: #70342c;
  --sage: #6d7358;
  --line: rgba(48, 39, 31, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Manrope", sans-serif; font-size: 15px; }
a { color: inherit; }
button, input { font: inherit; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 6vw, 72px); color: white; transition: .35s ease; }
.topbar.scrolled { height: 64px; color: var(--ink); background: rgba(251,247,240,.94); box-shadow: 0 8px 30px rgba(60,35,20,.08); backdrop-filter: blur(14px); }
.monogram { font-family: "Italiana", serif; font-size: 22px; letter-spacing: .08em; text-decoration: none; }
.monogram span { color: var(--sand); font-size: 14px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 11px; text-decoration: none; text-transform: uppercase; letter-spacing: .16em; }
.menu-toggle { display: none; width: 38px; height: 38px; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: .25s; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: white; background: var(--wine); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(54,24,18,.78), rgba(77,37,26,.42) 50%, rgba(54,24,18,.12)); }
.hero-art { position: absolute; inset: 0; background-color: #c9ab98; background-image: url("assets/floral-frame.png"); background-repeat: no-repeat; background-size: cover; background-position: center 42%; filter: saturate(.92) sepia(.06); transform: scale(1.01); }
.hero-copy { position: relative; z-index: 2; width: min(88%, 650px); padding: 92px 20px 40px; text-align: center; }
.eyebrow { margin: 0 0 18px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3em; }
.hero-copy > .eyebrow { margin-bottom: 52px; }
.hero h1 { margin: 0; font-family: "Mrs Saint Delafield", cursive; font-size: clamp(82px, 9vw, 128px); font-weight: 400; line-height: .58; text-shadow: 0 4px 20px rgba(64,21,15,.22); }
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: 23%; }
.hero h1 b { display: block; margin: 22px 0 6px; font-family: "Italiana", serif; color: #e9cdaa; font-size: .22em; font-weight: 400; }
.date { margin: 42px 0 16px; font-family: "Italiana", serif; font-size: 18px; letter-spacing: .36em; }
.invitation { font-family: "Italiana", serif; line-height: 1.75; opacity: .92; }
.round-link { display: grid; place-items: center; width: 48px; height: 48px; margin: 30px auto 0; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; text-decoration: none; font-size: 18px; transition: .2s; }
.round-link:hover { color: var(--wine); background: white; }

@media (min-width: 701px) {
  .hero h1 b { margin: 10px 0 34px; line-height: 1; }
}

@media (min-width: 701px) and (max-height: 720px) {
  .hero-copy { padding-top: 78px; }
  .hero h1 { font-size: clamp(76px, 8.2vw, 108px); }
  .date { margin-top: 30px; }
  .round-link { margin-top: 22px; }
}

.section-pad { padding: 110px max(24px, calc((100vw - 1140px) / 2)); }
.section-intro { max-width: 600px; margin: 0 auto 66px; text-align: center; }
.section-intro .eyebrow { color: var(--rust); }
.section-intro h2 { margin: 0 0 18px; font-family: "Italiana", serif; font-size: clamp(38px, 7vw, 68px); font-weight: 400; line-height: 1; }
.section-intro > p:last-child { margin: 0 auto; max-width: 520px; line-height: 1.8; color: #6b5e53; }

.countdown { background: var(--paper); }
.countdown .section-intro { margin-bottom: 40px; }
.timer { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 5vw, 60px); }
.timer div { display: grid; text-align: center; }
.timer strong { font-family: "Italiana", serif; font-size: clamp(38px, 8vw, 74px); font-weight: 400; }
.timer span { color: var(--rust); font-size: 9px; text-transform: uppercase; letter-spacing: .25em; }
.timer i { width: 4px; height: 4px; background: var(--rust); border-radius: 50%; }

.schedule { background: var(--cream); }
.timeline { max-width: 920px; margin: 0 auto; border-top: 1px solid var(--line); }
.event-card { display: grid; grid-template-columns: 170px 1fr; gap: 60px; padding: 58px 20px; border-bottom: 1px solid var(--line); }
.event-time { display: flex; align-items: baseline; color: var(--rust); }
.event-time span { font-family: "Italiana", serif; font-size: 70px; line-height: 1; }
.event-time small { font-size: 14px; }
.event-content { position: relative; }
.event-number { position: absolute; top: 2px; right: 0; margin: 0; color: #baa894; font-family: "Italiana", serif; }
.event-content h3 { margin: 0 0 15px; font-family: "Italiana", serif; font-size: 34px; font-weight: 400; }
.event-content > p:not(.event-number) { max-width: 560px; line-height: 1.7; color: #6b5e53; }
.event-content address { margin: 24px 0 18px; font-style: normal; font-size: 13px; line-height: 1.7; }
.map-link { display: inline-flex; gap: 12px; color: var(--rust); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; border-bottom: 1px solid #d8b5a9; padding-bottom: 5px; }
.edit-note { max-width: 920px; margin: 24px auto 0; color: #8c7d70; font-size: 11px; text-align: center; }

.photos { color: white; background: var(--wine); }
.section-intro.light .eyebrow { color: #e5bea0; }
.section-intro.light > p:last-child { color: rgba(255,255,255,.72); }
.drive-album { max-width: 980px; margin: 0 auto; padding: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.045); }
.photo-access { max-width: 560px; margin: 0 auto; padding: 32px; text-align: center; border: 1px dashed rgba(255,255,255,.28); }
.photo-access label { display: block; margin-bottom: 18px; font-family: "Italiana", serif; font-size: 30px; }
.photo-access div { display: flex; gap: 8px; }
.photo-access input { flex: 1; min-width: 0; padding: 14px; color: white; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); outline: none; }
.photo-access button { padding: 14px 20px; color: var(--wine); border: 0; background: #e5bea0; font-weight: 700; cursor: pointer; }
.photo-access p { min-height: 22px; margin: 16px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.photo-panel { display: grid; gap: 26px; }
.photo-panel[hidden] { display: none; }
.album-external { display: block; width: max-content; margin: 22px auto 0; color: #e5bea0; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }
.upload-card { max-width: 670px; margin: 0 auto; padding: 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; }
.upload-button { width: 100%; min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 8px; color: white; border: 1px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.045); cursor: pointer; transition: .25s; }
.upload-button:hover { background: rgba(255,255,255,.1); }
.camera-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; color: var(--wine); background: #e5bea0; border-radius: 50%; font-size: 26px; font-weight: 300; }
.upload-button b { font-family: "Italiana", serif; font-size: 25px; font-weight: 400; }
.upload-button small { color: rgba(255,255,255,.6); }
.upload-card > p, .privacy-note { margin: 14px 0 2px; text-align: center; color: rgba(255,255,255,.55); font-size: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; width: 100%; }
.photo-item { position: relative; aspect-ratio: 1; overflow: hidden; background: #5c2822; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { position: absolute; inset: auto 8px 8px; display: flex; justify-content: flex-end; gap: 6px; opacity: 0; transition: .2s; }
.photo-item:hover .photo-actions { opacity: 1; }
.photo-actions button, .photo-actions a { width: 34px; height: 34px; display: grid; place-items: center; color: white; border: 0; border-radius: 50%; background: rgba(40,20,17,.78); cursor: pointer; text-decoration: none; }
.file-preview { height: 100%; display: grid; place-content: center; padding: 14px; text-align: center; }
.file-preview span { font-size: 34px; }
.file-preview small { margin-top: 10px; overflow-wrap: anywhere; }
.privacy-note { max-width: 600px; margin: 25px auto 0; line-height: 1.5; }

.practical { background: var(--paper); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1050px; margin: auto; }
.info-card { min-height: 280px; padding: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.3); }
.info-card > span { color: var(--rust); font-size: 25px; }
.info-card h3 { margin: 28px 0 14px; font-family: "Italiana", serif; font-size: 27px; font-weight: 400; }
.info-card p { color: #6b5e53; line-height: 1.7; }
.info-card a { display: inline-block; margin-top: 10px; color: var(--rust); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; }

footer { padding: 70px 24px; text-align: center; color: #eee3d5; background: #30251f; }
footer .script { margin: 0 0 25px; font-family: "Mrs Saint Delafield", cursive; font-size: 52px; }
footer p:nth-child(2) { font-size: 10px; letter-spacing: .28em; }
footer a { display: inline-block; margin-top: 25px; color: #d1a47f; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .topbar { height: 64px; padding: 0 20px; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 0; right: 0; width: min(78vw, 310px); height: 100vh; padding: 110px 34px; flex-direction: column; align-items: flex-start; background: var(--cream); color: var(--ink); box-shadow: -12px 0 35px rgba(40,20,10,.14); transform: translateX(110%); transition: .3s; }
  .nav.open { transform: none; }
  .nav a { font-family: "Italiana", serif; font-size: 22px; text-transform: none; letter-spacing: .02em; }
  .menu-toggle.active { position: relative; z-index: 2; color: var(--ink); }
  .menu-toggle.active span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .hero-art { background-position: 57% center; }
  .hero-art { background-size: cover; background-image: url("assets/floral-frame.png"); }
  .hero::after { background: rgba(62,28,21,.55); }
  .hero-copy { padding-top: 90px; }
  .hero-copy > .eyebrow { margin-bottom: 44px; }
  .hero h1 { font-size: clamp(72px, 25vw, 105px); }
  .hero h1 span:last-child { margin-left: 10%; }
  .date { margin-top: 36px; font-size: 14px; }
  .invitation { font-size: 13px; }
  .section-pad { padding-top: 85px; padding-bottom: 85px; }
  .section-intro { margin-bottom: 48px; }
  .event-card { grid-template-columns: 82px 1fr; gap: 22px; padding: 42px 0; }
  .event-time span { font-size: 49px; }
  .event-time small { font-size: 11px; }
  .event-content h3 { padding-right: 20px; font-size: 29px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-access { padding: 24px 18px; }
  .photo-access div { flex-direction: column; }
  .gallery { gap: 8px; }
  .photo-actions { opacity: 1; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
