/* ==========================================================================
   Design System — rdwn.dev v2
   ========================================================================== */

:root {
  --font-serif: 'Newsreader', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --bg: #FAFAF9;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent-warm: #8B7355;
  --border-faint: rgba(0,0,0,0.05);
  --code-bg: #F3F4F6;
  --code-text: #EB5757;
  --selection-bg: rgba(139,115,85,0.12);

  --content-width: 640px;
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

[data-theme="dark"] {
  --bg: #0F0F0F;
  --text-primary: #E5E5E5;
  --text-secondary: #9CA3AF;
  --text-muted: #555;
  --accent-warm: #C4A882;
  --border-faint: rgba(255,255,255,0.06);
  --code-bg: #1A1A1A;
  --code-text: #F87171;
  --selection-bg: rgba(196,168,130,0.15);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.5s ease, color 0.5s ease;
}

::selection { background: var(--selection-bg); }

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

a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-faint);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: 1.75rem; font-weight: 500; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1.5rem; }
strong { font-weight: 600; }
em { font-style: italic; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
li { margin-bottom: 0.5rem; }
li > ul, li > ol { margin-bottom: 0; margin-top: 0.5rem; }

blockquote {
  border-left: 2px solid var(--border-faint);
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

blockquote em, blockquote i { font-style: normal; }

hr {
  border: none;
  border-top: 1px solid var(--border-faint);
  margin: 3rem 0;
}

/* ==========================================================================
   Code
   ========================================================================== */

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--code-bg);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}

.highlight { background: var(--code-bg); border-radius: 8px; margin-bottom: 1.5rem; }
.highlight pre { margin-bottom: 0; }
.highlighter-rouge { margin-bottom: 1.5rem; }

.language-plaintext.highlighter-rouge { margin-bottom: 0; display: inline; }
.language-plaintext.highlighter-rouge .highlight { display: inline; background: none; margin-bottom: 0; border-radius: 0; }
.language-plaintext.highlighter-rouge pre { display: inline; padding: 0; background: none; border-radius: 0; }

/* ==========================================================================
   Tables
   ========================================================================== */

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 14px; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-faint); }
th { font-weight: 600; color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ==========================================================================
   Layout
   ========================================================================== */

.page-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

/* ==========================================================================
   Inner Layout — two-column with fixed sidebar
   ========================================================================== */

.inner-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  min-height: 100vh;
}

/* Fixed sidebar */
.sidebar {
  position: fixed;
  top: clamp(60px, 10vh, 100px);
  width: 180px;
  flex-shrink: 0;
}

.sidebar-name {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.sidebar-name:hover { text-decoration: none; opacity: 0.7; }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-nav a:hover { color: var(--text-primary); }
.sidebar-nav a.active { color: var(--text-primary); pointer-events: none; }

/* Content area */
.inner-content {
  max-width: var(--content-width);
  margin-left: 240px;
  padding-top: clamp(60px, 10vh, 100px);
  flex: 1;
  min-width: 0;
}

/* Mobile nav — hidden on desktop */
.mobile-nav { display: none; }

/* Mobile: sidebar → horizontal bar */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding: 24px 0 40px;
  }
  .inner-layout {
    flex-direction: column;
    padding: 0 24px;
  }
  .inner-content {
    margin-left: 0;
    padding-top: 0;
  }
  .mobile-nav-name {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
  }
  .mobile-nav-name:hover { text-decoration: none; opacity: 0.7; }
  .mobile-nav-links {
    display: flex;
    align-items: baseline;
  }
  .mobile-nav-links a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-nav-links a:hover { color: var(--text-primary); }
  .mobile-nav-links a.active { color: var(--text-primary); }
  .mobile-nav-links .nav-dot {
    font-size: 13px;
  }
  .mobile-nav-right {
    display: flex;
    align-items: baseline;
    gap: 0;
  }
}

/* ==========================================================================
   Theme Toggle
   ========================================================================== */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s, opacity 0.2s;
  line-height: 1;
  opacity: 0.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover { opacity: 1; color: var(--text-primary); }

.theme-toggle svg { display: block; }

/* Show sun in dark mode, moon in light mode */
.theme-icon.sun { display: none; }
.theme-icon.moon { display: block; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="dark"] .theme-icon.moon { display: none; }

/* Homepage — inline next to name */
.hero-name-row {
  display: flex;
  align-items: flex-start;
}

.hero-name-row .hero-name {
  margin-right: 16px;
}

.home-theme-toggle {
  margin-top: 12px;
  flex-shrink: 0;
}

