/* ---------- content-archive styles (spaced-up) ---------- */

/* Outer container: more breathing room at top and sides */
.container-inner {
  max-width: 1000px;
  margin: 0 auto;
  height: 100vh;
  /* generous top padding that scales a bit on larger screens */
  padding: clamp(18px, 4vw, 48px) 1rem 1rem;
}

/* Each post card */
.post {
  margin: 0 0 2.6rem;          /* slightly more space between posts */
  padding: 1.5rem 0;          /* increased vertical padding for each post */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  /* optional subtle bg on hover to help readability */
  transition: background-color .18s ease, transform .18s ease;
}
.post:hover {
  background-color: rgba(244,241,236,0.35);
  transform: translateY(-2px);
}

/* Add some top space for the first post so content doesn't stick to header */
.post:first-child {
  margin-top: 1rem;
}

/* layout row */
.media-row {
  display: flex;
  flex-direction: column; /* mobile: stack */
  gap: 1.25rem;           /* slightly increased gap */
  align-items: flex-start;
}

/* media body (text) */
.media-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* title spacing improved */
.title {
  margin: 0 0 0.5rem;     /* more breathing room below title */
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
}
.title a { color: #111; text-decoration: none; }

/* meta spacing */
.meta {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 0.75rem; /* more room after meta */
}
.meta .date { margin-right: 0.45rem; }

/* excerpt / intro */
.intro {
  color: #444;
  line-height: 1.8;        /* taller line-height for readability */
  margin-bottom: 1rem;     /* more space before actions */
  font-size: 0.98rem;
  max-width: 60ch;         /* limit line length for comfortable reading */
}

/* read-more link */
.more-link {
  display: inline-block;
  margin-top: 0.5rem;      /* clear separation from excerpt */
  font-weight: 600;
  color: #c2185b; /* accent */
  text-decoration: none;
  transition: color .15s ease, transform .12s ease;
}
.more-link:hover { transform: translateX(3px); color: #9f1847; }

/* thumbnail: hidden by default on narrow screens */
.post-thumb {
  display: none;
  margin: 0;
  align-self: center;
}
.post-thumb img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 400ms ease;
}
.post-card__link:hover .post-thumb img { transform: scale(1.02); }

/* >=768px: layout becomes row, thumbnail on the right */
@media (min-width: 768px) {
  .media-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .media-body { order: 1; }

  .post-thumb {
    display: block;
    order: 2; /* ensure thumbnail appears to the right */
    flex: 0 0 220px;
    margin-left: 1.25rem;
  }

  /* slightly larger gaps on desktop */
  .media-row { gap: 1.5rem; }
  .container-inner { padding-top: clamp(28px, 6vw, 64px); }
}

/* bigger screens: gentle scale-up */
@media (min-width: 1100px) {
  .post-thumb img { width: 240px; height: 160px; }
  .title { font-size: 1.25rem; }
  .intro { max-width: 70ch; }
}

/* small-screen tweak */
@media (max-width: 480px) {
  .container-inner { padding: 12px 0.75rem; }
  .more-link { margin-top: 0.4rem; }
}