:root {
  --bg-color: #fdfaf6;
  --text-color: #3d3522;
  --header-color: #4a5c36;
  --accent-color: #adc990;
  --link-color: #b05c48;
}


body {
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;*/
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* page width */
header, footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

main {
  width: 95%;
  max-width: 1050px;   /* <-- SET THE NARROWER WIDTH HERE */
  margin: 0 auto;
  padding: 1.5rem 0;

  flex-grow: 1; /* Pushes footer to the bottom */
}

/* Header & Navigation */
header {
  border-bottom: 2px solid var(--accent-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows nav to wrap on small screens */
}

.site-logo {
  max-height: 60px;  /* <-- This is the main setting! Adjust 70px as needed. */
  width: auto;       /* This keeps the image's proportions correct */
  vertical-align: middle; /* Helps align the logo with your nav links */
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

header h1 a {
  text-decoration: none;
  color: var(--header-color);
  font-weight: bold;
}

header nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--link-color);
  font-weight: 500;
}
header nav a:hover {
  text-decoration: underline;
}

/* Links */
a {
  color: var(--link-color);
}
a:hover {
  color: var(--text-color);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* Post/Pattern Lists */
.item-list {
  list-style: none;
  padding: 0;
}

.item-list li {
  margin-bottom: 1.5rem;
}

.item-list h2 {
  margin: 0;
  font-size: 1.5rem;
}

.item-list h2 a {
  text-decoration: none;
  color: var(--header-color);
}
.item-list h2 a:hover {
  color: var(--link-color);
}

.item-date {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 0.25rem;
}

/* Post/Pattern Page */
.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--header-color);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}