@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600&family=Cormorant+Garamond:wght@400;500;600&family=Pinyon+Script&display=swap");

:root {
  --pine: #17413a;
  --granite: #2b3033;
  --stone: #f6ece9;
  --snow: #fdf9f7;
  --aspen: #b4577a;
  --blush: #f2cfd3;
  --dusk: #56668f;
  --plum: #7b2f5b;
  --burgundy: #5e1d3a;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --ink: #18201e;
  --muted: #5a6560;
  --serif: "Young Serif", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--aspen); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--pine); }
h3 { font-size: 1.3rem; }
p { max-width: 62ch; margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* masthead: centered names on a solid field, nav row, framed photo */
.masthead { background: var(--pine); color: var(--snow); text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.masthead h1 { font-family: var(--script); font-size: clamp(3.4rem, 13vw, 7.5rem); color: var(--blush); line-height: 1.05; margin: 0 0 .25em; }
.masthead p { max-width: none; margin: 0; }
.masthead .when { font-size: 1.05rem; letter-spacing: .02em; }
.masthead .countdown { margin-top: .5rem; color: var(--blush); font-weight: 600; }
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.75rem; margin: 1.75rem 0 2rem; }
.menu a { color: var(--snow); text-decoration: none; font-size: .95rem; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.menu a:hover { border-bottom-color: var(--blush); }
.menu a:focus-visible { outline-color: var(--blush); }
.frame { margin: 0 auto; max-width: 960px; background: var(--snow); padding: clamp(.4rem, 1.2vw, .75rem); }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* details */
.intro { background: var(--stone); }
.intro p.lead { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; max-width: 30ch; color: var(--pine); }
.facts { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2.5rem; }
.facts div { border-top: 3px solid var(--aspen); padding-top: 1rem; }

/* gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 2rem; }
.gallery figure { margin: 0; overflow: hidden; background: var(--stone); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .25s; }
.gallery img:hover { transform: scale(1.03); }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding: .4rem .1rem 0; }
.empty { color: var(--muted); border: 1px dashed #aab3ae; padding: 1.5rem; max-width: 62ch; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lightbox::backdrop { background: rgba(10,16,14,.88); }
dialog.lightbox img { max-height: 92vh; width: auto; margin: auto; }

/* cta + forms */
.cta { background: var(--dusk); color: #fff; }
.cta h2 { color: #fff; }
.btn, button { display: inline-block; background: var(--plum); color: #fff; border: 0; padding: .8rem 1.6rem; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover, button:hover { background: var(--burgundy); }
.cta .btn { background: var(--blush); color: var(--burgundy); }
.cta .btn:hover { background: #fff; }
.cta a:focus-visible { outline-color: #fff; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; padding: calc(.8rem - 2px) calc(1.6rem - 2px); }
.btn + .btn { margin-left: .75rem; }
footer { padding: 2rem 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* gate / guest */
.gate { display: grid; place-items: center; min-height: 100vh; background: var(--stone); }
.gate-box { background: #fff; padding: 2.5rem; width: min(420px, 100% - 2rem); border-top: 4px solid var(--aspen); }
.gate-box label { display: block; font-weight: 600; margin-bottom: .3rem; }
.gate-box input { width: 100%; padding: .7rem; font: inherit; border: 1px solid #aab3ae; margin-bottom: 1rem; }
.err { color: #9a2a1a; font-weight: 500; }
.guest-head { background: var(--pine); color: #fff; padding: 3rem 0 2.5rem; }
.guest-head h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: 0; }
.guest-head a { color: #fff; }
.schedule { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 40rem; }
.schedule li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #d3d8d4; }
.schedule time { font-weight: 600; color: var(--pine); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}

/* hotels */
.hotels { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 44rem; }
.hotels li { padding: .9rem 0; border-bottom: 1px solid #c4cbc6; display: grid; gap: .15rem; }
.hotels li a, .hotels li strong { font-family: var(--serif); font-size: 1.25rem; }
.hotels li span { color: var(--muted); }

/* faq */
.faq { max-width: 44rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid #c4cbc6; padding: .85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6rem 0 0; }

/* us */
.us { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, 380px) 1fr; align-items: center; }
.us-photo { margin: 0; background: var(--snow); padding: .6rem; box-shadow: 0 0 0 1px #e6d3d4; }
.us-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.us-text h2 { margin-bottom: .25em; }
@media (max-width: 720px) { .us { grid-template-columns: 1fr; } .us-photo { max-width: 360px; justify-self: center; } }
.us.solo { grid-template-columns: minmax(0, 380px); justify-content: center; }
.us.solo .us-text { display: none; }

/* rsvp + honeymoon fund */
.cta-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cta-grid p { margin-bottom: 1.25rem; }

[hidden] { display: none !important; }

/* map */
.map-embed { display: block; width: 100%; max-width: 44rem; height: clamp(260px, 50vw, 360px); border: 0; margin-top: 1.25rem; background: var(--stone); }
.map-link { margin-top: .5rem; }

/* v2 design: full-bleed photo hero, Garamond serif, airy cream layout */
:root { --serif: "Cormorant Garamond", Georgia, serif; --snow: #fbf6f2; --stone: #fbf6f2; }
body { font-size: 1.125rem; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; text-align: center; letter-spacing: .01em; }
h2::after { content: ""; display: block; width: 3rem; height: 1px; background: var(--aspen); margin: .6rem auto 0; }
h3 { font-weight: 600; }
section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.wrap > p, .wrap > .lead { margin-inline: auto; }
.intro { background: var(--snow); }
#stay, #todo-section { background: #f4e8e4; }
.intro p.lead { text-align: center; max-width: 34ch; font-weight: 500; }
.facts { text-align: center; }
.facts div { border-top: 0; border-left: 0; }
.facts h3 { color: var(--plum); text-transform: uppercase; letter-spacing: .18em; font-size: .95rem; font-family: var(--sans); }

.masthead { position: relative; min-height: 100svh; display: grid; align-content: center; isolation: isolate; background: var(--pine); padding: 4rem 0 3rem; }
.masthead .frame { position: absolute; inset: 0; z-index: -2; max-width: none; padding: 0; background: none; margin: 0; }
.masthead .frame img { height: 100%; aspect-ratio: auto; }
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23,65,58,.55), rgba(40,18,30,.55)); }
.masthead h1 { font-size: clamp(4rem, 17vw, 10rem); color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.masthead .when { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .12em; text-transform: uppercase; }
.masthead .countdown { color: var(--blush); font-family: var(--serif); font-size: 1.3rem; }
.menu { margin-top: 2.5rem; }
.menu a { color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }

.gallery { gap: 1rem; }
.hotels, .faq, .map-embed { margin-inline: auto; }
.hotels li { text-align: center; border-bottom: 1px solid #dcc3c3; padding: 1.2rem 0; }
.hotels li a, .hotels li strong { font-size: 1.6rem; font-weight: 500; color: var(--plum); }
.faq summary { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.us-text h2, .us-text h2::after { text-align: left; margin-left: 0; }
#travel-section .wrap { text-align: center; }
#travel-section p { margin-inline: auto; }
.cta { background: var(--burgundy); }
.cta h2 { text-align: left; } .cta h2::after { margin-left: 0; background: var(--blush); }
.cta .btn { border-radius: 0; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
footer { text-align: center; }
footer .wrap { justify-content: center; }
.us-photo { box-shadow: 0 10px 40px rgba(94,29,58,.15); }

.todo-photo { margin: 2rem auto 0; max-width: 44rem; }
.todo-photo img { width: 100%; height: auto; box-shadow: 0 10px 40px rgba(94,29,58,.15); }

/* collage */
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 2rem; }
.collage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; cursor: zoom-in; display: block; }
@media (min-width: 720px) { .collage { gap: .75rem; } }

/* centered subheads under section heads */
section .wrap > p { text-align: center; margin-inline: auto; }
.us-text p, .cta-grid p { text-align: left; }

/* lightbox controls */
dialog.lightbox { overflow: visible; }
.lb-btn { position: fixed; background: rgba(0,0,0,.45); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font: 400 2rem/1 var(--sans); padding: 0; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(0,0,0,.7); }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-close { right: .75rem; top: .75rem; font-size: 1.75rem; }
