﻿:root {
  --sol-bajo: #d99a62;
  --sombra-olivo: #4b5142;
  --arcilla: #a9583f;
  --azul-aire: #afc6ca;
  --papel: #f7f4ee;
  --tinta: #1b1b18;
  --ceniza: #706f69;
  --linea: #d8d4cc;
  --blanco: #fff;
  --margin: 16px;
  --gap: 8px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --ease: cubic-bezier(.2,.65,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--papel); color: var(--tinta); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { border-radius: 0; font: inherit; }
button { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--sol-bajo); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 16px; background: var(--papel); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; min-height: 72px; padding: 12px var(--margin); display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--papel) 38%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(7px); transition: min-height 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease); }
.site-header.is-scrolled { min-height: 60px; background: color-mix(in srgb, var(--papel) 92%, transparent); border-color: var(--linea); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand span { font-family: var(--serif); font-size: 1.2rem; }
.brand small { margin-top: 5px; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.menu-toggle { min-width: 44px; min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-decoration-color: var(--sol-bajo); text-underline-offset: 5px; }
.primary-nav { position: fixed; inset: 0; z-index: -1; padding: 112px var(--margin) 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; background: var(--papel); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 220ms var(--ease), visibility 220ms; }
.primary-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.primary-nav a { font-family: var(--serif); font-size: clamp(2rem, 10vw, 4rem); text-decoration: none; }
.primary-nav .nav-cta { margin-top: 24px; font-family: var(--sans); font-size: 1rem; text-decoration: underline; text-decoration-color: var(--sol-bajo); }

.opening { padding: 0 var(--margin); }
.hero-photo .image-button { height: 92svh; min-height: 540px; }
.hero-photo img { object-position: center; }
.opening-meta { padding: 10px 0 0; display: flex; justify-content: space-between; gap: 16px; color: var(--sombra-olivo); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
.opening-meta i { font-style: normal; }

.work-sheet { padding: 32px var(--margin) 0; }
.movement { scroll-margin-top: 76px; }
.movement-heading, .portrait-intro, .sequence-intro, .about { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; align-items: end; }
.movement-heading { margin-bottom: 12px; }
.movement-heading > p:last-child, .sequence-intro span { margin: 0; color: var(--ceniza); font-size: .66rem; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.section-label, .eyebrow { margin: 0; color: var(--sombra-olivo); font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.gallery-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.gallery-item { position: absolute; }
.image-button { position: relative; width: 100%; height: 100%; min-height: 44px; padding: 0; overflow: hidden; border: 0; background: var(--azul-aire); cursor: zoom-in; }
.image-button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--sol-bajo); transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--ease); }
.image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms var(--ease); }
.gallery-item > figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dense-pair { height: min(82svh, 700px); }
.hands { z-index: 2; inset: 0 auto auto 0; width: 53%; height: 62%; }
.hands img { object-position: center; }
.vows { inset: 19% 0 auto auto; width: 69%; height: 68%; }
.vows img { object-position: 54% center; }
.editorial-pause { min-height: 42svh; padding: 36px 6vw; display: grid; grid-template-columns: 1fr 4fr; gap: 16px; align-items: center; border-block: 1px solid var(--linea); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: .96; }
h1 { max-width: 850px; font-size: clamp(2.8rem, 8vw, 7.8rem); }
h2 { font-size: clamp(2rem, 5vw, 5rem); }
.editorial-pause p:not(.eyebrow), .portrait-intro p:not(.section-label), .about div > p { max-width: 520px; margin: 16px 0; }
.text-link { font-weight: 500; text-decoration-color: var(--sol-bajo); }
.sequence-intro { padding: 22px 0 12px; }
.sequence-intro p { max-width: 560px; margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 2rem); line-height: 1.15; }
.wedding-sheet { height: min(82svh, 720px); }
.bouquet { inset: 0 auto auto 0; width: 75%; height: 63%; }
.dress { z-index: 2; inset: auto 0 3% auto; width: 66%; height: 56%; box-shadow: -8px -8px 0 var(--papel); }
.bouquet img, .dress img { object-position: center; }
.testimonial { min-height: 43svh; margin: 0; padding: 36px 4vw; display: flex; flex-direction: column; justify-content: center; border-block: 1px solid var(--linea); }
.testimonial p { max-width: 1000px; margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 4vw, 4.2rem); line-height: 1.05; }
.testimonial footer { margin-top: 18px; color: var(--ceniza); font-size: .72rem; }
.portraits { padding-top: 28px; }
.portrait-intro { padding-bottom: 16px; }
.portrait-intro > div { grid-column: 2; }
.portrait-sheet { height: min(112svh, 920px); }
.dance { inset: 0 auto auto 0; width: 70%; height: 55%; }
.table { z-index: 2; inset: 18% 0 auto auto; width: 43%; height: 42%; box-shadow: -8px 8px 0 var(--papel); }
.doorway { inset: auto auto 0 8%; width: 64%; height: 48%; }
.dance img, .table img { object-position: center; }
.doorway img { object-position: center 42%; }
.about { margin-top: 20px; padding: 24px 0 40px; border-top: 1px solid var(--linea); }
.about > div { grid-column: 2; }

