:root {
  color-scheme: light;
  --papel: #f7f4ed;
  --tinta: #142333;
  --texto-secundario: #505961;
  --linea: #d9d4c9;
  --naranja: #ff9a5c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }

.ancho { width: min(100% - 80px, 1240px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--linea); }
.barra, .pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.barra a, .pie a { text-decoration: none; }
.barra a:hover, .pie a:hover { text-decoration: underline; }
.barra nav, .pie a { font-size: .88rem; font-weight: 650; }
.barra nav span, .pie a span { margin-left: .35em; }
.firma { font: 700 1.7rem / 1 var(--serif); letter-spacing: -.065em; }
.firma span { color: #ac4321; }

.portada {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 35px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--tinta);
  color: var(--papel);
}

.saludo { align-self: center; padding: clamp(35px, 5.8vw, 88px); }
.dedicatoria {
  margin-bottom: 25px;
  color: #ffd0b2;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { font: 400 clamp(3.25rem, 7vw, 7rem) / .91 var(--serif); letter-spacing: -.065em; }
h1 em { color: var(--naranja); font-weight: 400; }
.entrada { max-width: 29ch; margin-top: 26px; color: #e1e5e8; line-height: 1.55; }
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 48px;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid var(--naranja);
  border-radius: 3px;
  background: var(--naranja);
  color: var(--tinta);
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}
.boton:hover { background: #ffb88a; }
.boton:focus-visible { outline-color: var(--naranja); }
.boton span { font-size: 1.1rem; }

.destacado { display: grid; grid-template-rows: 1fr auto; min-width: 0; background: #eae4d8; color: var(--tinta); }
.destacado img { height: 100%; min-height: 0; aspect-ratio: 3 / 2; }
.destacado figcaption { padding: 19px 25px 22px; border-top: 1px solid #d9d1c4; }
.destacado h2 { font: 400 1.55rem / 1.1 var(--serif); letter-spacing: -.025em; }
.destacado p { margin-top: 7px; color: var(--texto-secundario); font-size: .88rem; }

.lista { padding-block: 65px 70px; scroll-margin-top: 24px; }
.titulo-lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--linea);
}
.titulo-lista h2 { font: 400 clamp(2.2rem, 4.8vw, 4.1rem) / 1 var(--serif); letter-spacing: -.055em; }
.titulo-lista p { color: var(--texto-secundario); font-size: .84rem; }

.regalos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 23px 0 0;
}
.regalos article {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: 5px;
  background: #fffcf7;
}
.regalos img { aspect-ratio: 3 / 2; background: #ebe4d7; }
.detalle { padding: 17px 19px 21px; }
.detalle h3 { font: 400 1.46rem / 1.15 var(--serif); letter-spacing: -.025em; }
.detalle p { margin-top: 8px; color: var(--texto-secundario); font-size: .89rem; line-height: 1.45; }

.pie { border-top: 1px solid var(--linea); }
.pie > span { font: italic 1.19rem / 1.2 var(--serif); }

@media (max-width: 940px) {
  .ancho { width: calc(100% - 48px); }
  .saludo { padding: 35px; }
  .regalos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .ancho { width: calc(100% - 32px); }
  .barra { min-height: 58px; }
  .portada { grid-template-columns: 1fr; margin-top: 19px; }
  .saludo { padding: 34px 24px; }
  h1 { font-size: clamp(3.15rem, 12.5vw, 5rem); }
  .destacado figcaption { padding-inline: 19px; }
  .lista { padding-block: 42px; }
  .regalos { gap: 13px; }
  .detalle { padding: 14px; }
  .detalle h3 { font-size: 1.23rem; }
  .detalle p { font-size: .82rem; }
}

@media (max-width: 360px) {
  .regalos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
