/* Blog pages: list page header and article typography. Loaded after styles.css. */

.blog-head, .article { max-width: var(--max); margin: 0 auto; padding: clamp(130px, 16vw, 180px) var(--gutter) 0; }
.blog-head h1 { font-size: clamp(44px, 7vw, 104px); }
.blog-head .lede { margin-bottom: 64px; }
.blog-head .label { margin-bottom: 24px; }
.blog-list { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }

.article { max-width: calc(760px + var(--gutter) * 2); }
.article .back { display: inline-block; margin-bottom: 40px; }
.article .back:hover { color: var(--accent); }
.article [data-post-meta] { margin-bottom: 20px; }
.article h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.article .lede { max-width: none; font-size: clamp(19px, 2vw, 22px); }

.prose { margin-top: 56px; font-size: 19px; line-height: 1.7; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--text);
  margin-top: 2.2em; display: flex; gap: 14px; align-items: baseline;
}
.prose h2 .label { flex: none; color: var(--accent); font-size: 12px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--bg-3); padding: 2px 6px; color: var(--text); }
.prose ul { list-style: none; display: grid; gap: .5em; }
.prose li { padding-left: 26px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border: 1px solid var(--accent); transform: rotate(45deg); }
.prose .callout {
  border-left: 2px solid var(--accent); padding: 18px 24px; background: var(--bg-2); color: var(--text);
  font-size: 18px;
}
.prose .callout .label { display: block; margin-bottom: 6px; color: var(--accent); }

/* Clips: a 16:9 frame that shows the video if blog/media/<file> exists, else a labelled placeholder */
.clip { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); margin-top: 2em !important; overflow: hidden; }
[data-palette="rust"] .clip { clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.clip.has-video video { opacity: 1; }
.clip figcaption {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted);
  background: radial-gradient(80% 120% at 85% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
}
.clip.has-video figcaption { inset: auto 0 0 0; display: block; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: var(--text); }

.post-cta {
  margin-top: 80px; padding: 36px; background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.post-cta h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.post-next { margin: 56px 0 clamp(96px, 12vw, 140px); padding-top: 28px; border-top: 1px solid var(--line); }
.post-next a { display: inline-block; margin-top: 10px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; }
.post-next a:hover span { color: var(--accent); }

.draft-ribbon {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 70; white-space: nowrap;
  background: var(--cyber, var(--accent)); color: #041514; padding: 4px 12px; font-size: 11px;
}
