:root {
  --white: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --border: rgba(255, 255, 255, 0.65);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mx: 50%;
  --my: 50%;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: #f0f4ff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* BACKGROUND */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 8% 12%,  rgba(96, 165, 250, 0.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 92% 15%,  rgba(216, 120, 255, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 78%,  rgba(167, 139, 250, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 45% 50% at 12% 85%,  rgba(52, 211, 196, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 50%,  rgba(255, 255, 255, 0.75) 0%, transparent 55%);
  pointer-events: none;
}

/* CURSOR SPOTLIGHT */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(140, 190, 255, 0.14),
    transparent 65%
  );
  pointer-events: none;
  transition: background 0.1s;
}

body > * {
  position: relative;
  z-index: 1;
}

/* GLASS */

.glass {
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(48px) saturate(220%) brightness(1.04);
  -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(255, 255, 255, 0.90) inset,
    0 16px 48px rgba(0, 0, 0, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Specular top-left highlight */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hover shimmer sweep */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  background-size: 250% 100%;
  background-position: -100% 0;
  pointer-events: none;
  z-index: 0;
  transition: background-position 0.55s ease;
}

.glass:hover::after {
  background-position: 200% 0;
}

.glass:hover {
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.60) inset,
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 64px rgba(0, 0, 0, 0.09),
    0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Mouse-tracking inner glow */
.glass > * {
  position: relative;
  z-index: 1;
}

/* NAV */

.nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(48px) saturate(220%) brightness(1.05);
  -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.50) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.nav-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.30) 50%,
    transparent 65%
  );
  background-size: 250% 100%;
  background-position: -100% 0;
  pointer-events: none;
  z-index: 0;
  transition: background-position 0.55s ease;
}

.nav-pill:hover::after {
  background-position: 200% 0;
}

.nav-pill > * {
  position: relative;
  z-index: 1;
}

.nav-pill-left {
  padding: 6px 8px 6px 14px;
}

.nav-pill-right {
  padding: 4px 6px;
}

.nav-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 4px 6px 4px 2px;
  transition: opacity 0.15s;
}

.nav-brand:hover {
  opacity: 0.65;
}

.nav-sep {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 20px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  color: var(--text);
  font-weight: 500;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.nav-icons a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

/* LAYOUT */

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */

.hero {
  padding: 100px 0 64px;
}

.hero-body {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.7s ease 0.05s both;
}

.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 0 4px rgba(255, 255, 255, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.12);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
  animation: fadeUp 0.7s ease 0.1s both;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

.name-first, .name-last {
  display: block;
}

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 44ch;
  animation: fadeUp 0.7s ease 0.2s both;
}

.counter {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.6s ease 0.45s both, ctaFloat 3.5s ease-in-out 1.2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Specular top highlight */
.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Continuous shimmer sweep */
.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  background-size: 300% 100%;
  animation: ctaShimmer 3.5s ease-in-out 1.2s infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-cta span,
.hero-cta svg {
  position: relative;
  z-index: 1;
}

.hero-cta:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.5) inset,
    0 8px 28px rgba(0, 103, 255, 0.22);
}

.hero-cta svg {
  transition: transform 0.2s ease;
}

.hero-cta:hover svg {
  transform: translate(1px, -1px);
}

@keyframes ctaFloat {
  0%, 100% {
    transform: translateY(0px);
    box-shadow:
      0 0 0 0.5px rgba(255,255,255,0.4) inset,
      0 4px 16px rgba(0, 103, 255, 0.10);
  }
  50% {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 0.5px rgba(255,255,255,0.4) inset,
      0 10px 28px rgba(0, 103, 255, 0.20);
  }
}

