:root {
  --night: #071d24;
  --deep: #0d313a;
  --ink: #10343c;
  --forest: #155444;
  --grass: #78a84f;
  --lime: #c7ef70;
  --cyan: #59e2de;
  --sky: #dff6f6;
  --paper: #f6f2e6;
  --sand: #e8dfc5;
  --soil: #855d39;
  --muted: #557078;
  --line: rgba(16, 52, 60, .16);
  --shadow: 0 22px 60px rgba(7, 29, 36, .18);
  --pixel: "Pixelify Sans", monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
body::before { content: ""; position: fixed; z-index: -2; inset: 0; background: linear-gradient(120deg, #f8f4e8, #e4f0e7 50%, #d9eeee); }
img, video { display: block; max-width: 100%; }
button, a, input, select, textarea { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; line-height: .98; }
h1 { margin-bottom: 16px; font-size: clamp(3.65rem, 15vw, 8rem); letter-spacing: -.045em; }
h1 span { display: block; color: var(--lime); font-size: .74em; }
h2 { margin-bottom: 18px; font-size: clamp(2.4rem, 9vw, 5.2rem); letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: clamp(1.35rem, 4vw, 1.9rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--night); background: var(--lime); box-shadow: 4px 4px 0 var(--night); font-size: .8rem; font-weight: 800; transform: translateY(-180%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.eyebrow, .label { margin-bottom: 10px; color: var(--forest); font-family: var(--pixel); font-size: .79rem; font-weight: 700; letter-spacing: .09em; line-height: 1.2; }
.section { width: min(100%, 1160px); margin-inline: auto; padding: 88px 22px; }
.section-heading { max-width: 710px; margin: 0 auto 34px; text-align: center; }
.section-heading--left { margin-left: 0; text-align: left; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.03rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; padding: 13px 18px; border: 1px solid transparent; border-radius: 7px; box-shadow: 4px 4px 0 currentColor; font-family: var(--pixel); font-size: .91rem; font-weight: 700; line-height: 1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 currentColor; }
.button--primary { color: var(--night); background: var(--cyan); }
.button--outline { color: var(--deep); border-color: var(--deep); background: transparent; }
.button--light { color: var(--night); background: var(--paper); box-shadow: 5px 5px 0 var(--night); }
.button--full { width: 100%; }
.button:focus-visible, .copy-button:focus-visible, .text-link:focus-visible, .action-link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .quantity-control button:focus-visible, .ronda-signature:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.hero { position: relative; min-height: 100svh; isolation: isolate; overflow: hidden; color: white; background: var(--night); }
.hero__media, .hero__veil, .hero__grid { position: absolute; inset: 0; }
.hero__media { z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero__veil { z-index: -2; background: linear-gradient(180deg, rgba(2, 28, 42, .74) 0%, rgba(8, 51, 59, .17) 42%, rgba(3, 17, 19, .2) 69%, rgba(3, 17, 19, .7) 100%); }
.hero__grid { z-index: -1; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 49%); }
.hero__content { width: min(calc(100% - 44px), 690px); padding: calc(34px + env(safe-area-inset-top)) 0 140px; margin-inline: auto; }
.hero__content .eyebrow { color: var(--cyan); text-shadow: 1px 1px 0 var(--night); }
.hero__date { margin-bottom: 23px; color: white; font-family: var(--pixel); font-size: .99rem; letter-spacing: .11em; text-shadow: 1px 1px 2px var(--night); }
.scroll-cue { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; width: 26px; height: 40px; border: 2px solid rgba(255,255,255,.86); border-radius: 18px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; background: var(--cyan); transform: translateX(-50%); animation: scrollCue 1.8s ease-in-out infinite; }

.story { position: relative; max-width: 820px; padding-top: 126px; padding-bottom: 118px; text-align: center; }
.story h2 { max-width: 640px; margin-inline: auto; }
.story > p:not(.eyebrow) { max-width: 590px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.18rem); }
.story__tokens { display: flex; justify-content: center; gap: 13px; margin-top: 48px; }
.story__tokens span { width: 14px; height: 14px; background: var(--cyan); box-shadow: 3px 3px 0 var(--deep); }
.story__tokens span:nth-child(2) { background: var(--grass); transform: translateY(9px); }
.story__tokens span:nth-child(3) { background: var(--soil); }

.video-section { max-width: 980px; padding-top: 42px; }
.video-frame { position: relative; width: min(100%, 412px); aspect-ratio: 9 / 16; margin-inline: auto; overflow: hidden; border: 5px solid var(--deep); background: var(--night); box-shadow: 10px 10px 0 var(--grass), 18px 18px 0 rgba(13, 49, 58, .16); }
.video-frame::after { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px solid rgba(255,255,255,.42); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-fallback { position: absolute; z-index: 2; inset: 0; display: grid; align-content: end; gap: 9px; padding: 30px 25px; color: white; background: linear-gradient(0deg, rgba(7,29,36,.96), rgba(7,29,36,.08)), url("assets/imagen_base.png") center / cover; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.video-fallback strong { font-family: var(--pixel); font-size: 1.5rem; line-height: 1.05; }
.video-fallback span { font-size: .86rem; }
.video-frame.is-video-unavailable video { visibility: hidden; }
.video-frame.is-video-unavailable .video-fallback { opacity: 1; }

.countdown-section { position: relative; overflow: hidden; color: white; background: var(--deep); }
.countdown-section::before { content: ""; position: absolute; width: 390px; height: 390px; top: -235px; left: -190px; background: var(--cyan); opacity: .17; box-shadow: 260px 270px 0 -70px var(--lime); transform: rotate(20deg); }
.countdown-section__inner { position: relative; width: min(100%, 1100px); padding: 84px 22px 90px; margin-inline: auto; text-align: center; }
.countdown-section .eyebrow { color: var(--lime); }
.countdown-section h2 { color: white; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 720px; margin: 38px auto 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.17); }
.time-unit { padding: 17px 7px 15px; }
.time-unit + .time-unit { border-left: 1px solid rgba(255,255,255,.17); }
.time-unit strong { display: block; color: var(--cyan); font-family: var(--pixel); font-size: clamp(2rem, 8vw, 4.3rem); line-height: .9; }
.time-unit span { display: block; margin-top: 10px; color: rgba(255,255,255,.73); font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.countdown-finished { margin: 30px 0 0; color: var(--lime); font-family: var(--pixel); font-size: 1.35rem; }

.event-section { padding-top: 114px; }
.event-card { display: grid; grid-template-columns: 126px 1fr; gap: 20px; max-width: 800px; margin: 0 auto; padding: 15px; border: 1px solid var(--line); background: rgba(255,255,255,.42); box-shadow: var(--shadow); }
.event-card__date { display: grid; min-height: 160px; place-content: center; gap: 5px; color: var(--night); background: var(--cyan); text-align: center; box-shadow: 5px 5px 0 var(--deep); }
.event-card__date span { font-family: var(--pixel); font-size: .76rem; letter-spacing: .07em; }
.event-card__date strong { font-family: var(--pixel); font-size: 4.65rem; line-height: .75; }
.event-card__details { align-self: center; }
.event-card__details .label { margin-bottom: 6px; color: var(--forest); }
.event-card__details h3 { margin-bottom: 10px; }
.event-card__details p { margin-bottom: 4px; color: var(--muted); }
.event-card__details p strong { color: var(--ink); }
.event-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.mission-section { padding-top: 120px; }
.mission-grid { display: grid; max-width: 1010px; margin: 0 auto; border: 1px solid var(--line); }
.mission-card { position: relative; min-height: 224px; padding: 28px 26px; background: rgba(255,255,255,.42); border-bottom: 1px solid var(--line); }
.mission-card:nth-child(even) { background: rgba(221, 244, 236, .44); }
.mission-card--featured { color: white; background: var(--forest); }
.mission-card--featured .label { color: var(--lime); }
.mission-card--featured p:last-child { color: rgba(255,255,255,.78); }
.mission-card__number { display: block; margin-bottom: 30px; color: var(--cyan); font-family: var(--pixel); font-size: .82rem; }
.mission-card:not(.mission-card--featured) p:last-of-type { margin-bottom: 0; color: var(--muted); }
.mission-card--song { background: linear-gradient(135deg, rgba(89,226,222,.34), rgba(255,255,255,.64)); }
.text-link { display: inline-flex; gap: 7px; margin-top: 17px; color: var(--forest); font-family: var(--pixel); font-size: .96rem; font-weight: 700; }

.gift-section { padding-top: 62px; padding-bottom: 62px; }
.gift-card { display: grid; gap: 28px; max-width: 960px; padding: clamp(28px, 6vw, 56px); margin: 0 auto; color: white; background: var(--night); box-shadow: 10px 10px 0 var(--soil); }
.gift-card .eyebrow { color: var(--lime); }
.gift-card h2 { color: white; font-size: clamp(2rem, 7vw, 3.7rem); }
.gift-card p:last-child { max-width: 520px; margin-bottom: 0; color: rgba(255,255,255,.74); }
.alias-control { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); }
.alias-control strong { overflow-wrap: anywhere; color: var(--cyan); font-family: var(--pixel); font-size: clamp(1rem, 3vw, 1.32rem); letter-spacing: .04em; }
.copy-button { min-height: 40px; padding: 9px 13px; color: var(--night); border: 0; border-radius: 4px; background: var(--lime); font-family: var(--pixel); font-size: .86rem; font-weight: 700; }

.actions-section { padding-top: 46px; padding-bottom: 82px; }
.actions-grid { display: grid; max-width: 1010px; margin: 0 auto; border-top: 1px solid var(--line); }
.action-link { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 19px 2px; border-bottom: 1px solid var(--line); transition: color .2s ease, padding .2s ease; }
.action-link:hover { padding-inline: 8px; color: var(--forest); }
.action-link > span { color: var(--cyan); font-family: var(--pixel); font-size: .78rem; }
.action-link strong { font-family: var(--pixel); font-size: 1.06rem; }
.action-link small { color: var(--muted); font-size: .76rem; text-align: right; }

.rsvp-section { padding-top: 76px; padding-bottom: 118px; }
.rsvp-card { display: grid; gap: clamp(30px, 6vw, 72px); max-width: 1000px; padding: clamp(25px, 5vw, 52px); margin: 0 auto; border: 1px solid var(--line); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.rsvp-card__intro p:last-child { max-width: 420px; margin-bottom: 0; color: var(--muted); }
.rsvp-form { display: grid; gap: 9px; }
.rsvp-form > label, .quantity-field > label { color: var(--forest); font-family: var(--pixel); font-size: .83rem; font-weight: 700; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: #fffef9; font-size: 16px; outline: none; }
.rsvp-form input, .rsvp-form select { min-height: 51px; }
.rsvp-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.rsvp-form input::placeholder, .rsvp-form textarea::placeholder { color: #87999a; }
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(89,226,222,.24); }
.field-error { min-height: 0; color: #a03631; font-size: .75rem; font-weight: 750; }
.field-error.is-visible { min-height: 18px; }
.quantity-field { display: grid; gap: 9px; }
.quantity-field.is-hidden { display: none; }
.quantity-control { display: grid; grid-template-columns: 51px minmax(0, 1fr) 51px; gap: 8px; align-items: center; }
.quantity-control input { text-align: center; font-weight: 800; }
.quantity-control input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.quantity-control input[type="number"]::-webkit-inner-spin-button, .quantity-control input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.quantity-control button { min-height: 51px; color: var(--night); border: 1px solid var(--deep); border-radius: 4px; background: var(--cyan); font-size: 1.5rem; font-weight: 800; }
.quantity-control button:disabled, .rsvp-form input:disabled { cursor: not-allowed; opacity: .52; }
.rsvp-form [aria-invalid="true"] { border-color: #a03631; box-shadow: 0 0 0 3px rgba(160,54,49,.15); }

.closing-section { position: relative; min-height: 565px; display: grid; place-items: center; isolation: isolate; overflow: hidden; color: white; background: var(--night); }
.closing-section__media, .closing-section__veil { position: absolute; inset: 0; }
.closing-section__media { z-index: -2; }
.closing-section__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.closing-section__veil { z-index: -1; background: linear-gradient(180deg, rgba(5,24,29,.26), rgba(5,24,29,.88)); }
.closing-section__content { width: min(calc(100% - 44px), 760px); padding: 70px 0; text-align: center; }
.closing-section__content .eyebrow { color: var(--cyan); }
.closing-section__content h2 { color: white; font-size: clamp(3rem, 12vw, 7.3rem); }
.closing-section__content > p:last-child { margin-bottom: 0; color: var(--lime); font-family: var(--pixel); font-size: 1rem; letter-spacing: .12em; }

.footer { padding-top: 42px; padding-bottom: calc(75px + env(safe-area-inset-bottom)); text-align: center; }
.ronda-signature { display: inline-flex; flex-direction: column; gap: 3px; color: var(--muted); }
.ronda-signature span { font-size: .76rem; letter-spacing: .06em; }
.ronda-signature strong { color: var(--forest); letter-spacing: .12em; }
.ronda-signature small { font-size: .68rem; }
.toast { position: fixed; z-index: 40; right: 16px; bottom: calc(130px + env(safe-area-inset-bottom)); left: 16px; max-width: 430px; padding: 13px 16px; margin: auto; color: white; background: var(--night); box-shadow: var(--shadow); font-size: .83rem; font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.floating-cta { position: fixed; z-index: 30; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 16px; color: var(--night); background: var(--lime); box-shadow: 4px 4px 0 var(--night); font-family: var(--pixel); font-size: .87rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .24s ease, transform .24s ease; }
.floating-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes scrollCue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 13px); } }

@media (min-width: 700px) {
  .hero__content { padding-top: max(13vh, 100px); margin-left: max(6vw, calc((100vw - 1120px) / 2)); }
  .hero__media img { object-position: center 38%; }
  .story { padding-top: 154px; padding-bottom: 148px; }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-card { border-right: 1px solid var(--line); }
  .mission-card:nth-child(2n) { border-right: 0; }
  .mission-card:nth-last-child(-n + 2) { border-bottom: 0; }
  .mission-card--featured { grid-row: span 2; min-height: 448px; }
  .gift-card { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .actions-grid { grid-template-columns: repeat(3, 1fr); }
  .action-link { grid-template-columns: 1fr; align-content: center; min-height: 155px; padding: 23px; border-right: 1px solid var(--line); }
  .action-link:last-child { border-right: 0; }
  .action-link small { text-align: left; }
  .rsvp-card { grid-template-columns: .9fr 1fr; }
}

@media (min-width: 980px) {
  .section { padding-top: 126px; padding-bottom: 126px; }
  .video-section { padding-top: 52px; }
  .event-section { padding-top: 142px; }
  .closing-section { min-height: 680px; }
}

@media (max-width: 430px) {
  .section { padding-inline: 18px; }
  .hero__content { width: min(calc(100% - 36px), 690px); }
  .hero__content h1 { font-size: clamp(3.25rem, 15vw, 4.2rem); }
  .event-card { grid-template-columns: 106px 1fr; gap: 16px; padding: 11px; }
  .event-card__date { min-height: 146px; }
  .event-card__date strong { font-size: 4rem; }
  .event-card__details h3 { font-size: 1.22rem; }
  .event-actions .button { flex: 1 1 155px; }
  .video-frame { box-shadow: 7px 7px 0 var(--grass), 13px 13px 0 rgba(13,49,58,.16); }
  .time-unit { padding-inline: 3px; }
  .time-unit strong { font-size: 1.78rem; }
  .time-unit span { font-size: .55rem; }
  .alias-control { align-items: stretch; }
  .copy-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