.contact { padding: 48px var(--margin); display: grid; gap: 32px; background: var(--azul-aire); border-block: 1px solid color-mix(in srgb, var(--sombra-olivo) 25%, transparent); }
.contact-copy > p:not(.eyebrow) { margin: 16px 0 6px; }
.contact-copy > a { font-weight: 500; }
.contact-form { max-width: 700px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--tinta); border: 1px solid color-mix(in srgb, var(--sombra-olivo) 55%, transparent); background: color-mix(in srgb, var(--blanco) 36%, transparent); }
textarea { resize: vertical; }
.form-row { display: grid; }
.honeypot { position: absolute !important; left: -9999px !important; }
.consent { margin: 4px 0 20px; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .78rem; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--arcilla); }
.submit-button { min-height: 48px; padding: 0 20px; border: 1px solid var(--arcilla); background: var(--arcilla); color: var(--blanco); font-weight: 700; cursor: pointer; transition: color 300ms var(--ease), background-color 300ms var(--ease); }
.submit-button:hover { background: var(--sombra-olivo); border-color: var(--sombra-olivo); }
.site-footer { padding: 22px var(--margin); display: flex; flex-direction: column; gap: 14px; color: var(--sombra-olivo); font-size: .72rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13,13,11,.96); color: var(--blanco); opacity: 0; transition: opacity 220ms var(--ease), display 220ms allow-discrete, overlay 220ms allow-discrete; }
.lightbox[open] { opacity: 1; }
.lightbox::backdrop { background: rgba(13,13,11,.96); }
.lightbox-toolbar { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.lightbox-counter { margin: 0; font-size: .75rem; letter-spacing: .09em; }
.lightbox-close, .lightbox-prev, .lightbox-next { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--blanco); cursor: pointer; }
.lightbox-close { display: flex; align-items: center; gap: 10px; }
.lightbox-close span { font-size: 1.7rem; }
.lightbox-stage { height: calc(100dvh - 64px); display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; touch-action: pan-y; }
.lightbox-stage figure { height: 100%; min-width: 0; padding: 0 0 24px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-stage figcaption { min-height: 1.5em; text-align: center; color: #dedbd5; font-size: .78rem; }
.lightbox-prev, .lightbox-next { font-size: 1.5rem; }

@media (hover: hover) and (pointer: fine) {
  .image-button:hover img, .image-button:focus-visible img { transform: scale(1.018); }
  .image-button:hover::after, .image-button:focus-visible::after { transform: scaleX(1); }
}
@media (min-width: 600px) {
  :root { --margin: 24px; --gap: 12px; }
  .dense-pair { height: min(82svh, 760px); }
  .hands { width: 45%; height: 70%; }
  .vows { width: 67%; height: 73%; }
  .wedding-sheet { height: min(88svh, 820px); }
  .bouquet { width: 69%; height: 69%; }
  .dress { width: 55%; height: 60%; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) {
  :root { --margin: 32px; --gap: 16px; }
  .menu-toggle { display: none; }
  .primary-nav { position: static; z-index: auto; padding: 0; flex-direction: row; justify-content: initial; align-items: center; gap: 28px; background: transparent; visibility: visible; opacity: 1; pointer-events: auto; }
  .primary-nav a, .primary-nav .nav-cta { margin: 0; font-family: var(--sans); font-size: .75rem; }
  .primary-nav a { text-decoration: none; }
  .primary-nav a:hover { text-decoration: underline; text-decoration-color: var(--sol-bajo); }
  .hero-photo .image-button { min-height: 620px; }
  .work-sheet { padding-top: 44px; }
  .movement-heading, .portrait-intro, .sequence-intro, .about { grid-template-columns: 2fr 5fr; }
  .dense-pair { height: min(90vh, 820px); }
  .hands { width: 42%; height: 75%; }
  .vows { top: 10%; width: 65%; height: 78%; }
  .editorial-pause { min-height: 46vh; padding-block: 48px; grid-template-columns: 2fr 10fr; }
  .wedding-sheet { height: min(92vh, 850px); }
  .bouquet { width: 68%; height: 72%; }
  .dress { width: 52%; height: 64%; }
  .testimonial { min-height: 46vh; padding-block: 48px; }
  .portrait-sheet { height: min(108vh, 960px); }
  .dance { width: 66%; height: 65%; }
  .table { width: 35%; height: 43%; }
  .doorway { left: 22%; width: 55%; height: 52%; }
  .contact { grid-template-columns: 5fr 7fr; padding-block: 64px; }
}
@media (min-width: 1280px) {
  :root { --margin: 48px; --gap: 20px; }
  .work-sheet { padding-top: 48px; }
  .editorial-pause { padding-inline: 9vw; }
  .about { padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .image-button img { transform: none !important; }
}
