/* Archived travel blog — nickandhelen.blog */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: #2b2b2b;
  background: #faf9f7;
  line-height: 1.65;
}

.site-header {
  text-align: center;
  padding: 2.2em 1em 1.6em;
  border-bottom: 1px solid #ddd8d0;
  background: #fff;
}
.site-title {
  font-size: 1.9em;
  font-weight: bold;
  color: #2b2b2b;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-title:hover { color: #7a5c3e; }
.site-desc { color: #8a8175; font-style: italic; margin-top: 0.3em; }

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5em 1em 3em;
}

h1 { font-size: 1.8em; line-height: 1.25; margin: 0.6em 0 0.1em; }
h2 { font-size: 1.3em; }
a { color: #7a5c3e; }

.post-date { color: #8a8175; font-style: italic; margin-bottom: 1.5em; }

article img.post-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
article figure { margin: 1.2em 0; }
article figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #8a8175;
  font-style: italic;
  margin-top: 0.4em;
}

video.post-video {
  display: block;
  max-width: 100%;
  margin: 1.2em auto;
  border-radius: 3px;
}

/* justified rows: each link's flex-grow/basis is set inline from the
   image's real aspect ratio, so photos are barely cropped */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.2em 0;
}
.gallery-grid::after { content: ""; flex-grow: 1000000; }
.gallery-grid a {
  display: block;
  height: 240px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 2.5em 0 1em;
  padding-top: 1.2em;
  border-top: 1px solid #ddd8d0;
  font-size: 0.95em;
}
.post-nav .nav-next { margin-left: auto; text-align: right; }

.comments {
  margin-top: 2.5em;
  padding-top: 1.2em;
  border-top: 1px solid #ddd8d0;
}
.comment {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 4px;
  padding: 0.8em 1em;
  margin: 0.8em 0;
}
.comment .reply { margin-left: 1.5em; background: #faf9f7; }
.comment-author { font-weight: bold; }
.comment-date { color: #8a8175; font-size: 0.85em; margin-left: 0.5em; }
.comment-body p { margin: 0.4em 0; }

/* index */
.year h2 {
  border-bottom: 2px solid #ddd8d0;
  padding-bottom: 0.2em;
  margin: 1.6em 0 0.8em;
}
.index-entry {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 4px;
  padding: 0.8em;
  margin: 0.7em 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.index-entry:hover {
  border-color: #c9b8a3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.index-thumb {
  flex: 0 0 110px;
  height: 82px;
  border-radius: 3px;
  overflow: hidden;
  background: #eee8df;
}
.index-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.index-title { font-size: 1.1em; font-weight: bold; color: #7a5c3e; }
.index-meta { color: #8a8175; font-size: 0.85em; font-style: italic; }
.index-excerpt { font-size: 0.92em; margin-top: 0.25em; color: #4a4a4a; }

.site-footer {
  text-align: center;
  color: #8a8175;
  font-size: 0.85em;
  padding: 1.5em;
  border-top: 1px solid #ddd8d0;
  background: #fff;
}

@media (max-width: 540px) {
  .index-entry { flex-direction: column; }
  .index-thumb { width: 100%; flex-basis: auto; height: 160px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
