/* ============================================
   Paper/Glass Design System for MarkoPress
   ============================================ */

/* --- Design Tokens --- */

:root {
  --font-sans: "Inter", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Noto Serif SC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --bg-default: #fdfdfd;
  --bg-alt: #fafafa;
  --bg-soft: #f4f4f5;
  --bg-elevated: #ffffff;
  --text-1: #09090b;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --border-default: #e4e4e7;
  --border-divider: #f4f4f5;
  --color-primary-1: #4f46e5;
  --color-primary-2: #4f46e5;
  --color-primary-3: #4f46e5;
  --color-primary-soft: rgba(79, 70, 229, 0.08);

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --header-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width-content: 1024px;
  --max-width-prose: 720px;
}

/* --- Base --- */

::selection {
  background-color: #eef2ff;
  color: #312e81;
}

body {
  background: #fdfdfd;
  color: #1a1a1a;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* ============================================
   Header / Navbar
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.5);
  box-shadow: var(--header-shadow);
  display: flex;
  align-items: center;
}

.navbar-container {
  max-width: var(--max-width-content);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: #18181b;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-title::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hide mobile menu toggle and theme toggle */
.mobile-menu-toggle {
  display: none !important;
}

/* ============================================
   Navigation Links
   ============================================ */

.navbar-nav-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .navbar-nav-inner {
    display: none;
  }
}

.navbar-nav-inner .nav-link {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  transition: color 0.3s var(--ease-out-expo);
}

.navbar-nav-inner .nav-link:hover {
  color: var(--accent);
  background: transparent;
}

.navbar-nav-inner .nav-link.active {
  color: var(--accent);
  background: transparent;
}

/* ============================================
   Search Trigger
   ============================================ */

.navbar-actions .search-trigger,
.navbar-actions button[aria-label="Search"],
.navbar-actions button.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.navbar-actions .search-trigger:hover,
.navbar-actions button[aria-label="Search"]:hover,
.navbar-actions button.search-btn:hover {
  color: #18181b;
  background: #f4f4f5;
  border-color: #e4e4e7;
}

.navbar-actions .search-trigger:hover svg,
.navbar-actions button[aria-label="Search"]:hover svg {
  color: var(--accent);
}

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

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  margin-top: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  margin-top: 6rem;
  padding: 2.5rem 1.5rem;
  background: transparent;
  border-top: 1px solid rgba(228, 228, 231, 0.5);
}

.footer-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer p:first-child {
  font-size: 0.875rem;
  color: #71717a;
}

.footer p:last-child,
.footer .footer-message {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* ============================================
   Homepage - Hero
   ============================================ */

.home-hero {
  max-width: 48rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.home-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #09090b;
  line-height: 1.05;
  margin: 0 0 2rem;
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.home-hero-subtitle,
.home-hero-bio,
.home-hero-links {
  animation: fadeInUp 0.6s var(--ease-out-expo) 0.1s both;
}

.home-hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: #52525b;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
}

.home-hero-bio {
  font-size: 1.125rem;
  color: #71717a;
  line-height: 1.7;
  text-wrap: balance;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.home-hero-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.home-hero-links a {
  color: #a1a1aa;
  transition: all 0.3s var(--ease-out-expo);
  display: inline-flex;
}

.home-hero-links a:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.home-hero-links svg {
  width: 20px;
  height: 20px;
}

/* --- Section Header --- */

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #f4f4f5;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.home-section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #18181b;
  margin: 0;
}

.home-section-desc {
  font-size: 0.875rem;
  color: #71717a;
  margin: 0.25rem 0 0;
}

.home-section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s var(--ease-out-expo);
}

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

.home-section-link svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s var(--ease-out-expo);
}

.home-section-link:hover svg {
  transform: translateX(3px);
}

.home-section {
  margin-bottom: 4rem;
}

/* ============================================
   Homepage - Grid Layout
   ============================================ */

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: 8fr 4fr;
    gap: 4rem;
  }
}

.home-grid-main {
  min-width: 0;
}

.home-grid-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .home-grid-sidebar {
    display: block;
    padding-left: 3rem;
    border-left: 1px solid #f4f4f5;
  }
}

.home-sidebar-inner {
  position: sticky;
  top: 6rem;
  animation: fadeIn 0.6s var(--ease-out-expo) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.home-sidebar-icon {
  color: #d4d4d8;
  margin-bottom: 0.5rem;
}

.home-sidebar-icon svg {
  width: 16px;
  height: 16px;
}

.home-book-excerpt {
  padding-top: 1rem;
}

.home-book-link {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.home-book-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s var(--ease-out-expo);
}

.home-book-link a:hover {
  color: var(--accent-hover);
}

.home-book-link a svg {
  width: 12px;
  height: 12px;
  transition: all 0.3s var(--ease-out-expo);
}

.home-book-link a:hover svg {
  transform: translateX(3px);
}

/* ============================================
   Homepage - Project Cards
   ============================================ */

.home-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .home-projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-project-card {
  display: block;
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #f4f4f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: inherit;
  transition: all 0.5s var(--ease-out-expo);
}

.home-project-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.home-project-card-arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #e4e4e7;
  transition: all 0.5s var(--ease-out-expo);
}

