/* ==========================================================================
   Golioth Blog — Main Stylesheet (Redesign)
   ========================================================================== */

/* ---------- Akkurat LL Font Faces ---------- */
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-Light.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-LightItalic.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-LightItalic.woff') format('woff');
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-Regular.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-Italic.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-Italic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-Bold.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-BoldItalic.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-BoldItalic.woff') format('woff');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-Black.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-Black.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AkkuratLL';
  src: url('/fonts/AkkuratLLWeb-BlackItalic.woff2') format('woff2'),
       url('/fonts/AkkuratLLWeb-BlackItalic.woff') format('woff');
  font-weight: 900; font-style: italic; font-display: swap;
}

/* ---------- Page reset ---------- */
html, body { margin: 0; padding: 0; }
body { background: var(--paper, #fbfaf7); }

/* =========================================================
   .gb-root scope — everything inside the blog theme
   ========================================================= */
.gb-root {
  --accent: #ff5760;
  --accent-ink: #d63845;
  --accent-soft: rgba(255, 87, 96, .10);
  --ink: #0e1116;
  --ink-2: #1f242d;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --rule-2: #eef0f3;
  --paper: #fbfaf7;
  --paper-2: #f3f1ec;
  --card: #ffffff;
  --navy: #0e1116;
  --ok: #2e9d5c;

  --sans: 'AkkuratLL', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

.gb-root *, .gb-root *::before, .gb-root *::after { box-sizing: border-box; }
.gb-root a { color: inherit; text-decoration: none; }
.gb-root img { max-width: 100%; display: block; }
.gb-root h1, .gb-root h2, .gb-root h3, .gb-root h4, .gb-root h5, .gb-root h6 { margin: 0; }
.gb-root p { margin: 0; }
.gb-root ul, .gb-root ol { margin: 0; }

/* ---------- Header ---------- */
.gb-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 14px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}
.gb-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 15px;
}
.gb-brand .gb-logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}
.gb-brand .gb-logo img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.gb-brand .gb-wordmark b { font-weight: 700; }

.gb-nav {
  display: flex; gap: 4px; margin-left: auto;
  font-size: 14px;
  list-style: none; padding: 0;
}
.gb-nav li { list-style: none; }
.gb-nav a {
  padding: 7px 12px; border-radius: 6px;
  color: var(--ink-2);
  transition: background .15s;
  display: inline-block;
}
.gb-nav a:hover { background: var(--paper-2); }
.gb-nav a.is-active { color: var(--accent-ink); }

.gb-header-cta {
  display: flex; align-items: center; gap: 8px;
  padding-left: 18px;
  margin-left: 8px;
  border-left: 1px solid var(--rule);
}
.gb-search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--rule);
  border-radius: 6px; background: var(--card);
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  min-width: 180px;
}
.gb-search kbd {
  font-family: var(--mono); font-size: 11px;
  padding: 1px 5px; border-radius: 3px;
  background: var(--paper-2); color: var(--muted);
  margin-left: auto;
}

/* ---------- Buttons ---------- */
.gb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.gb-btn-primary { background: var(--accent); color: #fff; }
.gb-btn-primary:hover { background: var(--accent-ink); color: #fff; }
.gb-btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.gb-btn-outline:hover { background: var(--ink); color: var(--paper); }
.gb-btn-ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--rule);
}
.gb-btn-ghost:hover { border-color: var(--ink); }
.gb-btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---------- Marquee ---------- */
.gb-marquee {
  display: flex; align-items: center; gap: 28px;
  padding: 8px 40px;
  background: var(--navy); color: rgba(255,255,255,.72);
  font-family: var(--mono); font-size: 12px;
  overflow: hidden;
}
.gb-marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.gb-marquee b { color: #fff; font-weight: 600; }
.gb-marquee a { color: inherit; text-decoration: underline; }
.gb-marquee .meta { margin-left: auto; opacity: 0.6; white-space: nowrap; }

/* ---------- Homepage masthead ---------- */
.gb-masthead {
  padding: 28px 40px 24px;
  border-bottom: 1px solid var(--rule);
}
.gb-masthead-title {
  font-size: 34px; line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.gb-masthead-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-ink);
}

