:root {
  --background-color: #ffffff;
  --border-color-alt: #141414;
  --border-color: #ebebeb;
  --text-color-alt: #505050;
  --text-color: #000000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #000000;
    --border-color-alt: #ebebeb;
    --border-color: #141414;
    --text-color-alt: #afafaf;
    --text-color: #ffffff;
  }
}

@font-face {
  font-display: swap;
  font-family: "Abel";
  src: url("../font/abel-regular.woff2") format("woff2");
}

h1,
h2,
p {
  margin: 0;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: "Abel", sans-serif;
  font-size: 20px;
}

.header {
  border-bottom: 2px solid transparent;
  border-image-slice: 1;
  border-image: linear-gradient(
      to right,
      var(--border-color-alt),
      var(--border-color)
    )
    1;
  display: flex;
  justify-content: center;
}

.header-container {
  max-width: 768px;
  padding: 32px 0;
  width: 80%;
}

.header-title {
  font-size: 40px;
  margin-bottom: 4.2px;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 20px;
  text-transform: uppercase;
}

.navbar {
  display: flex;
  justify-content: center;
}

.navbar-container {
  display: flex;
  gap: 32px;
  list-style-type: none;
  margin: 0;
  max-width: 768px;
  padding: 32px 0;
  width: 80%;
}

.navbar-item {
  color: var(--text-color-alt);
  text-transform: uppercase;
}

.navbar-item a {
  color: var(--text-color-alt);
  text-decoration: underline;
}

.navbar-item.active a {
  color: var(--text-color);
  text-decoration: none;
}

.home {
  display: flex;
  justify-content: center;
}

.home-container {
  justify-content: left;
  max-width: 768px;
  width: 80%;
}

.home-title,
.writings-item-title,
.writings-title {
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.home-text {
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: justify;
}

.home-link {
  color: var(--text-color-alt);
}

.writings {
  margin: auto;
  max-width: 768px;
  width: 80%;
}

.writings-item {
  justify-content: left;
}

.writings-item:not(:first-child) {
  margin-top: 32px;
}

.writings-item-description {
  line-height: 1.6;
  text-align: justify;
}

.writings-item-link {
  color: var(--text-color-alt);
  display: block;
  margin-top: 16px;
  text-decoration: underline;
  text-transform: uppercase;
  width: max-content;
}

.writings-text {
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: justify;
}
