@font-face {
  font-family: Spectral;
  src: url("media/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Spectral;
  src: url("media/spectral-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --papel: #f6f3ea;
  --tinta: #20392e;
  --suave: #48594c;
  --laton: #9e7c41;
  --filete: #c8c8b6;
  --margen: clamp(1.3rem, 5.6vw, 6.5rem);
  font-family: Spectral, Georgia, serif;
  color: var(--tinta);
  background: var(--papel);
}
* { box-sizing: border-box; }
body, figure, p, h1 { margin: 0; }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
.hoja {
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 112rem);
  margin-inline: auto;
  padding: 0 var(--margen);
  display: flex;
  flex-direction: column;
}
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1rem, 2.7vh, 2.1rem) 0;
  border-bottom: 1px solid var(--filete);
}
.firma { display: flex; align-items: center; gap: .7rem; }
.firma img { width: clamp(2.3rem, 4vw, 3.5rem); height: auto; filter: brightness(.77); }
.firma span, .firma b { display: block; }
.firma span {
  font-weight: 600;
  font-size: .69rem;
  letter-spacing: .21em;
  line-height: 1.15;
  text-transform: uppercase;
}
.firma b { font-size: clamp(1.45rem, 2.05vw, 2.25rem); line-height: 1.14; font-weight: 600; letter-spacing: -.052em; }
.pais { display: flex; align-items: center; gap: .7rem; font-size: 1rem; }
.pais i { width: 2.1rem; height: 1px; background: var(--laton); }
.invitacion {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 5.5vw, 6.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vh, 6rem) 0 clamp(2.5rem, 7vh, 6.75rem);
}
.mensaje { z-index: 1; }
.anuncio {
  display: flex;
  gap: .55rem;
  align-items: center;
  color: #675334;
  font-size: clamp(.78rem, .94vw, .95rem);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .105em;
  line-height: 1.4;
}
.anuncio span { width: 2rem; height: 1px; margin-right: .22rem; background: var(--laton); }
.anuncio i { font-style: normal; }
h1 {
  margin: clamp(1.2rem, 3.8vh, 3rem) 0 clamp(1rem, 2.8vh, 2.2rem);
  font-size: clamp(3.65rem, 6.8vw, 8rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .94;
}
h1 span { color: #4d604c; }
.entrada { max-width: 26ch; font-size: clamp(1.45rem, 2.02vw, 2.3rem); line-height: 1.18; letter-spacing: -.035em; text-wrap: pretty; }
.proposito { max-width: 41ch; margin-top: .85rem; color: var(--suave); font-size: clamp(1rem, 1.17vw, 1.28rem); line-height: 1.48; text-wrap: pretty; }
.album {
  position: relative;
  width: min(100%, 40rem, 68vh);
  justify-self: end;
  padding: .8rem .8rem 0 1.1rem;
}
.umbral { position: relative; aspect-ratio: .99; }
.umbral::before {
  content: "";
  position: absolute;
  inset: -.65rem -.65rem .75rem .65rem;
  border: 1px solid #ab976f;
  border-radius: 52% 52% 0 0 / 48% 48% 0 0;
}
.umbral picture { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 52% 52% 0 0 / 48% 48% 0 0; background: #aab7a5; }
.umbral img { width: 100%; height: 100%; object-fit: cover; object-position: 59% 59%; }
.paisaje figcaption { display: flex; justify-content: end; color: var(--suave); margin-top: .65rem; font-size: .92rem; }
.recuerdo {
  position: absolute;
  bottom: 4%;
  left: -7%;
  width: clamp(10rem, 21.5vw, 21rem);
  padding: .46rem .46rem .1rem;
  transform: rotate(-7deg);
  background: #fffaf0;
  box-shadow: 0 1px 2px #2335281c, 0 7px 20px #20302438;
}
.recuerdo img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: center; }
.recuerdo figcaption { padding: .32rem .15rem .27rem; color: #3e4a38; font-size: clamp(.93rem, 1.23vw, 1.23rem); line-height: 1.15; }

@media (prefers-reduced-motion: no-preference) {
  .umbral img { animation: luz-del-valle 5.5s ease-out both; }
  .recuerdo { animation: posar .95s cubic-bezier(.2,.77,.23,1) both; }
  @keyframes luz-del-valle { from { transform: scale(1.055); } to { transform: scale(1); } }
  @keyframes posar {
    from { opacity: 0; transform: translateY(-1rem) rotate(-13deg); }
    to { opacity: 1; transform: translateY(0) rotate(-7deg); }
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .invitacion { column-gap: 1.7rem; }
  .anuncio { font-size: .72rem; letter-spacing: .065em; }
  .anuncio span { width: 1.15rem; }
  h1 { font-size: 6.8vw; }
  .recuerdo { left: -4%; width: 22vw; }
}
@media (max-width: 700px) {
  :root { --margen: clamp(1.25rem, 5.8vw, 2rem); }
  .cabecera { padding-block: .78rem; }
  .firma { gap: .4rem; }
  .firma img { width: 2.12rem; }
  .firma b { font-size: 1.34rem; }
  .firma span { font-size: .58rem; }
  .pais { font-size: .87rem; gap: .36rem; }
  .pais i { width: .95rem; }
  .invitacion { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(1.55rem, 4.2vh, 2.3rem); padding: 1.15rem 0 1.9rem; }
  .album { order: -1; align-self: center; width: min(84%, 23rem); padding: .5rem .5rem 0 1rem; }
  .umbral { height: clamp(9rem, 27svh, 19rem); aspect-ratio: auto; }
  .umbral::before { inset: -.4rem -.4rem .5rem .4rem; }
  .umbral img { object-position: 52% 57%; }
  .paisaje figcaption { font-size: .78rem; margin-top: .37rem; }
  .recuerdo { width: clamp(8.5rem, 43vw, 12.5rem); bottom: 8%; left: -7%; padding: .32rem .32rem .1rem; }
  .recuerdo figcaption { font-size: .78rem; padding: .19rem .06rem .08rem; }
  .anuncio { font-size: .74rem; letter-spacing: .075em; gap: .38rem; }
  .anuncio span { width: 1.35rem; }
  h1 { margin: .8rem 0 .8rem; font-size: clamp(3.05rem, 11.7vw, 5.3rem); line-height: .92; }
  .entrada { font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.16; max-width: 32ch; }
  .proposito { margin-top: .62rem; font-size: 1rem; line-height: 1.38; }
}
@media (max-width: 350px) {
  .pais i { display: none; }
  .firma b { font-size: 1.15rem; }
}
