/* ==================================================================
   Abhishek Anand — Portfolio
   Design language: clean, spacious, Apple-inspired.
   Light theme · SF Pro system font · single blue accent · soft shadows.
   ================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;          /* Apple's signature light gray */
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e3e3e6;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;            /* Apple near-black */
  --text-dim: #4b4b50;
  --text-secondary: #6e6e73;  /* Apple secondary gray */
  --text-faint: #86868b;
  --accent: #0071e3;          /* Apple blue */
  --accent-strong: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --amber: #0071e3;           /* kept as alias so old refs resolve to blue */
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1080px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;       /* 17px, Apple body */
  line-height: 1.47;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Retire the "techy" decorative layers for a clean Apple surface. */
.noise-overlay,
.hero-grid,
.scroll-cue { display: none !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(0, 113, 227, 0.18); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.82);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 980px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-strong) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  padding: 14px 4px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  font-size: 1rem;
}
.nav-mobile a:first-child { border-top: none; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 60%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr auto;
  align-items: center;
  gap: 72px;
}
.hero-text { min-width: 0; }

.hero-photo { display: flex; justify-content: center; }
.hero-photo-frame {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eyebrow {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.42;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 44ch;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0 0 44px;
  max-width: 640px;
}
.stat { display: block; }
.stat-num {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat-suffix {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 30px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-faint);
}
.hero-meta .sep { margin: 0 10px; }
.hero-meta a { color: var(--accent); }
.hero-meta a:hover { text-decoration: underline; }

/* ---------- Migration animation ---------- */
.migration {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  overflow: hidden;
}
.migration-viz {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.cloud-node {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.cloud-dst { position: relative; }
.cloud-dst::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: cloud-pulse 2.4s ease-out infinite;
}
.cloud-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.migration-track {
  position: relative;
  height: 56px;
}
.migration-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    to right,
    var(--border-strong) 0 8px,
    transparent 8px 16px
  );
}
.svc-box {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.18);
  animation: migrate 4.2s linear infinite;
  animation-delay: calc(var(--i) * -0.7s);
  will-change: left, opacity;
}
@keyframes migrate {
  0%   { left: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes cloud-pulse {
  0%   { opacity: 0.9; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
.migration-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin: 26px 0 0;
}

/* In-post variant: a contained rounded card instead of a full-bleed band. */
.migration.migration-inpost {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  margin: 0 0 44px;
}
.migration-inpost .migration-caption { font-size: 0.9rem; margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .svc-box {
    animation: none;
    left: calc(6% + var(--i) * 16%);
    opacity: 1;
  }
  .cloud-dst::after { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; z-index: 2; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 52px;
  max-width: 680px;
  color: var(--text);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0;
  letter-spacing: -0.01em;
}
.about-highlights {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-highlights li {
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}
.about-highlights strong { color: var(--text); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 2px solid var(--border-strong);
}
.timeline-item {
  position: relative;
  padding-bottom: 56px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -42px;
  top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.section-alt .timeline-marker { border-color: var(--bg-alt); }
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}
.timeline-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.timeline-date {
  font-size: 0.92rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.timeline-org {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 500;
  margin: 6px 0 16px;
}
.timeline-content ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-content li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  padding-left: 4px;
}
.timeline-content li::marker { color: var(--border-strong); }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 5px 12px;
  border-radius: 980px;
}

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 980px;
  margin-bottom: 16px;
}
.cert-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cert-card p { margin: 0; color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Education / Accomplishments ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.edu-card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.edu-card .timeline-date { display: inline-block; margin-top: 12px; color: var(--text-faint); }
.accomplishments {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.accomplishments li {
  position: relative;
  padding-left: 26px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}
.accomplishments li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact-lead {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 48px;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-static:hover { transform: none; box-shadow: var(--shadow-sm); }
.contact-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.contact-value { font-size: 1.02rem; font-weight: 500; word-break: break-word; color: var(--text); }
a.contact-item:hover .contact-value { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-inner a { color: var(--text-secondary); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   BLOG
   ================================================================ */

/* ---- Writing preview (homepage) ---- */
.writing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.writing-head .section-title { margin-bottom: 0; }
.writing-all { white-space: nowrap; }
.writing-intro {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 16px 0 44px;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ---- Post grid + cards ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.post-cover {
  font-size: 1.5rem;
  line-height: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border-radius: 12px;
}
.post-date {
  font-size: 0.82rem;
  color: var(--text-faint);
}
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.post-excerpt {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.5;
  flex-grow: 1;
}
.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.post-read {
  font-size: 0.8rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.post-empty { color: var(--text-secondary); }

/* ---- Blog index hero ---- */
.blog-hero {
  padding-top: 150px;
  padding-bottom: 50px;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.blog-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 0 22px;
  color: var(--text);
}
.blog-hero-sub {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 660px;
  margin: 0;
}
.blog-list-section { padding-top: 30px; }

/* ---- Single post ---- */
.post-container { padding-top: 140px; padding-bottom: 60px; max-width: 720px; }
.post-header { margin-bottom: 44px; }
.post-back {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}
.post-back:hover { opacity: 0.7; }
.post-header-tags { margin-bottom: 22px; }
.post-header h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-faint);
}
.post-meta-sep { opacity: 0.6; }

/* ---- Markdown body typography ---- */
.post-body {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}
.post-body h2 {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
}
.post-body h3 {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 36px 0 14px;
}
.post-body h4 {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.post-body p { margin: 0 0 22px; }
.post-body ul,
.post-body ol { margin: 0 0 24px; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.post-body li { padding-left: 4px; }
.post-body li::marker { color: var(--accent); }
.post-body a {
  color: var(--accent);
  text-decoration: none;
}
.post-body a:hover { text-decoration: underline; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  padding: 3px 7px;
  border-radius: 6px;
  color: #1d1d1f;
}
.post-body pre.md-code {
  position: relative;
  background: #1d1d1f;
  border-radius: 14px;
  padding: 22px;
  overflow-x: auto;
  margin: 0 0 26px;
}
.post-body pre.md-code code {
  background: none;
  padding: 0;
  color: #f5f5f7;
  font-size: 0.9rem;
  line-height: 1.6;
}
.post-body pre.md-code[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.post-body blockquote {
  margin: 0 0 26px;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}
.post-body img { max-width: 100%; border-radius: 12px; }

/* ---- Prev / next nav ---- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-nav-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-nav-next { text-align: right; }
.post-nav-dir {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.post-missing { text-align: center; padding: 80px 0; }
.post-missing h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.post-missing p { color: var(--text-secondary); margin: 0 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 96px 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: left;
  }
  .hero-photo { order: -1; justify-content: flex-start; }
  .hero-photo-frame { width: 200px; height: 200px; border-radius: 24px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .skills-grid, .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .hero { padding: 116px 0 64px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .skills-grid, .cert-grid, .contact-grid, .post-grid { grid-template-columns: 1fr; }
  .writing-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-container { padding-top: 116px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .post-body { font-size: 1.1rem; }
  .migration { padding: 40px 0; }
  .migration.migration-inpost { padding: 22px 16px; }
  .migration-viz { gap: 10px; }
  .cloud-node { padding: 12px 13px; font-size: 0.85rem; gap: 7px; border-radius: 12px; }
  .cloud-dot { width: 9px; height: 9px; }
  .svc-box { min-width: 42px; padding: 6px 9px; font-size: 0.72rem; }
  .migration-caption { font-size: 0.9rem; }
}
