/* Individual post page — long-form reading, dark navy */

.post {
  background: #0d0f1a;
  color: #e8e8ec;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  padding-bottom: 6rem;
}

/* ═══ HERO ═══ */
.post-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.post-hero__container {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.post-hero__back {
  display: inline-block;
  font-size: 0.85rem;
  color: #6b6f82;
  text-decoration: none;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.post-hero__back:hover { color: var(--accent); }

.post-hero__category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.post-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 2rem;
  letter-spacing: 0.01em;
}

.post-hero__excerpt {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: #a8acbc;
  margin-bottom: 2.5rem;
}

.post-hero__meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #6b6f82;
  padding-bottom: 2rem;
  flex-wrap: wrap;
}

.post-hero__author { color: #a8acbc; font-weight: 500; }
.post-hero__accent { height: 2px; width: 60px; }

.post-hero__image {
  max-width: 720px;
  margin: 0 auto 4rem;
}
.post-hero__image img { width: 100%; height: auto; display: block; }
.post-hero__image figcaption {
  font-size: 0.8rem;
  color: #6b6f82;
  text-align: center;
  padding-top: 0.75rem;
  font-style: italic;
}

/* ═══ BODY ═══ */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #d0d2dc;
}

.post-body p { margin-bottom: 1.5rem; }

.post-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.15;
  color: #fff;
  margin: 4rem 0 1.5rem;
  letter-spacing: 0.01em;
}

.post-body h3 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin: 2.5rem 0 1rem;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s;
}
.post-body a:hover { opacity: 0.75; }

.post-body strong { color: #fff; font-weight: 700; }
.post-body em { font-style: italic; }

.post-body ul, .post-body ol { margin: 0 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #a8acbc;
}

/* ═══ INLINE IMAGES ═══ */
.post-image { margin: 3rem 0; }
.post-image--wide { margin-left: -4rem; margin-right: -4rem; }
.post-image--full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
}
.post-image img { width: 100%; height: auto; display: block; }
.post-image figcaption {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  color: #6b6f82;
  padding-top: 0.75rem;
  font-style: italic;
}

/* ═══ PULL QUOTE ═══ */
.pull-quote {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-family: 'IBM Plex Serif', serif;
}
.pull-quote p {
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  color: #fff;
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b6f82;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ═══ CALLOUT ═══ */
.callout {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
.callout--note { border-left-color: #6b6f82; }
.callout--field { border-left-color: #EB9001; }
.callout--warning { border-left-color: #CF4C38; }
.callout--insight { border-left-color: #0C7A7A; }

.callout__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #fff;
}
.callout__body p { margin-bottom: 0.75rem; }
.callout__body p:last-child { margin-bottom: 0; }

/* ═══ SVG / DIAGRAM ═══ */
.post-diagram {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.post-diagram svg { max-width: 100%; height: auto; }
.post-diagram figcaption {
  font-size: 0.8rem;
  color: #6b6f82;
  padding-top: 1rem;
  font-style: italic;
}

/* ═══ RELATED ═══ */
.post-related {
  max-width: 720px;
  margin: 6rem auto 0;
  padding: 4rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.post-related__title {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #6b6f82;
  margin-bottom: 2rem;
  font-weight: 400;
}
.post-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .post-hero { padding: 2rem 1rem 0; }
  .post-hero__container { margin-bottom: 2rem; }
  .post-body { padding: 0 1rem; font-size: 1.05rem; }
  .post-image--wide { margin-left: 0; margin-right: 0; }
}
