/* ═══════════════════════════════════════════════════════════════════════
   Blog — Myc substrát
   Ghost-style article layout (post feed + gh-canvas reading column),
   rendered in the Mycelium palette defined in substrate.css.
   Loads AFTER substrate.css so it inherits the design tokens (:root vars).
   ═══════════════════════════════════════════════════════════════════════ */

/* ───── Page scaffolding (these pages have no full-bleed hero sections) ───── */
.page { position: relative; z-index: 1; }
.page-head { padding: 84px 0 22px; }
.page-head .eyebrow { margin-bottom: 26px; }
.page-head h1 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px); line-height: 0.96; letter-spacing: -0.026em;
  margin: 0;
}
.page-head h1 em { font-style: italic; color: var(--burgundy); }
.page-head .lead { margin-top: 24px; }

.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 30px; }
.crumbs a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); transition: color .15s, border-color .15s; }
.crumbs a:hover { color: var(--ink); border-color: var(--ink); }
.crumbs .sep { margin: 0 9px; opacity: .5; }

/* ═══════════════ FEATURE VISUAL ═══════════════ */
/* On-brand network illustration used as the "feature image" (no stock photos). */
.feature-vis {
  position: relative; width: 100%; height: 100%;
  min-height: 240px;
  background:
    radial-gradient(120% 120% at 78% 18%, color-mix(in oklab, var(--coral-soft) 70%, transparent) 0%, transparent 52%),
    linear-gradient(150deg, var(--cream-soft) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.feature-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.feature-vis .fv-edge { stroke: var(--burgundy); stroke-width: 1.4; opacity: .42; }
.feature-vis .fv-edge.live { stroke: var(--coral); opacity: .9; }
.feature-vis .fv-node { fill: var(--cream-soft); stroke: var(--burgundy); stroke-width: 2; }
.feature-vis .fv-node.person { fill: var(--burgundy); stroke: none; }
.feature-vis .fv-node.project { fill: var(--slate); stroke: none; }
.feature-vis .fv-node.signal { fill: var(--coral); stroke: none; }
.feature-vis .fv-node.moss { fill: var(--moss); stroke: none; }

/* ═══════════════ POST FEED (listing) ═══════════════ */
.post-feed { padding: 16px 0 40px; }

/* Featured (first) post — wide horizontal card */
.post-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--cream-soft);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
}
a.post-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--burgundy) 40%, var(--rule));
  box-shadow: 0 22px 50px -28px rgba(28,26,22,.4);
}

.post-card.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-bottom: 46px;
}
.post-card.featured .post-card-image { min-height: 360px; }
.post-card.featured .post-card-content { padding: 46px 48px; align-self: center; }
.post-card.featured .post-card-title { font-size: clamp(30px, 3.4vw, 46px); }

.post-card-image { position: relative; background: var(--cream-deep); }
.post-card-content { padding: 30px 30px 32px; }

.post-card-tags {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.post-card-tags::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.post-card-title {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(24px, 2.5vw, 32px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 14px;
}
a.post-card:hover .post-card-title { color: var(--burgundy); }
.post-card-excerpt { color: var(--ink-soft); font-size: 17px; line-height: 1.55; margin: 0 0 24px; }

.post-card-meta { display: flex; align-items: center; gap: 13px; }
.post-card-meta .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  object-fit: cover; border: 1px solid var(--rule);
}
.post-card-meta .avatar.mono {
  display: grid; place-items: center; background: var(--burgundy); color: var(--cream);
  font-family: var(--serif-display); font-size: 18px; border: none;
}
.post-card-byline { font-size: 14px; line-height: 1.35; }
.post-card-byline .nm { color: var(--ink); font-weight: 600; }
.post-card-byline .dt { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.post-card-byline .dt .dot { margin: 0 7px; opacity: .5; }

/* Upcoming grid */
.feed-sub-head {
  display: flex; align-items: baseline; gap: 16px;
  margin: 12px 0 26px; padding-top: 30px; border-top: 1px solid var(--rule-soft);
}
.feed-sub-head h2 { font-family: var(--serif-display); font-weight: 400; font-size: 26px; letter-spacing: -.015em; margin: 0; }
.feed-sub-head .note { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card.soon { background: transparent; border-style: dashed; cursor: default; }
.post-card.soon .post-card-content { padding: 28px 28px 30px; }
.post-card.soon .post-card-tags { color: var(--ink-faint); }
.post-card.soon .post-card-title { color: var(--ink-soft); font-size: 22px; }
.post-card.soon .post-card-excerpt { margin-bottom: 18px; }
.post-card.soon .soon-flag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px;
}
.post-card.soon .soon-flag .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }

/* ═══════════════ ARTICLE (detail) ═══════════════ */
.gh-article { padding-bottom: 40px; }

.gh-article-header { max-width: 760px; margin: 0 auto; padding: 70px 0 38px; text-align: center; }
.gh-article-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--burgundy);
  display: inline-block; margin-bottom: 26px;
}
.gh-article-tag a { border-bottom: 1px solid transparent; transition: border-color .15s; }
.gh-article-tag a:hover { border-color: var(--burgundy); }
.gh-article-title {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.0; letter-spacing: -0.026em;
  color: var(--ink); margin: 0;
}
.gh-article-title em { font-style: italic; color: var(--burgundy); }
.gh-article-excerpt {
  font-family: var(--serif-body); font-style: italic;
  font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink-soft);
  margin: 24px auto 0; max-width: 38ch;
}

