:root {
  --primary-color: #e8e2d0; /* Parchment-like background and primary color */
  --secondary-color: #6b4226; /* Warm brown for links and accents */
  --neutral-dark: #333; /* Dark neutral for text and shadows */
  --background-color: #fdf6e3;
  --white: #f5f5f5;
}

/* General Reset */
body {
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-family: 'Libre Baskerville', 'Baskerville', 'Palatino Linotype', 'Times New Roman', serif;
  background-color: var(--white);
  color: var(--neutral-dark);
}

#container {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px 50px;
  background-color: var(--background-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header {
  margin: 10px 0 20px;
}

/* Menu Styling */
nav ul {
  display: flex; /* Arrange items horizontally */
  justify-content: start; /* Center the menu items */
  list-style: none; /* Remove default list styles */
  padding: 0;
  margin: 0;
  gap: 10px; /* Space between items */

  li {
    position: relative;
  }

  li:not(:last-child)::after {
    content: "|"; /* Add a divider */
    margin-left: 10px; /* Space between the text and divider */
    color: #6b4226; /* Divider color */
    font-weight: bold; /* Make it stand out */
  }

  a {
    text-decoration: none;
    color: #333; /* Neutral text color */
    font-weight: bold;
    font-family: 'Libre Baskerville', serif;
  }

  a:hover {
    color: #6b4226; /* Accent color on hover */
  }
}


main {
  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    color: var(--neutral-dark);
    margin-top: 0.5rem;
  }

  h1 {
    /*text-align: center;*/
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  h3 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
  }

  h4, h5, h6 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  /* Lists */
  ul, ol {
    margin: 1rem 0;
    padding-left: 40px;
  }

  ul li {
    list-style-type: disc;
  }

  ol li {
    list-style-type: decimal;
  }

  /* Links */
  a {
    text-decoration: none;
    color: var(--secondary-color);
    /*font-weight: bold;*/
  }

  a:hover {
    color: var(--neutral-dark);
    text-decoration: underline;
  }


  /* Images */
  img {
    max-width: 100%;
    height: auto;
    /*margin: 1rem 0;*/
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  }

  /* Blockquotes */
  blockquote {
    margin: 1rem 0;
    padding: 0.8rem 1.2rem;
    background: #f4f4f4;
    border-left: 4px solid #3498db;
    font-style: italic;
    color: #555;
  }

  /* Code */
  code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
  }

  pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
  }

  /* Tables */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }

  table th, table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
  }

  table th {
    background: #3498db;
    color: #fff;
    text-align: left;
  }

  table tr:nth-child(even) {
    background: #f4f4f4;
  }

  /* Horizontal Rules */
  hr {
    border: 0;
    border-top: 3px solid var(--secondary-color); /* A warm brown line */
    height: 1px;
    background: #ddd;
    margin: 1.5rem 0;
    width: 80%; /* Makes the rule less wide than the container */
  }
  hr {
  }

  /* Task Lists */
  ul.task-list {
    list-style: none;
    padding-left: 0;
  }

  ul.task-list li {
    display: flex;
    align-items: center;
  }

  ul.task-list li input[type="checkbox"] {
    margin-right: 0.5rem;
  }

  /*/* HTML Support */*/
  /*p {*/
  /*  margin: 1rem 0;*/
  /*}*/
  /**/
  /*p[style] {*/
  /*  padding: 0.5rem;*/
  /*  background: #f4f4f4;*/
  /*  border: 1px dashed #ccc;*/
  /*  border-radius: 4px;*/
  /*}*/


}

footer {
  display: flex;
  justify-content: center;

  ul {
    list-style: none;
  }
}

article {
  margin: 20px auto;
}

/* Image Styling */

section.image-gallery {

  .grid {
    /*display: inline-grid;*/
    display: grid;
    /*grid-template-columns: repeat(3, fit-content(1fr));*/
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 10px;
    justify-content: center;
    grid-auto-flow: row dense;
    margin: 20px 0 40px;
  }

  figure {
    margin: 0;
    text-align: center;
  }

  figure.col-span {
    grid-column-end: span 2;
    grid-row-end: span 2;
  }

  img {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    /*margin: 20px auto;*/
    border: 5px solid var(--white); /* Matches the background */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Reuses neutral dark for shadow */
    /*filter: sepia(20%) contrast(1.2) brightness(0.95); /* Slight vintage effect */*/
  }

}
