/* The home page's sheet and its first screen (blocks/home/Hero.astro).
   The page is the sheet: its blocks take the sheet's width, not the reading column every
   other `main > section` keeps (landing.css). */
.inicio {
  width: 100%;
  max-width: var(--hoja);
  margin-inline: auto;
  padding: var(--hueco-2) var(--sangria) 0;
}
/* :where keeps it under a block's own padding (the close's dark card, cierre.css) */
.inicio > :where(section) { max-width: none; padding-inline: 0; }

/* On a phone the fan of covers, the heading, the line and the door share the first screen
   (390x844), set tight, the fan over the words and never wider than the screen. */
.portada { display: grid; gap: var(--hueco-5); padding-block: var(--hueco-2) var(--hueco-7); }
.portada-sellos { --sello: clamp(6rem, 30vw, 8.5rem); }
.portada-titulo {
  margin: 0;
  font-family: var(--f-prosa);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.05rem, 8.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.portada-bajada { margin: var(--hueco-2) 0 0; font-family: var(--f-prosa); font-size: 1.15rem; line-height: 1.4; }
.portada-puerta { display: block; margin-top: var(--hueco-4); }
.portada-datos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hueco-2);
  margin: var(--hueco-3) 0 0;
  padding: 0;
  list-style: none;
}
.portada-datos li {
  padding: 0.15rem var(--hueco-2);
  border-radius: var(--curva-chica);
  background: var(--papel-hondo);
  font-family: var(--f-ui);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Wider, one pair: the words at the left, the fan at the right; with no covers the words
   alone at the sheet's left, as every block under them, in a column a line can be read
   across. */
@media (min-width: 56rem) {
  .portada { max-width: 38rem; margin-inline: 0; padding-block: var(--hueco-7) var(--hueco-8); }
  .portada:has(.portada-sellos) { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: var(--hueco-8); }
  /* three stamps overlapping take some 2.24 of one: up to half the sheet's width */
  .portada-sellos { --sello: clamp(9rem, 15vw, 9.9rem); grid-column: 2; grid-row: 1; }
  .portada-titulo { font-size: 3.2rem; }
  .portada-bajada { font-size: 1.2rem; }
  .portada-puerta { display: inline-block; }
}