/* byline */
.gh-byline { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.gh-byline .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover;
  border: 1px solid var(--rule);
}
.gh-byline-meta { text-align: left; font-size: 14px; line-height: 1.4; }
.gh-byline-meta .nm { color: var(--ink); font-weight: 600; }
.gh-byline-meta .dt { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.gh-byline-meta .dt .dot { margin: 0 7px; opacity: .5; }

/* feature image */
.gh-feature {
  max-width: 1100px; margin: 8px auto 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--rule); aspect-ratio: 21 / 9; min-height: 280px;
}
.gh-feature .feature-vis { min-height: 0; height: 100%; }

/* ───── gh-canvas: centered reading column with break-out widths ───── */
.gh-canvas {
  display: grid;
  grid-template-columns:
    [full-start] minmax(40px, 1fr)
    [wide-start] minmax(0, 140px)
    [main-start] min(720px, calc(100% - 80px)) [main-end]
    minmax(0, 140px) [wide-end]
    minmax(40px, 1fr) [full-end];
  padding-top: 50px;
}
.gh-canvas > * { grid-column: main-start / main-end; }
.gh-canvas > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-canvas > .kg-width-full { grid-column: full-start / full-end; }

/* ───── gh-content typography ───── */
.gh-content { font-size: 19px; line-height: 1.66; color: var(--ink); }
.gh-content > * { margin: 0 0 1.45rem; }
.gh-content > *:first-child { margin-top: 0; }

.gh-content h2 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin: 2.6rem 0 1.1rem;
}
.gh-content h3 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.14; letter-spacing: -0.015em;
  color: var(--ink); margin: 2rem 0 .7rem;
}
.gh-content p { text-wrap: pretty; }
.gh-content em { font-style: italic; }
.gh-content strong { font-weight: 600; color: var(--ink); }
.gh-content a {
  color: var(--burgundy); border-bottom: 1px solid color-mix(in oklab, var(--burgundy) 40%, transparent);
  transition: border-color .15s, color .15s;
}
.gh-content a:hover { color: var(--coral); border-color: var(--coral); }

.gh-content code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--cream-deep); color: var(--burgundy);
  padding: 0.12em 0.42em; border-radius: 5px;
  border: 1px solid var(--rule-soft);
}

.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li { margin: 0 0 0.5em; padding-left: 0.25em; }
.gh-content li::marker { color: var(--burgundy); }
.gh-content ul li::marker { content: "▪  "; font-size: .8em; }

.gh-content blockquote {
  margin: 1.8rem 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--burgundy);
  font-style: italic; color: var(--ink-soft);
  font-size: 1.02em;
}
.gh-content blockquote p { margin-bottom: .5em; }
.gh-content blockquote strong { color: var(--burgundy); font-style: normal; }

.gh-content hr {
  border: none; height: 1px; background: var(--rule);
  margin: 3rem auto; width: 100%;
  position: relative;
}

/* Ghost "callout" card — used for the version/audience note */
.kg-callout-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream-soft); border: 1px solid var(--rule);
  border-radius: 14px; padding: 22px 26px;
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
}
.kg-callout-card .kg-callout-emoji { font-size: 20px; line-height: 1.4; flex: none; }
.kg-callout-card strong { color: var(--ink); }

/* ───── article footer: tags + author bio ───── */
.gh-article-foot { max-width: 720px; margin: 50px auto 0; }
.gh-article-foot .thread-rule { margin: 0 0 36px; }
.gh-author {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream-soft); border: 1px solid var(--rule);
  border-radius: 16px; padding: 26px 28px;
}
.gh-author .avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--rule); }
.gh-author .nm { font-family: var(--serif-display); font-size: 24px; letter-spacing: -.01em; margin-bottom: 4px; }
.gh-author .bio { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.gh-author .bio a { color: var(--burgundy); border-bottom: 1px solid color-mix(in oklab, var(--burgundy) 40%, transparent); }

.gh-back {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 40px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.gh-back:hover { color: var(--burgundy); border-color: var(--burgundy); }
.gh-back .arr { transition: transform .2s; }
.gh-back:hover .arr { transform: translateX(-3px); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 860px) {
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .post-card-image { min-height: 220px; }
  .post-card.featured .post-card-content { padding: 32px 30px 34px; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-head { padding-top: 56px; }
  .gh-article-header { padding-top: 48px; }
  .gh-canvas { grid-template-columns: [full-start main-start] minmax(0,1fr) [main-end full-end]; padding: 40px 22px 0; }
  .gh-canvas > * , .gh-canvas > .kg-width-wide, .gh-canvas > .kg-width-full { grid-column: main-start / main-end; }
  .gh-content { font-size: 18px; }
}
