:root {
  --text-start-offset: 5px;
}

body {
  color: black;
  font-family: Verdana;
  font-size: 16pt;
  line-height: 160%;
  margin: 0;
}

.bg-fader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: opacity;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.content-wrap {
  position: relative;
  z-index: 1;
}

.intro-section,
.article-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.intro-section::before,
.article-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
  pointer-events: none;
}

/* Ensure content sits above the overlay */
.intro-section > *,
.article-section > * {
  position: relative;
  z-index: 2;
}

.profile-pic-container {
  float: right;
  margin-left: 1em;
  margin-top: calc(-1 * var(--text-start-offset));
  width: 90px;
  height: 90px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

main {
  padding-top: var(--text-start-offset);
}

.article-section h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
  background-color: white;
  padding: 0.5em;
}

.article-date {
  display: block;
  font-size: 0.7em;
  color: #666;
}

.article-body {
  font-size: 1em;
}

p {
  margin: 0 0 1em 0;
  background-color: white;
  line-height: 1.8;
  padding: 0.5em;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  background-color: transparent;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  background-color: transparent;
}

@media (max-width: 768px) {
  .container {
    max-width: 90%;
    padding: 0.5rem;
  }
}
