* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;

  --fuente-titulo: "Merriweather", serif;
  --fuente-cuerpo: "Roboto", sans-serif;
  user-select: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuente-titulo);
  font-weight: 600;
}

p,
a,
ul,
ol,
li {
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  line-height: 1.6;
}

.pagina {
  width: 100%;
  max-width: 1080px;

  display: grid;
  grid-gap: 25px;
  grid-template-areas:
    "cabecera"
    "cuerpo"
    "pie";
}

.seccion {
  position: relative;
  padding: 20px;
}

.cabecera {
  grid-area: cabecera;
  text-align: center;
}

.cabecera h1 {
  margin: 12px 0;

  font-family: var(--fuente-titulo);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #111;
}

.datos-periodico {
  width: 92%;
  margin: 0 auto;
  padding: 3px 0;

  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;

  font-family: var(--fuente-cuerpo);
  font-size: 14px;

  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
}

.datos-periodico > div {
  display: flex;
  align-items: center;

  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.datos-periodico > div > div {
  flex: 1;
  padding: 8px;
  color: #444;
}

.cuerpo {
  grid-area: cuerpo;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 42px;
}

.tarjeta {
  position: relative;
  border: 1px solid black;
  background: white;
}

.tarjeta::after {
  content: "";
  position: absolute;
  z-index: -1;

  top: 0;
  left: 0;

  width: calc(100% + 10px);
  height: calc(100% + 10px);

  border-radius: 2px;

  background: var(--color-sombra, #c7c3ba);
  opacity: .5;
  filter: blur(1px);

  transition: all 0.3s cubic-bezier(0.3, 1.37, 0.7, 1.5);
}

.tarjeta:hover::after {
  border-radius: 0;
  transform: translateX(6px) translateY(6px);
}

.tarjeta h3 {
  position: absolute;
  top: calc(-1.6em - 5px);
  left: 24px;

  padding: 0 12px;

  font-family: var(--fuente-titulo);
  font-size: 34px;

  background: white;
}

.tarjeta p {
  margin-top: 0.05em;
  margin-bottom: 0.25em;

  line-height: 1.35;
  text-align: justify;
}

.autor {
  margin-top: 0;
  margin-bottom: 0.6em;

  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #444;
}

.autor::before {
  content: "Por ";
  font-weight: normal;
}

.autor + .texto {
  margin-top: 1em;
}

.sangrado {
  text-indent: 1.5em;
}

/* Poemas */

.tarjeta .verso {
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  line-height: 1.35;
  text-align: justify;
  
  text-indent: 0em;
  margin: 0;
}

.tarjeta .estrofa {
  margin-bottom: 0.5em;
}

.tarjeta .estrofa:last-child {
  margin-bottom: 0;
}


.pie {
  grid-area: pie;

  margin-top: 20px;
  padding-top: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.creditos {
  width: 100%;

  padding-top: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;

  font-family: var(--fuente-cuerpo);
  font-size: 0.8rem;
  border-top: 1px solid #ddd;
}

.legal {
  margin-top: 6px;
  padding-top: 8px;

  border-top: 1px solid #ddd;

  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

.navegacion-numeros {
  width: 100%;
  padding: 12px 0;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;

  border-top: 1px solid #222;
  border-bottom: 1px solid #222;

  font-family: var(--fuente-cuerpo);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-numero,
.nav-archivo {
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.navegacion-numeros a {
  color: #111;
}

.navegacion-numeros a:hover {
  text-decoration: underline;
}

.nav-desactivado {
  color: #aaa;
  cursor: default;
  pointer-events: none;
}
.nav-anterior {
  justify-self: start;
}

.nav-archivo {
  justify-self: center;
}

.nav-siguiente {
  justify-self: end;
}

.lista-archivo {
  margin: 0;
  padding-left: 0;
  list-style: none;
  
}

.lista-archivo li {
  margin-bottom: 0.35em;
}

.lista-archivo a {
  font-family: var(--fuente-cuerpo);
  font-size: 18px;
  line-height: 1.6;
  color: #111;
  text-decoration: none;

}

.lista-archivo a:hover {
  text-decoration: underline;
}

.aviso-copia {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);

  max-width: 420px;
  width: calc(100% - 40px);
  padding: 14px 20px;

  background: #111;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;

  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}

.aviso-copia.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Media */

@media screen and (max-width: 1200px) {
  .pagina {
    padding: 42px;
  }

  .cuerpo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 800px) {
  .cuerpo {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 639px) {
  .cabecera h1 {
    font-size: 42px;
  }

  .datos-periodico > div {
    display: block;
  }

  .datos-periodico > div > div {
    border-bottom: 1px solid #ccc;
  }

  .datos-periodico > div > div:last-child {
    border-bottom: none;
  }

  .navegacion-numeros {
    display: block;
    padding: 3px 0;
  }

  .navegacion-numeros > * {
    display: block;
    padding: 8px;
    border-bottom: 1px solid #ccc;
  }

  .navegacion-numeros > *:last-child {
    border-bottom: none;
  }

  .nav-anterior,
  .nav-archivo,
  .nav-siguiente {
    justify-self: center;
  }
}