@import url(reset.css);
@import url(root.css);

/* Main elements */

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--light-text-2);
  word-spacing: 0.2px;
  scroll-behavior: smooth;
}

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

a:active {
  color: #004085;
}

a:focus {
  outline: 2px solid #80bdff;
  outline-offset: 2px;
}

a:visited {
  color: #6c757d;
}

body {
  background-color: var(--dark-bg-3);
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.pagewrapper {
  width: clamp(5rem, 100%, 50rem);
}

header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-bw-8);
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--dark-bg-3);
}

header nav ul li {
  font-size: 20px;
  color: var(--light-text-2);
  display: inline;
  padding-right: 1rem;
}

header nav ul li:hover {
  cursor: pointer;
}

main h1,
h2 {
  font-size: 34px;
  margin: 0;
  margin-top: 1.33rem;
}

iframe {
  width: 100%;
}

/* Custom classes */
.journal__entry {
  background: var(--dark-bg-1);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0px 4px 16px rgba(6, 1, 29, 0.208),
    0px 8px 32px rgba(4, 4, 27, 0.208);
}

.journal__entry__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.66rem;
}

.entry__header__title span {
  font-size: 20px;
  font-weight: 550;
}

.entry__header__date {
  font-size: 14px;
}

.entry__content p {
  font-size: 18px;
  word-break: break-word;
}

.journal__spacer {
  margin: 2rem auto;
  display: block;
  width: 90%;
  height: 1px;
  background-color: var(--grey-bw-8);
}

footer {
  display: flex;
  justify-content: center;
  padding: 2rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .entry__content p {
    font-size: 16px;
  }

  .journal__entry {
    padding: 0.66rem;
  }

  body {
    padding: 0 0.66rem;
  }
  h2 {
      font-size: 24px;
  }
}
