:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: #faf8f5;
  color: #2b2925;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

article {
  max-width: 700px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  text-align: center;
  margin: 0;
  color: #1c1a17;
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.post-list li + li {
  margin-top: 1rem;
}

.post-list a {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

h3 {
  font-size: 1rem;
  font-weight: 400;
  color: #8a8378;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

p {
  margin: 0 0 1.4rem;
  text-align: left;
}

a {
  color: #2c6e49;
  text-decoration: underline;
  text-decoration-color: rgba(44, 110, 73, 0.35);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: rgba(44, 110, 73, 0.9);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.gallery img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: block;
  object-fit: cover;
}

.gallery.single img,
.gallery-link:only-of-type img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
}

.gallery-link {
  display: block;
  line-height: 0;
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 18, 15, 0.9);
}

.lightbox:target {
  display: flex;
}

.lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
}

.lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  body {
    padding: 1.75rem 1rem 3rem;
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .gallery {
    gap: 0.6rem;
  }

  .gallery img {
    max-width: 100%;
  }

  .gallery.single img,
  .gallery-link:only-of-type img {
    max-height: 60vh;
  }
}