.home-project-card:hover .home-project-card-arrow {
  color: var(--accent);
  transform: rotate(45deg);
}

.home-project-card-arrow svg {
  width: 24px;
  height: 24px;
}

.home-project-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 0.75rem;
  transition: all 0.3s var(--ease-out-expo);
}

.home-project-card:hover h4 {
  color: var(--accent);
}

.home-project-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #71717a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Homepage - Post List
   ============================================ */

.post-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 1.5rem;
  margin: -0.5rem -1.5rem;
  border-radius: 1rem;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.3s var(--ease-out-expo);
}

@media (min-width: 768px) {
  .post-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .post-item .post-date {
    width: 8rem;
    flex-shrink: 0;
    margin-bottom: 0;
    padding-top: 0.35rem;
  }

  .post-item-content {
    flex: 1;
    min-width: 0;
  }
}

.post-item:hover {
  background: #fafafa !important;
}

.post-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: #18181b;
  transition: all 0.3s var(--ease-out-expo);
}

.post-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.post-item p {
  font-size: 1rem;
  line-height: 1.65;
  color: #71717a;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.read-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #18181b;
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.3s var(--ease-out-expo);
}

.post-item:hover .read-entry {
  opacity: 1;
  transform: translateX(0);
}

.read-entry svg {
  width: 12px;
  height: 12px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a1a1aa;
  transition: all 0.3s var(--ease-out-expo);
}

.post-item:hover .post-tag {
  color: var(--accent);
}

/* ============================================
   Projects Page
   ============================================ */

.projects-page,
.books-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 0;
}

.page-title-serif {
  font-size: clamp(3rem, 6vw, 3.75rem);
  font-family: var(--font-serif);
  font-style: italic;
  color: #09090b;
  margin: 0 0 1.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #71717a;
  line-height: 1.6;
  text-wrap: balance;
  margin: 0;
}

.projects-hero,
.books-hero {
  margin-bottom: 5rem;
}

/* --- Project Items (flat list) --- */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 1.5rem;
  margin: -0.5rem -1.5rem;
  border-radius: 1rem;
  transition: all 0.3s var(--ease-out-expo);
}

.project-item:hover {
  background: #fafafa;
}

.project-item:hover .post-tag {
  color: var(--accent);
}

.project-item + .project-item {
  padding-top: 3rem;
}

.project-item-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .project-item-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .project-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    padding-top: 0.35rem;
    color: #a1a1aa;
    transition: all 0.3s var(--ease-out-expo);
  }

  .project-item:hover .project-item-icon {
    color: var(--accent);
  }
}

.project-item-content {
  flex: 1;
  min-width: 0;
}

.project-item-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #18181b;
}

.project-item-content > p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #71717a;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

/* ============================================
   Books / Book Excerpts
   ============================================ */

.books-list {
  max-width: 48rem;
  margin: 3rem 0 0;
}

.book-excerpt {
  padding: 3rem 0;
  border-top: 1px solid #f4f4f5;
}

.book-excerpt:first-child {
  padding-top: 0;
  border-top: none;
}

.book-excerpt-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.book-quote {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.625;
  color: #52525b;
  text-indent: 2em;
  text-wrap: pretty;
  transition: color 0.5s var(--ease-out-expo);
  margin: 0;
  border: none;
  padding: 0;
}

@media (min-width: 640px) {
  .book-quote {
    font-size: 1.25rem;
  }
}

.group:hover .book-quote,
.book-excerpt:hover .book-quote {
  color: #18181b;
}

.book-quote-small {
  font-size: 0.875rem;
  line-height: 1.625;
}

.book-quote-mark {
  position: absolute;
  top: -0.75rem;
  left: -1rem;
  font-size: 3rem;
  font-family: var(--font-serif);
  line-height: 1;
  color: #e4e4e7;
  user-select: none;
  transition: color 0.5s var(--ease-out-expo);
}

.book-quote-mark-end {
  top: auto;
  left: auto;
  bottom: -1rem;
  right: -1rem;
}

.group:hover .book-quote-mark,
.book-excerpt:hover .book-quote-mark {
  color: #d4d4d8;
}

.book-attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 500;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.book-divider {
  opacity: 0.3;
}

.book-title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: normal;
}

.book-line {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: #e4e4e7;
  transition: background-color 0.5s var(--ease-out-expo);
}

.group:hover .book-line,
.book-excerpt:hover .book-line {
  background: #c7d2fe;
}

/* ============================================
   Blog Listing Page
   ============================================ */

.blog-listing-page {
  padding: 3rem 0;
}

.blog-listing-hero {
  margin-bottom: 5rem;
}

