*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --background-color: #e8e8e3;
  --text-color: #101010;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling for the whole page */
  scroll-padding-top: 20px; /* Add padding to prevent header overlap */
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #101010;
    --text-color: #b7ab98;
  }
}

body {
  font-size: 16px;
  margin: 2em auto;
  max-width: 800px;
  padding: 1em;
  line-height: 1.4;
  hyphens: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background-color: var(--background-color);
  color: var(--text-color);
  @media (max-width: 768px) {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.lighter-weight {
  font-weight: 200;
}

.light-weight {
  font-weight: 300;
}

.normal-weight {
  font-weight: normal;
}

.bold-weight {
  font-weight: bold;
}

.no-margin-top {
  margin-top: 0;
}

.no-margin-bottom {
  margin-bottom: 0;
}

.inline-block {
  display: inline;
}

.heading-link {
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.2s;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1.2em;
}

.some-margin-top {
  margin-top: 5em;
}

.active {
  opacity: 1 !important;
}

.heading-link-activator:hover .heading-link {
  opacity: 0.7;
}

.new-anchor {
  all: unset;
  text-decoration: underline;
  cursor: pointer;
}

.italic {
  font-style: italic;
}

.author {
  display: block;
  padding: 1em;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
  padding: 1rem;
  justify-items: center;
  align-items: center;
  justify-content: space-around;
  align-content: space-around;
}

.auto-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: 0 !important;
  justify-items: start !important;
  align-items: start !important;
}

.contact-wrapper {
  text-align: center;
}

.preview-image {
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
}