/* Sidebar — below nav links */
.sidebar-theme-toggle {
  margin-top: 28px;
}

/* Mobile inner pages — inline with nav */
.mobile-theme-toggle {
  margin-left: 12px;
}

/* ==========================================================================
   Back Link — inner pages
   ========================================================================== */

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 32px 0 0;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text-primary); text-decoration: none; }

/* ==========================================================================
   Hero — Homepage
   ========================================================================== */

.hero {
  padding-top: clamp(100px, 18vh, 180px);
  padding-bottom: 20px;
}

/* Hero name — the statement */
.hero-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 9vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 20px;
  user-select: none;
  cursor: default;
}

.hero-name .char {
  display: inline-block;
  will-change: transform;
}

.hero-name .char.space { width: 0.22em; }

/* Status line */
.identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

.identity-now {
  font-size: 18px;
  color: var(--text-muted);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Hero bio */
.hero-bio {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 0;
}

.hero-bio a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-faint);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.hero-bio a:hover { text-decoration-color: var(--accent-warm); }

/* Hero nav */
.hero-nav {
  display: flex;
  align-items: center;
  margin-top: 24px;
  line-height: 1;
}

.hero-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-nav a:hover { color: var(--text-primary); }

.nav-dot {
  color: var(--text-muted);
  opacity: 0.3;
  padding: 0 12px;
  user-select: none;
  font-size: 14px;
}

/* Say hi — expandable socials */
.say-hi {
  display: flex;
  align-items: center;
  margin-top: 28px;
  line-height: 1;
}

.say-hi-trigger {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.say-hi-trigger:hover { color: var(--text-secondary); }

.say-hi-wave {
  display: inline-block;
  margin-left: 4px;
  font-size: 15px;
  transform-origin: 70% 70%;
}

.say-hi-arrow {
  display: inline-block;
  font-size: 12px;
  margin-left: 3px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.say-hi.open .say-hi-arrow {
  transform: rotate(90deg);
}

.say-hi-trigger:hover .say-hi-wave {
  animation: wave 0.5s ease-in-out 2;
}

@keyframes wave {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(14deg); }
  40%  { transform: rotate(-8deg); }
  60%  { transform: rotate(14deg); }
  80%  { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

.say-hi-links {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  padding: 2px 0;
  transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              margin-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.say-hi.open .say-hi-links {
  max-width: 400px;
  opacity: 1;
  margin-left: 12px;
}

.say-hi-links a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.say-hi-links a:hover { color: var(--text-primary); }

.social-dot {
  color: var(--text-muted);
  opacity: 0.25;
  padding: 0 8px;
  user-select: none;
  font-size: 15px;
}

/* Section break */
.section-break {
  width: 32px;
  height: 1px;
  background: var(--border-faint);
  margin: 56px 0 48px;
}

/* ==========================================================================
   Post Lists — shared between home and archive
   ========================================================================== */

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 12px 0; margin-bottom: 0; }
.post-list li + li { border-top: 1px solid var(--border-faint); }

.post-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  gap: 16px;
}

.post-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.15s;
  line-height: 1.45;
}

.post-list a:hover .post-title { color: var(--accent-warm); }

.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.all-posts-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.all-posts-link:hover { color: var(--text-primary); text-decoration: none; }

/* Year groups */
.year-group { margin-top: 40px; }

.year-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 8px;
  opacity: 0.6;
}

/* ==========================================================================
   Footer — minimal
   ========================================================================== */

.site-footer {
  margin-top: 80px;
  padding: 32px 0;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

/* ==========================================================================
   Post / Article — inner pages
   ========================================================================== */

.post-header {
  padding: 48px 0 32px;
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.post-meta-info .category-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--code-bg);
  padding: 0.15em 0.6em;
  border-radius: 9999px;
  text-decoration: none;
}

.post-content { padding-bottom: 48px; }

