/* ============================================================
   JOURNAL POST — long-form essay layout
   ============================================================ */

.post-head {
  padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}
.post-head__crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-head__crumb a {
  color: var(--fg3);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-out);
}
.post-head__crumb a:hover { color: var(--kt-primary); }
.post-head__crumb .sep { opacity: 0.5; }

.post-head__inner {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 56px;
  align-items: end;
}
.post-head__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kt-primary);
}
.post-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--fg1);
  margin: 18px 0 26px;
  text-wrap: balance;
  max-width: 22ch;
}
.post-head__title em { font-style: italic; color: var(--kt-primary); font-weight: 400; }
.post-head__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  color: var(--fg2);
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
}

.post-head__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px;
  background: var(--kt-light);
  border: 1px solid var(--border);
}
.post-head__meta .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.post-head__meta .row .k { color: var(--fg3); }
.post-head__meta .row .v { color: var(--fg1); font-weight: 500; }
.post-head__meta .row + .row { padding-top: 12px; border-top: 1px solid var(--border); }

/* Cover image */
.post-cover {
  padding: clamp(32px, 4vw, 56px) 0 0;
}
.post-cover__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.post-cover__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}
.post-cover__cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Article body */
.post-body {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}
.post-body__inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px) 1fr;
  gap: 64px;
}
.post-body__rail {
  position: sticky;
  top: 96px;
  align-self: start;
}
.post-body__rail .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 16px;
}
.post-body__rail .label::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: var(--kt-primary);
  vertical-align: middle; margin-right: 10px;
}
.post-body__rail ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  counter-reset: rail;
}
.post-body__rail li {
  counter-increment: rail;
  font-size: 13px;
  line-height: 1.35;
  color: var(--fg2);
  padding-left: 28px;
  position: relative;
}
.post-body__rail li::before {
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--kt-primary);
}
.post-body__rail a {
  color: inherit;
  text-decoration: none;
}
.post-body__rail a:hover { color: var(--kt-primary); }

.post-body__main {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg1);
}
.post-body__main > * { max-width: 64ch; }
.post-body__main p { margin: 0 0 22px; text-wrap: pretty; }
.post-body__main p.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg1);
  margin: 0 0 32px;
}
.post-body__main p.lead::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--kt-primary);
  letter-spacing: -0.02em;
}
.post-body__main strong { font-weight: 500; color: var(--fg1); }
.post-body__main em { font-style: italic; color: var(--kt-primary); }
.post-body__main h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg1);
  margin: 64px 0 20px;
  text-wrap: balance;
}
.post-body__main h2 em { font-style: italic; color: var(--kt-primary); font-weight: 400; }
.post-body__main h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg1);
  margin: 40px 0 12px;
}
.post-body__main ol,
.post-body__main ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: postol;
}
.post-body__main ol li,
.post-body__main ul li {
  padding: 14px 0 14px 56px;
  border-top: 1px solid var(--border);
  position: relative;
  line-height: 1.55;
}
.post-body__main ol li:last-child,
.post-body__main ul li:last-child { border-bottom: 1px solid var(--border); }
.post-body__main ol li { counter-increment: postol; }
.post-body__main ol li::before {
  content: counter(postol, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--kt-primary);
  letter-spacing: -0.01em;
}
.post-body__main ul li::before {
  content: "";
  position: absolute;
  left: 14px; top: 26px;
  width: 24px; height: 1px;
  background: var(--kt-primary);
}

/* Dialogue excerpt — two-voice session transcript */
.post-body__main .dialogue {
  margin: 36px 0;
  padding: 24px 24px 24px 28px;
  border-left: 2px solid var(--border);
  background: var(--kt-light);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.post-body__main .dialogue__line { display: flex; flex-direction: column; gap: 5px; }
.post-body__main .dialogue__who {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kt-primary);
}
.post-body__main .dialogue__line p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg1);
  margin: 0;
  font-style: italic;
}

