html {
  background-color: #f9f9f9; /* A very light gray for the page background */
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  width: 95%; /* Ensure there's always a gap on the sides */
  max-width: 880px; /* 800px content + 40px padding on each side */
  margin: 40px auto; /* Centers the box on larger screens */
  padding: 20px 40px;
  background-color: #fff; /* White background for the content area */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  box-sizing: border-box; /* Ensures padding is included in the width */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1em;
  margin-bottom: 2em;
}

.site-title {
  font-size: 2em; /* Corresponds to h1 */
  font-weight: bold;
  margin: 0;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

header nav a {
  margin-left: 1.5em;
  text-decoration: none;
  color: #007bff;
}

header nav a:hover,
header nav a:focus {
  color: #0056b3;
}

/* Style for the current page link in the navigation */
header nav a.current-page {
  color: #007bff;
  /* color: #333; A dark gray, lighter than pure black */
  font-weight: 600; /* A semi-bold weight, less heavy than 'bold' */
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

pre {
  background-color: #f4f4f4;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  font-family: monospace;
}

.image-gallery {
  display: flex;
  gap: 2em;
  margin-top: 1em;
}
figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0; /* Reduced vertical margin for better spacing */
}

figcaption {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 0.5em;
}

.cta-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

img {
  max-width: 90%;
  height: auto;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
  body {
    /* Use margin-left/right auto to center, and margin-top/bottom for spacing */
    margin: 10px auto; /* Reduce vertical margin on small screens */
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  header nav {
    margin-top: 1em;
  }

  header nav a {
    margin-left: 0.75em;
    margin-right: 0.75em;
  }
}