/* ---------- Featured (editorial hero) ---------- */
.gb-featured {
  padding: 32px 40px 56px;
  border-bottom: 1px solid var(--rule);
}
.gb-featured-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) 1fr;
  gap: 48px;
  align-items: center;
}
.gb-featured-image {
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: #eef4fb;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gb-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gb-featured-body { max-width: 56ch; }
.gb-featured-title {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 14px 0 16px;
}
.gb-featured-title a { color: var(--ink); }
.gb-featured-title a:hover { color: var(--accent-ink); }
.gb-featured-dek {
  font-size: 17px; line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 24px;
  font-weight: 400;
}
.gb-featured-byline {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.gb-featured-cta {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.gb-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.gb-eyebrow .pip {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.gb-eyebrow b { color: var(--accent-ink); }

.gb-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.gb-avatar-sm { width: 22px; height: 22px; font-size: 10px; }
.gb-author-name { color: var(--ink); font-weight: 600; }
.gb-dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }

/* ---------- Section rail ---------- */
.gb-section {
  padding: 56px 40px;
  border-bottom: 1px solid var(--rule);
}
.gb-section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: end;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.gb-section-title {
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
}
.gb-section-kicker {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.gb-section-actions {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}

/* ---------- Post grid ---------- */
.gb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gb-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 380px;
}
.gb-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-2);
  box-shadow: 0 8px 24px -12px rgba(20, 28, 50, 0.15);
}
.gb-card-image {
  display: block;
  aspect-ratio: 16/10;
  background: #eef4fb;
  position: relative;
  overflow: hidden;
}
.gb-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gb-card-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1f2b, #2d3545 60%, #ff5760 140%);
}
.gb-card-body {
  padding: 20px 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.gb-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.02em;
}
.gb-card-tag {
  color: var(--accent-ink);
  text-transform: uppercase;
}
.gb-card-tag + .gb-card-tag::before {
  content: '/'; color: var(--rule); margin-right: 6px;
}
.gb-card-title {
  font-size: 20px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--ink);
}
.gb-card-title a { color: inherit; }
.gb-card:hover .gb-card-title { color: var(--accent-ink); }
.gb-card-dek {
  font-size: 14px; color: var(--muted); line-height: 1.55;
  flex: 1;
}
.gb-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--rule-2);
}
.gb-card-author { display: flex; align-items: center; gap: 8px; }
.gb-card-meta .gb-author-name { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink); }
.gb-card-date { white-space: nowrap; }

/* ---------- List rows (archive style) ---------- */
.gb-list {
  border-top: 1px solid var(--ink);
}
.gb-list-row {
  display: grid;
  grid-template-columns: 60px 1fr 180px 120px;
  gap: 24px; align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
  color: inherit;
}
.gb-list-row:hover { background: var(--card); }
.gb-list-num {
  font-family: var(--mono); font-size: 13px;
  color: var(--muted);
}
.gb-list-row:hover .gb-list-num { color: var(--accent-ink); }
.gb-list-main {
  display: flex; flex-direction: column; gap: 4px;
}
.gb-list-title {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.gb-list-row:hover .gb-list-title { color: var(--accent-ink); }
.gb-list-sub {
  font-size: 13px; color: var(--muted);
}
.gb-list-cat {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em;
}
.gb-list-date {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); text-align: right;
}

/* ---------- Topic pills + launchpad ---------- */
.gb-topics {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.gb-topic {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink-2);
  text-decoration: none;
}
.gb-topic:hover { border-color: var(--ink); }
.gb-topic.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gb-topic .count {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  padding: 1px 5px; border-radius: 99px;
  background: var(--paper-2);
}
.gb-topic.is-active .count { color: rgba(255,255,255,.7); background: rgba(255,255,255,.1); }

