/* Silvana & Franz · 12.12.26
   Sistema visual tomado de las tarjetas impresas: papel, una tinta por
   sección, Fraunces en mayúsculas y una letra manuscrita para los enlaces. */

:root {
  --cream: #f3eedf;
  --blush: #ead9cf;
  --sage: #aeb596;
  --teal: #1e4a42;
  --olive: #6b7442;
  --persimmon: #cb6134;
  /* La misma tinta persimmon, más oscura, para texto pequeño sobre blush
     (contraste 4.5:1). Los títulos grandes usan la tinta original. */
  --persimmon-text: #a0461f;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-hand: "Shantell Sans", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --nav-h: 3.5rem;
  --measure: 34rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-serif);
  font-weight: 500;
  font-variation-settings: "opsz" 14, "SOFT" 30;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Grano de papel muy sutil sobre toda la página. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.075;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 260px 260px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
::selection {
  background: rgba(30, 74, 66, 0.18);
}

/* Tipografía */
.small-caps {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  line-height: 2;
  font-variation-settings: "opsz" 12, "SOFT" 20;
  margin: 0;
}
h1,
h2 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}
h1.names {
  font-size: clamp(2.35rem, 10.4vw, 3.6rem);
  margin: 1.4rem 0 1.1rem;
  text-wrap: balance;
}
h1.names em {
  font-style: italic;
  font-weight: 700;
}
h2 {
  font-size: clamp(2rem, 9vw, 3.1rem);
}
.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.hand-link {
  font-family: var(--font-hand);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.hand-link:hover,
.hand-link:focus-visible {
  text-decoration-thickness: 2.5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Secciones y papeles */
.sec {
  padding: 4.5rem 1.25rem;
}
.sec > .wrap {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}
.cream {
  background: var(--cream);
  color: var(--teal);
}
.blush {
  background: var(--blush);
  color: var(--persimmon);
}
.sage {
  background: var(--sage);
  color: var(--teal);
}
.blush .small-caps,
.blush .hand,
.blush .hand-link,
.blush .dress-notes {
  color: var(--persimmon-text);
}

/* Garabatos: recortes de las tarjetas originales, con fondo transparente. */
.doodle {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 100%;
}
.doodle.hero-doodle {
  width: min(100%, 30rem);
}
.doodle.sunbirds {
  width: 9.5rem;
  margin-bottom: 0.6rem;
}
.doodle.icon {
  width: 3.8rem;
}
.doodle.mailbox {
  width: 5.4rem;
  margin-bottom: 1.2rem;
}
.doodle.dancing {
  width: 10rem;
  margin-bottom: 1.6rem;
}
.doodle.heart {
  width: 3.4rem;
  margin-top: 2.6rem;
}
.doodle.heart-mini {
  width: 2rem;
  margin: 0;
}
.doodle.divider {
  width: 8rem;
  margin: 0 auto 2.4rem;
}
.doodle.sprig {
  width: 5.2rem;
  margin-top: 2.4rem;
}

/* Aparición suave al hacer scroll. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Navegación */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.25rem;
  background: rgba(243, 238, 223, 0.94);
  border-bottom: 1px solid rgba(30, 74, 66, 0.18);
  color: var(--teal);
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.menu-toggle {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: inherit;
  cursor: pointer;
}
.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-h);
  display: none;
  background: rgba(243, 238, 223, 0.98);
  border-bottom: 1px solid rgba(30, 74, 66, 0.18);
}
.nav.open .menu {
  display: block;
}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}
.menu a {
  display: block;
  padding: 0.65rem 0;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 600;
}
@media (min-width: 760px) {
  .menu-toggle {
    display: none;
  }
  .menu {
    position: static;
    display: block;
    background: none;
    border: 0;
  }
  .menu ul {
    flex-direction: row;
    gap: 1.7rem;
    padding: 0;
  }
  .menu a {
    padding: 0.2rem 0;
  }
  .menu a:hover {
    text-decoration: underline;
    text-underline-offset: 0.45em;
  }
}

/* Invitación */
.hero {
  padding-top: 3.2rem;
}
.hero .parents {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.9rem;
  align-items: center;
  margin: 2.4rem auto 1.9rem;
}
.hero .parents .col {
  display: grid;
  gap: 0.05rem;
}
.hero .parents .col .small-caps {
  line-height: 1.7;
  font-size: 0.74rem;
}
.hero .parents .rule {
  width: 1.5px;
  height: 3.6rem;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}
.hero .countdown {
  margin-top: 1.8rem;
  opacity: 0.8;
}

