:root {
  --distance-side: 10vw;
  background-color: var(--c-aqua);
}

header {
  --link-color: var(--r-blue);
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 3rem var(--distance-side);
}

header > div.main-hero {
  grid-row: 1;
  grid-column: 1;
}

header > div.newsletter {
  --link-color: var(--r-blue);
  grid-row: 1/3;
  grid-column: 2;
  border-radius: 15px;
  background-color: #fff;
  padding: 1rem;
  height: fit-content;
}

header > div.report {
  grid-row: 2;
  grid-column: 1;
}

section#scandals {
  background-color: var(--white);
  padding: 3rem var(--distance-side);
}

section#scandals > div.cards {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  gap: 2rem;
}

section#scandals > div.cards > div.card {
  flex: 0 1 fit-content;
  align-content: start;
  background-color: var(--r-blue-10);
  padding: 1rem 2rem;
  max-width: fit-content;
  height: fit-content;
}

section#scandals > div.cards > div.card :where(h1, h2, h3, h4, h5, h6) > span {
  --headline-bg-col: var(--white);
  --headline-font-col: var(--r-blue);
}

section#scandals > div.cards div.tags {
  display: flex;
  flex-flow: row wrap;
  justify-content: start;
  gap: 0.5rem;
}

section#scandals > div.cards div.tags > a {
  border-radius: 5px;
  background-color: var(--white);
  padding: 0.3rem;
  color: var(--r-blue-60);
  font-size: var(--copy-size);
  font-family: var(--copy-font);
}

section#scandals div.tags > a::before {
  margin-right: 0.15rem;
  content: '\f02b';
  font: var(--fa-font-solid);
}

section#scandals div.share > a::before {
  margin-right: 0.5rem;
  content: '\f1e0';
  font: var(--fa-font-solid);
}

#shareModal {
  display: none;
  position: fixed;
  top: 0;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: 1fr;
  align-content: center;
  justify-content: center;
  justify-items: center;
  gap: 2rem;
  z-index: 1000;
  box-sizing: border-box;
  background-color: var(--r-blue);
  padding: 3rem calc(var(--distance-side) / 2);
  width: 100%;
  color: var(--white);
}
#shareModal.show {
  display: grid;
}

#shareModal h3 {
  grid-row: 1;
  grid-column: 1 / -1;
  text-align: center;
}

#shareModal div.links {
  display: grid;
  grid-template-rows: repeat(auto-fit, minmax(6rem, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  grid-auto-flow: row;
  grid-row: 2;

  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

#shareModal a {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 10px;
  background-color: var(--r-blue-60);
  padding: 1rem;
  aspect-ratio: 1;
  width: fit-content;
  min-width: fit-content;
  min-height: fit-content;
  color: var(--white);
  text-align: center;
}

#shareModal a > i {
  font-size: 2rem;
}

#shareModal a > span {
  font-size: 0.8rem;
}

#shareModal > #closeModal {
  grid-row: 3;
  grid-column: 1 / -1;
}

footer {
  display: flex;
  flex-flow: row wrap;
  justify-content: start;
  align-items: center;
  gap: 1rem;
  background-color: var(--r-blue);
  padding: 1rem var(--distance-side);
}

@media screen and (max-width: 768px) {
  header {
    grid-template-rows: repeat(4, auto);
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  header > div.main-hero {
    grid-row: 1;
    grid-column: 1;
  }

  header > div.newsletter {
    grid-row: 2;
    grid-column: 1;
  }

  header > div.report {
    grid-row: 3;
    grid-column: 1;
  }

  header > div.about {
    grid-row: 4;
    grid-column: 1;
  }

  section#scandals {
    padding: 1rem;
  }

  section#scandals > div.cards {
    flex-flow: column wrap;
  }

  section#scandals > div.cards > div.card {
    max-width: 100%;
  }

  footer {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
  }
}
