/* Blog post — editorial, V1-system inheriting tokens from styles.css */

.post {
  background: var(--bg);
  color: var(--fg);
}

/* ───── Hero ───── */
.post-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}
.post-hero__back {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.post-hero__back:hover { color: var(--accent); }
.post-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  gap: 16px;
  flex-wrap: wrap;
}
.post-hero__meta {
  display: flex;
  gap: 20px;
  align-items: center;
}
.post-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(121,255,140,0.08);
  border: 1px solid rgba(121,255,140,0.3);
  color: var(--accent);
}
.post-hero__chip::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.post-hero__title {
  font-size: clamp(42px, 5.4vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
  max-width: 1100px;
  margin-bottom: 28px;
}
.post-hero__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.post-hero__deck {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 720px;
  margin-bottom: 48px;
  text-wrap: pretty;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
}
.post-hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
}
.post-hero__author b { color: var(--fg); font-weight: 500; font-family: var(--font-sans); }

/* ───── Cover image ───── */
.post-cover {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.post-cover__img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 50%, rgba(121,255,140,0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(121,255,140,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--card) 100%);
  display: grid;
  place-items: center;
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  position: relative;
  overflow: hidden;
}
.post-cover__img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}
.post-cover__glyph {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(64px, 10vw, 140px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}
.post-cover__glyph span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-top: 16px;
}

/* ───── Body layout ───── */
.post-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 120px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .post-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ToC */
.post-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}
.post-toc__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-toc__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.post-toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-toc__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-dim);
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -16px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.post-toc__item:hover { color: var(--fg); }
.post-toc__item--active {
  color: var(--fg);
  border-left-color: var(--accent);
}
.post-toc__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  padding-top: 1px;
}
.post-toc__item--active .post-toc__num { color: var(--accent); }
.post-toc__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}
@media (max-width: 900px) {
  .post-toc { position: static; }
  .post-toc__meta { display: none; }
}

/* Article */
.post-article {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 760px;
}
.post-article p {
  color: var(--fg-dim);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.post-article p strong { color: var(--fg); font-weight: 500; }
.post-article em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05em;
}
.post-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lede (first paragraph) */
.post-article__lede {
  font-size: 22px !important;
  line-height: 1.45 !important;
  color: var(--fg) !important;
  margin-bottom: 48px !important;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-wrap: pretty;
}

/* Chapters */
.post-chapter {
  margin-top: 80px;
  scroll-margin-top: 120px;
}
.post-chapter:first-of-type { margin-top: 56px; }
.post-chapter__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-chapter__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.post-chapter__title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: 28px;
  text-wrap: balance;
}
.post-chapter__title em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Subheading inside chapter */
.post-article h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

/* Meta facts (Trigger / Ziel) */
.post-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  margin: 28px 0 32px;
  overflow: hidden;
}
.post-facts__cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.post-facts__cell:last-child { border-right: none; }
.post-facts__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-facts__v {
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg);
}
@media (max-width: 560px) {
  .post-facts { grid-template-columns: 1fr; }
  .post-facts__cell { border-right: none; border-bottom: 1px solid var(--line); }
  .post-facts__cell:last-child { border-bottom: none; }
}

/* Email sequence list (numbered, editorial) */
.post-seq {
  display: flex;
  flex-direction: column;
  margin: 24px 0 32px;
  border-top: 1px solid var(--line);
}
.post-seq__row {
  display: grid;
  grid-template-columns: 44px 110px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.post-seq__n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.post-seq__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 2px;
}
.post-seq__t {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.5;
}
.post-seq__t b { color: var(--fg); font-weight: 500; }
@media (max-width: 640px) {
  .post-seq__row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .post-seq__n { grid-column: 1; grid-row: 1; }
  .post-seq__time { grid-column: 2; grid-row: 1; padding-top: 2px; }
  .post-seq__t { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }
}

/* Plain list */
.post-list {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
}
.post-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--fg-dim);
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}
.post-list li:last-child { border-bottom: none; }
.post-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.post-list li b { color: var(--fg); font-weight: 500; }

