/* Reyes & Francisco. A warm, quiet invitation with one consistent type family. */
:root {
  --paper: oklch(.982 .008 78);
  --ink: oklch(.32 .035 48);
  --muted: oklch(.45 .032 55);
  --pale: oklch(.946 .022 75);
  --line: oklch(.81 .035 67);
  --accent: oklch(.51 .10 48);
  --font: 'Libre Baskerville', Georgia, serif;
  --photo-radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--font); }
p,h1,h2,h3,h4,figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { cursor: pointer; color: inherit; }
a,button { -webkit-tap-highlight-color: transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; object-fit: cover; border-radius: var(--photo-radius); }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
::selection { background: var(--accent); color: var(--paper); }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; color: var(--paper); background: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; min-height: 64px; padding: 0 4%; display: flex; align-items: center; justify-content: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.site-header nav a { min-height: 44px; display: flex; align-items: center; }
.site-header nav a:hover { color: var(--accent); }
.languages { position: absolute; right: 4%; display: flex; gap: 2px; }
.languages button { border: 0; background: none; min-width: 36px; min-height: 44px; padding: 0 6px; font-size: 12px; color: var(--muted); }
.languages button[aria-pressed=true] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.hero-frame { max-width: 1160px; min-height: calc(100svh - 132px); margin-inline: auto; padding: 26px 44px 20px; display: grid; align-items: center; }
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: clamp(40px,6vw,84px); }
.invitation { display: flex; flex-direction: column; align-items: center; text-align: center; }
.invitation h1 { display: flex; flex-direction: column; align-items: center; font-size: clamp(3.6rem,6vw,5.4rem); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; margin-bottom: 28px; }
.invitation h1 i { display: flex; align-items: center; gap: 20px; font-size: .30em; font-style: normal; line-height: 1.5; letter-spacing: 0; margin: 8px 0 10px; color: var(--accent); }
.invitation h1 i::before,.invitation h1 i::after { content: ''; width: 28px; height: 1px; background: var(--line); }
.hero-date { font-size: 14px; color: var(--muted); line-height: 1.7; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent); background: none; padding: 12px 2px; font-size: 13px; min-height: 48px; }
.primary-button:hover { color: var(--ink); border-color: var(--ink); }
.invitation .primary-button { margin-top: 24px; }
.country-ribbons { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.country-ribbons>span:not(.ribbon-knot) { width: 22px; height: 10px; }
.flag-spain { background: linear-gradient(to bottom,oklch(.48 .15 25) 25%,oklch(.86 .15 88) 25% 75%,oklch(.48 .15 25) 75%); }
.flag-portugal { background: linear-gradient(to right,oklch(.39 .08 162) 40%,oklch(.48 .15 25) 40%); }
.ribbon-knot { color: var(--muted); font-size: 14px; }
.hero-photo { width: min(100%,360px); justify-self: center; border-radius: var(--photo-radius); overflow: hidden; box-shadow: 0 15px 40px -22px oklch(.3 .03 55/.3); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; }
.discover-link { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 68px; padding: 15px 20px; font-size: 12px; color: var(--muted); }
.discover-link:hover { color: var(--accent); }
.section-shell { max-width: 1230px; padding-inline: 55px; margin-inline: auto; }
.section-heading { text-align: center; margin-bottom: 62px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(2.3rem,4vw,3rem); line-height: 1.3; font-weight: 400; letter-spacing: -.025em; }
h3 { font-size: clamp(1.7rem,2.5vw,2.1rem); line-height: 1.35; font-weight: 400; letter-spacing: -.025em; }
h4 { font-size: 16px; line-height: 1.6; font-weight: 700; }
.section-heading h2 { margin-top: 14px; }
.wedding-section { padding-top: 74px; padding-bottom: 94px; }
.venue { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 78px; align-items: center; }
.venue-photo img { width: 100%; height: 100%; }
.cathedral-photo { height: 520px; border-radius: var(--photo-radius); overflow: hidden; }
.cathedral-photo img { object-position: center; }
.venue-copy h3 { margin: 16px 0 24px; }
.venue-copy>p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; margin-top: 22px; border-bottom: 1px solid currentColor; padding-bottom: 3px; line-height: 1.65; color: var(--accent); }
.text-link:hover { color: var(--ink); }
.transport-accordion { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.transport-accordion h4 { margin: 18px 0 12px; }
.transport-content { padding-bottom: 20px; font-size: 16px; color: var(--muted); }
.transport-content p+p { margin-top: 12px; }
.transport-content .text-link { margin-top: 14px; }
.reception-venue { margin-top: 94px; }
.reception-venue .venue-copy { order: -1; }
.bodega-photo { aspect-ratio: 1; overflow: hidden; border-radius: var(--photo-radius); }
.bodega-photo img { object-fit: contain; }
.directions-title { margin: 22px 0 10px; }
.walking-note { display: flex; gap: 12px; align-items: flex-start; }
.walking-note svg { margin-top: 4px; color: var(--accent); }
.prewedding-section { background: var(--pale); color: var(--ink); }
.prewedding-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px 78px; align-items: center; padding-top: 78px; padding-bottom: 70px; }
.prewedding-invite h2 { margin-bottom: 24px; }
.prewedding-time { margin-bottom: 18px; }
.prewedding-invite>p { color: var(--muted); }
.prewedding-photo img { width: 100%; height: auto; aspect-ratio: 3/2; }
.prewedding-photo figcaption { text-align: center; font-size: 14px; margin-top: 12px; color: var(--muted); }
.zambombas-story { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 78px; border-top: 1px solid var(--line); padding-top: 40px; }
.zambombas-story p { color: var(--muted); }
.zambombas-story .text-link { margin-right: 20px; }
.details-section { padding-top: 90px; padding-bottom: 80px; }
.practical-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 78px; }
.practical-grid h3 { margin: 0 0 24px; }
.practical-grid p { font-size: 16px; color: var(--muted); line-height: 1.8; }
.travel-intro { margin: 0 0 24px; }
.travel-item { display: flex; gap: 20px; padding-bottom: 28px; }
.travel-number { font-size: 16px; color: var(--accent); }
.travel-item h4 { margin-bottom: 8px; }
.travel-item .text-link { margin-top: 14px; }
.link-row { display: flex; flex-wrap: wrap; gap: 0 22px; }
.stay-airbnb { margin-top: 28px; }
.jerez-photo { margin-top: 28px; }
.jerez-photo img { width: 100%; height: auto; aspect-ratio: 4/3; }
.photo-credit { margin-top: 9px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }
.gift-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 78px; align-items: start; margin-top: 75px; border-top: 1px solid var(--line); padding-top: 65px; }
.gift-copy h3 { margin-bottom: 22px; }
.gift-copy>p { font-size: 16px; color: var(--muted); }
.registry-copy { padding-top: 0; }
.registry-copy h3 { margin-top: 22px; }
.gift-accounts { margin-top: 26px; max-width: 390px; }
.gift-accounts summary { list-style: none; cursor: pointer; }
.gift-accounts summary::-webkit-details-marker { display: none; }
.gift-accounts summary img { width: 100%; height: auto; aspect-ratio: 1; }
.gift-accounts summary>span { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.gift-accounts[open] .account-arrow { transform: rotate(180deg); }
.bank-details { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.bank-details p { font-size: 14px; }
.iban { font-size: 14px; font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; max-width: 100%; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 10px 0; background: none; font-size: 12px; }
.copy-button:hover { text-decoration: underline; }
.copy-status { min-height: 1.5em; font-size: 12px; }
.closing-section { padding: 0 28px 30px; }
.closing-photo { position: relative; max-width: 680px; margin-inline: auto; border-radius: var(--photo-radius); overflow: hidden; }
.closing-photo img { width: 100%; height: auto; aspect-ratio: 3/4; }
.closing-photo figcaption { position: absolute; top: 9%; left: 5%; width: 90%; text-align: center; color: var(--ink); }
.closing-photo h2 { font-size: clamp(2rem,4vw,3.4rem); font-style: normal; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 4%; font-size: 12px; color: var(--muted); }
.footer-monogram { font-size: 16px; color: var(--ink); }
.footer-monogram i { font-style: normal; }
.back-to-top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
p:empty { display: none; }
@media(min-width:851px) and (max-height:700px) {
  .hero-photo { width: min(100%,calc((100svh - 152px)*.75)); }
  .hero-frame { padding-block: 16px; }
  .invitation h1 { font-size: clamp(3rem,5.4vw,4.4rem); margin-bottom: 18px; }
  .invitation .primary-button { margin-top: 16px; }
  .country-ribbons { margin-top: 14px; }
}
@media(min-width:851px) and (max-width:1100px) {
  .section-shell { padding-inline: 36px; }
  .venue,.practical-grid,.gift-section,.prewedding-inner { gap: 48px; }
  .practical-grid h3 { min-height: 2.7em; }
  .site-header nav { gap: 22px; }
  .languages { right: 2%; }
}
@media(max-width:850px) {
  html { scroll-padding-top: 110px; }
  .site-header { min-height: 90px; padding: 42px 5% 0; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  .languages { right: 4%; top: 0; }
  .hero-frame { min-height: 0; padding: 32px 28px 18px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .invitation h1 { font-size: clamp(3rem,10.8vw,4.5rem); margin-bottom: 22px; }
  .invitation h1 i { margin: 5px 0 8px; }
  .hero-date { font-size: 13px; }
  .invitation .primary-button { margin-top: 18px; }
  .country-ribbons { margin-top: 18px; }
  .hero-photo { max-width: 340px; }
  .discover-link { min-height: 64px; font-size: 12px; }
  .section-shell { padding-inline: 25px; }
  .wedding-section,.details-section { padding-top: 58px; padding-bottom: 60px; }
  .section-heading { margin-bottom: 38px; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.75rem; }
  .venue,.practical-grid,.gift-section { grid-template-columns: minmax(0,1fr); gap: 30px; max-width: 520px; margin-inline: auto; }
  .cathedral-photo { height: auto; aspect-ratio: 4/5; }
  .reception-venue { margin-top: 60px; }
  .reception-venue .venue-copy { order: 0; }
  .prewedding-inner { grid-template-columns: minmax(0,1fr); padding-top: 58px; padding-bottom: 54px; gap: 36px; max-width: 590px; }
  .zambombas-story { grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 30px; }
  .stay-details { border-top: 1px solid var(--line); padding-top: 30px; }
  .gift-section { padding-top: 45px; margin-top: 55px; gap: 40px; }
  .gift-accounts { margin-inline: auto; }
  .closing-section { padding-inline: 23px; }
  .closing-photo { max-width: 520px; }
  .closing-photo h2 { font-size: clamp(1.6rem,6.5vw,2.8rem); }
  footer { flex-direction: column; text-align: center; padding: 28px 20px; gap: 10px; }
}
@media(max-width:380px) {
  .site-header nav { font-size: 10px; gap: 8px; }
  .hero-frame { padding-inline: 23px; }
  .hero-date { font-size: 12px; }
  .invitation h1 { font-size: 11vw; }
  .section-shell { padding-inline: 23px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none!important; animation: none!important; } }
@media print { .site-header,.copy-button,.back-to-top,.discover-link { display: none; } .venue,.practical-grid,.gift-section { break-inside: avoid; } }

/* Final requested spacing and framing adjustments. */
.invitation h1 { gap: 10px; }
.invitation h1>span { display: block; line-height: 1; }
.invitation h1 i { margin: 0; line-height: 1; }
.hero-photo { aspect-ratio: 3/4; }
.hero-photo img { height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 50% 43%; }
.bodega-photo img { object-fit: cover; transform: scale(1.13); transform-origin: 50% 0; }
.closing-photo { aspect-ratio: 3/3.5; }
.closing-photo img { height: 100%; object-fit: cover; object-position: center bottom; }
.closing-photo figcaption { top: 7%; }
html[lang=es] .gift-section { grid-template-columns: minmax(0,1fr); gap: 28px; max-width: 680px; margin-inline: auto; }
html[lang=es] .gift-accounts { max-width: 390px; }
html[lang=es] .registry-copy h3 { margin-top: 0; }

/* Requested Spanish invitation alignment and date emphasis. */
html[lang=es] .invitation h1 { gap: 14px; letter-spacing: 0; }
html[lang=es] .country-ribbons { display: grid; grid-template-columns: 22px 16px 22px; justify-items: center; gap: 10px; }
html[lang=es] .ribbon-knot { line-height: 1; }
html[lang=es] .hero-date { font-size: clamp(16px,1.4vw,19px); font-weight: 700; text-wrap: balance; }
html[lang=es] .nh-link { display: none; }
.account-holder { user-select: all; }
