* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Questrial";
  src: url("../fonts/Questrial/Questrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/Roboto_Mono/RobotoMono-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-colour: #0000ff;
}

.logo {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: Roboto Mono;
  color: var(--primary-colour);
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
}

.main-nav a:hover,
.main-nav a:focus {
  text-decoration: underline;
}

.mobile-nav {
  display: none;
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    text-decoration-line: underline;
    text-decoration-style: wavy;
  }
}

.mobile-nav-site a {
  font-size: 2rem;
  text-decoration: none;
  color: inherit;
}

.mobile-nav-site li {
  list-style: none;
}

.mobile-nav-site ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0;
}

.rss-info {
  background: var(--primary-colour);
  color: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.outer-wrapper {
  width: 100%;
  padding: 1.5rem;
}

.content-wrapper {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-wrapper a {
  text-decoration-line: underline;
  text-decoration-style: wavy;
}

.content-wrapper a:hover,
.content-wrapper a:focus {
  text-decoration-line: underline;
  text-decoration-style: solid;
}

h1 {
  font-size: 1rem;
  font-weight: 400;
}

h3 {
  font-family: Questrial;
  font-size: 2rem;
  font-weight: 300;
}

p,
ul,
ol,
li {
  font-size: 0.875rem;
  line-height: 1.4;
}

ul,
ol {
  padding-left: 2.5rem;
  list-style-position: outside;
}

.box-tags {
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.box-tag {
  font-size: 0.75rem;
  background: white;
  border: 1px solid var(--primary-colour);
  padding: 0.25rem 0.5rem;
  border-radius: 5rem;
}

.number-tag {
  background: var(--primary-colour);
  color: white;
  font-weight: bold;
}

.grid-container {
  column-width: 300px;
  column-gap: 3rem;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  break-inside: avoid;
  margin-bottom: 3rem;
  width: 100%;
}

.box img {
  width: 100%;
  display: block;
  height: auto;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  color: inherit;
}

.external-link svg {
  width: 1em;
  height: 1em;
  display: inline-block;
}

.external-link:hover,
.external-link:focus {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 1200px) {
  .grid-container {
    columns: 4;
  }
}

/* Kleinere Tablets */
@media (max-width: 900px) {
  .grid-container {
    columns: 3;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .grid-container {
    columns: 1;
  }
}
