/* ───────────────────────────────────────────────────────────────
   Thoughts (blog index) — extends landing-visual.css
   ─────────────────────────────────────────────────────────────── */

.th-main { background: var(--bg); }

/* ── stage: giant title + featured card that slides up over it ── */
.th-stage {
  position: relative;
  padding: clamp(96px, 14vh, 168px) var(--pad-x) 0;
}
.th-title {
  position: sticky;
  top: clamp(70px, 11vh, 132px);
  z-index: 0;
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(84px, 18vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--brown);
  pointer-events: none;
  transition: opacity .35s ease;
}
.th-title.is-hidden { opacity: 0; }

.th-count {
  position: relative;
  z-index: 2;
  margin-top: clamp(36px, 7vh, 96px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.th-count::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: var(--line);
}

.th-feature {
  position: relative;
  z-index: 2;
  margin-top: clamp(20px, 3vw, 36px);
  height: clamp(300px, 30vw, 380px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #f7f2ee;
  border: 1px solid var(--line);
  border-radius: clamp(16px, 1.8vw, 26px);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(42, 23, 14, 0.12);
}
.thf-body {
  padding: clamp(28px, 3vw, 48px) clamp(34px, 3.8vw, 60px);
  display: flex; flex-direction: column;
  align-self: center;
  text-align: left;
  min-height: 0;
  overflow: hidden;
}
.thf-readmore {
  position: absolute;
  bottom: clamp(18px, 1.8vw, 24px); left: clamp(18px, 1.8vw, 24px);
  z-index: 2;
  display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 600;
  color: var(--brown);
  background: var(--cream);
  padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(42, 23, 14, 0.28);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.3,1);
}
.th-feature:hover .thf-readmore,
.th-feature:focus-within .thf-readmore { opacity: 1; transform: none; }
.th-feature .thf-img img { transition: transform .7s cubic-bezier(.2,.7,.25,1); }
.th-feature:hover .thf-img img { transform: scale(1.04); }
.thf-new {
  position: absolute;
  top: clamp(18px, 1.8vw, 24px); left: clamp(18px, 1.8vw, 24px);
  z-index: 2;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff; background: var(--pink);
  padding: 7px 15px; border-radius: 999px;
}
.thf-body h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--brown);
}
.thf-desc {
  margin: clamp(12px, 1.4vw, 18px) 0 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.62; color: var(--muted);
  max-width: 460px; text-wrap: pretty;
}
.thf-meta {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 2.8vw, 44px);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.thf-meta dt {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.thf-meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--brown); }
.thf-img { position: relative; height: 100%; min-height: 0; background: var(--bg-soft); overflow: hidden; display: block; }
.thf-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── grid of posts ── */
.th-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 30px);
  padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(40px, 5vw, 64px);
}
.tc {
  display: flex; flex-direction: column;
  background: #f7f2ee;
  border: 1px solid var(--line);
  border-radius: clamp(12px, 1.2vw, 18px);
  overflow: hidden;
  text-align: left;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.tc:hover {
  transform: translateY(-5px);
  border-color: var(--muted);
  box-shadow: 0 26px 50px rgba(42, 23, 14, 0.12);
}
.tc-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-soft); margin: clamp(10px,1vw,14px) clamp(10px,1vw,14px) 0; border-radius: clamp(8px,0.9vw,12px); }
.tc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.25,1); }
.tc:hover .tc-img img { transform: scale(1.05); }
.tc-body { padding: clamp(20px, 2vw, 30px); }
.tc-body h3 {
  margin: 0;
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15; letter-spacing: -0.005em;
  color: var(--brown);
}
.tc-body p {
  margin: 12px 0 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55; color: var(--muted); text-wrap: pretty;
}

/* ── load more ── */
.th-more { display: flex; justify-content: center; padding: 0 var(--pad-x) clamp(72px, 10vw, 130px); }
.th-load {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brown); padding: 4px 2px; position: relative;
}
.th-load::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: var(--brown);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.th-load:hover { color: var(--pink); }
.th-load:hover::after { background: var(--pink); transform: scaleX(1); }