/* Callout — Wichtig!, Why not... */
.post-callout {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  background: rgba(121,255,140,0.03);
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  position: relative;
}
.post-callout__k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-callout p { margin: 0; color: var(--fg); font-size: 17px; line-height: 1.55; }

/* Pull quote / pullout emphasis */
.post-pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--fg);
  margin: 56px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  text-wrap: balance;
}
.post-pull em {
  font-style: italic;
  color: var(--accent);
}

/* Flow block exclusion matrix */
.post-matrix {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 14px 20px;
  margin: 24px 0 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  align-items: center;
}
.post-matrix__strong { color: var(--accent); }
.post-matrix__weak { color: var(--fg-dim); }
.post-matrix__arrow { color: var(--fg-mute); }
.post-matrix__dur { color: var(--fg-mute); font-size: 11px; text-align: right; }
@media (max-width: 640px) {
  .post-matrix { grid-template-columns: 1fr; gap: 6px; padding: 20px; }
  .post-matrix__arrow, .post-matrix__dur { display: none; }
}

/* Escalation timeline */
.post-escalation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.post-escalation__step {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  white-space: nowrap;
}
.post-escalation__step b {
  color: var(--fg);
  text-transform: uppercase;
  font-weight: 500;
}
.post-escalation__step:not(:last-child)::after {
  content: '→';
  color: var(--accent);
  margin-left: 4px;
}

/* End block — CTA */
.post-end {
  max-width: 1280px;
  margin: 80px auto 0;
  padding: 0 24px;
}
.post-end__card {
  padding: 72px 64px;
  border-radius: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.post-end__card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(121,255,140,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.post-end__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.post-end__title {
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 16px;
  text-wrap: balance;
}
.post-end__title em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.post-end__desc {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
}
.post-end__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  position: relative;
}
@media (max-width: 820px) {
  .post-end__card { padding: 48px 28px; grid-template-columns: 1fr; gap: 28px; }
  .post-end__right { align-items: flex-start; }
}

/* Related */
.post-related {
  max-width: 1280px;
  margin: 100px auto 60px;
  padding: 0 24px;
}
.post-related__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.post-related__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.post-related__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
}
.post-related__link:hover { color: var(--accent); }
.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.post-related__card {
  padding: 28px 32px 28px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: padding 0.25s;
}
.post-related__card:last-child { border-right: none; padding-right: 0; }
.post-related__card:not(:first-child) { padding-left: 32px; }
.post-related__card:hover { padding-top: 22px; padding-bottom: 34px; }
.post-related__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-related__t {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.post-related__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 12px;
}
@media (max-width: 820px) {
  .post-related__grid { grid-template-columns: 1fr; }
  .post-related__card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }
  .post-related__card:not(:first-child) { padding-left: 0; }
  .post-related__card:last-child { border-bottom: none; }
}

/* Progress bar (top of viewport) */
.post-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 150;
  width: 0;
  transition: width 0.1s linear;
}

/* Mobile refinements */
@media (max-width: 720px) {
  .post-hero { padding: 108px 18px 28px; }
  .post-hero__back { margin-bottom: 22px; }
  .post-hero__title { font-size: 44px; line-height: 1.0; }
  .post-hero__deck { font-size: 16px; margin-bottom: 32px; }
  .post-cover { padding: 0 18px; margin-bottom: 24px; }
  .post-cover__img { aspect-ratio: 4/3; border-radius: 14px; }
  .post-body { padding: 32px 18px 72px; gap: 24px; }
  .post-article { font-size: 16px; line-height: 1.6; }
  .post-article p { margin-bottom: 20px; }
  .post-article__lede { font-size: 18px !important; margin-bottom: 28px !important; padding-bottom: 24px; }
  .post-chapter { margin-top: 56px; }
  .post-chapter__title { font-size: 26px; }
  .post-seq__row { padding: 16px 0; gap: 10px; }
  .post-seq__t { font-size: 14.5px; }
  .post-pull { font-size: 22px; margin: 36px 0; padding-left: 16px; }
  .post-callout { padding: 18px 20px; margin: 24px 0; }
  .post-callout p { font-size: 15px; }
  .post-end { margin-top: 56px; padding: 0 18px; }
  .post-related { padding: 0 18px; margin-top: 64px; }
}
