/*
  * Minimal Theme CSS - Production Ready
  *
  * DESIGN SYSTEM:
  * - Font: JetBrains Mono (monospace throughout)
  * - Colors: Black (#000), Gray (#666), Light Gray (#f5f5f5)
  * - Spacing: 8px (small), 16px (medium), 24px (large), 32px (xl), 40px (section)
  * - Border radius: 4px (small), 6px (medium), 8px (large)
  * - Shadows: Subtle with 0.04-0.08 opacity
  *
  * Last updated: Production polish for v1.0
  */

/* CSS Custom Properties for consistent theming */
:root {
  --color-black: #000;
  --color-gray: #666;
  --color-light-gray: #f5f5f5;
  --color-white: #fff;

  --font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  --font-size-base: 1rem;
  --line-height-base: 1.55;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;

  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;

  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-fast: 0.2s ease-out;

  --max-width-content: 800px;
  --header-content-gap: clamp(12px, 2vh, 28px);
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  height: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-black);
  background: var(--color-white);
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  padding-top: 120px;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  max-width: 100vw;
  width: 100%;
}

/* Responsive header clearance */
@media (max-width: 1024px) {
  body {
    padding-top: 100px;
  }

  h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 72px;
  }

  h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: 92px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-content-gap: clamp(8px, 1.5vh, 20px);
  }
}

a {
  color: var(--color-black);
  text-decoration: underline;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-gray);
}

/* Global Layout Container */
.layout-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
}

/* Ensure content alignment matches header across all breakpoints */
@media (max-width: 1024px) {
  .layout-container {
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .layout-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .layout-container {
    padding: 0 14px;
  }
}

/* Focus management for better accessibility */
.nav-link:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .layout-container {
    padding: 0 16px;
  }

  .content-section {
    margin: 30px 0;
  }

  /* Homepage mobile styles */
  .home-intro {
    margin: 15px 0 20px;
  }

  .lede {
    font-size: 1.0625rem; /* 17px */
    line-height: 1.5;
  }

  .home-social {
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }

   .home-recent h2 {
     margin-bottom: 15px;
   }

   .work-entry {
    margin-bottom: 32px;
    padding-bottom: 16px;
  }

  .work-timeline-date {
    left: -60px;
    width: 50px;
    font-size: 11px;
  }
}

/* Header */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-light-gray);
  box-shadow: var(--shadow-subtle);
  transform: translateZ(0);
  will-change: auto;
  padding-block: 20px;
}

.site-header .layout-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

/* Ensure header alignment matches content across all breakpoints */
@media (max-width: 1024px) {
  .layout-container {
    padding: 0 18px;
  }
}

@media (max-width: 768px) {
  .layout-container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .layout-container {
    padding: 0 14px;
  }
}

.brand {
  flex-shrink: 0;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--color-black);
  transition: var(--transition-fast);
  padding: 0 var(--spacing-sm);
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  height: 40px; /* match nav-link height */
}

.brand-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

/* icon removed for text-only pill */

.brand-text { font-size: 1rem; font-weight: 600; font-family: var(--font-family); letter-spacing: -0.01em; }

/* Home icon for mobile - hidden on desktop */
.brand-home-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--color-black);
  transition: var(--transition-fast);
}

.brand-home-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.brand-home-icon:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

/* Divider between icon and text */
.brand-divider { width: 1px; height: 20px; background: #e5e5e5; }
.brand-link:hover .brand-divider { background: rgba(255,255,255,0.35); }

/* Hide mobile menu hint on desktop */
.mobile-menu-hint {
  display: none;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--color-black);
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 600;
  font-family: var(--font-family);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: var(--transition-fast);
  position: relative;
}

.mobile-menu-toggle:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.mobile-menu-toggle[aria-expanded="true"] {
  background: #000;
  border-color: #000;
}

.mobile-menu-toggle svg {
  color: var(--color-black);
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] svg {
  color: #fff;
}

.mobile-menu-toggle svg path {
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] svg path:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] svg path:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] svg path:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}



