/* 2xN — "Made You Scroll" blog post typography.
   Shared by the blog editor preview and every exported post. */

.post-page { background: var(--bg-light); color: var(--text-on-light); min-height: 100vh; }

.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.post__cat {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-deep); margin: 0 0 18px;
}
.post__title {
  font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.06; margin: 0 0 22px; color: var(--text-on-light); text-wrap: balance;
}
.post__summary {
  font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; font-weight: 500;
  color: var(--text-on-light-muted); margin: 0 0 30px; text-wrap: pretty;
}
.post__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  padding: 18px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  font-size: 14px; color: var(--text-on-light-muted);
}
.post__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-on-light); }
.post__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--purple); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.post__meta-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-light); }
.post__hero {
  margin: 32px 0 8px; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 8; background: var(--icon-tile);
}
.post__hero image-slot, .post__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Body prose */
.post__body { font-size: 17.5px; line-height: 1.75; color: #241833; margin-top: 34px; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 {
  font-size: clamp(28px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--text-on-light); margin: 44px 0 16px;
}
.post__body h2 .accent { color: var(--purple); }
.post__inline-img { margin: 36px 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--icon-tile); }
.post__inline-img image-slot, .post__inline-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post__body h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-on-light); margin: 32px 0 12px;
}
.post__body p { margin: 0 0 20px; }
.post__body a { color: var(--purple-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.post__body a:hover { color: var(--purple); }
.post__body ul, .post__body ol { margin: 0 0 22px; padding-left: 24px; }
.post__body li { margin: 0 0 10px; }
.post__body strong { font-weight: 700; color: var(--text-on-light); }
.post__body blockquote {
  margin: 28px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--purple);
  font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--text-on-light);
}
.post__body img { border-radius: var(--radius-md); margin: 28px 0; }

/* In-article CTA */
.post__cta {
  margin: 44px 0 0; padding: 32px 34px; border-radius: var(--radius-lg);
  background: var(--bg-dark); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.post__cta-text { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0; max-width: 32ch; }
.post__cta .btn { flex-shrink: 0; }

/* Slim post chrome for exported pages */
.post-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13,5,24,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.post-nav__inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.post-nav__inner img { height: 26px; }
.post-nav__back { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 8px; }
.post-nav__back:hover { color: #fff; }
.post-foot {
  background: var(--bg-dark); color: var(--text-on-dark-muted);
  text-align: center; padding: 34px 24px; font-size: 13px;
}
.post-foot a { color: var(--text-on-dark-muted); }
.post-foot a:hover { color: #fff; }

.post__back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--text-on-light-muted); transition: color 200ms ease, gap 200ms ease; }
.post__back:hover { color: var(--purple-deep); gap: 12px; }
[data-theme="dark"] .post__back:hover { color: var(--purple-bright); }
.post__back .arrow { display: inline-block; transform: scaleX(-1); }
@media (max-width: 640px) {
  .post { padding: 40px 20px 72px; }
  .post__cta { flex-direction: column; align-items: flex-start; }
  .post-nav__inner { padding: 16px 22px; }
}