/* ═══ BLOG POST — single article reading layout ═══════════════ */
.post-main { background: var(--bg); }

.post-back {
  display: inline-flex; align-items: center; gap: 9px;
  margin: clamp(96px, 13vh, 130px) 0 0 var(--pad-x);
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s ease, gap .2s ease;
}
.post-back svg { width: 16px; height: 16px; }
.post-back:hover { color: var(--pink); gap: 14px; }

/* article header */
.post-header {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) var(--pad-x) clamp(28px, 4vw, 48px);
  text-align: center;
}
.post-cat {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink); margin-bottom: clamp(16px, 2vw, 24px);
}
.post-header h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--brown); text-wrap: balance;
}
.post-dek {
  margin: clamp(18px, 2.2vw, 28px) auto 0;
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.55; color: var(--muted); text-wrap: pretty;
}
.post-byline {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 18px;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: 13.5px; color: var(--muted);
}
.post-byline .pb-author { font-weight: 600; color: var(--brown); }
.post-byline .pb-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

/* hero image */
.post-hero {
  margin: clamp(8px, 1.5vw, 20px) var(--pad-x) clamp(40px, 5vw, 72px);
  aspect-ratio: 16 / 8;
  overflow: hidden; border-radius: 6px;
  background: var(--bg-soft);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* prose body */
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(40px, 6vw, 80px);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.78;
  color: #4a3a30;
}
.post-body > * + * { margin-top: 1.5em; }
.post-body p { margin: 0; text-wrap: pretty; }
.post-body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12; letter-spacing: -0.012em;
  color: var(--brown);
  margin-top: 1.9em;
}
.post-body h2 + p { margin-top: 0.6em; }
.post-body a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body strong { color: var(--brown); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body ul { margin: 0; padding-left: 1.2em; }
.post-body li { margin-top: 0.5em; }
.post-body li::marker { color: var(--pink); }
.post-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px clamp(20px, 2.4vw, 32px);
  border-left: 3px solid var(--pink);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.32; letter-spacing: -0.01em;
  color: var(--brown); text-wrap: pretty;
}
.post-figure { margin: 2.4em 0; }
.post-figure img { width: 100%; display: block; border-radius: 6px; background: var(--bg-soft); aspect-ratio: 16/10; object-fit: cover; }
.post-figure figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* author footer card */
.post-author {
  max-width: 680px; margin: 0 auto;
  padding: clamp(28px, 3vw, 40px) var(--pad-x);
  display: flex; align-items: center; gap: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-author .pa-avatar {
  flex: 0 0 auto;
  width: clamp(56px, 6vw, 72px); aspect-ratio: 1; border-radius: 50%;
  background: var(--bg-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--muted);
}
.post-author .pa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author .pa-name { font-weight: 600; color: var(--brown); margin: 0; }
.post-author .pa-bio { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* prev / next */
.post-nav {
  display: flex; align-items: stretch; justify-content: space-between; gap: clamp(16px, 2vw, 28px);
  max-width: 1100px; margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) var(--pad-x) clamp(60px, 8vw, 110px);
}
.post-nav a {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.post-nav a:hover { border-color: var(--muted); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(42,23,14,0.1); }
.post-nav .pn-label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.post-nav .pn-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.1; color: var(--brown); }
.post-nav .pn-next { text-align: right; align-items: flex-end; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .th-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .th-feature { grid-template-columns: 1fr; height: auto; }
  .thf-img { order: -1; height: clamp(220px, 56vw, 360px); }
  .th-title { font-size: clamp(64px, 22vw, 150px); top: clamp(74px, 10vh, 110px); }
  .post-hero { aspect-ratio: 16 / 10; }
  .post-nav { flex-direction: column; }
  .post-nav .pn-next { text-align: left; align-items: flex-start; }
}
@media (max-width: 600px) {
  .th-grid { grid-template-columns: 1fr; }
}