@keyframes ctaShimmer {
  0%   { background-position: 150% 0; opacity: 0; }
  15%  { opacity: 1; }
  50%  { background-position: -50% 0; }
  85%  { opacity: 1; }
  100% { background-position: -50% 0; opacity: 0; }
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* SECTIONS */

.section {
  margin-bottom: 16px;
  border-radius: 20px;
  padding: 28px 28px;
}

.section h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ABOUT */

.prose p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.prose p + p {
  margin-top: 14px;
}

/* NOW */

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-item {
  font-size: 15px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.list-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.list-item::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.list-item a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.list-item a:hover {
  opacity: 0.75;
}

/* POSTS */

.post-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.post-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  gap: 12px;
  transition: background 0.2s;
}

.post-list li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.post-list-loading {
  font-size: 13px;
  color: var(--muted);
  border-bottom: none !important;
  border-top: none !important;
  padding: 8px 0 !important;
}

.section-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.section-link:hover {
  color: var(--accent);
}

.all-posts-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.all-posts-link:hover {
  color: var(--accent);
}

.post-list a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.15s, transform 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.post-list li:hover a {
  color: var(--accent);
  transform: translateX(4px);
}

.year {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* PATH */

.path-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.path-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding-left 0.2s ease;
}

.path-list li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.path-list li:hover {
  padding-left: 6px;
}

.period {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 118px;
  flex-shrink: 0;
}

.role {
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.role-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.role-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ELSEWHERE */

.contact-list {
  list-style: none;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-list li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  min-width: 90px;
  flex-shrink: 0;
}

.platform svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-list a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.15s, transform 0.2s ease;
  display: inline-block;
}

.contact-list li:hover a {
  color: var(--accent);
  transform: translateX(4px);
}

/* FOOTER */

.footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  font-size: 12px;
  color: var(--muted);
  animation: fadeUp 0.5s ease 0.6s both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-mark {
  letter-spacing: 0.01em;
}

.footer-template {
  font-size: 11px;
  color: rgba(110, 110, 115, 0.45);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.footer-template:hover {
  color: var(--muted);
}

/* BREADCRUMB */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 80px;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50ch;
}


/* KEYFRAMES */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .nav {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  /* Hide the name on small screens — avatar below makes it redundant,
     and it's the only thing that causes the two pills to overlap. */
  .nav-brand,
  .nav-sep {
    display: none;
  }

  .nav-pill-left {
    padding: 6px 6px;
  }

  .nav-social {
    gap: 16px;
  }

  .hero {
    padding: 72px 0 48px;
  }

  .hero-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero h1 {
    white-space: normal;
    font-size: 36px;
  }

  .section {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .path-list li,
  .contact-list li {
    flex-direction: column;
    gap: 2px;
  }

  .period, .platform {
    min-width: unset;
  }

  .post-list li {
    flex-direction: column;
    gap: 2px;
  }

  .glass {
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* POST PAGES */


.post-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.post {
  padding-bottom: 64px;
}

.posts-page-header {
  padding: 28px 0 24px;
}

.posts-page-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.posts-page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.posts-page-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.01em;
}

.posts-page-subtitle {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.posts-page-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: baseline;
  gap: 16px;
}

.posts-page-list li:first-child {
  border-top: none;
}

.posts-page-list li .year {
  min-width: 0;
  text-align: left;
}

.posts-page-list a {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

.post-header {
  padding: 28px 0 32px;
  animation: fadeUp 0.7s ease 0.05s both;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.post-meta a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.post-meta a:hover {
  color: var(--text);
}

.post-meta-sep {
  opacity: 0.4;
}

.post-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.post-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}

/* POST FOOTER */

.post-footer {
  margin-top: 12px;
  padding: 24px 32px;
  border-radius: 20px;
  padding-bottom: 24px;
}

.post-footer-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-more-list {
  margin-bottom: 0;
}

.post-tg-inline {
  margin-top: 24px;
}

.post-tg-author {
  margin-top: 8px;
}

.post-tg-inline hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
}

.post-tg-inline span {
  font-size: 14px;
  color: var(--muted);
}

.post-tg-inline a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  transition: color 0.15s, border-color 0.15s;
}

.post-tg-inline a:hover {
  color: var(--text);
  border-color: var(--text);
}


.post-body {
  border-radius: 20px;
  padding: 32px 32px;
  animation: fadeUp 0.7s ease 0.15s both;
}

.post-body p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.75;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 36px 0 12px;
}

.post-body h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 28px 0 8px;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.post-body li {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.post-body strong { font-weight: 600; }
.post-body em { font-style: italic; }
.post-body s { opacity: 0.5; }
.post-body u { text-decoration: underline; text-underline-offset: 3px; }

.post-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 113, 227, 0.25);
  transition: border-color 0.15s;
}
.post-body a:hover { border-color: var(--accent); }

.post-body code {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}

.post-body pre {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 18px;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 0;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 18px;
  padding: 4px 0 4px 18px;
  color: var(--muted);
  font-style: italic;
}

.post-body .callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
}

.post-body .callout-icon {
  font-size: 18px;
  line-height: 1.5;
  flex-shrink: 0;
}

.post-body details {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 12px;
}

.post-body details summary {
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-body details summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s;
}

.post-body details[open] summary::before {
  transform: rotate(90deg);
}

.post-body details > *:not(summary) {
  margin-top: 12px;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 28px 0;
}

.post-body figure {
  margin: 0 0 20px;
}

.post-body figure img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.post-body figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 20px;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.post-body th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
}

.post-body .columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 0 0 18px;
}

.post-body .todo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
}

.post-body .todo input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

@media (max-width: 600px) {
  .post-header {
    padding: 48px 0 28px;
  }

  .post-body {
    padding: 22px 20px;
    border-radius: 16px;
  }
}