.gb-topic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule);
}
.gb-topic-card {
  padding: 24px 22px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 160px;
  transition: background .15s;
  color: inherit;
  text-decoration: none;
}
.gb-topic-card:hover { background: var(--card); }
.gb-topic-icon {
  width: 32px; height: 32px;
  color: var(--accent-ink);
}
.gb-topic-name {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.015em;
}
.gb-topic-count {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: auto;
}

/* ---------- Newsletter strip ---------- */
.gb-newsletter {
  padding: 72px 40px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
}
.gb-newsletter h2 {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05;
}
.gb-newsletter h2 em {
  color: var(--accent); font-style: normal;
}
.gb-newsletter p {
  font-size: 15px; color: rgba(255,255,255,.65);
  max-width: 48ch; margin-top: 12px;
}
.gb-newsletter-form {
  display: flex; gap: 8px; align-items: center;
  padding: 6px; background: rgba(255,255,255,.06);
  border-radius: 8px;
}
.gb-newsletter-form input {
  background: transparent; border: none; outline: none;
  padding: 12px 16px;
  color: #fff; font-family: var(--sans); font-size: 14px;
  min-width: 260px;
}
.gb-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }

/* ---------- Footer ---------- */
.gb-footer {
  padding: 48px 40px 24px;
  background: var(--ink);
  color: rgba(255,255,255,.7);
}
.gb-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.gb-footer-brand .gb-brand { color: #fff; margin-bottom: 12px; }
.gb-footer-brand p {
  font-size: 13px; line-height: 1.6;
  margin: 0 0 16px; max-width: 32ch;
}
.gb-footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px; font-weight: 500;
}
.gb-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gb-footer ul a { font-size: 13px; color: rgba(255,255,255,.75); }
.gb-footer ul a:hover { color: #fff; }
.gb-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,.4);
}

/* =========================================================
   Single post page — TOC-only left rail, inline bottom blocks
   ========================================================= */
.gb-single {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  min-height: 60vh;
}
.gb-single-toc {
  border-right: 1px solid var(--rule);
  padding: 40px 28px;
  position: sticky; top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 28px;
}
.gb-single-toc .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 18px;
}

/* Hugo .TableOfContents wrapper — style the auto-generated nav/ul */
.gb-toc-list,
.gb-single-toc #TableOfContents > ul,
.gb-single-toc #TableOfContents ul ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.gb-single-toc #TableOfContents > ul {
  border-left: 1px solid var(--rule);
}
.gb-single-toc #TableOfContents a {
  display: block;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--muted);
  line-height: 1.35;
  transition: all .15s;
  font-size: 13px;
}
.gb-single-toc #TableOfContents a:hover { color: var(--ink); }
.gb-single-toc #TableOfContents a.is-active {
  border-left-color: var(--accent);
  color: var(--ink); font-weight: 600;
}
.gb-single-toc #TableOfContents ul ul a { padding-left: 28px; font-size: 12px; }

.gb-toc-progress {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
}
.gb-toc-progress .row {
  display: flex; justify-content: space-between;
}
.gb-progress-bar {
  height: 3px; background: var(--rule-2);
  border-radius: 99px; overflow: hidden;
}
.gb-progress-bar > span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width .1s linear;
}
.gb-toc-progress .back-to-top {
  margin-top: 6px; color: var(--accent-ink);
  font-family: var(--sans); font-size: 12px;
}

