/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Inter:wght@300;400;500&display=swap');

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #111;
}

/* Header and Footer */
header {
  background: #fff;
  color: #000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.site-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

footer {
  background-color: #f9f9f9;
  color: #333;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-left {
  font-weight: 600;
}

.footer-right a {
  margin-left: 1rem;
  text-decoration: none;
  color: #000;
}

.posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.post-preview {
  position: relative;
  display: inline-block;
  max-width: 600px;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
}

.post-preview img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.post-preview:hover img {
  transform: scale(1.02);
}

.post-preview .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 0.75rem 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.post-preview:hover .overlay {
  opacity: 1;
}

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

/* Single Post Page */
.post {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.post time {
  display: block;
  color: #777;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.post-body p {
  text-align: left;
  margin-bottom: 1.5rem;
}

.post-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  max-width: none;
}

.post-body picture {
  display: block;
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
}

.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination a {
  margin: 0 1rem;
  text-decoration: none;
  color: #007acc;
}

/* Inline Tags */
.tags-inline {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.tags-inline .tag-link {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: #f3f3f3;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.tags-inline .tag-link:hover {
  background-color: #ddd;
}

.tag-heading {
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-weight: bold;
  /* border-bottom: 2px solid #eee; */
  display: block;
  padding-bottom: 0.2rem;
  margin: 2rem auto 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  /* ensures the text is centered */
}



@media (max-width: 600px) {
  .tag-heading {
    font-size: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    /* <-- should also be center here */
  }
}



.text-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* .text-container .posts-list {
  max-width: 1000px;
  margin: 0 auto;
} */

/* Tag page layout alignment */
.tag-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tags index page (e.g. /tags/) */

.tag-terms-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-link {
  background-color: #eee;
  color: #333;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.tag-link:hover {
  background-color: #ddd;
}

.tag-count {
  color: #666;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

footer {
  background: none;
  /* or a light color like #f9f9f9 */
  color: #333;
  padding: 2rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  margin-top: 4rem;
}


footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

@media (max-width: 600px) {
  footer {
    font-size: 0.8rem;
    padding: 1.5rem 1rem;
  }
}

.footer-inner a:hover {
  text-decoration: underline;
}


header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }
}

.archive-heading {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.archive-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.archive-list li {
  margin: 0.3rem 0;
}

.archive-list a {
  text-decoration: none;
  color: #5a2a82;
}

.archive-list a:hover {
  text-decoration: underline;
}

.archive-date {
  color: #666;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

picture.portrait img {
  max-width: 60vw;
  /* Max 60% of the viewport width */
  width: 100%;
  margin: 2rem auto;
  display: block;
}

.thumbnail {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}