:root {
  --wood: #3b2417;
  --wood-dark: #1d110b;
  --cream: #f6efe4;
  --paper: #fffaf2;
  --ink: #2e2119;
  --gold: #c99a62;
  --line: rgba(68, 44, 29, .18);
  --shadow: 0 20px 55px rgba(31, 18, 10, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Montserrat, sans-serif; }
a { color: inherit; }
img { display: block; width: 100%; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); color: white; background: linear-gradient(rgba(23,13,8,.84), rgba(23,13,8,.28)); backdrop-filter: blur(8px); }
.brand { text-decoration: none; font-family: "Cormorant Garamond", serif; font-size: 28px; letter-spacing: .12em; }
.brand span { color: var(--gold); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .14em; }
.main-nav a:hover { color: #f4d9b9; }
.menu-toggle { display: none; background: none; color: white; border: 1px solid rgba(255,255,255,.5); padding: 8px 12px; }
.hero { min-height: 100svh; position: relative; display: grid; place-items: center; text-align: center; color: white; background: url('assets/hero.png') center 16%/cover no-repeat; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(25,13,7,.42), rgba(25,13,7,.56)); }
.hero-content { position: relative; z-index: 2; width: min(1040px, 100%); padding: 92px 24px 60px; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .28em; font-size: 12px; font-weight: 600; color: #f6dfc4; }
.eyebrow.dark { color: #8b5b36; }
.hero-title { margin: 0 auto; }
.hero-title-art { width: min(660px, 70vw); max-height: 58vh; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 3px 12px rgba(0,0,0,.34)); }
.hero .eyebrow { margin: -4px 0 12px; }
.names { margin: 0 0 10px; font-family: "Cormorant Garamond", serif; font-size: clamp(32px, 5vw, 58px); letter-spacing: .12em; text-transform: uppercase; }
.date { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font: 600 12px Montserrat, sans-serif; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: white; color: var(--wood); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.button-ghost { color: white; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.05); }
.button-dark { background: var(--wood); color: white; }
.button.wide { width: 100%; }
.section { padding: clamp(76px, 10vw, 130px) 22px; }
.section-inner { width: min(1120px, 100%); margin: auto; }
.narrow { width: min(780px, 100%); }
.intro { text-align: center; }
h2 { margin: 0 0 20px; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(46px, 7vw, 78px); line-height: .95; }
.lead, .section-copy { max-width: 760px; margin: 0 auto 40px; font-family: "Cormorant Garamond", serif; font-size: 22px; line-height: 1.6; }
.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.detail-card { padding: 34px 22px; border: 1px solid var(--line); background: rgba(255,255,255,.5); }
.detail-card h3 { font-family: "Cormorant Garamond", serif; font-size: 30px; margin: 8px 0 16px; }
.detail-card p { margin: 6px 0; font-size: 13px; letter-spacing: .05em; }
.detail-icon { font-size: 28px; color: #9b653d; }
.wood-section, .photo-section { position: relative; color: white; background: linear-gradient(rgba(31,17,10,.82), rgba(31,17,10,.88)), url('assets/hero.png') center/cover fixed; }
.wood-section .section-inner, .photo-section .section-inner { position: relative; }
.wood-section h2, .photo-section h2 { text-align: center; }
.wood-section .eyebrow, .photo-section .eyebrow, .wood-section .section-copy, .photo-section .section-copy { text-align: center; }
.form-card { background: rgba(255,250,242,.96); color: var(--ink); padding: clamp(24px, 5vw, 44px); border-radius: 18px; box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.party-size-row { margin-bottom: 20px; }
.party-size-field { width: max-content; max-width: 100%; }
.party-size-field select { width: 150px; max-width: 100%; }
label, legend { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea { width: 100%; margin-top: 9px; padding: 14px 15px; border: 1px solid #d9c8b6; background: #fffdfa; color: var(--ink); font: 15px Montserrat, sans-serif; border-radius: 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #9d6d47; box-shadow: 0 0 0 3px rgba(157,109,71,.15); }
textarea { resize: vertical; }
.form-card > label, .form-card > .field-grid, .form-card fieldset { margin-bottom: 20px; }
fieldset { padding: 0; border: 0; }
.radio-card { display: inline-flex; align-items: center; gap: 8px; margin: 12px 10px 0 0; padding: 13px 15px; border: 1px solid #d9c8b6; border-radius: 999px; cursor: pointer; }
.radio-card input { width: auto; margin: 0; }
.form-status { min-height: 24px; text-align: center; margin-bottom: 0; font-size: 13px; }
.dark-status { color: #3b2417; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.moderation-note { margin-top: 0; }
.guestbook-layout { display: grid; gap: 28px; width: min(860px, 100%); margin: 34px auto 0; }
.guestbook .section-inner > .eyebrow, .guestbook .section-inner > h2 { text-align: center; }
.guestbook-layout .light-card { width: 100%; }
.light-card { border: 1px solid var(--line); box-shadow: none; background: white; }
.guestbook-entries { display: grid; gap: 14px; }
.guest-entry { padding: clamp(28px, 5vw, 46px); border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; text-align: center; }
.guest-entry p { max-width: 700px; margin: 0 auto 16px; font-family: "Cormorant Garamond", serif; font-size: clamp(23px, 3vw, 30px); line-height: 1.45; }
.guest-entry small { color: #815a3e; text-transform: uppercase; letter-spacing: .1em; }
.visibility-choice { margin: 2px 0 24px; padding: 0; }
.visibility-choice legend { margin-bottom: 12px; color: #4a2d1d; font-family: "Cormorant Garamond", serif; font-size: 22px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-transform: none; }
.privacy-options { display: grid; gap: 11px; }
.privacy-option { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 13px; padding: 16px 17px; border: 1px solid #dccab7; border-radius: 12px; background: #fffaf2; box-shadow: 0 4px 14px rgba(74,45,29,.035); cursor: pointer; text-transform: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.privacy-option:hover { border-color: #b88b66; background: #fff7eb; transform: translateY(-1px); }
.privacy-option:has(input:checked) { border-color: #8e5d39; background: #f8ead9; box-shadow: 0 0 0 2px rgba(142,93,57,.1); }
.privacy-option:focus-within { border-color: #8e5d39; box-shadow: 0 0 0 3px rgba(157,109,71,.15); }
.privacy-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #7a482d; }
.privacy-option strong { display: block; margin-bottom: 4px; color: #3e281b; font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.privacy-option small { display: block; color: #755d4d; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.guestbook-display { display: grid; align-content: center; width: 100%; min-height: 230px; }
.guestbook-display .guest-entry { transition: opacity .28s ease, transform .28s ease; opacity: .45; transform: translateY(4px); }
.guestbook-display .guest-entry.message-visible { opacity: 1; transform: translateY(0); }
.guestbook-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; min-height: 12px; margin-top: 18px; }
.guestbook-dot { width: 10px; height: 10px; padding: 0; border: 1px solid #815a3e; border-radius: 50%; background: transparent; cursor: pointer; }
.guestbook-dot.active { background: #815a3e; }
.gallery-shell { position: relative; width: min(920px, 100%); margin: 36px auto 0; }
.photo-carousel { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(18,10,6,.72); box-shadow: 0 22px 60px rgba(0,0,0,.34); touch-action: pan-y; user-select: none; }
.gallery-slide { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-slide button { min-height: 0; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: #21120c; }
.gallery-slide img { height: 100%; object-fit: contain; }
.gallery-caption { margin: 0; padding: 16px 20px; color: white; background: rgba(20,10,5,.92); font-family: "Cormorant Garamond", serif; font-size: 21px; text-align: center; }
.gallery-caption small { display: block; margin-top: 4px; font: 500 10px Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e2c5a5; }
.gallery-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; color: #f6dfc4; font-family: "Cormorant Garamond", serif; font-size: 24px; text-align: center; }
.carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: rgba(28,15,9,.72); font-size: 34px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.carousel-arrow:hover { background: rgba(255,255,255,.2); }
.carousel-arrow:disabled { display: none; }
.carousel-arrow.previous { left: -24px; }
.carousel-arrow.next { right: -24px; }
.gallery-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; min-height: 12px; margin-top: 18px; }
.gallery-dot { width: 10px; height: 10px; padding: 0; border: 1px solid white; border-radius: 50%; background: transparent; cursor: pointer; }
.gallery-dot.active { background: white; }
.gallery-upload-button { display: flex; margin: 28px auto 0; }
.upload-dialog { width: min(620px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: visible; }
.upload-dialog::backdrop { background: rgba(16,9,5,.86); }
.upload-dialog .form-card { max-height: 92vh; overflow: auto; }
.upload-dialog h2 { font-size: clamp(42px, 7vw, 62px); }
.dialog-close { position: absolute; z-index: 2; top: 10px; right: 14px; border: 0; color: #3b2417; background: none; font-size: 32px; cursor: pointer; }
.upload-consent { display: flex; gap: 10px; align-items: flex-start; text-transform: none; line-height: 1.5; }
.upload-consent input { flex: 0 0 auto; width: auto; margin-top: 2px; }
.upload-help { margin: -4px 0 20px; color: #75655b; font-size: 12px; line-height: 1.5; }
.registry { text-align: center; }
.registry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.registry-card { min-height: 160px; display: grid; place-content: center; text-decoration: none; border: 1px solid var(--line); background: white; box-shadow: 0 14px 34px rgba(48,31,20,.08); transition: transform .2s ease, box-shadow .2s ease; }
.registry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.registry-card span { font-family: "Cormorant Garamond", serif; font-size: 30px; }
.registry-card small { margin-top: 8px; text-transform: uppercase; letter-spacing: .12em; color: #8b6549; }
.registry-note { margin-top: 20px; color: #7a6c63; font-size: 12px; }
footer { padding: 54px 20px; text-align: center; color: white; background: var(--wood-dark); }
footer .script { margin: 0; font-family: Allura, cursive; font-size: 52px; }
footer p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
footer a { display: inline-block; margin-top: 12px; color: #e7c9a6; }
#lightbox { width: min(920px, 92vw); border: 0; padding: 0; background: transparent; color: white; }
#lightbox::backdrop { background: rgba(16,9,5,.9); }
#lightbox img { max-height: 78vh; object-fit: contain; }
#lightbox p { text-align: center; font-family: "Cormorant Garamond", serif; font-size: 24px; }
#lightbox-close { position: absolute; right: 0; top: -44px; color: white; background: none; border: 0; font-size: 36px; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 800px) {
  .hero-content { padding: 90px 16px 48px; }
  .hero-title-art { width: min(92vw, 610px); max-height: 52vh; }
  .hero .eyebrow { margin-top: -2px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; background: rgba(28,15,9,.98); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.1); }
  .details-grid, .registry-grid, .guestbook-layout { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .carousel-arrow.previous { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}
@media (max-width: 520px) {
  .photo-carousel { aspect-ratio: 4 / 5; }
  .carousel-arrow { width: 42px; height: 42px; }
  .radio-card { display: flex; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