/* Article column — fills the 1fr; content left-anchored (no ghost column) */
.gb-article {
  padding: 83px 110px 138px 110px;
  min-width: 0;
  width: 100%;
}
.gb-article-inner {
  max-width: none;
  margin: 0;
}
.gb-article-head {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.gb-article-head.has-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
}
.gb-article-head-text { min-width: 0; }
.gb-article-category {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent-ink); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 20px;
  flex-wrap: wrap;
}
.gb-article-category a { color: var(--accent-ink); }
.gb-article-category .sep { color: var(--rule); }
.gb-article-title {
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.03;
  margin-bottom: 20px;
}
.gb-article-dek {
  font-size: 20px; line-height: 1.45;
  color: var(--ink-2);
  margin: 20px 0 28px;
  padding: 22px 26px;
  background: var(--paper-2);
  border-radius: 4px;
  font-weight: 300;
}
.gb-article-meta {
  display: flex; gap: 24px; align-items: center;
  flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.gb-article-meta .gb-avatar { width: 34px; height: 34px; font-size: 13px; }
.gb-article-author { display: flex; gap: 10px; align-items: center; }
.gb-article-author strong { color: var(--ink); font-weight: 600; display: block; font-size: 13px; }
.gb-article-author span { font-size: 12px; color: var(--muted); }
.gb-article-stats {
  display: flex; gap: 16px; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em;
}

.gb-article-hero {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a1f2b 0%, #2d3545 60%, var(--accent) 120%);
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.gb-article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Prose (styled for Hugo-rendered markdown content) */
.gb-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  /* Children fill the inner column; parent .gb-article-inner caps the measure */
}
.gb-prose p { margin: 0 0 1.2em; }

/* Tame WordPress-exported figures and images that have inline width attributes */
.gb-prose figure,
.gb-prose .wp-caption {
  max-width: 100% !important;
  width: auto !important;
  margin-left: auto;
  margin-right: auto;
}
.gb-prose img {
  max-width: 100%;
  height: auto;
  width: auto;
}
.gb-prose > p:first-of-type::first-letter {
  float: left;
  font-size: 76px; line-height: .9;
  font-weight: 800;
  padding: 4px 10px 0 0;
  color: var(--accent-ink);
}
.gb-prose h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.5em 0 .6em;
  line-height: 1.15;
  scroll-margin-top: 24px;
}
.gb-prose h2::before {
  content: '§';
  color: var(--accent); margin-right: .35em;
  font-weight: 400;
}
.gb-prose h3 {
  font-size: 20px; font-weight: 700;
  margin: 2em 0 .5em;
  scroll-margin-top: 24px;
}
.gb-prose a {
  color: var(--accent-ink);
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color .15s;
}
.gb-prose a:hover { border-bottom-color: var(--accent); }
.gb-prose ul, .gb-prose ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.gb-prose li { margin-bottom: .4em; }
.gb-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 20px;
  margin: 1.6em 0;
  font-style: italic;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
}
.gb-prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--paper-2);
  padding: 2px 6px; border-radius: 3px;
  color: var(--accent-ink);
  border: 1px solid var(--rule);
}
.gb-prose pre {
  background: #0d1117; color: #e6edf3;
  padding: 20px 24px;
  border-radius: 6px;
  margin: 1.8em 0;
  font-family: var(--mono); font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
}
.gb-prose pre code { background: none; border: none; padding: 0; color: inherit; }
.gb-prose figure { margin: 2em 0; }
.gb-prose figcaption {
  font-size: 13px; color: var(--muted);
  text-align: center; margin-top: 10px;
  font-style: italic;
}
.gb-prose > img { border-radius: 4px; margin: 1.2em 0; }
.gb-prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: 14px;
}
.gb-prose th, .gb-prose td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--rule);
}
.gb-prose th { font-weight: 700; background: var(--paper-2); }
.gb-prose .callout {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 4px 4px 0;
  margin: 2em 0;
  font-size: 15px;
  line-height: 1.55;
}
.gb-prose .callout strong {
  color: var(--accent-ink);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  display: block; margin-bottom: 6px;
}

/* ---------- Inline footer blocks (moved from aside) ---------- */
.gb-article-foot {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 40px;
}
.gb-foot-block .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}

