:root {
  font-family: sans-serif;
  line-height: 1.6;

  /* variables */
  --font-color: #e0e0e0;
  --page-bg: radial-gradient(#3c0b00, #0a0a0a);

  /* links */
  --link: #b8c2c1;
  --link-hover: #e6e6fa;
  --active: #f9c1b5;
  --gap: 24px;
  --border: 1px solid #bf3c3c;
  --border-radius: 10px;
  --padding: 1rem;
}

a {
  text-decoration: none;
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

.active {
  color: var(--active);
  font-weight: bold;
}

.index-logo {
  font-size: xx-large;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: sans-serif;
  gap: var(--gap);
  background: var(--page-bg); /* authentic */
  color: var(--font-color);
  width: 80%;
  margin: 0 auto;
}

header {
  display: flex;
  margin: 2rem 1rem 2rem;
  border: var(--border);
  border-radius: var(--border-radius);
  position: sticky;
  top: 1rem;
  background: radial-gradient(#1d252a);
  backdrop-filter: blur(20px);
  padding: var(--padding);
  z-index: 1; /* make it appear top of everything. largest value is the toppest element. required a defined position property to work. */
}

nav {
  display: flex;
  gap: var(--gap);
  flex: 1;
  align-items: center;
  justify-content: right;
  margin-right: 1rem;
}

main {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  flex: 1;
  padding: var(--padding);
}

.index {
  gap: 48px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  margin: 3rem auto 3rem;
}

.index-image {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 1rem #a41720); /* authentic */
}

.greeting {
  font-size: 3rem;
  margin: 0;
}
.explanation {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  padding: 1rem;

  counter-reset: count;
}

li {
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 24px;
  background-color: rgba(91, 108, 105, 0.5);
  backdrop-filter: blur(10px);

  counter-increment: count;
}

li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

span.list-numbering::before {
  content: counter(count) ". ";
  color: #f7d3d1;
  font-weight: bold;
  font-size: 20px;
  padding: 5px;
}

footer {
  display: flex;
  margin: 3rem 1rem 1rem;
  border-radius: var(--border-radius);
  justify-content: center;
  bottom: 1rem;
  background: radial-gradient(#1d252a);
  backdrop-filter: blur(20px);
  padding: var(--padding);
}

.article-images {
  display: flex;
  justify-content: center;
}

.article-images img {
  width: 300px;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem;
}

.articles-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-preview {
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;

  align-items: center;
}

.article-title {
  font-weight: bold;
  font-size: 24px;
}

.article-description {
  padding: 1rem;
}

@media (max-width: 600px) {
  body {
    width: 90%;
    margin: 0 auto;
  }

  main {
    padding: 0;
  }

  ul {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .intro {
    margin: 1rem auto 1rem;
  }

  .greeting {
    font-size: 42px;
    text-align: center;
  }

  .index-logo {
    font-size: medium;
  }

  .articles-container {
    grid-template-columns: 1fr;
  }

  .article-preview {
    padding: 0;
  }
}