.post-content h2 {
  font-size: 1.375rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-content h3 {
  font-size: 1.125rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content h4 {
  font-size: 1rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-content a {
  color: var(--text-primary);
  text-decoration-color: var(--accent-warm);
}

.post-content a:hover { text-decoration-color: var(--text-primary); }

.post-nav {
  padding: 32px 0 64px;
  border-top: 1px solid var(--border-faint);
}

.post-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ==========================================================================
   Page Layout (Work, About, etc.)
   ========================================================================== */

.page-header {
  padding: 48px 0 16px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-content { padding-bottom: 64px; }

.page-content a {
  color: var(--text-primary);
  text-decoration-color: var(--accent-warm);
}

.page-content a:hover { text-decoration-color: var(--text-primary); }

/* Work / Career */
.work-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 48px;
  font-style: italic;
}

.work-entry { margin-bottom: 48px; }

.work-entry h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.work-entry p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.work-entry .awards { list-style: none; padding: 0; margin-top: 16px; }
.work-entry .awards li { font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); }

.work-footer-link {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 48px;
}

.work-footer-link a { color: var(--text-secondary); text-decoration-color: var(--border-faint); }
.work-footer-link a:hover { text-decoration-color: var(--accent-warm); }

/* About page */
.about-content { padding-bottom: 64px; }
.about-content p { font-size: 16px; color: var(--text-secondary); }
.about-content p:first-of-type { color: var(--text-primary); }

/* ==========================================================================
   Archive Page (/writing)
   ========================================================================== */

.archive-header {
  padding: 48px 0 32px;
}

.archive-header h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.page-404 {
  text-align: center;
  padding: 96px 0;
}

.page-404 h1 {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.page-404 a { color: var(--text-primary); text-decoration-color: var(--accent-warm); }
.page-404 a:hover { text-decoration-color: var(--text-primary); }

/* ==========================================================================
   Entrance Animations
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.55s; }

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

/* ==========================================================================
   Syntax Highlighting — Light
   ========================================================================== */

.highlight .c     { color: #6B7280; font-style: italic }
.highlight .err   { color: #EF4444 }
.highlight .k     { color: #7C3AED; font-weight: 600 }
.highlight .o     { font-weight: 600 }
.highlight .cm    { color: #6B7280; font-style: italic }
.highlight .cp    { color: #6B7280; font-weight: 600 }
.highlight .c1    { color: #6B7280; font-style: italic }
.highlight .cs    { color: #6B7280; font-weight: 600; font-style: italic }
.highlight .gd    { color: #EF4444; background-color: #FEE2E2 }
.highlight .ge    { font-style: italic }
.highlight .gr    { color: #EF4444 }
.highlight .gh    { color: #6B7280 }
.highlight .gi    { color: #059669; background-color: #D1FAE5 }
.highlight .go    { color: #6B7280 }
.highlight .gp    { color: #6B7280 }
.highlight .gs    { font-weight: 600 }
.highlight .gu    { color: #6B7280 }
.highlight .gt    { color: #EF4444 }
.highlight .kc    { color: #7C3AED; font-weight: 600 }
.highlight .kd    { color: #7C3AED; font-weight: 600 }
.highlight .kp    { color: #7C3AED }
.highlight .kr    { color: #7C3AED; font-weight: 600 }
.highlight .kt    { color: #D97706 }
.highlight .m     { color: #0284C7 }
.highlight .s     { color: #059669 }
.highlight .na    { color: #0284C7 }
.highlight .nb    { color: #1A1A1A }
.highlight .nc    { color: #D97706; font-weight: 600 }
.highlight .no    { color: #D97706 }
.highlight .ni    { color: #6B7280 }
.highlight .ne    { color: #EF4444; font-weight: 600 }
.highlight .nf    { color: #2563EB; font-weight: 600 }
.highlight .nn    { color: #6B7280 }
.highlight .nt    { color: #7C3AED }
.highlight .nv    { color: #0284C7 }
.highlight .ow    { color: #7C3AED; font-weight: 600 }
.highlight .w     { color: #6B7280 }
.highlight .mf    { color: #0284C7 }
.highlight .mh    { color: #0284C7 }
.highlight .mi    { color: #0284C7 }
.highlight .mo    { color: #0284C7 }
.highlight .sb    { color: #059669 }
.highlight .sc    { color: #059669 }
.highlight .sd    { color: #059669 }
.highlight .s2    { color: #059669 }
.highlight .se    { color: #D97706 }
.highlight .sh    { color: #059669 }
.highlight .si    { color: #D97706 }
.highlight .sx    { color: #059669 }
.highlight .sr    { color: #059669 }
.highlight .s1    { color: #059669 }
.highlight .ss    { color: #059669 }
.highlight .bp    { color: #6B7280 }
.highlight .vc    { color: #0284C7 }
.highlight .vg    { color: #0284C7 }
.highlight .vi    { color: #0284C7 }
.highlight .il    { color: #0284C7 }

/* Dark Mode Syntax Highlighting */
[data-theme="dark"] .highlight .c     { color: #6B7280; font-style: italic }
[data-theme="dark"] .highlight .err   { color: #F87171 }
[data-theme="dark"] .highlight .k     { color: #A78BFA; font-weight: 600 }
[data-theme="dark"] .highlight .o     { color: #E5E5E5; font-weight: 600 }
[data-theme="dark"] .highlight .cm    { color: #6B7280; font-style: italic }
[data-theme="dark"] .highlight .cp    { color: #6B7280; font-weight: 600 }
[data-theme="dark"] .highlight .c1    { color: #6B7280; font-style: italic }
[data-theme="dark"] .highlight .cs    { color: #6B7280; font-weight: 600; font-style: italic }
[data-theme="dark"] .highlight .gd    { color: #F87171; background-color: rgba(248,113,113,0.1) }
[data-theme="dark"] .highlight .ge    { font-style: italic }
[data-theme="dark"] .highlight .gr    { color: #F87171 }
[data-theme="dark"] .highlight .gh    { color: #9CA3AF }
[data-theme="dark"] .highlight .gi    { color: #34D399; background-color: rgba(52,211,153,0.1) }
[data-theme="dark"] .highlight .go    { color: #6B7280 }
[data-theme="dark"] .highlight .gp    { color: #6B7280 }
[data-theme="dark"] .highlight .gs    { font-weight: 600 }
[data-theme="dark"] .highlight .gu    { color: #9CA3AF }
[data-theme="dark"] .highlight .gt    { color: #F87171 }
[data-theme="dark"] .highlight .kc    { color: #A78BFA; font-weight: 600 }
[data-theme="dark"] .highlight .kd    { color: #A78BFA; font-weight: 600 }
[data-theme="dark"] .highlight .kp    { color: #A78BFA }
[data-theme="dark"] .highlight .kr    { color: #A78BFA; font-weight: 600 }
[data-theme="dark"] .highlight .kt    { color: #FBBF24 }
[data-theme="dark"] .highlight .m     { color: #38BDF8 }
[data-theme="dark"] .highlight .s     { color: #34D399 }
[data-theme="dark"] .highlight .na    { color: #38BDF8 }
[data-theme="dark"] .highlight .nb    { color: #E5E5E5 }
[data-theme="dark"] .highlight .nc    { color: #FBBF24; font-weight: 600 }
[data-theme="dark"] .highlight .no    { color: #FBBF24 }
[data-theme="dark"] .highlight .ni    { color: #9CA3AF }
[data-theme="dark"] .highlight .ne    { color: #F87171; font-weight: 600 }
[data-theme="dark"] .highlight .nf    { color: #60A5FA; font-weight: 600 }
[data-theme="dark"] .highlight .nn    { color: #9CA3AF }
[data-theme="dark"] .highlight .nt    { color: #A78BFA }
[data-theme="dark"] .highlight .nv    { color: #38BDF8 }
[data-theme="dark"] .highlight .ow    { color: #A78BFA; font-weight: 600 }
[data-theme="dark"] .highlight .w     { color: #6B7280 }
[data-theme="dark"] .highlight .mf    { color: #38BDF8 }
[data-theme="dark"] .highlight .mh    { color: #38BDF8 }
[data-theme="dark"] .highlight .mi    { color: #38BDF8 }
[data-theme="dark"] .highlight .mo    { color: #38BDF8 }
[data-theme="dark"] .highlight .sb    { color: #34D399 }
[data-theme="dark"] .highlight .sc    { color: #34D399 }
[data-theme="dark"] .highlight .sd    { color: #34D399 }
[data-theme="dark"] .highlight .s2    { color: #34D399 }
[data-theme="dark"] .highlight .se    { color: #FBBF24 }
[data-theme="dark"] .highlight .sh    { color: #34D399 }
[data-theme="dark"] .highlight .si    { color: #FBBF24 }
[data-theme="dark"] .highlight .sx    { color: #34D399 }
[data-theme="dark"] .highlight .sr    { color: #34D399 }
[data-theme="dark"] .highlight .s1    { color: #34D399 }
[data-theme="dark"] .highlight .ss    { color: #34D399 }
[data-theme="dark"] .highlight .bp    { color: #6B7280 }
[data-theme="dark"] .highlight .vc    { color: #38BDF8 }
[data-theme="dark"] .highlight .vg    { color: #38BDF8 }
[data-theme="dark"] .highlight .vi    { color: #38BDF8 }
[data-theme="dark"] .highlight .il    { color: #38BDF8 }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .hero { padding-top: 80px; }
  .page-shell { padding: 0 20px; }
  .hero-name { margin-bottom: 16px; }

  .post-header { padding: 32px 0 24px; }
  .page-header { padding: 32px 0 12px; }

  .post-list a { flex-direction: column; gap: 2px; }
  .post-date { font-size: 11px; }

  .page-404 h1 { font-size: 4rem; }
}