/* Filed-under tags */
.gb-foot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-foot-tag {
  font-family: var(--mono); font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.gb-foot-tag:hover { border-color: var(--ink); color: var(--ink); }

/* Author bio block */
.gb-foot-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.gb-foot-author .gb-avatar { width: 56px; height: 56px; font-size: 20px; }
.gb-foot-author .bio-name {
  font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px;
}
.gb-foot-author .bio-role { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.gb-foot-author .bio-text { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.gb-foot-author .author-link {
  display: inline-block; margin-top: 10px;
  font-family: var(--mono); font-size: 12px;
  color: var(--accent-ink);
}

/* Related grid (inline, 3-col) */
.gb-foot-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gb-foot-related-item {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s;
  color: inherit;
}
.gb-foot-related-item:hover { border-color: var(--ink); }
.gb-foot-related-item .cat {
  font-family: var(--mono); font-size: 10px;
  color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em;
}
.gb-foot-related-item .title {
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink);
}
.gb-foot-related-item .meta {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-top: auto;
}

/* Post prev/next nav */
.gb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.gb-post-nav-item {
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color .15s;
  background: var(--card);
  color: inherit;
}
.gb-post-nav-item:hover { border-color: var(--ink); }
.gb-post-nav-item .label {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 8px;
}
.gb-post-nav-item .title {
  font-weight: 600; font-size: 14px; line-height: 1.35;
}
.gb-post-nav-item.next { text-align: right; grid-column: 2; }
.gb-post-nav-item.prev { grid-column: 1; }

/* Build-with-Golioth inline CTA */
.gb-foot-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.gb-foot-cta h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 6px;
}
.gb-foot-cta p {
  font-size: 14px; color: rgba(255,255,255,.65);
  max-width: 48ch;
}

/* ---------- Keep-reading strip (full width) ---------- */
.gb-keep-reading {
  padding: 64px 40px 80px;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.gb-keep-reading-inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Page header (list pages) ---------- */
.gb-page-header {
  padding: 56px 40px 40px;
  border-bottom: 1px solid var(--rule);
}
.gb-page-header .kicker {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 12px;
}
.gb-page-header h1 {
  font-size: 48px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.05;
  max-width: 20ch;
}
.gb-page-header .count {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); margin-top: 14px;
}

/* ---------- Pagination ---------- */
.gb-pagination {
  display: flex; gap: 6px; justify-content: center;
  padding: 40px 0;
}
.gb-pagination a, .gb-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 6px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s;
}
.gb-pagination a:hover { border-color: var(--ink); }
.gb-pagination .active {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gb-single { grid-template-columns: 1fr; }
  .gb-single-toc { display: none; }
  .gb-article { padding: 40px 24px 56px; }
  .gb-article-title { font-size: 36px; }
  .gb-article-head.has-hero { grid-template-columns: 1fr; gap: 24px; }
  .gb-featured-card { grid-template-columns: 1fr; gap: 24px; }
  .gb-featured-title { font-size: 30px; }
  .gb-grid { grid-template-columns: 1fr; }
  .gb-list-row { grid-template-columns: 40px 1fr; }
  .gb-list-cat, .gb-list-date { display: none; }
  .gb-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .gb-newsletter { grid-template-columns: 1fr; padding: 48px 24px; }
  .gb-footer-grid { grid-template-columns: 1fr 1fr; }
  .gb-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .gb-header { flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
  .gb-nav { order: 3; width: 100%; overflow-x: auto; }
  .gb-header-cta { margin-left: auto; padding-left: 0; border-left: none; }
  .gb-search { display: none; }
  .gb-foot-related { grid-template-columns: 1fr; }
  .gb-foot-cta { grid-template-columns: 1fr; text-align: left; }
  .gb-post-nav { grid-template-columns: 1fr; }
  .gb-post-nav-item.next { text-align: left; grid-column: 1; }
}