/* Itinerario */
.itinerary {
  list-style: none;
  margin: 2.4rem auto 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
  max-width: 21rem;
  text-align: left;
}
.itinerary li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 1.3rem;
}
.itinerary .time {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
  font-variation-settings: "opsz" 12, "SOFT" 20;
}
.itinerary .event {
  display: block;
  font-size: clamp(1.7rem, 7.4vw, 2.3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}

/* Vestimenta */
.sub {
  margin-top: 0.6rem;
}
.collage {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  align-items: end;
  gap: 0.6rem;
  margin: 2.8rem auto 0;
  max-width: 36rem;
}
.collage figure {
  margin: 0;
  position: relative;
}
.collage img {
  display: block;
  width: 100%;
  height: auto;
}
.collage figcaption {
  font-family: var(--font-hand);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 1rem;
  line-height: 1.35;
}
.collage .men {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.3rem;
}
.collage .men figcaption {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-top: 0.5rem;
  white-space: nowrap;
}
.collage .heels {
  padding-bottom: 2.6rem;
}
.collage .heels figcaption {
  text-align: center;
  margin-top: 0.6rem;
}
.collage .dress figcaption {
  position: absolute;
  left: -0.6rem;
  top: 3%;
  text-align: left;
}
.dress-notes {
  display: none;
  list-style: none;
  padding: 0;
  margin: 2.2rem auto 0;
  justify-content: center;
  gap: 0.6rem 1.8rem;
  flex-wrap: wrap;
  font-family: var(--font-hand);
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}
.no-photos .collage {
  display: none;
}
.no-photos .dress-notes {
  display: flex;
}

/* Botones */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--teal);
  color: var(--cream);
}
.sage .btn:hover,
.sage .btn:focus-visible {
  color: var(--sage);
}
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* R.S.V.P. */
#rsvp {
  padding-bottom: 3.2rem;
}
.rsvp .greeting {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin: 1.6rem 0 0;
}
.rsvp .lines {
  margin-top: 1.3rem;
}
.rsvp .lines strong {
  font-weight: 800;
}
.rsvp .answered {
  margin-top: 1.4rem;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.confirm-link {
  display: inline-block;
  margin-top: 1.9rem;
  background: none;
  border: 0;
  padding: 0;
}
.rsvp-form {
  margin: 2.2rem auto 0;
  max-width: 26rem;
  text-align: left;
  display: grid;
  gap: 1.15rem;
}
.rsvp-form[hidden] {
  display: none;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field[hidden] {
  display: none;
}
.field label,
.field .legend {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0;
}
.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--teal);
  background: rgba(243, 238, 223, 0.55);
  border: 1.5px solid var(--teal);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%231e4a42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6 l5 5 l5 -5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  padding-top: 0.2rem;
}
.choices.stack {
  flex-direction: column;
  gap: 0.55rem;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.choices input {
  accent-color: var(--teal);
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex: none;
}
.error {
  font-size: 0.85rem;
  font-style: italic;
  min-height: 1.2em;
}
.error:empty {
  display: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rsvp-status {
  margin: 0.2rem 0 0;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-align: center;
}
.rsvp-status:empty {
  display: none;
}
.rsvp-status .btn {
  margin-top: 0.9rem;
}
.rsvp-form.sent .field,
.rsvp-form.sent #rsvp-submit {
  display: none;
}

/* Regalos */
#regalos {
  padding-top: 0;
}
.gifts .blurb {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 2.05;
  font-variation-settings: "opsz" 12, "SOFT" 20;
}
.gifts .bank {
  margin: 1.9rem 0 0;
  font-family: var(--font-hand);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.98rem;
  line-height: 2.2;
}
.gifts .copy-btn {
  margin-top: 1rem;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-hand);
  font-size: 1rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Pie */
.foot {
  padding: 2.2rem 1.25rem 3.6rem;
  text-align: center;
}
.foot .doodle.heart {
  margin-top: 0;
}
.foot .date {
  margin-top: 0.9rem;
  letter-spacing: 0.32em;
}

/* Escritorio */
@media (min-width: 760px) {
  :root {
    --measure: 40rem;
  }
  .sec {
    padding: 6.5rem 2rem;
  }
  .hero {
    padding-top: 4.5rem;
  }
  .hero .parents {
    gap: 1.4rem;
  }
  .hero .parents .rule {
    height: 4.2rem;
  }
  .hero .parents .col .small-caps {
    font-size: 0.82rem;
  }
  .doodle.hero-doodle {
    width: min(100%, 34rem);
  }
  .itinerary {
    max-width: 25rem;
    gap: 2.6rem;
  }
  .itinerary li {
    grid-template-columns: 5rem 1fr;
    gap: 1.8rem;
  }
  .doodle.icon {
    width: 4.4rem;
  }
  .doodle.dancing {
    width: 12rem;
  }
  .collage {
    gap: 1.4rem;
    max-width: 44rem;
  }
}
