/* ─────────────────────────────────────────────
   BLOG — POST LIST
   ───────────────────────────────────────────── */

/* Category pip colours — palette vars defined in tokens.css */
.cat--simple-living      { --cat-color: var(--sage); }
.cat--books-ideas        { --cat-color: var(--slate-blue); }
.cat--learning-making    { --cat-color: var(--clay); }
.cat--systems-thinking   { --cat-color: var(--violet-muted); }
.cat--places-experiences { --cat-color: var(--ochre); }
.cat--health-wellbeing   { --cat-color: var(--dusty-rose); }

.blog-list {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(var(--gutter), 10vw, 8rem) calc(var(--gap) * 6);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Post with featured image ── */
.post-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  text-decoration: none;
  color: inherit;
}

.post-item:first-child { padding-top: clamp(2rem, 4vw, 3.5rem); }

/* Post without image: single column */
.post-item--text {
  grid-template-columns: 1fr;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 2px solid var(--cat-color, var(--ink-light));
}

/* Image side */
.post-item__image {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--accent-pale);
}

.post-item__image img {
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: saturate(0.85);
}

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

/* Text side */
.post-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.post-item__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-item__cat {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cat-color, var(--ink-light));
}

.post-item__date {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.post-item__date::before {
  content: '—';
  margin-right: 0.75rem;
  color: color-mix(in srgb, var(--ink) 15%, transparent);
}

.post-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.2s;
}

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

.post-item__excerpt {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
  max-width: 55ch;
}

.post-item__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 0.25rem;
  transition: color 0.2s, gap 0.2s;
}

.post-item:hover .post-item__read-more {
  color: var(--accent);
  gap: 0.65rem;
}

.post-item__read-more::after { content: '→'; }

@media (max-width: 700px) {
  .post-item {
    grid-template-columns: 1fr;
  }
  .post-item__image {
    aspect-ratio: 16/9;
  }
}

/* ─────────────────────────────────────────────
   PAGE TRANSITIONS
   ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s var(--ease-out) both;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.12s; }
.animate-in:nth-child(3) { animation-delay: 0.19s; }
.animate-in:nth-child(4) { animation-delay: 0.26s; }
.animate-in:nth-child(5) { animation-delay: 0.33s; }
.animate-in:nth-child(6) { animation-delay: 0.40s; }
.animate-in:nth-child(7) { animation-delay: 0.47s; }
.animate-in:nth-child(8) { animation-delay: 0.54s; }
.animate-in:nth-child(9) { animation-delay: 0.61s; }

/* ─────────────────────────────────────────────
   FEATURED POSTS
   ───────────────────────────────────────────── */
.featured-posts {
  padding: 0 clamp(var(--gutter), 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.featured-posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.featured-card {
  display: flex;
  flex-direction: column;
}

.featured-card__img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1rem;
}

.featured-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.featured-card:hover .featured-card__img-link img {
  transform: scale(1.04);
}

.featured-card__body { flex: 1; }

.featured-card__cat {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.featured-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.featured-card a { text-decoration: none; }
.featured-card__title a:hover { color: var(--ink-mid); }

.featured-card__excerpt {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .featured-posts__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   TAG FILTER
   ───────────────────────────────────────────── */
.tag-filter-notice {
  padding: 0 clamp(var(--gutter), 4vw, 3rem);
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

.tag-filter-clear {
  background: none;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 2px;
  cursor: pointer;
  color: var(--ink-mid);
  font-size: 0.78rem;
  font-family: var(--font-body);
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}

.tag-filter-clear:hover {
  border-color: color-mix(in srgb, var(--ink) 50%, transparent);
  color: var(--ink);
}