/* 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;
}

/* Generated branded covers for posts without a featured image */
.cover-gen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover-gen .cover-cat {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 22px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}
.cover-gen .cover-mark {
  position: absolute;
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  inset-inline-start: 8%;
  bottom: -22%;
}
.cg-1 { background: linear-gradient(135deg, #2f5449, #1d3b33); }
.cg-2 { background: linear-gradient(135deg, #3a5a4e, #294c43); }
.cg-3 { background: linear-gradient(135deg, #8a5a5f, #6e474a); }
.cg-4 { background: linear-gradient(135deg, #46695a, #2b4a3e); }
.cg-5 { background: linear-gradient(135deg, #5a6f60, #384a3f); }

/* Article page banner when the post has no featured image */
.article-banner {
  height: 200px;
  border-radius: 18px;
  margin: 30px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-banner .cover-cat {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  z-index: 2;
}
.article-banner .cover-mark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.1);
  inset-inline-start: 6%;
  bottom: -30%;
  line-height: 1;
}

/* Related posts */
.related-wrap { padding-block: 24px 64px; }
.related-title {
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 22px;
  text-align: center;
}
.related-wrap .post-grid { padding-block: 0; }

/* ===== Article page enhancements ===== */
.article-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
@media (min-width: 1100px) {
  .article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 52px; align-items: start; }
  .article-wrap .article { width: auto; margin: 0; }
}
.toc-aside { display: none; }
@media (min-width: 1100px) { .toc-aside { display: block; } }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .crumb-current { color: var(--green); }

/* meta dot */
.article-meta .dot { color: var(--line); }

/* Drop cap on the first paragraph */
.article-body.has-dropcap > p:first-of-type::first-letter {
  float: inline-start;
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 6px 12px 0 0;
  margin-inline-end: 4px;
  color: var(--green);
}

/* Table of contents */
.toc { position: sticky; top: 110px; border-inline-start: 2px solid var(--line); padding-inline-start: 18px; }
.toc-title { display: block; font-size: 0.8rem; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toc li a { display: block; font-size: 0.85rem; line-height: 1.7; color: var(--muted); padding: 4px 0; transition: color 0.2s; }
.toc li.lvl-3 a { padding-inline-start: 14px; font-size: 0.8rem; }
.toc li a:hover { color: var(--green); }
.toc li.active a { color: var(--green); font-weight: 600; }

/* Share row */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-label { font-size: 0.85rem; color: var(--muted); }
.share-btn { font-size: 0.82rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); transition: all 0.2s; }
.share-btn:hover { border-color: var(--green); color: var(--green); }

/* Author card */
.author-card { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--sage); }
.author-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--white); }
.author-card strong { display: block; font-size: 1.1rem; color: var(--green); margin-bottom: 6px; }
.author-card p { font-size: 0.9rem; line-height: 1.9; margin-bottom: 12px; }

/* Podcast player */
.podcast-player { display: flex; align-items: center; gap: 16px; background: var(--green); border-radius: 16px; padding: 18px 20px; margin-block: 26px; }
.podcast-player audio { flex: 1; height: 44px; }
.pp-bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.pp-bars i { width: 3px; border-radius: 3px; background: rgba(255,255,255,0.55); animation: pp-wave 1.1s ease-in-out infinite; height: 40%; }
.pp-bars i:nth-child(odd) { animation-delay: 0.2s; }
.pp-bars i:nth-child(3n) { animation-delay: 0.4s; }
.pp-bars i:nth-child(4n) { animation-delay: 0.6s; }
@keyframes pp-wave { 0%,100% { height: 25%; } 50% { height: 90%; } }
[data-motion='off'] .pp-bars i { animation: none; height: 55%; }
@media (max-width: 600px) { .pp-bars { display: none; } }

/* ===== Archive: search, featured, Q&A accordion ===== */
.post-search { display: flex; gap: 8px; margin-top: 22px; max-width: 460px; }
.post-search input { flex: 1; height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; }
.post-search input:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.post-search button { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; border: 0; display: grid; place-items: center; flex-shrink: 0; }
.post-search button:hover { background: var(--dark); }
.post-search button .icon { transform: scaleX(-1); }
.search-note { color: var(--muted); font-size: 0.9rem; padding: 6px 0 10px; }

.featured-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); margin-block: 26px 8px; transition: box-shadow 0.3s, border-color 0.3s; }
.featured-card:hover { border-color: #c7d0bd; box-shadow: 0 20px 48px #1d302614; }
.featured-card .fc-media { min-height: 320px; overflow: hidden; display: grid; place-items: center; }
.featured-card .fc-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-card .fc-media .cover-mark { font-family: Georgia, serif; font-size: 9rem; color: rgba(255,255,255,0.14); }
.featured-card .fc-body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.featured-card .fc-body .cat { font-size: 0.82rem; color: var(--green); font-weight: 500; margin: 10px 0; }
.featured-card .fc-body h2 { font-size: 1.75rem; line-height: 1.65; letter-spacing: -0.04em; color: var(--dark); margin-bottom: 14px; }
.featured-card .fc-body p { line-height: 2; margin-bottom: 16px; }
.featured-card .fc-meta { font-size: 0.82rem; color: #8a9184; }
@media (max-width: 800px) { .featured-card { grid-template-columns: 1fr; } .featured-card .fc-media { min-height: 200px; } .featured-card .fc-body { padding: 26px 22px; } .featured-card .fc-body h2 { font-size: 1.4rem; } }

.qa-list { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 40px; max-width: 860px; margin-inline: auto; }
.qa-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); overflow: hidden; }
.qa-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; color: var(--dark); font-size: 1.02rem; line-height: 1.8; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary .icon { flex-shrink: 0; color: var(--green); transition: transform 0.3s; }
.qa-item[open] summary .icon { transform: rotate(45deg); }
.qa-answer { padding: 0 24px 22px; }
.qa-answer p { line-height: 2.05; margin-bottom: 12px; }

/* ===== About page ===== */
.about-page { padding-block: 50px 70px; }
.about-page .about-hero { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: center; }
.about-page .about-portrait { border-radius: 200px 200px 20px 20px; overflow: hidden; background: var(--sage); aspect-ratio: 3/3.4; }
.about-page .about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-page h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.6; letter-spacing: -0.05em; color: var(--dark); margin-block: 10px 18px; }
.about-page .about-lead { font-size: 1.15rem; line-height: 2.05; color: var(--ink); margin-bottom: 16px; }
.about-page .about-body { max-width: 760px; margin-top: 40px; }
.about-page .about-body p { line-height: 2.15; margin-bottom: 18px; }
.about-page .about-features { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 26px; }
.about-page .about-features span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.9rem; color: var(--green); }
.about-page .about-features .icon { width: 18px; height: 18px; }
@media (max-width: 800px) { .about-page .about-hero { grid-template-columns: 1fr; } .about-page .about-portrait { max-width: 300px; } }

/* ===== Topic category chips (archive) ===== */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.topic-chips .chips-label { font-size: 0.82rem; color: var(--muted); margin-inline-end: 4px; }
.topic-chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--muted); background: var(--white); transition: all 0.2s; }
.topic-chips a:hover { color: var(--green); border-color: #9baa99; }
.topic-chips a.active { background: var(--rose-light); color: var(--green); border-color: var(--rose); }

/* ===== Services page ===== */
.services-page { padding-bottom: 70px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-block: 10px 30px; }
.service-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 24px; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.service-card:hover { transform: translateY(-4px); border-color: #c7d0bd; box-shadow: 0 16px 38px #1d302612; }
.service-card .sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.service-card h3 { font-size: 1.2rem; color: var(--dark); line-height: 1.7; }
.service-card .sc-duration { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.service-card .sc-desc { font-size: 0.9rem; line-height: 1.95; color: var(--muted); margin-bottom: 16px; }
.service-card .sc-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card .sc-price { font-size: 1.05rem; font-weight: 600; color: var(--green); }
.services-note { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 20px 24px; background: var(--sage); border-radius: 14px; }
.services-note .icon { color: var(--green); flex-shrink: 0; }
.services-note p { font-size: 0.9rem; line-height: 1.9; }
.services-note a { color: var(--green); font-weight: 600; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