/* Mobile Menu */
@media (max-width: 768px) {
  .site-header {
    padding-block: 20px;
  }

  .site-header .layout-container {
    gap: 16px;
  }

  .brand-link {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .brand-home-icon {
    display: flex;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  main {
    padding: var(--header-content-gap) 0 60px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border: none;
    padding: 80px 20px 40px;
  }

  .main-nav.mobile-menu-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .nav-list {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  .mobile-menu-hint {
    display: block;
    font-size: 0.875rem;
    color: #999;
    margin: 0;
    text-align: center;
    font-style: italic;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
  }

  .main-nav.mobile-menu-open .mobile-menu-hint {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .main-nav.mobile-menu-open .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for menu items */
  .main-nav.mobile-menu-open .nav-item:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.mobile-menu-open .nav-item:nth-child(2) { transition-delay: 0.10s; }
  .main-nav.mobile-menu-open .nav-item:nth-child(3) { transition-delay: 0.15s; }
  .main-nav.mobile-menu-open .nav-item:nth-child(4) { transition-delay: 0.20s; }
  .main-nav.mobile-menu-open .nav-item:nth-child(5) { transition-delay: 0.25s; }
  .main-nav.mobile-menu-open .nav-item:nth-child(6) { transition-delay: 0.30s; }

  .nav-link {
    font-size: 1.5rem; /* 24px */
    padding: 16px 24px;
    border-radius: 0;
    color: #000;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: transparent;
    color: #666;
    border: none;
    transform: none;
    box-shadow: none;
  }

  .nav-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Footer */
.site-footer {
  background: #f9f9f9;
  color: #333;
  padding: 48px 0 32px;
  margin-top: 48px;
  border-top: 1px solid #e5e5e5;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.footer-brand {
  order: -1;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  transition: var(--transition-fast);
}

.footer-brand-link:hover {
  color: #000;
}

.footer-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border-radius: var(--border-radius-md);
}

.footer-brand-icon svg {
  color: #000;
}

.footer-brand-text {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.footer-nav {
  margin: 0 auto;
  max-width: 400px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.footer-nav-item {
  flex-shrink: 0;
}

.footer-nav-link {
  text-decoration: none;
  color: #666;
  font-size: 0.9375rem; /* 15px */
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease-out;
  position: relative;
}

.footer-nav-link:hover {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.03);
}

.footer-meta {
  margin-top: 16px;
}

.footer-description {
  font-size: 0.9375rem; /* 15px */
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  font-size: 0.8125rem; /* 13px */
  color: #999;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

/* Footer Responsive */
@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: left;
  }

  .footer-brand {
    order: 0;
    text-align: left;
  }

  .footer-nav {
    order: 1;
    margin: 0;
    max-width: none;
  }

  .footer-meta {
    order: 2;
    text-align: right;
    margin-top: 0;
  }

  .footer-description {
    margin-bottom: 8px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Main content area */
main {
  padding: var(--header-content-gap) 0 48px;
  flex: 1;
}

/* Content sections */
.content-section {
  margin: 40px 0;
}

.content-section:first-child {
  margin-top: 0;
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Homepage - Hero Style */
.hero-section {
  padding: 60px 0 40px;
  border-bottom: 2px solid #000;
  margin-bottom: 48px;
}

.hero-name {
  font-size: 4rem; /* 64px */
  font-weight: bold;
  line-height: 1;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: 1.5rem; /* 24px */
  color: #666;
  margin: 0 0 32px 0;
  font-weight: 500;
}

.hero-bio {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: #333;
  max-width: 700px;
  margin: 0 0 32px 0;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  color: #333;
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  line-height: 1; /* Ensure icon/text vertical alignment */
  transition: var(--transition-fast);
  background: #fff;
}

.hero-link:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-2px);
}

.hero-link svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  align-self: center;
}

/* Ensure consistent label baseline */
.hero-label {
  line-height: 1;
  display: inline-block;
}

/* Nudge LinkedIn icon for optical alignment */
.hero-link[aria-label="LinkedIn"] svg,
.hero-link svg.icon-linkedin {
  transform: translateY(-2px) !important; /* nudge up for optical alignment */
}

.hero-link-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.hero-link-primary:hover {
  background: #333;
  border-color: #333;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem; /* 48px */
  font-weight: bold;
  color: #000;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem; /* 14px */
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Featured Section */
.featured-section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2rem; /* 32px */
  font-weight: bold;
  margin: 0 0 32px 0;
  line-height: 1.2;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.featured-item {
  padding: 32px;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.featured-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.featured-type {
  font-size: 0.75rem; /* 12px */
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
}

.featured-date {
  font-size: 0.875rem; /* 14px */
  color: #999;
}

.featured-title {
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 16px 0;
}

.featured-title a {
  text-decoration: none;
  color: inherit;
}

.featured-title a:hover {
  text-decoration: underline;
}

.featured-summary {
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.featured-link {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem; /* 15px */
  transition: all 0.2s ease;
}

.featured-link:hover {
  text-decoration: underline;
}

/* View All Section */
.view-all-section {
  text-align: center;
  padding: 32px 0 48px;
}

.view-all-link {
  display: inline-block;
  padding: 16px 32px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.view-all-link:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Recent Sections */
.recent-section {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 2px solid #000;
}

.recent-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 24px;
}

/* Two-column wrapper for Recent Posts + Recent Papers */
.recent-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.recent-col {
  min-width: 0; /* prevent overflow in grid */
}

.list-item {
  padding: 0;
  transition: var(--transition-fast);
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

/* Blog list: date on the left, aligned like homepage */
.blog-list .list-item-header {
  justify-content: flex-start;
}

/* Blog list rows use grid so summary aligns with title */
.blog-list .blog-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.blog-list .blog-row .list-item-main {
  min-width: 0;
}

.blog-list .blog-row .list-item-title {
  margin: 0 0 6px 0;
}

.blog-list .blog-row .list-item-summary {
  margin: 0;
}

/* Grouped-by-date list: single date column with nested items */
.blog-list .blog-group {
  display: grid;
  grid-template-columns: 110px 1fr; /* fixed date column */
  column-gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.blog-group-date {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .blog-list .blog-group {
    grid-template-columns: 90px 1fr; /* tighter on mobile */
  }
}

/* Increase spacing between items within the same date group */
.blog-group-items {
  display: flex;
  flex-direction: column;
  gap: 20px; /* was ~12px via margins; increased for clarity */
}

.blog-group-items .list-item {
  margin: 0; /* spacing handled by gap */
}

/* Meta row beneath titles on blog list */
.blog-list .list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 8px 0;
  color: #888;
  font-size: 0.875rem; /* 14px */
}

.blog-list .list-item-title .post-reading-time { color: #888; font-size: 0.875rem; font-weight: 400; }
.blog-list .list-item-meta .post-tags { margin-top: 0; }

/* Related list adopts the same compact meta styling */
.related-list .list-item-title .post-reading-time {
  color: #888;
  font-size: 0.875rem;
  font-weight: 400;
}
.related-list .list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 0 0;
  color: #888;
  font-size: 0.875rem;
}

/* ==========================================
 * WORK LIST – adapt blog group to 1-column
 * ========================================== */
.work-list .blog-group {
  display: block;            /* stack header and items */
}
.work-list .blog-group-date {
  margin-bottom: 8px;
  color: #666;
  white-space: normal;
  word-break: break-word;    /* prevent overlap on long names */
}
.work-list .blog-group-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.related-section { margin: 48px 0 0 0; }

.list-item-title {
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.list-item-title a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.list-item-title a:hover {
  color: #666;
}

.list-item-date {
  font-size: 0.875rem; /* 14px */
  color: #999;
  white-space: nowrap;
  font-family: var(--font-family);
}

.list-item-summary {
  color: #666;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem; /* 15px */
}

/* Work meta under Work Experience items */
/* removed custom work-meta styling per simplified design */

.section-link {
  display: inline-block;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem; /* 15px */
  transition: var(--transition-fast);
  padding: 8px 0;
}

.section-link:hover {
  text-decoration: underline;
  transform: translateX(4px);
}

/* Old homepage styles (keeping for compatibility) */
.home-description {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  margin: 20px 0 32px 0;
  color: #000;
  max-width: 600px;
  text-align: left;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}

.home-links a {
  color: #666;
  text-decoration: underline;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-size: 1.0625rem; /* 17px */
}

.home-links a:hover {
  color: #000;
  text-decoration: underline;
}

.home-recent h2 {
  margin-bottom: 32px;
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  line-height: 1.3;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.recent-item {
  padding: 24px;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.recent-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.recent-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.recent-item h3 a {
  text-decoration: none;
  color: inherit;
}

.recent-item h3 a:hover {
  text-decoration: underline;
}

.recent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem; /* 15px */
  color: #666;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.recent-type {
  color: #000;
  font-weight: bold;
}

.recent-summary {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}

.empty-subtitle {
  font-size: 1rem; /* 16px */
  color: #666;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  margin: 0;
  font-style: italic;
}

/* Empty state responsive */
@media (max-width: 768px) {
  .empty-state {
    padding: 40px 15px;
  }

  .empty-subtitle {
    font-size: 15px;
  }
}

/* Homepage responsive */
@media (min-width: 1200px) {
  .home-description {
    max-width: 700px;
    font-size: 1.125rem; /* 18px */
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  body {
    font-size: 1rem; /* 16px */
  }
  .home-description {
    font-size: 1rem; /* 16px */
  }
  .home-links a {
    font-size: 1rem; /* 16px */
  }
  code, pre, .mono {
    font-size: 1rem; /* 16px */
  }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 32px;
    margin-bottom: 32px;
  }

  .hero-name {
    font-size: 2.5rem; /* 40px */
  }

  .hero-title {
    font-size: 1.25rem; /* 20px */
    margin-bottom: 24px;
  }

  .hero-bio {
    font-size: 1rem; /* 16px */
    margin-bottom: 24px;
  }

  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 0;
    margin-bottom: 32px;
  }

  .stat-number {
    font-size: 2rem; /* 32px */
  }

  .stat-label {
    font-size: 0.75rem; /* 12px */
  }

  .section-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 24px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-item {
    padding: 24px;
  }

  .featured-title {
    font-size: 1.25rem; /* 20px */
  }

  .view-all-section {
    padding: 24px 0 32px;
  }

  .view-all-link {
    padding: 14px 28px;
    font-size: 0.9375rem; /* 15px */
  }
}

@media (max-width: 768px) {
  .recent-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
  }

  .recent-list {
    gap: 24px;
  }

  .recent-duo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .list-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .list-item-title {
    font-size: 1.125rem; /* 18px */
  }

  .list-item-date {
    font-size: 0.8125rem; /* 13px */
  }

  .list-item-summary {
    font-size: 0.875rem; /* 14px */
  }
}

/* Testimonials */
.testimonial-card {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.testimonial-title {
  margin: 0 0 12px 0;
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
}

.testimonial-quote {
  margin: 0 0 20px 0;
  color: #1a1a1a;
  line-height: 1.7;
  font-style: normal;
  display: block;
  overflow: visible;
  font-size: 1.0625rem;
  position: relative;
  padding-top: 4px;
  flex: 1;
  min-height: 0;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 1;
  color: #e5e5e5;
  position: absolute;
  top: -8px;
  left: -8px;
  font-family: Georgia, serif;
  font-weight: bold;
  z-index: 0;
}

.testimonial-card:hover .testimonial-quote::before {
  color: #d0d0d0;
}

.testimonial-meta {
  color: #333;
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  min-height: 90px;
}

.testimonial-line-name {
  color: #333;
  width: 100%;
  margin-bottom: 2px;
}

.testimonial-author {
  font-weight: 700;
  color: #000;
  font-size: 1rem;
}

.testimonial-name-link {
  text-decoration: none;
  color: #000;
  transition: var(--transition-fast);
  border-bottom: 1.5px solid #d0d0d0;
  padding-bottom: 1px;
}

.testimonial-name-link:hover {
  color: #000;
  border-bottom-color: #000;
}

.testimonial-role {
  color: #666;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4;
}

.testimonial-company {
  color: #888;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.testimonial-source {
  color: #666;
  text-decoration: underline;
  font-size: 0.875rem;
}

.testimonial-source:hover {
  color: #000;
}

/* Testimonials slider section */
.testimonials-section { border-bottom: 2px solid #000; }

.testimonial-slider {
  position: relative;
  margin-top: 24px;
  --card-width: calc((100% - 48px) / 3); /* 3 cards with 2 gaps of 24px */
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  gap: 24px;
  grid-auto-columns: var(--card-width);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
  align-items: stretch;
  justify-content: start;
}

/* When no scrolling is needed, center the cards */
.testimonial-slider.no-scroll .testimonial-track {
  justify-content: center;
}

.testimonial-track::-webkit-scrollbar {
  height: 6px;
}

.testimonial-track::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-track::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

.testimonial-track::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* Responsive card layouts */
@media (max-width: 1024px) {
  .testimonial-slider {
    --card-width: calc((100% - 24px) / 2); /* 2 cards on tablet */
  }
}

@media (max-width: 640px) {
  .testimonial-slider {
    --card-width: calc(100% - 40px); /* 1 card on mobile, accounting for padding */
  }

  .testimonial-track {
    gap: 20px;
  }
}

.testimonial-card { scroll-snap-align: start; }
.testimonial-slider .testimonial-card { margin-top: 0; }

/* Show full quotes; no clamping for testimonials */
.testimonial-quote { display: block; overflow: visible; }

/* No arrow buttons per design */

/* Fade edges to hint overflow */
.testimonial-slider::before,
.testimonial-slider::after {
  content: "";
  position: absolute;
  top: 0; bottom: 28px; /* leave space for dots */
  width: 24px;
  pointer-events: none;
}
.testimonial-slider::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255,255,255,0));
  opacity: 0;
}
.testimonial-slider::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255,255,255,0));
  opacity: 0;
}
.testimonial-slider:not(.at-start)::before { opacity: 1; }
.testimonial-slider:not(.at-end)::after { opacity: 1; }

/* Dots */
.slider-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 16px 0 0;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slider-dot:hover {
  background: #999;
  transform: scale(1.1);
}

.slider-dot.is-active {
  background: #000;
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.slider-dot:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* Keep testimonials light and clean - no dark mode override */

/* Mobile responsive for testimonials */
@media (max-width: 768px) {
  .testimonial-slider {
    margin-top: 20px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-quote {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .testimonial-quote::before {
    font-size: 3rem;
    top: -6px;
    left: -6px;
  }

  .testimonial-meta {
    gap: 5px;
    padding-top: 12px;
  }

  .testimonial-author {
    font-size: 0.9375rem;
  }

  .testimonial-role {
    font-size: 0.875rem;
  }

  .testimonial-company {
    font-size: 0.8125rem;
  }

  .slider-dots {
    padding: 12px 0 0;
    gap: 8px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.is-active {
    transform: scale(1.2);
  }
}

/* Medium mobile screens - icon-only hero links */
@media (max-width: 640px) {
  .hero-links {
    gap: 16px;
  }

  .hero-link {
    padding: 12px;
    gap: 0;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .hero-label {
    display: none;
  }

  .hero-link svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .testimonial-quote::before {
    font-size: 2.5rem;
    top: -4px;
    left: -4px;
  }

  .hero-name {
    font-size: 2rem; /* 32px */
  }

  .hero-title {
    font-size: 1.125rem; /* 18px */
  }

  .hero-links {
    gap: 12px;
  }

  .hero-link {
    padding: 11px;
    width: 44px;
    height: 44px;
  }

  .hero-link svg {
    width: 22px;
    height: 22px;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: var(--border-radius-md);
  }

  .list-item-title {
    font-size: 1rem; /* 16px */
  }

  .section-title {
    font-size: 1.375rem; /* 22px */
  }

  .recent-section {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .featured-item {
    padding: 20px;
  }

  .featured-title {
    font-size: 1.125rem; /* 18px */
  }

  .featured-grid {
    gap: 20px;
  }
}

/* Old mobile responsive */
@media (max-width: 768px) {
  .home-description {
    font-size: 0.9375rem; /* 15px */
    margin-bottom: 24px;
    text-align: left;
  }

  .home-links a {
    font-size: 0.9375rem; /* 15px */
  }

  code, pre, .mono {
    font-size: 0.9375rem; /* 15px */
  }

  .home-links {
    gap: 16px;
    justify-content: flex-start;
  }

  .recent-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .recent-item {
    padding: 20px;
  }

  .recent-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}

/* Plain list */
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin: 15px 0; }

/* Cards / lists */
.list { margin: 20px 0; }
.card { margin: 20px 0; padding: 20px; }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card .meta { font-size: 14px; margin: 10px 0; }
.card .summary { margin: 10px 0; }

.post-title { font-size: 32px; font-weight: bold; line-height: 1.2; margin: 0 0 20px; }
.post-meta { font-size: 14px; margin: 20px 0; }
.tags { margin: 10px 0; }
.tag { display: inline-block; margin: 5px; padding: 2px 8px; font-size: 12px; }

/* Blog Section */
.blog-header {
  padding: 0 0 20px 0;
  border-bottom: 2px solid #000;
  text-align: left;
}

/* Ensure header stays fixed on all pages */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

.blog-title {
  font-size: 2.25rem; /* 36px */
  font-weight: bold;
  margin: 0 0 8px 0;
  line-height: 1.2;
  color: #000;
}

/* Header descriptions (Blogs, Papershelf) — match list summary color */
.blog-header .blog-description {
  font-size: 1.0625rem; /* 17px */
  color: #666;
  margin: 8px 0 0 0;
  line-height: 1.5;
}
.blog-header .blog-description a {
  color: #666;
}

.blog-description a {
  color: #666;
  text-decoration: underline;
}

.blog-description a:hover {
  color: #000;
}

/* Blog content */
.blog-content * {
  text-align: left;
}



.chroma .chroma {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

/* Code block background */
.chroma {
  background-color: #f6f8fa;
}

/* Line highlighting */
.chroma .hl {
  background-color: #fff3cd;
}

/* Keywords */
.chroma .k {
  color: #d73a49;
  font-weight: bold;
}

/* Strings */
.chroma .s {
  color: #032f62;
}

/* Comments */
.chroma .c, .chroma .c1, .chroma .cm {
  color: #6a737d;
  font-style: italic;
}

/* Numbers */
.chroma .m, .chroma .mb, .chroma .mf, .chroma .mh, .chroma .mi, .chroma .mo {
  color: #005cc5;
}

/* Function names */
.chroma .nf {
  color: #6f42c1;
}

/* Variable names */
.chroma .nv, .chroma .vc, .chroma .vg, .chroma .vi {
  color: #e36209;
}

/* Operators */
.chroma .o {
  color: #d73a49;
}

/* Built-in types */
.chroma .nb {
  color: #005cc5;
}

/* Class names */
.chroma .nc {
  color: #6f42c1;
}

/* Constants */
.chroma .no {
  color: #005cc5;
}

/* Line numbers */
.chroma .ln {
  color: #6a737d;
  margin-right: 16px;
  user-select: none;
}

/* Inline code */
code {
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-size: 1rem; /* 16px */
  color: #24292e;
  line-height: 1.5;
}

/* Preformatted text */
pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
  margin: 20px 0;
  max-width: 100%;
  box-sizing: border-box;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-size: 1rem; /* 16px */
  line-height: 1.5;
}

pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* Post meta (used in both blog list and single) */
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem; /* 15px */
  color: #666;
  margin-bottom: 8px;
}

.post-date, .post-reading-time {
  color: #888;
}

/* Post tags - see main definition below at line ~2556 */

/* Related section */
.related-section {
  margin: 60px 0 40px 0;
}

.related-post-meta {
  color: #888;
  font-size: 14px;
  margin-top: 8px;
}

.related-post-meta time {
  color: #888;
}

.related-post-meta span {
  color: #888;
}

/* Work specific styles */
.work-company {
  font-size: 1.0625rem; /* 17px */
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.work-company a {
  color: #666;
  text-decoration: underline;
}

.work-company a:hover {
  color: #000;
}

.work-location {
  color: #666;
  font-weight: 500;
}



.work-entry {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f5f5f5;
}

.work-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.work-meta {
  font-size: 0.9375rem; /* 15px */
  color: #666;
  margin-bottom: 16px;
}

.work-summary {
  margin-bottom: 16px;
  line-height: 1.6;
}

.work-stack {
  margin-top: 16px;
}

.work-stack-title {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tech-tag {
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-size: 0.75rem; /* 12px */
  color: #666;
  background: #f9f9f9;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.work-tech-tag:hover,
.work-tech-tag:focus,
.work-tech-tag:active {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

/* Tech Stack Section */
.tech-stack-section {
  margin: 32px 0;
  padding: 0 0 20px 0;
  border-bottom: 2px solid #000;
  text-align: left;
}

.tech-stack-title {
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  color: #000;
  margin: 0 0 16px 0;
  line-height: 1.2;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack-tag {
  display: inline-block;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-size: 0.8125rem; /* 13px */
  color: #666;
  background: #f9f9f9;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  transition: all 0.2s ease-out;
  line-height: 1.2;
  position: relative;
  text-decoration: none;
}

.tech-stack-tag:hover,
.tech-stack-tag:focus,
.tech-stack-tag:active {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

/* Experience summary */
.experience-summary {
  margin: 32px 0;
  padding: 24px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #000;
}

.experience-summary p {
  margin: 0;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: #333;
  font-style: italic;
}

/* Work meta section */
.work-meta-section {
  margin-top: 16px;
}

.work-company-line {
  margin-bottom: 6px;
  font-size: 1rem; /* 16px */
  color: #000;
  font-weight: 500;
}

.work-location-line {
  margin-bottom: 8px;
  font-size: 0.9375rem; /* 15px */
  color: #666;
  font-weight: 500;
}

.work-duration-line {
  font-size: 0.9375rem; /* 15px */
  color: #666;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  font-weight: 500;
  margin-bottom: 16px;
}



/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f5f5f5;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-left {
  padding-right: 40px;
  text-align: right;
}

.timeline-right {
  margin-left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-content {
  position: relative;
}

.timeline-date {
  position: absolute;
  top: -10px;
  font-size: 0.9375rem; /* 15px */
  font-weight: bold;
  color: #666;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
  background: #fff;
  padding: 4px 8px;
  z-index: 2;
}

.timeline-left .timeline-date {
  right: -20px;
}

.timeline-right .timeline-date {
  left: -20px;
}

.work-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
  text-align: left;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .timeline-container {
    padding: 20px 15px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    margin-bottom: 40px;
    padding-left: 40px;
  }

  .timeline-left,
  .timeline-right {
    margin-left: 0;
    padding-left: 40px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-date {
    left: -10px;
    right: auto;
    top: -8px;
  }

  .work-card {
    padding: 20px;
  }
}

/* 404 Page responsive */
@media (max-width: 768px) {
  .content-section[style*="text-align: center"] {
    min-height: 80vh;
    padding: 20px 15px !important;
  }

  .content-section[style*="text-align: center"] h1 {
    font-size: 48px !important;
  }

  .content-section[style*="text-align: center"] h2 {
    font-size: 20px !important;
  }
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.blog-post {
  padding-bottom: 32px;
  border-bottom: 1px solid #f5f5f5;
}

.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-header {
  margin-bottom: 16px;
}

.post-title {
  font-size: 1.75rem; /* 28px */
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem; /* 15px */
  color: #666;
  margin: 0;
}

.meta-separator {
  color: #ccc;
}

.post-summary {
  margin-bottom: 16px;
}

.post-summary p {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.post-footer {
  margin-top: 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* .post-tag definition moved to single canonical location below */

.pagination {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #f5f5f5;
}

.pagination-link {
  display: inline-block;
  padding: 12px 24px;
  background: #f9f9f9;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  font-weight: 500;
  transition: all 0.2s ease-out;
  position: relative;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.pagination-link:hover {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

/* Blog Single Page */
.blog-article {
  /* Content-section provides margin, no additional padding needed */
  overflow-x: hidden;
  max-width: 100%;
}

  /* Tweak spacing around post content on details */
  .blog-article .blog-content {
    margin-top: 24px;   /* a bit more room after header */
    margin-bottom: 12px; /* tighter end spacing before separator */
  }

  /* Prevent overflow on mobile */
  .blog-content {
    hyphens: auto;
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Apply consistent top/bottom spacing to other single pages */
  .about-content,
  .post-content {
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .blog-content img {
    max-width: 100%;
    height: auto;
  }



  .blog-content pre code {
    white-space: pre;
  }

  .blog-content code {
  }

  /* Table styling - matches code block aesthetic */
  .blog-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .blog-content table > * {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }

  .blog-content table thead {
    display: table-header-group;
  }

  .blog-content table tbody {
    display: table-row-group;
  }

  .blog-content table tr {
    display: table-row;
  }

  .blog-content table th,
  .blog-content table td {
    display: table-cell;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
    border-right: 1px solid #e1e4e8;
    vertical-align: top;
    white-space: nowrap;
  }

  .blog-content table th:last-child,
  .blog-content table td:last-child {
    border-right: none;
  }

  .blog-content table th {
    font-weight: 500;
    color: #24292e;
    background-color: transparent;
    border-bottom: 1px solid #d1d5da;
  }

  .blog-content table tbody tr:last-child td {
    border-bottom: none;
  }

  /* Subtle scrollbar to match overall design */
  .blog-content table::-webkit-scrollbar {
    height: 6px;
  }

  .blog-content table::-webkit-scrollbar-track {
    background: transparent;
  }

  .blog-content table::-webkit-scrollbar-thumb {
    background: #d1d5da;
    border-radius: 3px;
  }

  .blog-content table::-webkit-scrollbar-thumb:hover {
    background: #959da5;
  }

  @media (max-width: 768px) {
    .blog-content table > * {
      font-size: 0.875rem;
    }

    .blog-content table th,
    .blog-content table td {
      padding: 10px 12px;
    }
  }
}

/* Blog posts and items */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Blog single typography to match homepage */
.blog-article .post-meta { margin: 8px 0 0 0; }
.blog-article .post-date { color: #999; }
.blog-article .post-reading-time { color: #888; }

/* Prose content defaults */
.prose {
  font-size: 1rem; /* 16px */
  line-height: 1.75;
  color: #1a1a1a;
}

.prose p { margin: 0 0 16px 0; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin: 6px 0; }
.prose h2 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
  margin: 28px 0 12px 0;
}
.prose h3 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.35;
  margin: 22px 0 10px 0;
}
.prose blockquote {
  margin: 20px 0;
  padding-left: 16px;
  border-left: 3px solid #eee;
  color: #555;
}
.prose a { color: inherit; text-decoration: underline; }

/* Subtle, text-only tags for consistency */

.post-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.post-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  background: #fafafa;
  color: #777;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
  line-height: 1.2;
  transition: var(--transition-fast);
}

.post-tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.post-tag:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Tighter spacing when tags appear in the header */
.blog-header .post-tags { margin-top: 8px; }

.blog-post {
  padding: 32px;
  border: 1px solid var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.blog-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive for blog list */
@media (max-width: 768px) {
  .blog-posts {
    gap: 32px;
  }

  .blog-post {
    padding: 24px;
    padding-bottom: 24px;
  }

  .post-title {
    font-size: 1.5rem; /* 24px */
  }

  .pagination {
    margin-top: 32px;
    padding-top: 24px;
  }

  .pagination-link {
    padding: 10px 20px;
    font-size: 0.9375rem; /* 15px */
  }


}



/* Post footer */
.post-footer {
  margin: 20px 0;
}

/* GitHub links */
.post-github-link {
  color: #666;
  text-decoration: underline;
  font-size: 0.9375rem; /* 15px */
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.post-github-link:hover {
  color: #000;
  text-decoration: underline;
}

/* Infinite loader */
.infinite-loader {
  text-align: center;
  font-size: 0.9375rem; /* 15px */
  margin: 20px 0;
  padding: 20px;
}

/* Work sections */
.work-timeline {
  margin: 40px 0;
}

.work-entry {
  margin: 40px 0;
}

.entry-main {
  margin-left: 20px;
}

.entry-card {
  padding: 24px;
}

/* Footer */
.site-footer {
  background: transparent;
  border-top: 1px solid #e5e5e5;
  padding: 32px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem; /* 14px */
  color: var(--color-gray);
  font-family: var(--font-family);
  margin: 0;
}

/* Typography */
h1, h2, h3, p, nav, button {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

h1 { font-size: 2.25rem; font-weight: bold; margin: 0 0 20px; scroll-margin-top: 140px; }
h2 { font-size: 1.75rem; font-weight: bold; margin: 40px 0 20px; scroll-margin-top: 140px; }
h3 { font-size: 1.5rem; font-weight: bold; margin: 30px 0 15px; scroll-margin-top: 140px; }
h4 { font-size: 1.25rem; font-weight: bold; margin: 25px 0 12px; scroll-margin-top: 140px; }
h5 { scroll-margin-top: 140px; }
h6 { scroll-margin-top: 140px; }
p { margin: 20px 0; }
ul, ol { margin: 20px 0; padding-left: 20px; }
li { margin: 10px 0; }
code { font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace; background: #f0f0f0; padding: 2px 4px; font-size: 1rem; line-height: 1.5; }
pre { background: #f0f0f0; padding: 20px; overflow-x: auto; overflow-y: visible; margin: 20px 0; font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace; font-size: 1rem; line-height: 1.5; }
blockquote { margin: 20px 0; padding-left: 20px; border-left: 2px solid #000; }

/* About Tech Stack */
.about-stack {
  margin: 40px 0 60px 0;
}

.about-stack h2 {
  margin-bottom: 32px;
  font-size: 1.5rem; /* 24px */
  font-weight: bold;
  line-height: 1.3;
}

.tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-category {
  margin-bottom: 0;
}

.tech-category-title {
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
  margin: 0 0 16px 0;
  line-height: 1.4;
  color: #000;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.9375rem; /* 15px */
  color: var(--color-gray);
  background: var(--color-light-gray);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  line-height: 1.2;
  position: relative;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

.tech-tag:hover,
.tech-tag:focus,
.tech-tag:active {
  transform: scale(1.02);
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

/* Tech Stack Section (Work Pages) */
.tech-stack-section {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
}

.tech-stack-title {
  font-size: 0.9375rem; /* 15px */
  font-weight: bold;
  color: #666;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "JetBrains Mono", "Fira Code", "Source Code Pro", "Roboto Mono", monospace;
}

.tech-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-stack-tag {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.8125rem; /* 13px */
  color: var(--color-gray);
  background: var(--color-light-gray);
  padding: 6px 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-light-gray);
  transition: var(--transition-fast);
  line-height: 1.2;
}

.tech-stack-tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
}

/* Content separator for blog posts */
.content-separator {
  border: none;
  border-top: 2px solid var(--color-black);
  margin: var(--spacing-xl) 0;
  height: 2px;
}

/* Reduce space above the separator on blog details */
.blog-article + .content-separator {
  margin-top: 24px;
}

/* ==========================================
 * WORK SECTION - HORIZONTAL TIMELINE
 * ========================================== */

/* Container */
.work-timeline-new {
  position: relative;
  margin: 60px 0;
  padding: 40px 0 0 0;
}

/* Horizontal timeline line */
.work-timeline-new::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 2px;
  background: linear-gradient(to right, #000 0%, #e5e5e5 100%);
  z-index: 0;
}

/* Timeline entry - horizontal layout */
.timeline-entry {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 20px);
  margin-right: 30px;
  margin-bottom: 0;
}

.timeline-entry:last-child {
  margin-right: 0;
}

/* Timeline marker (dot on the horizontal line) */
.timeline-marker {
  position: absolute;
  left: 0;
  top: -24px;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-marker {
  transform: scale(1.4);
  box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.08);
}

/* Larger marker for promotions */
.timeline-entry.is-continuation .timeline-marker {
  width: 20px;
  height: 20px;
  left: -2px;
  top: -26px;
  background: #000;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Date badge - positioned above marker */
.timeline-date-badge {
  position: absolute;
  top: -60px;
  left: -10px;
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
  font-family: var(--font-family);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Content wrapper - below the timeline */
.timeline-content-wrapper {
  margin-top: 24px;
}

/* Card */
.timeline-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  min-height: 380px;
}

.timeline-entry:hover .timeline-card {
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Promotion label */
.timeline-promotion-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: #000;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Role title */
.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #000;
}

.timeline-role a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.timeline-role a:hover {
  color: #666;
}

/* Larger title for senior roles */
.timeline-entry.is-continuation .timeline-role {
  font-size: 1.375rem;
}

/* Meta information */
.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
}

.timeline-company a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.timeline-company a:hover {
  border-bottom-color: #000;
}

/* Hide company if continuation */
.timeline-entry.is-continuation .timeline-company.company-continued {
  display: none;
}

.timeline-location {
  font-size: 0.8125rem;
  color: #999;
}

.timeline-location::before {
  content: '📍';
  margin-right: 4px;
  font-size: 0.75rem;
}

/* Summary */
.timeline-summary {
  margin: 0 0 12px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
}

/* Tech stack - compact pills */
.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.timeline-tag {
  font-family: var(--font-family);
  font-size: 0.6875rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #e5e5e5;
  font-weight: 500;
  transition: all 0.2s ease;
}

.timeline-tag:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: translateY(-1px);
}

.timeline-tag:not(:last-child)::after {
  content: '';
  margin: 0;
}

/* Nested roles section */
.nested-roles {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.nested-roles-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 16px;
}

.nested-role {
  padding: 16px;
  margin-bottom: 12px;
  background: #f9f9f9;
  border-left: 3px solid #e5e5e5;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nested-role:last-child {
  margin-bottom: 0;
}

.nested-role:hover {
  background: #f5f5f5;
  border-left-color: #000;
}

.nested-role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.nested-role-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #000;
  flex: 1;
}

.nested-role-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.nested-role-title a:hover {
  color: #666;
}

.nested-role-duration {
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
  font-family: var(--font-family);
  white-space: nowrap;
}

.nested-role-summary {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #666;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .timeline-entry {
    width: calc(50% - 15px);
    margin-right: 30px;
    margin-bottom: 60px;
  }

  .timeline-entry:nth-child(2n) {
    margin-right: 0;
  }

  .work-timeline-new::before {
    display: none;
  }

  .timeline-marker {
    display: none;
  }

  .timeline-date-badge {
    position: static;
    display: inline-block;
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
  }

  .timeline-content-wrapper {
    margin-top: 0;
  }

  .timeline-card {
    min-height: auto;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .work-timeline-new {
    padding: 0;
  }

  .timeline-entry {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .timeline-entry:last-child {
    margin-bottom: 0;
  }

  .timeline-card {
    padding: 18px;
  }

  .timeline-role {
    font-size: 1.125rem;
  }

  .timeline-entry.is-continuation .timeline-role {
    font-size: 1.25rem;
  }

  .timeline-summary {
    font-size: 0.875rem;
  }

  .timeline-tag {
    font-size: 0.6875rem;
    padding: 4px 8px;
  }

  /* Nested roles responsive */
  .nested-role {
    padding: 12px;
  }

  .nested-role-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nested-role-title {
    font-size: 0.9375rem;
  }

  .nested-role-duration {
    font-size: 0.6875rem;
  }

  .nested-role-summary {
    font-size: 0.8125rem;
  }
}

/* ==========================================
 * WORK SECTION - VERTICAL TIMELINE
 * ========================================== */
.work-timeline-vertical {
  position: relative;
  padding-left: 28px;
}

.work-timeline-vertical::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e5e5;
}

.timeline-item {
  position: relative;
  display: block;
  margin: 0 0 28px 0;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-rail {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: #000;
  border: 2px solid #000;
  border-radius: 50%;
}

.timeline-body {
  margin-left: 28px;
}

.timeline-date {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #999;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Reuse existing card and tag styles */
.work-timeline-vertical .timeline-card { min-height: auto; }

@media (max-width: 640px) {
  .work-timeline-vertical { padding-left: 24px; }
  .work-timeline-vertical::before { left: 6px; }
  .timeline-body { margin-left: 24px; }
}

/* ==========================================
 * WORK SECTION - ROLE CARDS (Nested)
 * ========================================== */
.role-card {
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.role-card:hover {
  border-color: #000;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.role-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

.role-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.role-title a:hover { color: #666; }

.role-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  background: #f1f1f1;
  border: 1px solid #e5e5e5;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.role-summary {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}

.role-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.role-tag {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.6875rem;
  color: #666;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #e5e5e5;
  font-weight: 500;
}

@media (max-width: 640px) {
  .role-card { padding: 12px; }
  .role-title { font-size: 0.9375rem; }
  .role-summary { font-size: 0.875rem; }
}

/* ==========================================
 * WORK SECTION - MINIMAL TIMELINE
 * ========================================== */

.work-list {
  margin: 40px 0;
  position: relative;
  padding-left: 32px;
}

/* Subtle timeline line */
.work-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 48px;
  width: 1px;
  background: #e5e5e5;
}

.work-entry {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

.work-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Timeline dot */
.work-entry::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  z-index: 1;
  transition: all 0.2s ease;
}

.work-entry:hover::before {
  border-color: #000;
  transform: scale(1.3);
}

.work-entry:first-child::before {
  background: #000;
  border-color: #000;
}

/* Work-specific layout */
.work-header {
  margin-bottom: 24px;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.work-meta .work-location {
  font-size: 0.875rem;
  color: #999;
}

.work-meta .work-location::before {
  content: '•';
  margin-right: 12px;
  color: #ccc;
}

.work-location-line .work-location {
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.work-roles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-role {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #f0f0f0;
  transition: border-color 0.2s ease;
}

.work-role:hover {
  border-left-color: #000;
}

.role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.role-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: bold;
  color: #000;
  line-height: 1.4;
}

.role-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.role-title a:hover {
  color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .work-list {
    padding-left: 28px;
  }

  .work-list::before {
    left: 5px;
    bottom: 40px;
  }

  .work-entry {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .work-entry::before {
    left: -24px;
    width: 7px;
    height: 7px;
  }

  .work-location {
    font-size: 0.8125rem;
  }

  .work-roles {
    gap: 20px;
  }

  .work-role {
    padding-left: 16px;
  }

  .role-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .work-list {
    margin: 32px 0;
    padding-left: 24px;
  }

  .work-list::before {
    left: 4px;
    bottom: 32px;
  }

  .work-entry {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .work-entry::before {
    left: -21px;
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .work-location {
    font-size: 0.8125rem;
  }

  .work-roles {
    gap: 16px;
  }

  .work-role {
    padding-left: 12px;
    border-left-width: 1px;
  }

  .role-title {
    font-size: 1rem;
  }
}

/*
 * ==========================================
 * PRODUCTION READY - v1.0
 * ==========================================
 *
 * ✅ Accessibility: ARIA labels, focus states, keyboard navigation
 * ✅ Performance: Hardware acceleration, optimized transitions
 * ✅ Responsive: Mobile-first design with consistent breakpoints
 * ✅ Maintainable: CSS custom properties for consistent theming
 * ✅ Cross-browser: Fallback fonts and vendor prefixes
 * ✅ Clean code: Organized, commented, and optimized
 *
 * Last updated: Production polish for launch
 * ==========================================
 */
