/* ==========================================================================
   Minimal Executive design system
   Mobile-first. No gradients. No drop shadows except the mobile nav drawer.
   ========================================================================== */

:root {
  --bg: #0b0d10;
  --surface: #14171b;
  --surface-2: #171b20;
  --border: #23262b;
  --border-subtle: #1c2024;
  --border-inner: #1e2126;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --text-faint: #575c63;
  --text-faint-2: #6b7178;
  --accent: #4f8dfd;
  --accent-on: #06070a;
  --accent-soft-bg: rgba(79, 141, 253, 0.12);
  --accent-soft-border: rgba(79, 141, 253, 0.3);
  --danger: #f26666;
  --success: #4f8dfd;

  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 12px;
  --container-max: 1120px;
}

/* ---------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 64px;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; }

.icon { display: inline-block; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 48px 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8em;
  display: block;
}

.eyebrow-center { text-align: center; }

.page-header {
  padding: 40px 0 8px;
}
@media (min-width: 768px) { .page-header { padding: 64px 0 16px; } }

.page-header h1 { font-size: 2rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 2.6rem; } }

.section-lead {
  color: var(--text-muted);
  max-width: 640px;
}

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  width: 100%;
}
@media (min-width: 480px) { .btn { width: auto; } }

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; }

.btn-outline {
  background: transparent;
  border-color: #2a2e34;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); text-decoration: none; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------------------------------- Cards --------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------------------------------- Chips --------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.badge-current {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ============================== Site header ============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 900;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.brand-word { font-size: 1rem; }

.nav-desktop { display: none; }

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav-desktop a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
  }
  .nav-desktop a:hover { color: var(--text); text-decoration: none; }
  .nav-toggle { display: none; }
}

/* --------------------------- Mobile nav drawer --------------------------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 950;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 320px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 960;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.nav-drawer.is-open { transform: translateX(0); }

@media (min-width: 900px) {
  .nav-scrim, .nav-drawer { display: none; }
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-drawer-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.nav-drawer-links a,
.nav-drawer-links button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  border: none;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.nav-drawer-links a:hover,
.nav-drawer-links button:hover { background: var(--surface-2); text-decoration: none; }
.nav-drawer-links .icon { color: var(--accent); }

.nav-drawer-contact { color: var(--accent) !important; font-weight: 600; }

.nav-drawer-socials {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.nav-drawer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer-socials a:hover { color: var(--accent); border-color: var(--accent-soft-border); }

/* ================================== Hero ================================== */
.hero { padding: 40px 0 8px; }
@media (min-width: 768px) { .hero { padding: 72px 0 16px; } }

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5em;
}
@media (min-width: 768px) { .hero-text h1 { font-size: 3rem; } }

.hero-pitch {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint-2);
  margin-bottom: 28px;
}
.hero-location .icon { color: var(--accent); width: 16px; height: 16px; }

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 480px) { .hero-cta { flex-direction: row; } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
}

.hero-stats .stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .hero-text { flex: 1 1 60%; }
  .hero-stats {
    flex: 0 0 300px;
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .hero-stats .stat {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .stat-value { font-size: 1.6rem; }
}

/* ================================ Teasers ================================= */
.teasers { padding: 32px 0 56px; }
@media (min-width: 768px) { .teasers { padding: 40px 0 80px; } }

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.teaser-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
}
.teaser-card:hover {
  text-decoration: none;
  border-color: var(--accent-soft-border);
}

.teaser-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.teaser-body { flex: 1; min-width: 0; }
.teaser-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.teaser-text { display: block; color: var(--text-muted); font-size: 0.87rem; margin-top: 2px; }

.teaser-chevron { color: var(--text-faint); flex-shrink: 0; }
.teaser-card:hover .teaser-chevron { color: var(--accent); }

/* ================================== About ================================== */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .about-grid { flex-direction: row; align-items: flex-start; gap: 48px; }
  .about-copy { flex: 1 1 60%; }
  .about-side { flex: 0 0 320px; display: flex; flex-direction: column; gap: 20px; }
}

.about-side { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) { .about-side { margin-top: 0; } }

.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 0.92rem; }
.check-list .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; }

.location-value { display: flex; align-items: center; gap: 8px; color: var(--text); margin: 0; }
.location-value .icon { color: var(--accent); width: 18px; height: 18px; }

/* ================================ Timeline ================================= */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.timeline-item { position: relative; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-faint);
}
.timeline-item.is-current .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timeline-org { font-family: var(--font-display); color: var(--accent); font-size: 0.95rem; margin: 2px 0; }
.timeline-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint-2); margin: 0; }

