/* stylesheet for index siden */

/* wrapper */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* samme gælder for begge h1 */
h1 {
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  font-size: 2.75em;
}

/* ---------- de 4 artikler i headeren ---------- */

/* hele div'en som indenholder alle 4 sections */
header div {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2%;
  padding: 30px 20px 0 20px;
}

header div img {
  width: 100%;
}

/* mellemrummet fra billederne til tekst */
header div h3 {
  margin-top: 0.5em;
}

/* farven på de 4 sections text */
a {
  color: #000;
}

/* ---------- den første sektion (tour/article & mest læste/aside) ---------- */

/*  */
.article-top {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  column-gap: 20px;
  grid-template-areas: "article article aside";
}

/* articlen her i sektionen */
.article-top article {
  grid-area: article;
}

article p {
  font-size: 1.5em;
}

/* asiden her i sektionen */
.article-top aside {
  grid-area: aside;
  font-size: 1.375em;
}

.article-top aside h3 {
  font-size: 1.75em;
  color: #e30613;
  font-weight: 600;
}

aside li {
  cursor: pointer;
}

hr {
  margin-bottom: 1em;
}

.article-top aside ul li:nth-child(n + 2) {
  margin-top: 1.4em;
}

/* ---------- den sidste sektion (kb-havnernes regning) ---------- */

.section-end p {
  font-size: 1.5em;
}

.section-end {
  margin-top: 50px;
  margin-bottom: 100px;
}

/* til headeren */
@media only screen and (max-width: 860px) {
  header div {
    padding-top: 90px;
  }
}

/* til 4 thumbnails i toppen */
@media only screen and (max-width: 720px) {
  /* normal størrelse - 70% */
  main {
    font-size: 0.8em;
  }
  .article-top aside h3 {
    padding-top: 20px;
  }
  header div {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    font-size: 1em;
  }
  .article-top {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    column-gap: 20px;
    grid-template-areas:
      "article"
      "aside";
  }
  .article-top article {
    margin-top: 20px;
  }
  .article-top aside {
    margin-top: 40px;
  }
}

/* til headeren */
@media only screen and (max-width: 420px) {
  header div {
    padding-top: 30px;
  }
  .section-end {
    padding-top: 20px;
  }
  main {
    font-size: 0.8em;
  }
  header div {
    font-size: 0.9em;
  }
}
