/* ─────────────────────────────────────────
   BLOG — post layout
   Inherits all tokens from style.css
───────────────────────────────────────── */

/* reading progress bar */
#read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, rgba(99,102,241,.7), rgba(147,197,253,.9), rgba(99,102,241,.7));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(147,197,253,.5);
}

/* ── post hero ── */
.post-hero {
  padding: 14rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.post-back {
  position: absolute;
  top: 7rem; left: 2.8rem;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(147,197,253,.28);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color .2s;
}
.post-back:hover { color: rgba(147,197,253,.7); }
.post-back::before { content: '←'; font-size: 12px; }

.post-meta {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.post-cat {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(147,197,253,.55);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid rgba(147,197,253,.15);
  background: rgba(147,197,253,.05);
}
.post-date {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 300;
  letter-spacing: .08em;
  color: rgba(147,197,253,.22);
}
.post-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(147,197,253,.18);
}
.post-read {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 300;
  letter-spacing: .08em;
  color: rgba(147,197,253,.22);
}

.post-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 2rem;
}

.post-lede {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 300;
  line-height: 1.75;
  color: rgba(237,233,254,.45);
  max-width: 560px;
}

/* ── post divider ── */
.post-divider {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
}

/* ── post body ── */
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 2.8rem 8rem;
  position: relative; z-index: 1;
}

.post-body p {
  font-size: 17px;
  line-height: 1.9;
  color: rgba(237,233,254,.68);
  margin-bottom: 1.8rem;
  font-weight: 300;
}

.post-body p strong {
  color: rgba(237,233,254,.9);
  font-weight: 500;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin: 3.5rem 0 1.2rem;
  line-height: 1.2;
}

.post-body h3 {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(147,197,253,.4);
  margin: 3rem 0 1rem;
}

/* pull quote */
.post-pull {
  margin: 3rem 0;
  padding: 1.8rem 2rem 1.8rem 2.2rem;
  border-left: 2px solid rgba(147,197,253,.3);
  background: rgba(147,197,253,.03);
  border-radius: 0 12px 12px 0;
}
.post-pull p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem !important;
  line-height: 1.6 !important;
  color: rgba(237,233,254,.75) !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

/* footnote / aside */
.post-aside {
  margin: 2.5rem 0;
  padding: 1.4rem 1.6rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}
.post-aside p {
  font-family: var(--font-mono);
  font-size: 11px !important;
  line-height: 1.8 !important;
  color: rgba(147,197,253,.38) !important;
  margin: 0 !important;
  letter-spacing: .04em;
}

/* section break */
.post-break {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin: 3.5rem 0;
  color: rgba(147,197,253,.15);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .3em;
}
.post-break::before,
.post-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.05);
}

/* end card */
.post-end {
  margin-top: 5rem;
  padding: 2.5rem;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  display: flex; flex-direction: column; gap: 1rem;
}
.post-end-label {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(147,197,253,.25);
}
.post-end-text {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 300;
  font-size: 1.5rem; color: rgba(237,233,254,.7);
  line-height: 1.4; letter-spacing: -0.01em;
}
.post-end-link {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 300;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(147,197,253,.4);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
  margin-top: .4rem;
}
.post-end-link:hover { color: rgba(147,197,253,.8); }
.post-end-link::after { content: '↗'; }

/* ── post nav (prev / next) ── */
.post-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2.8rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative; z-index: 1;
}
.post-nav-item {
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,.025);
  transition: background .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 6px;
}
.post-nav-item:hover {
  background: rgba(147,197,253,.04);
  border-color: rgba(147,197,253,.15);
}
.post-nav-item.next { text-align: right; }
.post-nav-dir {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 300;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(147,197,253,.22);
}
.post-nav-title {
  font-size: 13px; font-weight: 400;
  color: rgba(237,233,254,.55);
  line-height: 1.4;
  transition: color .2s;
}
.post-nav-item:hover .post-nav-title { color: rgba(237,233,254,.85); }

/* ── responsive ── */
@media (max-width: 768px) {
  .post-hero { padding: 11rem 1.5rem 4rem; }
  .post-back { left: 1.5rem; }
  .post-body { padding: 3.5rem 1.5rem 6rem; }
  .post-nav { padding: 0 1.5rem 4rem; grid-template-columns: 1fr; }
  .post-title { font-size: clamp(2rem, 8vw, 2.6rem); }
}
