/* =========================================================
   SalesforceVerse — Design System
   ========================================================= */

/* ---- Self-hosted fonts ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/sora.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-italic.woff2') format('woff2');
}

/* ---- Design tokens ---- */
:root {
  /* Brand palette */
  --c-primary: #155EEF;
  --c-primary-dark: #0B3FAE;
  --c-accent: #14B8A6;
  --c-violet: #8B5CF6;
  --c-grad: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  --c-grad-violet: linear-gradient(135deg, var(--c-violet) 0%, var(--c-primary) 100%);

  /* Neutrals */
  --c-ink: #0B1220;
  --c-ink-2: #1E293B;
  --c-muted: #5B6B82;
  --c-muted-2: #8A99AD;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F4F7FB;
  --c-bg-dark: #0A1330;
  --c-bg-dark-2: #101B3D;
  --c-border: #E6EAF1;
  --c-border-dark: #28335A;

  /* Typography */
  --font-heading: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.05);
  --shadow-md: 0 8px 24px rgba(11,18,32,.08);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--c-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--c-ink);
  color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--c-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21,94,239,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21,94,239,.36); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---- Eyebrow / tags / pills ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-grad);
}
.tag, .pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(21,94,239,.08);
  color: var(--c-primary);
  letter-spacing: .02em;
}
.tag--accent { background: rgba(20,184,166,.1); color: #0d8d7c; }
.tag--violet { background: rgba(139,92,246,.1); color: #7c3aed; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--c-ink);
}
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--c-grad);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
}
.logo-text span { color: var(--c-primary); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-ink-2);
}
.main-nav a:hover { color: var(--c-primary); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--c-border);
  color: var(--c-ink-2);
  background: #fff;
}
.icon-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.menu-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--c-bg-dark);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: .55; pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle, var(--c-primary), transparent 70%);
}
.hero::after {
  width: 460px; height: 460px; bottom: -200px; left: -120px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #fff;
  margin-bottom: .4em;
}
.hero h1 .grad-text {
  background: var(--c-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin-bottom: 2em;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5em; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags .pill {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.14);
}

/* Code window illustration */
.code-window {
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.code-window__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--c-border-dark);
}
.code-window__bar span {
  width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.code-window__bar span:nth-child(1) { background: #FF5F57; }
.code-window__bar span:nth-child(2) { background: #FEBC2E; }
.code-window__bar span:nth-child(3) { background: #28C840; }
.code-window__title { margin-left: 8px; color: rgba(255,255,255,.4); font-size: .8rem; }
.code-window pre {
  margin: 0; padding: 22px; overflow-x: auto; color: #E2E8F0; line-height: 1.8;
}
.code-window .tok-kw { color: #C792EA; }
.code-window .tok-type { color: #82AAFF; }
.code-window .tok-str { color: #ECC48D; }
.code-window .tok-fn { color: #82E0FF; }
.code-window .tok-com { color: #6B7A99; }
.code-window .tok-prop { color: #7FDBCA; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 80px 0; }
.section--soft { background: var(--c-bg-soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .3em 0 0; }
.section-head p { color: var(--c-muted); max-width: 520px; margin: .6em 0 0; }
.section-link {
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}

/* ---- Category grid ---- */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.cat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-grad);
  color: #fff; font-size: 1.2rem;
}
.cat-card h3 { font-size: 1.05rem; margin: 0; }
.cat-card p { color: var(--c-muted); font-size: .9rem; margin: 0; }
.cat-card .cat-count { font-family: var(--font-mono); font-size: .78rem; color: var(--c-muted-2); }

/* ---- Post cards ---- */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media {
  aspect-ratio: 16/10; background: var(--c-bg-dark);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.post-card__media .pm-grad { position: absolute; inset: 0; opacity: .9; }
.post-card__media .pm-icon {
  position: relative; z-index: 1; color: #fff; font-size: 2.2rem; font-family: var(--font-mono); font-weight: 700;
}
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__body h3 { font-size: 1.08rem; margin: 0; }
.post-card__body h3 a { color: var(--c-ink); }
.post-card__body h3 a:hover { color: var(--c-primary); }
.post-card__excerpt { color: var(--c-muted); font-size: .92rem; flex: 1; }
.post-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--c-muted-2);
  font-family: var(--font-mono);
  padding-top: 10px; border-top: 1px solid var(--c-border);
}
.post-card__meta .avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-grad-violet);
  display: inline-block;
}

/* gradient variants for media placeholders */
.pm-1 { background: linear-gradient(135deg,#155EEF,#14B8A6); }
.pm-2 { background: linear-gradient(135deg,#8B5CF6,#155EEF); }
.pm-3 { background: linear-gradient(135deg,#14B8A6,#8B5CF6); }
.pm-4 { background: linear-gradient(135deg,#0B3FAE,#14B8A6); }
.pm-5 { background: linear-gradient(135deg,#155EEF,#8B5CF6); }
.pm-6 { background: linear-gradient(135deg,#14B8A6,#0B3FAE); }

/* ---- Latest list (compact rows) ---- */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--c-border);
}
.post-row:first-child { padding-top: 0; }
.post-row__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: #fff;
}
.post-row__body h3 { font-size: 1rem; margin: 0 0 4px; }
.post-row__body h3 a { color: var(--c-ink); }
.post-row__body h3 a:hover { color: var(--c-primary); }
.post-row__body .post-row__meta { font-size: .82rem; color: var(--c-muted); font-family: var(--font-mono); }
.post-row__cat { justify-self: end; }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--c-grad);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 60%);
}
.cta-banner h2 { color: #fff; margin: 0 0 .3em; position: relative; z-index: 1; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; position: relative; z-index: 1; max-width: 480px; }
.cta-banner .btn-primary { background: #fff; color: var(--c-primary); box-shadow: none; position: relative; z-index: 1; }
.cta-banner .btn-primary:hover { color: var(--c-primary-dark); }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--c-bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-violet), transparent 70%);
  opacity: .35; filter: blur(60px); top: -120px; right: -80px;
}
.newsletter h2 { color: #fff; position: relative; z-index: 1; }
.newsletter p { color: rgba(255,255,255,.7); position: relative; z-index: 1; }
.newsletter-form { display: flex; gap: 12px; position: relative; z-index: 1; }
.newsletter-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-body); font-size: .95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { outline: 2px solid var(--c-accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--c-bg-dark); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid var(--c-border-dark);
}
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 16px; color: rgba(255,255,255,.5); font-size: .92rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-col h4 {
  font-family: var(--font-heading); color: #fff; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: .85rem; color: rgba(255,255,255,.45);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  font-size: .85rem; color: var(--c-muted); font-family: var(--font-mono);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { color: var(--c-border); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-hero { padding: 36px 0 0; }
.post-hero .breadcrumbs { margin-bottom: 24px; }
.post-hero__cats { display: flex; gap: 8px; margin-bottom: 18px; }
.post-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  max-width: 880px;
  margin-bottom: 22px;
}
.post-author-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 36px;
}
.post-author-row .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--c-grad-violet);
}
.post-author-row .who { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; }
.post-author-row .meta { font-size: .85rem; color: var(--c-muted); font-family: var(--font-mono); }

.post-featured-img {
  aspect-ratio: 21/9; border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 48px; position: relative;
}
.post-featured-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.post-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 56px;
}
.post-layout--no-toc {
  grid-template-columns: 1fr;
}
.post-layout--no-toc .prose {
  max-width: 100%;
}
.post-toc {
  position: sticky; top: 100px; align-self: start;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 22px;
}
.post-toc h4 {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 14px;
}
.post-toc ul { display: flex; flex-direction: column; gap: 10px; }
.post-toc a { font-size: .9rem; color: var(--c-ink-2); display: block; }
.post-toc a:hover, .post-toc a.active { color: var(--c-primary); }
.post-toc li.sub { margin-left: 14px; }

.prose { max-width: 760px; font-size: 1.05rem; color: var(--c-ink-2); }
.prose h2 {
  font-size: 1.6rem; margin-top: 2.2em; padding-top: .4em;
  scroll-margin-top: 100px;
}
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; scroll-margin-top: 100px; }
.prose p { margin-bottom: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.3em 1.4em; padding: 0; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--c-ink); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--c-primary);
  background: var(--c-bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-muted);
}

/* code blocks
   Note: code snippets created with the Enlighter plugin render their own
   container/theme (incl. toolbar + copy button), so they're excluded here
   and left to Enlighter's own styling — see Settings → Enlighter for theme
   options to match the site's dark/light palette. */
.prose pre:not([class*="enlighter" i]), .code-block {
  background: var(--c-bg-dark-2);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.8em 0;
  font-family: var(--font-mono);
  font-size: .88rem;
  color: #E2E8F0;
}
/* Plain <pre> with no <code> child (e.g. WordPress "Preformatted" block)
   has no element to take the padding/line-height below, so give the
   <pre> itself those styles in that case. */
.prose pre:not([class*="enlighter" i]):not(:has(code)) {
  padding: 20px;
  overflow-x: auto;
  line-height: 1.8;
}
.code-block__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--c-border-dark);
  font-size: .78rem; color: rgba(255,255,255,.5);
  letter-spacing: .06em; text-transform: uppercase;
}
.code-block__head .copy-btn {
  font-family: var(--font-heading); font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.code-block__head .copy-btn:hover { color: #fff; }
.prose pre:not([class*="enlighter" i]) code, .code-block pre {
  display: block; padding: 20px; overflow-x: auto;
  color: #E2E8F0; line-height: 1.8; margin: 0;
}
.prose code:not(pre code):not([class*="enlighter" i]) {
  background: rgba(21,94,239,.08); color: var(--c-primary-dark);
  padding: .15em .4em; border-radius: 5px; font-size: .88em;
}

/* Reset our box styling on Enlighter's own containers/elements so its
   chosen theme renders unmodified. */
.prose .enlighter-container,
.prose pre[class*="enlighter" i],
.prose [class*="EnlighterJS"] {
  background: none; border: none; border-radius: 0; margin: 1.8em 0; overflow: visible;
}

/* share + tags row */
.post-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-border);
  flex-wrap: wrap; gap: 20px;
}
.share-row { display: flex; align-items: center; gap: 10px; }
.share-row span { font-family: var(--font-mono); font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.tag-row { display: flex; gap: 8px; }

/* author bio */
.author-card {
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  display: flex; gap: 20px; align-items: flex-start;
}
.author-card .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--c-grad-violet); flex-shrink: 0; }
.author-card h4 { margin-bottom: 4px; }
.author-card p { color: var(--c-muted); font-size: .92rem; margin-bottom: 10px; }
.author-card .socials { display: flex; gap: 10px; }

/* related posts */
.related-posts { margin-top: 64px; }
.related-posts h3 { font-size: 1.4rem; margin-bottom: 24px; }

/* =========================================================
   PAGES: About / Contact
   ========================================================= */
.page-hero { padding: 64px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.page-hero p { color: var(--c-muted); max-width: 640px; margin: 16px auto 0; font-size: 1.1rem; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card {
  padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.value-card.grad {
  background: var(--c-grad); color: #fff; border: none;
}
.value-card.grad h3, .value-card.grad p { color: #fff; }
.value-card .cat-icon { margin-bottom: 18px; }

/* stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: 2.4rem; font-family: var(--font-mono); background: var(--c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2em; }
.stat p { color: var(--c-muted); margin: 0; font-size: .9rem; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-family: var(--font-heading); font-weight: 600; font-size: .9rem; }
.form-field input, .form-field textarea {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--c-border);
  font-family: var(--font-body); font-size: .95rem; background: #fff; color: var(--c-ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--c-primary); border-color: transparent; }
.form-field textarea { resize: vertical; min-height: 140px; }

.newsletter-notice { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; }
.newsletter-notice--ok { background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.3); }
.newsletter-notice--err { background: rgba(239,68,68,.12); color: #b91c1c; border: 1px solid rgba(239,68,68,.3); }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin: 0; color: var(--c-muted); font-size: .9rem; }

/* =========================================================
   GENERIC PAGES / ARCHIVES / SEARCH / 404
   ========================================================= */
.page-header { padding: 36px 0 12px; }
.page-header .breadcrumbs { margin-bottom: 24px; }
.page-header h1 { font-size: clamp(2rem, 4.2vw, 2.6rem); max-width: 880px; }
.archive-description { color: var(--c-muted); max-width: 700px; margin-top: 12px; }

.no-results { padding: 24px 0 64px; }
.no-results h2 { font-size: 1.6rem; margin-bottom: 10px; }
.no-results p { color: var(--c-muted); margin-bottom: 18px; }
.no-results__search {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 8px;
}
.no-results__search input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 10px 14px; font-family: var(--font-body); font-size: .95rem;
}
.no-results__search input:focus { outline: none; }

/* =========================================================
   WORDPRESS CONTENT (alignments, captions, embeds, tables)
   ========================================================= */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose figure { margin: 1.8em 0; }
.prose .wp-caption,
.prose .wp-block-image { margin: 1.8em 0; }
.prose .wp-caption-text,
.prose figcaption {
  font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: .6em;
}
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; }
.prose .aligncenter { display: block; margin: 1.8em auto; }
.prose .alignfull, .prose .alignwide { max-width: none; width: 100%; }
.prose hr { border: none; border-top: 1px solid var(--c-border); margin: 2.4em 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .92rem;
}
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--c-border); text-align: left; }
.prose th { background: var(--c-bg-soft); font-family: var(--font-heading); }
.prose iframe, .prose .wp-block-embed { max-width: 100%; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16/9; height: auto; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination, .comments-pagination, .navigation.pagination {
  display: flex; justify-content: center; gap: 8px; margin: 48px 0; flex-wrap: wrap;
}
.pagination .page-numbers,
.comments-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .85rem; color: var(--c-ink-2);
}
.pagination .page-numbers.current,
.comments-pagination .page-numbers.current {
  background: var(--c-grad); color: #fff; border-color: transparent;
}
.pagination a.page-numbers:hover,
.comments-pagination a.page-numbers:hover {
  border-color: var(--c-primary); color: var(--c-primary);
}
.pagination .page-numbers.dots { border-color: transparent; }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-border); }
.comments-title, .comment-reply-title { font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.comment-list .children { list-style: none; margin: 24px 0 0; padding: 0 0 0 56px; display: flex; flex-direction: column; gap: 24px; }
.comment-body { display: flex; gap: 16px; align-items: flex-start; }
.comment-body .avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.comment-content-wrap { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-family: var(--font-heading); font-weight: 700; font-size: .92rem; }
.comment-date a { font-size: .8rem; color: var(--c-muted); font-family: var(--font-mono); }
.comment-text p { margin: 0 0 1em; color: var(--c-ink-2); font-size: .95rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-awaiting-moderation { font-size: .85rem; color: var(--c-accent); margin-bottom: .6em; }
.comment-reply { margin-top: 8px; }
.comment-reply a { font-size: .8rem; font-family: var(--font-heading); font-weight: 600; color: var(--c-primary); }
.comment-form .form-row { margin-bottom: 0; }
.comment-form .form-field { margin-bottom: 18px; }
.comment-form .comment-notes,
.comment-form .logged-in-as { color: var(--c-muted); font-size: .9rem; margin-bottom: 18px; }
.comment-form .form-submit { margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .code-window { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .stats-row, .contact-layout { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .main-nav ul { display: none; }
  .header-actions .btn-primary { display: none; }
  .header-actions { gap: 10px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--c-border); background: #fff;
  }
  .cat-grid, .post-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .cta-banner, .newsletter { flex-direction: column; text-align: center; padding: 36px 24px; }
  .cta-banner { flex-direction: column; gap: 24px; }
  .section { padding: 56px 0; }
  .post-row { grid-template-columns: 44px 1fr; }
  .post-row__cat { display: none; }
  .comment-list .children { padding-left: 24px; }
  .prose .alignleft, .prose .alignright { float: none; display: block; margin: 1.4em 0; }
}
