:root {
  --olive: #3C3A1A;
  --deep: #2D2B14;
  --hero-brown: #3B2A1C;
  --ivory: #EADCC2;
  --cream: #F0E6D2;
  --cream-2: #DDD2BC;
  --ink: #2E2C17;
  --ink-2: #5B5A40;
  --sage: #A7B095;
  --line: #D2C2A3;
  --panel: #E1D1B3;
  --panel-2: #E3D5BA;
  --script: "Luxurious Script", cursive;
  --serif: "the-seasons", "Cormorant Garamond", Georgia, serif;
  --italic: "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.75; color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.section { padding: 112px 24px; }
.section--olive { background: var(--olive); color: var(--cream); }
.section--ivory { background: var(--ivory); color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.center { text-align: center; align-items: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Type */
.lockup { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lockup__script { font-family: var(--script); font-size: 80px; line-height: 1; position: relative; z-index: 1; margin-bottom: -26px; margin-right: 1.8em; }
.lockup__caps { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.h3 { font-family: var(--serif); font-size: 32px; line-height: 1.2; }
.h2 { font-family: var(--serif); font-size: 44px; line-height: 1.15; }
.lead { font-family: var(--italic); font-style: italic; font-size: 21px; line-height: 1.5; }
.label { font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.section--olive .muted { color: var(--cream-2); }
.quote { font-family: var(--italic); font-style: italic; line-height: 1.2; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage); }
.rule { width: 64px; height: 1px; background: var(--sage); border: 0; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 15px 36px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; border-radius: 0; line-height: 1.4; }
.btn--cream { background: var(--cream); color: var(--deep); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline-cream { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--cream); }
.site-header__inner { max-width: 1240px; margin: 0 auto; padding: 6px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: inline-flex; padding: 6px 0; }
.site-header__logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 0 26px; font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; }
.nav a { color: var(--cream); text-decoration: none; padding: 16px 0; }
.nav a.nav__rsvp { padding: 11px 22px; border: 1px solid var(--cream); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font: inherit; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; padding: 14px 4px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--deep); padding: 8px 24px 24px; border-top: 1px solid rgba(241,236,223,0.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(241,236,223,0.1); }
  .nav a.nav__rsvp { margin-top: 14px; text-align: center; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-brown); color: var(--cream); min-height: calc(100svh - 52px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 24px 112px; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0.5; }
.hero__scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(24,17,10,0.55), rgba(24,17,10,0) 100%); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__names { font-family: var(--script); font-size: clamp(76px, 10vw, 150px); line-height: 1.05; }
.hero__kicker { margin-top: 2px; font-size: 14px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__line { margin-top: 72px; max-width: 640px; font-family: var(--italic); font-style: italic; font-size: 28px; line-height: 1.4; }
.hero__date { margin-top: 64px; font-size: 13px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.8; }
.hero__countdown { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 1.8em; }
.countdown__num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--cream); }
.countdown__label { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--sage); }
.hero .btn { margin-top: 40px; }
.hero__reply { margin-top: 14px; font-family: var(--italic); font-style: italic; font-size: 19px; }

/* The Wedding */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 48px 56px; margin-top: 72px; }
.trio__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.unplugged { margin-top: 56px; display: flex; flex-direction: column; gap: 40px; align-items: center; text-align: center; }
.unplugged p { max-width: 640px; font-family: var(--italic); font-style: italic; font-size: 23px; line-height: 1.55; }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; margin-top: 72px; }
.story__text { flex: 1 1 440px; min-width: 0; max-width: 580px; display: flex; flex-direction: column; gap: 48px; }
.story__block { display: flex; flex-direction: column; gap: 16px; }
.story__punch { font: inherit; }
.story__photo { flex: 1 1 360px; min-width: 0; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 72px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery figcaption { color: var(--ink-2); }
.story__close { margin-top: 72px; text-align: center; font-family: var(--italic); font-style: italic; font-size: 22px; }

/* Proposal */
.proposal { display: flex; flex-direction: column; gap: 96px; }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.split__text { flex: 1 1 440px; min-width: 0; max-width: 540px; display: flex; flex-direction: column; gap: 20px; }
.split__media { flex: 1 1 380px; min-width: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split--reverse { flex-wrap: wrap-reverse; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; width: 100%; }
.row3 > * { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.loop { position: relative; overflow: hidden; background: var(--deep); }
.loop video, .loop img { width: 100%; height: 100%; object-fit: cover; }
.loop img { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop video { display: none; }
  .loop img { display: block; }
}
.moment { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; max-width: 640px; margin: 0 auto; }
.moment .quote--md { font-size: clamp(42px, 5vw, 62px); }
.moment .quote--lg { font-size: clamp(50px, 6vw, 76px); }
.watch { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 72px; border-top: 1px solid rgba(167,176,149,0.5); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.card .btn { align-self: flex-start; margin-top: auto; }
.card__spacer { flex-grow: 1; min-height: 6px; }
.note { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.section--olive .note { color: var(--cream-2); }
.fine { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.divider-block { max-width: 680px; margin: 0 auto; padding-top: 48px; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; gap: 14px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; }
.input { width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 17px; color: var(--ink); background: #F5EDDE; border: 1px solid var(--sage); border-radius: 0; }
textarea.input { min-height: 88px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.panel { background: var(--panel); padding: 40px; }
.status { min-height: 1.5em; font-size: 15px; }
.status--error { color: #8A2E1E; }
.section--olive .status--error { color: #F2B8A8; }
.guest { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.guest__name { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.hidden { display: none !important; }

/* Registry */
.registry-group { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 40px; border-top: 1px solid var(--line); }
.fund { display: flex; flex-direction: column; border: 1px solid var(--line); }
.fund__art { aspect-ratio: 4 / 3; background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.fund__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.fund__amount { margin-top: auto; padding-top: 8px; font-size: 15px; color: var(--ink-2); }
.gift-list { width: 100%; border-top: 1px solid var(--line); }
.gift { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; }
.gift__brand { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); }
.gift__name { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.gift__price { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.gift .btn { padding: 11px 20px; font-size: 12px; }
@media (max-width: 600px) { .gift { grid-template-columns: 1fr auto; } .gift .btn { grid-column: 1 / -1; justify-self: start; } }

/* FAQ */
.faq { width: 100%; max-width: 780px; margin: 56px auto 0; border-bottom: 1px solid rgba(167,176,149,0.45); }
.faq details { border-top: 1px solid rgba(167,176,149,0.45); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--sans); font-size: 26px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 640px; }
@media (prefers-reduced-motion: reduce) { .faq summary span { transition: none; } }

/* Travel */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 48px 56px; margin-top: 56px; }
.tips > div { display: flex; flex-direction: column; gap: 12px; }

/* RSVP + contact */
.two-col { display: flex; flex-wrap: wrap; gap: 80px; align-items: flex-start; }
.two-col > * { flex: 1 1 420px; min-width: 0; }

/* Footer */
.site-footer { background: var(--deep); color: var(--cream); padding: 72px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.site-footer__names { font-family: var(--script); font-size: 64px; line-height: 1.1; }

/* Wedding Day page */
.gate { min-height: calc(100svh - 52px); display: flex; align-items: center; justify-content: center; padding: 96px 24px; background: var(--olive); color: var(--cream); }
.gate__box { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.gate .form { width: 100%; }
.timeline { border-top: 1px solid rgba(167,176,149,0.45); max-width: 760px; margin: 40px auto 0; }
.timeline__row { display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(167,176,149,0.45); }
.timeline__time { flex: 0 0 140px; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.timeline__what { flex: 1 1 280px; }
.figure-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; width: 100%; }
.figure-pair figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.figure-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 56px 64px; margin-top: 104px; }
.details-grid > div { display: flex; flex-direction: column; gap: 12px; }

/* Small screens */
@media (max-width: 600px) {
  .section { padding: 80px 20px; }
  .lockup__script { font-size: 56px; margin-bottom: -16px; margin-right: 1.4em; }
  .h2 { font-size: 34px; }
  .lead { font-size: 19px; }
  .panel { padding: 28px 22px; }
  .hero__line { font-size: 23px; }
  .faq summary { font-size: 22px; }
}

/* Lockup with more breathing room (long script words) */
.lockup--loose .lockup__script { margin-bottom: -6px; }

/* Story and proposal chapters */
.chapters { display: flex; flex-direction: column; gap: 64px; margin-top: 56px; }
.chapter { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-start; justify-content: center; }
.chapter__text { flex: 1 1 380px; min-width: 0; max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.chapter__media { flex: 1 1 400px; min-width: 0; max-width: 520px; }
.chapter__media:not(.collage) > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .chapter--reverse .chapter__media { order: -1; } }
.collage { position: relative; width: 100%; padding-bottom: 10%; }
.collage__main { width: 80%; aspect-ratio: 4 / 5; object-fit: cover; }
.collage__inset { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid var(--ivory); }
.section--olive .collage__inset { border-color: var(--olive); }
.chapter--reverse .collage__main { margin-left: auto; }
.chapter--reverse .collage__inset { right: auto; left: 0; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.strip figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip figcaption { color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } .chapters { gap: 56px; } }
.story__close { margin-top: 64px; }

/* Proposal rhythm */
.proposal { gap: 72px; }
.proposal .watch-inline { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 10px; }

/* Contact */
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

/* Registry, compact */
.funds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; text-align: left; }
@media (max-width: 900px) { .funds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .funds { grid-template-columns: 1fr; } }
.funds .fund__art { aspect-ratio: 8 / 5; overflow: hidden; }
.funds .fund__art img { width: 100%; height: 100%; object-fit: cover; }
.funds .fund__art svg { width: 108px; height: auto; }
.funds .fund__body { padding: 18px 22px 22px; gap: 6px; }
.fund__name { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.funds .fund__body p { font-size: 15px; line-height: 1.6; }
.funds .fund__amount { font-size: 13px; }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 18px; width: 100%; text-align: left; }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.tile { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.tile__art { aspect-ratio: 1 / 1; background: var(--panel-2); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px; }
.tile__art svg { width: 72%; height: auto; }
.tile__art img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.tile__brand { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.tile__name { font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.tile__price { font-size: 14px; color: var(--ink-2); }
.tile__cta { margin-top: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sage); }
.tile__cta--muted { text-decoration: none; color: var(--ink-2); font-weight: 400; }
a.tile:hover .tile__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sage); }
.fund__btn { align-self: flex-start; margin-top: 10px; padding: 10px 20px; font-size: 12px; }
.registry-teaser > img { aspect-ratio: 4 / 3; }

.chapter__inset { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 10px; }
@media (min-width: 900px) {
  .chapter--fill { align-items: stretch; }
  .chapter--fill .chapter__media { align-self: flex-start; }
  .chapter--fill .chapter__inset { flex: 1 1 0; min-height: 220px; height: auto; aspect-ratio: auto; object-position: 50% 45%; }
}
