/* Cyberpunk dark theme — navy bg, neon yellow accent, hot pink code glyphs */
:root {
  --bg: #0a0a1a;
  --bg-soft: #0d0d24;
  --text: #f0f0f0;
  --text-muted: #8888a0;
  --accent: #fcbf1e;
  --accent-glow: #ffe066;
  --accent-pink: #e91e8c;
  --border: rgba(252, 191, 30, 0.18);
  --card-bg: #111128;
  --image-frame: rgba(252, 191, 30, 0.06);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Blog page — dark cards */
body.page-blog {
  --bg-soft: #0d0d24;
  --border: rgba(252, 191, 30, 0.18);
  --card-bg: #111128;
}

body.page-blog .site-header {
  background: rgba(10, 10, 26, 0.95);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Subtle decorative accent line */
body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  pointer-events: none;
  z-index: 0;
}

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

a:hover {
  color: var(--accent-glow);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Name in top-left: white (nav links stay muted / accent on hover) */
.nav .nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.nav .nav-brand:hover {
  color: var(--text);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--accent-glow);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: relative;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-cta {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: scale(1.02);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(252, 191, 30, 0.12);
}

/* Mono pill component — bracketed monospace badges, used everywhere */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pill::before {
  content: "[";
  color: var(--accent-pink);
}

.pill::after {
  content: "]";
  color: var(--accent-pink);
}

.pill-filled {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pill-filled::before,
.pill-filled::after {
  color: rgba(255, 255, 255, 0.6);
}

.pill-dashed {
  border-style: dashed;
}

.pill:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.2);
  transform: translateY(-1px);
}

/* Eyebrow accents — small mono labels above section titles or hero elements */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.eyebrow-cmd::before {
  content: "> ";
  color: var(--accent-pink);
}

.eyebrow-com::before {
  content: "// ";
  color: var(--accent-pink);
}

.code-glyph {
  color: var(--accent-pink);
}

/* ============================================================
   Hero — split-screen, dark left + orange right
   ============================================================ */

.hero {
  padding: 0;
  max-width: none;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: min(55vh, 600px);
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
}

/* --- Left half --- */
.hero-left {
  background: var(--bg);
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 600px) {
  .hero-left {
    padding: 3rem 1.5rem;
  }
}

.hero-eyebrow {
  margin: 0 0 1rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 0 0 2rem;
}

.hero-tagline-pill {
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
}

.hero-typewriter {
  display: inline-block;
  min-width: 1ch;
}

.hero-typewriter-cursor {
  display: inline-block;
  margin-left: 0.1ch;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-typewriter-cursor {
    animation: typewriter-blink 1s step-end infinite;
  }
}

@keyframes typewriter-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-cta {
  align-self: flex-start;
  font-family: var(--font-mono);
  margin-bottom: 2rem;
}

/* --- Stat strip --- */
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

.hero-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.hero-stat-num {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-plus {
  color: var(--accent);
  margin-left: 0.05em;
}

.hero-stat-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.25;
  text-transform: lowercase;
}

/* --- Right half — cyberpunk deep blue block --- */
.hero-right {
  background: #0f1b6b;
  position: relative;
  overflow: visible;
  min-height: 400px;
}

.hero-photo-block {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-55%);
  width: auto;
  max-width: 95%;
  height: 110%;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-right {
    min-height: 350px;
    overflow: hidden;
  }
  .hero-photo {
    height: 100%;
    max-width: 80%;
    transform: translateX(-50%);
  }
}

/* Floating stack labels — right edge, typed out vertically */
.hero-stack-labels {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 3;
}

.hero-stack-labels li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border-left: 2px solid var(--accent-pink);
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .hero-stack-labels {
    display: none;
  }
}

/* Visually-hidden helper for screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Sections common */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--accent-pink);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.2);
  transform: translateY(-3px);
}

.project-tech {
  list-style: none;
  margin: 1rem 1rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tech-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
}

.project-name {
  margin: 1rem 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.project-desc {
  margin: 1rem 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin: auto 1rem 0;
}

.projects-more {
  margin-top: 1.5rem;
  text-align: right;
}

.projects-more a {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ============================================================
   Case Studies — 2x2 grid of curated blog post surfaces
   ============================================================ */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .case-study-grid {
    grid-template-columns: 1fr;
  }
}

.case-study-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.case-study-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.2);
  transform: translateY(-3px);
}

.case-study-badge {
  align-self: flex-start;
  font-size: 0.7rem;
}

.case-study-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.case-study-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.case-study-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  align-self: flex-start;
  margin-top: auto;
}

.case-study-pending {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   Testimonial — single pull-quote callout
   ============================================================ */
.testimonial-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.testimonial-eyebrow {
  text-align: center;
  margin-bottom: 1rem;
}

.testimonial-card {
  margin: 0;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px dashed var(--accent);
  border-radius: 12px;
}

.testimonial-quote {
  margin: 0 0 1.5rem;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.testimonial-name {
  color: var(--text);
  font-weight: 700;
}

.testimonial-role {
  color: var(--text-muted);
}

/* Skills — text-based pill grid */
.skills-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-pill {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  color: var(--accent);
  border-color: var(--border);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--accent-pink);
  box-shadow: 0 0 8px rgba(233, 30, 140, 0.25);
  transform: translateY(-2px);
  color: var(--accent-pink);
}

.skills-row-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.skills-row-label:first-of-type {
  margin-top: 0;
}

/* About */
.about-p {
  margin: 0 0 1rem;
  max-width: 60ch;
  color: var(--text-muted);
}

.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.experience-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.2);
  transform: translateY(-3px);
}

.experience-card-featured {
  padding: 1.5rem 1.75rem;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.15);
}