/* Pull quote */
.post-body__main .pull {
  margin: 40px 0 40px;
  padding: 8px 0 8px 28px;
  border-left: 2px solid var(--kt-primary);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.25;
  color: var(--fg1);
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 26ch;
}
.post-body__main .pull em { color: var(--kt-primary); }
.post-body__main .pull .by {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Inline provocation card — matches wall style, adapted for mid-essay use */
.post-body__main .post-provocation {
  position: relative;
  margin: 48px 0;
  padding: 28px 26px 26px;
  background: var(--kt-light);
  background-image: url("assets/paper-texture.svg");
  background-size: 600px;
  background-blend-mode: multiply;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border);
  transform: rotate(-0.6deg);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  max-width: 52ch;
}
.post-body__main .post-provocation:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: var(--shadow-2);
}
.post-body__main .post-provocation p {
  font-family: var(--font-hand);
  font-size: 24px;
  line-height: 1.3;
  color: var(--fg1);
  margin: 0;
}
.post-body__main .post-provocation .by {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Inline figures */
.post-body__main figure {
  margin: 40px 0;
  max-width: 100%;
}
.post-body__main figure.wide { max-width: 84ch; }
.post-body__main figure img {
  width: 100%;
  height: auto;
  filter: saturate(0.9) contrast(1.02);
  display: block;
}
.post-body__main figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Stat callout */
.post-body__main .stat-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0;
  padding: 28px 32px;
  background: var(--kt-light-100);
  border: 1px solid var(--border);
  max-width: 64ch;
}
.post-body__main .stat-callout .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.025em;
  color: var(--kt-primary);
  line-height: 0.95;
}
.post-body__main .stat-callout p {
  margin: 0;
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.5;
}

/* Sign-off */
.post-signoff {
  padding-top: 56px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  max-width: 64ch;
}
.post-signoff .hand {
  font-family: var(--font-hand);
  font-size: 32px;
  color: var(--fg1);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.post-signoff .by {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Next post + Workshop CTA */
.post-next {
  background: var(--kt-light-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 5vw, 72px) 0;
}
.post-next a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  text-decoration: none;
  color: var(--fg1);
  transition: background var(--dur-base) var(--ease-out);
  padding: 16px;
  margin: -16px;
}
.post-next a:hover { background: rgba(168,82,27,0.04); }
.post-next .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kt-primary);
  white-space: nowrap;
}
.post-next .label::before {
  content: ""; display: inline-block; width: 24px; height: 1px;
  background: var(--kt-primary); vertical-align: middle; margin-right: 12px;
}
.post-next h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.post-next h3 em { font-style: italic; color: var(--kt-primary); font-weight: 400; }
.post-next a:hover h3 { color: var(--kt-primary); }
.post-next .arrow {
  width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.post-next a:hover .arrow { transform: translateX(4px); color: var(--kt-primary); }

/* Workshop CTA at end */
.post-cta {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--kt-primary);
  color: var(--kt-light);
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/paper-texture.svg");
  background-size: 800px; opacity: 0.08;
  mix-blend-mode: multiply; pointer-events: none;
}
.post-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: end;
}
.post-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--kt-light);
  margin: 16px 0 0;
  text-wrap: balance;
}
.post-cta h2 em { font-style: italic; font-weight: 400; opacity: 0.78; }
.post-cta p {
  color: var(--kt-light); opacity: 0.88;
  font-size: 16px; line-height: 1.55;
  max-width: 40ch; margin: 0 0 18px;
}

@media (max-width: 1080px) {
  .post-body__inner { grid-template-columns: 1fr; gap: 32px; }
  .post-body__rail { position: static; }
  .post-body__rail ol { flex-direction: row; flex-wrap: wrap; gap: 18px 24px; }
}
@media (max-width: 820px) {
  .post-head__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .post-head__meta { max-width: 360px; }
  .post-next a { grid-template-columns: 1fr; gap: 10px; }
  .post-cta__inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}