.blog-listing-item {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 1.5rem;
  margin: -0.5rem -1.5rem;
  border-radius: 1rem;
  transition: all 0.3s var(--ease-out-expo);
}

.blog-listing-item:hover {
  background: #fafafa;
}

.blog-listing-item:hover .post-tag {
  color: var(--accent);
}

.blog-listing-item:hover .read-entry {
  opacity: 1;
  transform: translateX(0);
}

.blog-listing-item + .blog-listing-item {
  margin-top: 0;
  padding-top: 3rem;
}

.blog-listing-item-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .blog-listing-item-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .blog-listing-item-inner .post-date {
    width: 8rem;
    flex-shrink: 0;
    padding-top: 0.5rem;
  }
}

.blog-listing-item-content {
  flex: 1;
  min-width: 0;
}

.blog-listing-item-content h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #18181b;
  transition: all 0.3s var(--ease-out-expo);
}

.blog-listing-item-content > p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #71717a;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.blog-listing-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
}

/* ============================================
   Blog Post Page
   ============================================ */

.blog-post {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

@media (min-width: 768px) {
  .blog-post {
    padding: 4rem 1.5rem 5rem;
  }
}

.blog-post .content-layout {
  display: flex;
  gap: 2rem;
  position: relative;
}

.blog-post .content-body {
  flex: 1;
  min-width: 0;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #a1a1aa;
  text-decoration: none;
  margin-bottom: 3rem;
  transition: all 0.3s var(--ease-out-expo);
}

.blog-post-back:hover {
  color: #18181b;
}

.blog-post-back svg {
  width: 12px;
  height: 12px;
  transition: all 0.3s var(--ease-out-expo);
}

.blog-post-back:hover svg {
  transform: translateX(-3px);
}

/* --- Post Header --- */

.blog-post-header {
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.blog-post-meta-separator {
  width: 1.5rem;
  height: 1px;
  background: #e4e4e7;
}

.blog-post-header h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
  text-wrap: pretty;
  margin: 0;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Prose Content --- */

.prose-custom h1,
.content-body h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #18181b;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose-custom h2,
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #18181b;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.prose-custom h3,
.content-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #18181b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-custom p,
.content-body p {
  font-size: 1.125rem;
  color: #52525b;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.prose-custom ul,
.content-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: #52525b;
  line-height: 1.75;
}

.prose-custom li::marker,
.content-body li::marker {
  color: #a1a1aa;
}

.prose-custom strong,
.content-body strong {
  font-weight: 600;
  color: #18181b;
}

.prose-custom pre.shiki,
.content-body pre.shiki {
  line-height: 1.4;
  border: 1px solid #073642;
  background: #002B36 !important;
}

.prose-custom pre.shiki code,
.content-body pre.shiki code {
  display: flex;
  flex-direction: column;
}

.prose-custom pre,
.content-body pre {
  font-family: var(--font-mono);
  font-size: 0.84375rem;
  line-height: 1.5;
  overflow-x: auto;
  max-width: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 1px solid #f4f4f5;
}

.prose-custom pre.shiki,
.content-body pre.shiki {
  border-color: #002b36;
}

.prose-custom pre.shiki.line-numbers,
.content-body pre.shiki.line-numbers {
  padding-left: 1.25rem;
}

.prose-custom pre.shiki .line,
.content-body pre.shiki .line {
  padding-left: 1.75rem;
  min-height: 1.4em;
}

.prose-custom pre.shiki.line-numbers .line::before,
.content-body pre.shiki.line-numbers .line::before {
  content: attr(data-line);
  position: absolute;
  left: 0;
  width: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.84375rem;
  text-align: right;
  color: #586e75;
  user-select: none;
}

.prose-custom pre.shiki .line.highlighted,
.content-body pre.shiki .line.highlighted {
  background: rgba(181, 137, 0, 0.15);
}

.prose-custom pre.shiki::-webkit-scrollbar,
.content-body pre.shiki::-webkit-scrollbar {
  height: 4px;
}

.prose-custom pre.shiki::-webkit-scrollbar-thumb,
.content-body pre.shiki::-webkit-scrollbar-thumb {
  background: #586e75;
  border-radius: 4px;
}

.prose-custom pre code,
.content-body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.prose-custom code,
.content-body code,
:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f4f4f5;
  color: #27272a;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .home-hero h1,
  .home-hero-subtitle,
  .home-hero-bio,
  .home-hero-links,
  .home-sidebar-inner,
  .blog-post-header {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

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

@media (max-width: 768px) {
  .home-hero h1 {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .post-item {
    margin: -0.5rem -0.75rem;
    padding: 1.25rem 0.75rem;
  }

  .post-item h2 {
    font-size: 1.125rem;
  }

  .blog-post {
    padding: 1.5rem 1rem 3rem;
  }

  .blog-post-header {
    margin-bottom: 2.5rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .home-section-link {
    display: none;
  }
}