.experience-card-compact {
  padding: 1rem 1.25rem;
  opacity: 0.85;
}

.experience-card-compact .exp-bullets {
  font-size: 0.85rem;
}

.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.exp-pill {
  font-size: 0.65rem;
}

.exp-company {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.exp-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.exp-bullets {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.exp-bullets li {
  margin-bottom: 0.25rem;
}

/* ============================================================
   Certifications — Credly badge wall (4x2 grid)
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert-link {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.cert-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(252, 191, 30, 0.2);
  transform: translateY(-3px);
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cert-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.cert-fallback {
  width: 100px;
  height: 100px;
  border: 1px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
}

.cert-fallback-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  line-height: 1.2;
}

.cert-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.cert-link:hover .cert-caption {
  color: var(--text);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-btn {
  font-family: var(--font-mono);
  min-width: 140px;
  text-align: center;
}

.contact-sub {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 8rem;
}

.notfound-text {
  margin: 0 0 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .contact-links {
    flex-direction: column;
  }
  .contact-btn {
    width: 100%;
  }
}

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

.site-footer-columns .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .site-footer-columns .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer columns as distinct blocks (stronger on blog page) */
.footer-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

body.page-blog .footer-col {
  background: var(--card-bg);
  border-color: var(--border);
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
  flex-shrink: 0;
}

.footer-about-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-github {
  font-size: 0.9rem;
}

.footer-cat-list,
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cat-list li,
.footer-links-list li {
  margin-bottom: 0.35rem;
}

.footer-cat-list a,
.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-cat-list a:hover,
.footer-links-list a:hover {
  color: var(--accent);
}

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


/* Footer — motto + latest writing column */
.footer-motto {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
}

.footer-latest-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.footer-latest-list li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-latest-list a {
  color: var(--text-muted);
  display: block;
}

.footer-latest-list a:hover {
  color: var(--accent);
}

.footer-latest-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.15rem;
}

.footer-latest-all {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Footer bottom-bar layout */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-whoami {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Blog index — sidebar + content, blue blocks */
.blog-index {
  padding: 2rem 1.5rem 3rem;
  min-height: 60vh;
}

.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    width: 100%;
  }
}

.blog-sidebar {
  position: sticky;
  top: 5rem;
}

.blog-sidebar-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.blog-sidebar-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
}

.blog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.blog-sidebar-link {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-radius: 4px;
  padding-left: 0.5rem;
}

.blog-sidebar-link:hover,
.blog-sidebar-link.active {
  color: var(--accent);
  background: rgba(252, 191, 30, 0.12);
}

.blog-content {
  min-width: 0;
}

.blog-index-title {
  font-size: 1.5rem;
  color: var(--accent-pink);
  margin: 0 0 1.5rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  margin: 0;
}

.post-card-link {
  display: block;
  height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.post-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.post-card-image-wrap {
  aspect-ratio: 16/9;
  background: var(--image-frame);
  padding: 0.5rem;
  margin: 0.5rem 0.5rem 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--bg-soft);
  border-radius: 4px;
}

.post-card-body {
  padding: 1.25rem;
}

.post-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--accent-pink);
}

.post-card-date {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.post-card-cta {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.post-card-link:hover .post-card-cta {
  border-color: var(--accent);
  color: var(--accent);
}

.post-empty {
  color: var(--text-muted);
}

/* Blog post */
/* Slightly wider for less narrow feel; still a readable line length */
.blog-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.blog-article {
  padding-bottom: 2rem;
}

.blog-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.blog-header::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: var(--accent);
  margin-top: 1.5rem;
}

.blog-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--accent-pink);
}

.blog-summary {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.blog-meta-by a,
.blog-cat-tag {
  color: var(--accent);
}

.blog-cat-tag {
  text-decoration: underline;
}

.blog-hero-image-wrap {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background: var(--image-frame);
  border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.blog-body {
  color: var(--text-muted);
}

.blog-body strong {
  font-weight: 700;
  color: var(--text);
}

.blog-body h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
  font-weight: 700;
  padding: 0.5rem 0 0.5rem 0.75rem;
  border-left: 4px solid var(--accent);
  background: rgba(252, 191, 30, 0.15);
}
.blog-body h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}
.blog-body h4 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}
.blog-body p { margin: 0 0 1rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.blog-body a { color: var(--accent); text-decoration: underline; }
.blog-body a:hover { color: var(--accent-glow); }
.blog-body blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--text-muted); }

.blog-body .blog-keywords { color: var(--accent); font-weight: normal; }

.blog-body .client-testimonial blockquote,
.blog-body .client-testimonial blockquote p,
.blog-body .client-testimonial blockquote cite { color: var(--accent); font-weight: normal; text-decoration: none; }
.blog-body .client-testimonial blockquote strong { color: var(--accent); font-weight: normal; }
.blog-body .client-testimonial cite { font-style: normal; display: block; margin-top: 0.5rem; }

.blog-footer {
  margin-top: 2rem;
}

.blog-share {
  margin-bottom: 1.5rem;
}

.blog-share-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.blog-share-link {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

.blog-about-author {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.blog-about-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--accent-pink);
}

.blog-about-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.blog-about-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.blog-about-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-about-text p {
  margin: 0 0 0.5rem;
}

.blog-about-text a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

/* ============================================================
   Currently Building — WIP cards (deliberately distinct from
   shipped projects: dashed borders, mono titles, lower opacity)
   ============================================================ */
.wip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .wip-grid {
    grid-template-columns: 1fr;
  }
}

.wip-card {
  background: var(--card-bg);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0.88;
  transition: opacity 0.2s, transform 0.2s;
}

.wip-card:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.wip-status {
  align-self: flex-start;
  font-size: 0.65rem;
}

.wip-name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wip-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
