/* ─────────────────────────────────────────────
   posts.css
   app/assets/stylesheets/posts.css
───────────────────────────────────────────── */

/* ── PAGE WRAPPER ── */
.posts-page {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.posts-header {
  padding: 6rem 0 3rem;
  border-bottom: 1px solid rgba(27, 27, 24, 0.07);
  margin-bottom: 0;
  animation: appear 0.6s 0.1s ease both;
}

.posts-header__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.posts-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
}

/* ── POST LIST ── */
.post-list {
  flex: 1;
  animation: appear 0.6s 0.2s ease both;
}

/* ── POST ITEM ── */
.post-item {
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(27, 27, 24, 0.07);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.post-item:hover .post-item__title-link {
  color: var(--dark);
}

/* ── META ── */
.post-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-item__date {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(27, 27, 24, 0.35);
  white-space: nowrap;
}

.post-item__category {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(126, 140, 123, 0.1);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.post-item__category:hover {
  background: rgba(126, 140, 123, 0.2);
}

.post-item__reading-time {
  font-size: 11px;
  color: rgba(27, 27, 24, 0.25);
  letter-spacing: 0.04em;
}

.post-item__reading-time::before {
  content: "·";
  margin-right: 1rem;
  color: rgba(27, 27, 24, 0.15);
}

/* ── TITLE ── */
.post-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.post-item__title-link {
  color: rgba(27, 27, 24, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.post-item__title-link:hover {
  color: var(--dark);
}

/* ── IMAGE ── */
.post-item__image-wrap {
  overflow: hidden;
  border-radius: 2px;
}

.post-item__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.3s, transform 0.4s;
}

.post-item__image:hover {
  filter: saturate(1);
  transform: scale(1.01);
}

/* ── EXCERPT ── */
.post-item__excerpt {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(27, 27, 24, 0.5);
  max-width: 58ch;
}

/* ── READ MORE ── */
.post-item__read-more {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 24, 0.35);
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}

.post-item__read-more:hover {
  color: var(--accent);
}

/* ── NAV ACTIVE STATE ── */
.nav-link--active {
  color: var(--dark) !important;
}
