/* Inner pages (archive + article) — built on the landing design tokens */

.page-hero {
  padding-block: 54px 30px;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.6;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--dark);
  margin-top: 6px;
}
.page-hero p {
  margin-top: 14px;
  max-width: 620px;
  line-height: 2.05;
}

/* Section filter chips */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.section-tabs a {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--white);
  transition: all 0.2s;
}
.section-tabs a:hover {
  color: var(--green);
  border-color: #9baa99;
}
.section-tabs a.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Archive grid — cards with thumbnail, coherent with .journal-card */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-block: 20px 40px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease, ease), box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: #c7d0bd;
  box-shadow: 0 18px 40px #1d302614;
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--sage);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease, ease);
}
.post-card:hover .thumb img {
  transform: scale(1.05);
}
.post-card .thumb.placeholder {
  display: grid;
  place-items: center;
  color: #b7c0ad;
  font-family: Georgia, serif;
  font-size: 3rem;
}
.post-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}
.post-card .cat {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 10px;
}
.post-card h3 {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 10px;
}
.post-card .excerpt {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8a9184;
}
.post-card .meta .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 500;
}
.post-card .meta .go .icon {
  width: 17px;
  height: 17px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-block: 24px 60px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--white);
  transition: all 0.2s;
}
.pagination a:hover {
  border-color: var(--green);
  color: var(--green);
}
.pagination .current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Single article */
.article {
  width: min(768px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 46px 40px;
}
.article .back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.article .back:hover {
  color: var(--green);
}
.article-cat {
  color: var(--green);
  font-weight: 500;
  font-size: 0.85rem;
}
.article h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.7;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--dark);
  margin-block: 12px 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: #8a9184;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.article-figure {
  margin: 30px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sage);
}
.article-figure img {
  width: 100%;
  height: auto;
}

/* Article body typography */
.article-body {
  font-size: 1.06rem;
  line-height: 2.15;
  color: var(--ink);
}
.article-body > * + * {
  margin-top: 1.35em;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--dark);
  font-weight: 600;
  line-height: 1.7;
  margin-top: 1.9em;
  letter-spacing: -0.03em;
}
.article-body h2 {
  font-size: 1.55rem;
}
.article-body h3 {
  font-size: 1.25rem;
}
.article-body p {
  color: var(--ink);
}
.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #b8c2ae;
}
.article-body strong {
  color: var(--dark);
  font-weight: 600;
}
.article-body ul,
.article-body ol {
  padding-inline-start: 1.4em;
}
.article-body li {
  margin-top: 0.5em;
}
.article-body li::marker {
  color: var(--rose);
}
.article-body img {
  border-radius: 14px;
  margin-block: 1.6em;
}
.article-body blockquote {
  border-inline-start: 3px solid var(--rose);
  padding-inline-start: 20px;
  color: var(--muted);
  font-size: 1.08rem;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: 2em;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .container {
    width: calc(100% - 40px);
  }
}

/* Media embeds (podcast / video) */
.media-embed {
  width: 100%;
  margin-block: 26px;
  border-radius: 14px;
}
audio.media-embed {
  height: 54px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Simple centered states */
.simple-state {
  min-height: 52vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
  padding-block: 60px;
}
.simple-state .brand-symbol {
  margin-inline: auto;
}