.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.2em; }

.timeline-callout {
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 12px 0;
}
.timeline-callout .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.timeline-callout strong { color: var(--text); }

.timeline-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}
@media (min-width: 640px) { .timeline-columns { grid-template-columns: 1fr 1fr; } }

.timeline-columns h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint-2);
  margin-bottom: 10px;
}

.timeline-columns ul,
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-columns li,
.timeline-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.timeline-columns .icon,
.timeline-list .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }

/* ================================ Projects ================================= */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 900px) { .project-grid { grid-template-columns: 1fr 1fr; } }

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.project-card h3 { font-size: 1.25rem; }
.project-card p { flex: 0 0 auto; }

.project-card .chip-row { margin-bottom: 20px; }

.project-card .btn { margin-top: auto; align-self: flex-start; }

/* ================================== Skills ================================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (min-width: 700px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.skill-card h3 { font-size: 1.05rem; margin-bottom: 12px; }

.certs-card { margin-top: 24px; }
.certs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 640px) { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .certs-grid { grid-template-columns: repeat(4, 1fr); } }

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 8px;
  border: 1px solid var(--border-inner);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.cert-item .icon { color: var(--accent); }
.cert-item span { font-size: 0.85rem; color: var(--text); }

/* =================================== Footer ================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-links button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.footer-links a:hover, .footer-links button:hover { color: var(--accent); text-decoration: none; }

.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-socials a:hover { color: var(--accent); text-decoration: none; }

.footer-copy { font-size: 0.8rem; color: var(--text-faint); margin: 0; }

/* =================================== Modal =================================== */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (min-width: 768px) { .modal-scrim { align-items: center; } }

.modal-scrim.is-open { opacity: 1; }
.modal-scrim[hidden] { display: none; }

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  transform: translateY(24px);
  transition: transform 0.22s ease;
}
@media (min-width: 768px) {
  .modal-panel { border-radius: var(--radius); margin: 20px; transform: translateY(12px); }
}
.modal-scrim.is-open .modal-panel { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-header h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.modal-header .icon { color: var(--accent); }

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 480px) { .modal-footer { flex-direction: row; justify-content: flex-end; } }
.modal-footer .btn { width: 100%; }
@media (min-width: 480px) { .modal-footer .btn { width: auto; } }

/* ================================== Forms =================================== */
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.75rem; color: var(--text-faint-2); margin: 4px 0 0; }

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (max-width: 380px) {
  .recaptcha-wrap > div { transform: scale(0.85); transform-origin: center; }
}

.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-flex; }
.htmx-request .htmx-indicator-hide { display: none; }

/* =================================== Toasts =================================== */
.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
@media (min-width: 480px) {
  .toast-stack { left: auto; width: 340px; }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.toast-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--accent); }
.toast-error .toast-icon,
.toast-danger .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: #e0b34d; }
.toast-info .toast-icon { color: var(--accent); }

.toast-message { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-faint-2);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}
.toast-close:hover { color: var(--text); }

/* ================================= Blog ================================== */
.blog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.blog-list-item {
  display: block;
}
.blog-list-item .blog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint-2);
  margin-bottom: 8px;
}
.blog-list-item h2 { font-size: 1.3rem; margin-bottom: 8px; }
.blog-list-item h2 a { color: var(--text); }
.blog-list-item h2 a:hover { color: var(--accent); text-decoration: none; }
.blog-list-item .btn { margin-top: 16px; }

.blog-article { max-width: 760px; margin: 0 auto; }
.blog-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 0.9rem; }
.blog-header .blog-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint-2); margin-bottom: 10px; }
.blog-header h1 { font-size: 1.9rem; }
.blog-header .lead { color: var(--text-muted); font-size: 1.05rem; }

.blog-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.blog-content h2 {
  color: var(--text);
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.blog-content h3 {
  color: var(--text);
  margin-top: 1.9rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
.blog-content p, .blog-content li { color: var(--text-muted); }
.blog-content a { color: var(--accent); }
.blog-content strong { color: var(--text); }
.blog-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.blog-content th, .blog-content td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}
.blog-content th { color: var(--text); background: var(--surface-2); }
.blog-content td { color: var(--text-muted); }
.blog-content code {
  color: var(--accent);
  background: var(--surface-2);
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.88em;
}
.blog-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-content pre code { background: transparent; padding: 0; color: var(--text); }
.blog-content ul, .blog-content ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.blog-diagram {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow-x: auto;
}
.blog-diagram .mermaid { display: flex; justify-content: center; }
.blog-diagram-caption {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-faint-2);
  text-align: center;
}
