/* ==================== CSS CUSTOM PROPERTIES ==================== */
:root {
  /* Typography - Modern, minimalist, high-tech */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'source-serif-4', Georgia, 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
  
  /* Font sizes */
  --text-xs: 0.7rem;
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  
  /* Primary colors */
  --color-gold: #c9a959;
  --color-bronze: #8b7355;
  --color-text: #3a3a3a;
  --color-text-muted: #666;
  --color-bg: #faf8f5;
  --color-bg-alt: #f8f4ed;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(139, 115, 85, 0.08);
  --shadow-md: 0 4px 20px rgba(139, 115, 85, 0.12);
  --shadow-lg: 0 8px 30px rgba(139, 115, 85, 0.15);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
}

/* Load Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Dark mode overrides */
body.dark-mode {
  --color-text: #ece8e0;
  --color-text-muted: #9a968f;
  --color-bg: #141414;
  --color-bg-alt: #1a1a1a;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ==================== BASE TYPOGRAPHY ==================== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ==================== FONT LOADING OPTIMIZATION ==================== */
/* Ensure text remains visible during webfont load */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== BASE TYPOGRAPHY ==================== */
@media all {
  html {
    font-size: 22px;
  }
}

@media all and (max-width: 1600px) {
  html {
    font-size: 21px;
  }
}

@media all and (max-width: 1000px) {
  html {
    font-size: 20px;
  }
}

@media all and (max-width: 880px) {
  html {
    font-size: 19px;
  }
}

@media all and (max-width: 800px) {
  html {
    font-size: 18px;
  }
}

@media all and (max-width: 600px) {
  html {
    font-size: 17px;
  }
}

@media all and (max-width: 480px) {
  html {
    font-size: 16px;
  }
}

@media all and (min-width: 60px) {
  img:not(.icon) {
    min-width: 0%;
  }
}

/* ==================== BODY & LAYOUT ==================== */
body {
  position: relative;
  font-variant-numeric: oldstyle-nums;
  max-width: 1200px;
  min-width: 400px;
  width: 100%;
  min-height: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #3a3a3a;
  background-color: #faf8f5;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle noise texture for depth */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
}

body.dark-mode {
  color: #ece8e0;
  background-color: #141414;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

body>* {
  font-family: "source-serif-4", serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.7;
  margin-left: 4rem;
  margin-right: 2.5rem;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Slightly bolder text in dark mode for better readability */
body.dark-mode > * {
  font-weight: 520;
}

@media all and (max-width: 1200px) {
  body {
    min-width: auto;
    max-width: 100vw;
  }
  
  body>* {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

#content {
  width: 42rem;
  max-width: 100%;
  padding: 2rem 1rem 4rem 0rem;
}

/* Widescreen optimizations */
@media all and (min-width: 1400px) {
  body {
    max-width: 1400px;
  }
  
  #content {
    width: 52rem;
  }
  
  .pub-carousel {
    max-width: 1000px;
  }
  
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media all and (min-width: 1600px) {
  body {
    max-width: 1600px;
  }
  
  #content {
    width: 60rem;
  }
  
  .pub-carousel {
    max-width: 1100px;
  }
}

@media all and (min-width: 1920px) {
  body {
    max-width: 1800px;
  }
  
  #content {
    width: 70rem;
  }
  
  .pub-carousel {
    max-width: 1200px;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  margin-bottom: 2rem;
}

.avatar-container {
  display: block;
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.avatar-container:after {
  content: none !important;
}

/* Avatar hover effect - clean, no reflection */

.avatar-container img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#faf8f5, #faf8f5) padding-box,
              linear-gradient(135deg, #c9a959, #8b7355) border-box;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .avatar-container img {
  background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
              linear-gradient(135deg, #c9a959, #8b7355) border-box;
}

.avatar-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(201, 169, 89, 0.25);
}

body.dark-mode .avatar-container img:hover {
  box-shadow: 0 12px 40px rgba(201, 169, 89, 0.15);
}

/* ==================== JOB MARKET BANNER ==================== */
.job-market-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(248, 244, 237, 0.95) 0%, rgba(255, 249, 240, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 89, 0.35);
  border-radius: 14px;
  padding: 1.35rem 1.75rem;
  margin: 1.5rem 0 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(139, 115, 85, 0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.job-market-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(201, 169, 89, 0.18);
  border-color: rgba(201, 169, 89, 0.5);
}

body.dark-mode .job-market-banner {
  background: linear-gradient(135deg, rgba(37, 37, 37, 0.9) 0%, rgba(42, 37, 32, 0.9) 100%);
  border-color: rgba(201, 169, 89, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.dark-mode .job-market-banner:hover {
  box-shadow: 0 8px 35px rgba(201, 169, 89, 0.15);
  border-color: rgba(201, 169, 89, 0.45);
}

.job-market-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c9a959, #8b7355);
  border-radius: 12px 0 0 12px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.job-market-banner:hover::before {
  width: 6px;
  box-shadow: 0 0 10px rgba(201, 169, 89, 0.3);
}

/* Subtle shimmer effect on banner */
.job-market-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 89, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.job-market-banner:hover::after {
  left: 100%;
}

.job-market-banner .banner-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.job-market-banner .banner-icon {
  font-size: 1.1rem;
}

.job-market-banner .banner-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7a6040;
  margin: 0;
}

body.dark-mode .job-market-banner .banner-title {
  color: #d4b96a;
}

.job-market-banner .banner-text {
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

body.dark-mode .job-market-banner .banner-text {
  color: #c0bab0;
}

/* ==================== FANCY QUOTE ==================== */
.fancy-quote {
  position: relative;
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  font-family: 'source-serif-4', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #5a5a5a;
  border-left: 3px solid #c9a959;
}

body.dark-mode .fancy-quote {
  color: #c4bfb4;
  border-left-color: #c9a959;
}

.fancy-quote::before,
.fancy-quote::after {
  content: none;
}

/* ==================== WIGNER QUOTE SECTION ==================== */
.wigner-quote-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.03) 0%, rgba(201, 169, 89, 0.01) 100%);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 89, 0.15);
}

.wigner-portrait {
  flex-shrink: 0;
  text-align: center;
}

.wigner-portrait img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.wigner-portrait img:hover {
  transform: scale(1.05);
}

.wigner-caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a5a5a;
  line-height: 1.4;
}

.wigner-nobel {
  font-size: 0.7rem;
  font-weight: 400;
  color: #888;
}

.wigner-quote-content {
  flex: 1;
}

.wigner-quote {
  position: relative;
  font-family: 'source-serif-4', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
  padding: 0;
  border: none;
}

.aging-highlight {
  position: relative;
  font-weight: 600;
  color: #c9a959;
  background: linear-gradient(120deg, rgba(201, 169, 89, 0.15) 0%, rgba(201, 169, 89, 0.25) 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    background: linear-gradient(120deg, rgba(201, 169, 89, 0.15) 0%, rgba(201, 169, 89, 0.25) 100%);
    box-shadow: 0 0 0 rgba(201, 169, 89, 0);
  }
  50% {
    background: linear-gradient(120deg, rgba(201, 169, 89, 0.25) 0%, rgba(201, 169, 89, 0.35) 100%);
    box-shadow: 0 0 15px rgba(201, 169, 89, 0.3);
  }
}

/* Dark mode styles */
body.dark-mode .wigner-quote-section {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(201, 169, 89, 0.03) 100%);
  border-color: rgba(201, 169, 89, 0.25);
}

body.dark-mode .wigner-portrait img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .wigner-caption {
  color: #c4bfb4;
}

body.dark-mode .wigner-nobel {
  color: #9a968f;
}

body.dark-mode .wigner-quote {
  color: #c4bfb4;
}

body.dark-mode .aging-highlight {
  color: #d4b66a;
  background: linear-gradient(120deg, rgba(201, 169, 89, 0.2) 0%, rgba(201, 169, 89, 0.3) 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wigner-quote-section {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  
  .wigner-portrait {
    align-self: center;
  }
  
  .wigner-portrait img {
    width: 100px;
    height: 100px;
  }
  
  .wigner-quote {
    font-size: 0.9rem;
    text-align: center;
  }
}

/* ==================== INTRO TEXT ==================== */
.intro-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.75;
  margin-top: 0.5rem;
  color: #3a3a3a;
}

body.dark-mode .intro-text {
  color: #d0cbc0;
}

/* ==================== SECTION LABELS ==================== */
.sidenote {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  margin-left: -6rem;
  line-height: 1.35;
  color: var(--color-bronze);
  opacity: 0.5;
}

body.dark-mode .sidenote {
  color: var(--color-gold);
  opacity: 0.4;
}

.sidenote a img {
  min-width: 0%;
  background: #faf8f5;
  border-radius: 100%;
  padding: 1px;
}

body.dark-mode .sidenote a img {
  background: #c9a959;
}

@media all and (max-width: 1200px) {
  .sidenote {
    color: #666;
    padding: 1rem 0.5rem 0 0;
    margin-left: 0rem;
  }
  
  body.dark-mode .sidenote {
    color: #9a968e;
  }

  #doc .sidenote {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem !important;
    color: #666;
    padding: 1rem 0.5rem 0 0;
    margin-left: 0rem;
    border-radius: 5px;
  }

  #doc .sidenote:has(img) {
    border: none;
    max-width: 600px;
    margin-left: 0rem;
    min-width: 0%;
  }
}

/* ==================== NEWS/RECENT ITEMS ==================== */
.news-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.news-container::-webkit-scrollbar {
  display: none;
}

.news-container .recent {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

/* Masonry-style layout for tablet+ */
@media (min-width: 768px) {
  .news-container {
    display: block;
    column-count: 2;
    column-gap: 0.7rem;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  
  .news-container .recent {
    break-inside: avoid;
    margin-bottom: 0.7rem;
    display: inline-block;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .news-container {
    column-gap: 0.85rem;
  }
  
  .news-container .recent {
    margin-bottom: 0.85rem;
  }
}

.recent {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(250, 248, 245, 0.4) 100%);
  border: 1px solid rgba(201, 169, 89, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .recent {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(25, 25, 25, 0.5) 100%);
  border-color: rgba(201, 169, 89, 0.15);
}

.recent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 169, 89, 0.25), rgba(139, 115, 85, 0.15));
  border-radius: 10px 0 0 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(139, 115, 85, 0.04) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 115, 85, 0.1);
  border-color: rgba(201, 169, 89, 0.25);
}

.recent:hover::before {
  background: linear-gradient(180deg, #c9a959, #8b7355);
}

body.dark-mode .recent:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(201, 169, 89, 0.35);
}

body.dark-mode .recent:hover::before {
  box-shadow: 0 0 8px rgba(201, 169, 89, 0.3);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.news-icon {
  width: 22px;
  height: 22px;
  opacity: 0.8;
  transition: all 0.25s ease;
}

.recent:hover .news-icon {
  opacity: 1;
  transform: scale(1.1);
}

.recent .date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-bronze);
  padding: 0.3rem 0.55rem;
  background: rgba(201, 169, 89, 0.1);
  border-radius: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .recent .date {
  color: #d4b96a;
  background: rgba(201, 169, 89, 0.18);
  border-color: rgba(201, 169, 89, 0.3);
}

.recent .date:hover {
  background: rgba(201, 169, 89, 0.2);
  border-color: rgba(201, 169, 89, 0.4);
  transform: scale(1.05);
}

body.dark-mode .recent .date:hover {
  background: rgba(201, 169, 89, 0.25);
}

.recent a {
  flex: 1;
  color: #4a4a4a;
  line-height: 1.55;
  transition: color 0.2s ease;
}

body.dark-mode .recent a {
  color: #c4bfb4;
}

.recent:hover a {
  color: #6b5a45;
}

body.dark-mode .recent:hover a {
  color: #d4c9a9;
}

.recent a:after {
  content: none !important;
}

/* Featured news item (first item) */
.recent:first-child {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(139, 115, 85, 0.04) 100%);
  border: 1px solid rgba(201, 169, 89, 0.15);
}

body.dark-mode .recent:first-child {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.12) 0%, rgba(139, 115, 85, 0.06) 100%);
  border-color: rgba(201, 169, 89, 0.2);
}

.recent:first-child::before {
  height: 70%;
}

.recent:first-child:hover::before {
  height: 85%;
}

.recent:first-child .date {
  background: rgba(201, 169, 89, 0.15);
  color: #8b7355;
}

body.dark-mode .recent:first-child .date {
  background: rgba(201, 169, 89, 0.2);
  color: #c9a959;
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons a:hover {
  transform: translateY(-2px);
}

img.icon {
  width: initial;
  height: 1.4rem;
  background: #f0ebe4;
  border-radius: 8px;
  padding: 8px;
  margin: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode img.icon {
  background: #2a2520;
  filter: brightness(0.9);
}

.social-icons a:hover img.icon {
  background: #c9a959;
  box-shadow: 0 6px 20px rgba(201, 169, 89, 0.4);
  transform: translateY(-2px) scale(1.1);
}

body.dark-mode .social-icons a:hover img.icon {
  background: #c9a959;
  box-shadow: 0 6px 20px rgba(201, 169, 89, 0.35);
}

/* ==================== NAVIGATION ==================== */
.menu-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

body.dark-mode .menu-item {
  color: #c5c0b8;
}

.menu-item:hover {
  color: #8b7355;
  background: rgba(201, 169, 89, 0.12);
  border-color: rgba(201, 169, 89, 0.25);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 12px rgba(201, 169, 89, 0.15);
}

.menu-item:hover .menu-icon {
  opacity: 1;
  transform: scale(1.1);
}

body.dark-mode .menu-item:hover {
  color: #c9a959;
  background: rgba(201, 169, 89, 0.18);
  border-color: rgba(201, 169, 89, 0.3);
  box-shadow: 0 4px 12px rgba(201, 169, 89, 0.2);
}

/* Active/current page indicator */
.menu-item[aria-current="page"] {
  color: #8b7355;
  background: rgba(201, 169, 89, 0.15);
}

.menu-item[aria-current="page"] .menu-icon {
  opacity: 1;
}

body.dark-mode .menu-item[aria-current="page"] {
  color: #c9a959;
  background: rgba(201, 169, 89, 0.2);
}

/* Contact page icons */
.contact-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  vertical-align: middle;
  margin-right: 0.3rem;
}

/* Banner icon */
.banner-icon {
  width: 20px;
  height: 20px;
}

.list {
  margin: 0;
}

.title {
  text-decoration: none;
}

/* ==================== HEADINGS ==================== */
h1 {
  font-family: "source-serif-4", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-mode h1 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-mode h1 {
  color: #f0ebe4;
}

h2,
h3 {
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
  color: #2a2a2a;
  letter-spacing: -0.01em;
}

body.dark-mode h2,
body.dark-mode h3 {
  color: #e8e4dc;
}

h4 {
  font-family: var(--font-sans);
  font-size: 100%;
  font-weight: 700;
  font-variant-numeric: oldstyle-nums;
}

.os {
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
}

.signature {
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
}

th {
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
}

/* ==================== ARTICLE NAVIGATION ==================== */
.article-nav-inner {
  position: absolute;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.95;
  left: 2rem;
  top: 1rem;
  width: auto;
  border-bottom: none;
  background: rgba(250, 248, 245, 0.95);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.dark-mode .article-nav-inner {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Menu items in article nav */
.article-nav-inner .menu-item {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  border: none;
  background: transparent;
}

.article-nav-inner .menu-icon {
  width: 16px;
  height: 16px;
}

.article-nav-inner .menu-item:hover {
  background: rgba(201, 169, 89, 0.12);
  transform: none;
  box-shadow: none;
}

h2.article-title {
  text-transform: none;
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
}

.nav-inner a.internal {
  text-transform: none;
  font-variant-caps: petite-caps;
  font-variant-numeric: oldstyle-nums;
}

/* ==================== MISC IMAGE SIZES ==================== */
.img-small {
  width: 50%;
  height: auto;
}

.img-tiny {
  width: 10%;
  height: auto;
}

.img-container {
  width: 50%;
  margin: auto;
}

/* ==================== ANIMATIONS & TRANSITIONS ==================== */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Typing cursor */
.fancy-quote.typing::after {
  content: '|';
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
  font-style: normal;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Subtle fade-in for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  animation: fadeInUp 0.6s ease-out;
}

.job-market-banner {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.wigner-quote-section {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.fancy-quote {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.intro-text {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.clockbase-highlight {
  animation: fadeInUp 0.6s ease-out 0.35s both;
}

.news-container {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Link styling refinement */
p a, .intro-text a {
  color: #8b7355;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

body.dark-mode p a,
body.dark-mode .intro-text a {
  color: #c9a959;
  border-bottom-color: rgba(201, 169, 89, 0.3);
}

p a:hover, .intro-text a:hover {
  border-bottom-color: #8b7355;
}

body.dark-mode p a:hover,
body.dark-mode .intro-text a:hover {
  border-bottom-color: #c9a959;
}

p a:after, .intro-text a:after {
  content: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media all and (max-width: 1200px) {
  .hero-section {
    text-align: center;
  }
  
  .avatar-container {
    margin: 0 auto 1.5rem auto;
  }
  
  .menu-container {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .job-market-banner {
    margin-left: 0;
    margin-right: 0;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media all and (max-width: 600px) {
  .avatar-container {
    width: 110px;
    height: 110px;
  }
  
  .avatar-container img {
    width: 110px;
    height: 110px;
  }
  
  .menu-container {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .menu-item {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    gap: 0.25rem;
  }
  
  .menu-icon {
    width: 14px;
    height: 14px;
  }
}

/* ==================== SCROLL-TRIGGERED ANIMATIONS ==================== */
.fade-in-element {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-element.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Avatar 3D tilt transition */
.avatar-container img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Social icons magnetic effect */
.social-icons a {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Hero section parallax support */
.hero-section {
  will-change: opacity, transform;
}

/* Link underline animation */
.intro-text a, p a {
  position: relative;
  --underline-width: 0%;
}

.intro-text a::after, 
p a::after {
  content: '' !important;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: var(--underline-width, 0%);
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

/* Smooth color transitions for theme toggle */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, p, a, .sidenote, .recent .date {
  transition: color 0.4s ease;
}

.job-market-banner,
.recent,
img.icon,
.theme-toggle {
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Selection styling */
::selection {
  background: rgba(201, 169, 89, 0.3);
  color: inherit;
}

body.dark-mode ::selection {
  background: rgba(201, 169, 89, 0.4);
}

/* ==================== RESEARCH PAGE ==================== */
/* Force override theme's small-caps styling for all doc headings */
#doc h1,
#doc h2,
#doc h3,
main#content h1,
main#content h2,
main#content h3 {
  font-variant-caps: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
}

#doc h1 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #6a5540;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(201, 169, 89, 0.3);
  font-variant-numeric: tabular-nums;
}

body.dark-mode #doc h1 {
  color: #d4b96a;
  border-bottom-color: rgba(201, 169, 89, 0.4);
}

/* Year heading specific styling for better readability */
#doc h1[id^="20"],
#doc h1[id^="19"] {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.15) 0%, rgba(139, 115, 85, 0.08) 100%);
  border: 1px solid rgba(201, 169, 89, 0.3);
  border-radius: 8px;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5a4a35;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-variant-caps: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

#doc h1[id^="20"]::before,
#doc h1[id^="19"]::before {
  content: '◆';
  font-size: 0.6rem;
  color: #c9a959;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

#doc h1[id^="20"]:hover,
#doc h1[id^="19"]:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.18) 0%, rgba(139, 115, 85, 0.1) 100%);
  border-color: rgba(201, 169, 89, 0.4);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(201, 169, 89, 0.15);
}

body.dark-mode #doc h1[id^="20"],
body.dark-mode #doc h1[id^="19"] {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.2) 0%, rgba(139, 115, 85, 0.12) 100%);
  border-color: rgba(201, 169, 89, 0.4);
  color: #d4b96a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode #doc h1[id^="20"]:hover,
body.dark-mode #doc h1[id^="19"]:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.22) 0%, rgba(139, 115, 85, 0.12) 100%);
  box-shadow: 0 4px 15px rgba(201, 169, 89, 0.2);
}

/* Ensure strong element inside year headings has consistent styling */
#doc h1[id^="20"] strong,
#doc h1[id^="19"] strong {
  font-family: inherit;
  font-weight: 700;
  font-variant: normal !important;
  font-variant-caps: normal !important;
  color: inherit;
}

/* Publication card container */
#doc h4 {
  font-family: "source-serif-4", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2a2a2a;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#doc h4:hover {
  background: rgba(201, 169, 89, 0.05);
  transform: translateX(4px);
}

body.dark-mode #doc h4 {
  color: #e8e4dc;
}

body.dark-mode #doc h4:hover {
  background: rgba(201, 169, 89, 0.08);
}

#doc h4 a {
  color: inherit;
  border-bottom: 1px solid rgba(201, 169, 89, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

#doc h4 a:hover {
  border-bottom-color: #c9a959;
  color: #8b7355;
}

body.dark-mode #doc h4 a:hover {
  color: #c9a959;
}

#doc h4 a:after {
  content: none !important;
}

#doc h5 {
  font-family: "source-serif-4", serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.25rem;
}

body.dark-mode #doc h5 {
  color: #9a9590;
}

#doc h5 ins {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.15) 0%, rgba(139, 115, 85, 0.1) 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

body.dark-mode #doc h5 ins {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.25) 0%, rgba(139, 115, 85, 0.15) 100%);
}

/* Publication TLDR */
#doc code {
  font-family: "source-serif-4", serif;
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  background: none;
  padding: 0;
}

body.dark-mode #doc code {
  color: #9a9590;
}

/* Journal names */
#doc p em strong,
#doc p strong em {
  font-style: italic;
  color: #8b7355;
}

body.dark-mode #doc p em strong,
body.dark-mode #doc p strong em {
  color: #c9a959;
}

/* Altmetric badges */
.altmetric-embed {
  margin-bottom: 0.5rem;
}

/* ==================== TALKS PAGE ==================== */
#doc iframe {
  border-radius: 12px;
  margin: 1rem 0 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

body.dark-mode #doc iframe {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Talk list items */
#doc ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

#doc ul li strong {
  color: #3a3a3a;
}

body.dark-mode #doc ul li strong {
  color: #e8e4dc;
}

/* Talk event styling */
#doc ul li strong:first-child {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(201, 169, 89, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

#doc ul li:hover strong:first-child {
  background: rgba(201, 169, 89, 0.2);
}

body.dark-mode #doc ul li strong:first-child {
  background: rgba(201, 169, 89, 0.15);
}

body.dark-mode #doc ul li:hover strong:first-child {
  background: rgba(201, 169, 89, 0.25);
}

/* ==================== ABOUT PAGE ==================== */
#doc .sidenote img {
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#faf8f5, #faf8f5) padding-box,
              linear-gradient(135deg, #c9a959, #8b7355) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode #doc .sidenote img {
  background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
              linear-gradient(135deg, #c9a959, #8b7355) border-box;
}

#doc .sidenote img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.dark-mode #doc .sidenote img:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ==================== POETRY PAGE ==================== */
blockquote:not(.fancy-quote) {
  font-family: "source-serif-4", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 3px solid rgba(201, 169, 89, 0.5);
  background: rgba(201, 169, 89, 0.03);
  border-radius: 0 8px 8px 0;
}

body.dark-mode blockquote:not(.fancy-quote) {
  color: #b8b4ac;
  border-left-color: rgba(201, 169, 89, 0.6);
  background: rgba(201, 169, 89, 0.05);
}

/* ==================== ACCESSIBILITY ==================== */

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid #c9a959;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #c9a959;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Ensure sufficient color contrast */
strong, b {
  font-weight: 600;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  
  .theme-toggle,
  .scroll-to-top,
  .reading-progress,
  .site-footer,
  .menu-container,
  .social-icons {
    display: none !important;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  .job-market-banner {
    border: 1px solid #000;
    background: none !important;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .avatar-container img {
    border: 2px solid #000;
    background: none !important;
  }
}

/* ==================== PARTICLE BACKGROUND ==================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

body.dark-mode #particle-canvas {
  opacity: 0.6;
}

/* ==================== ENHANCED HOVER CARDS ==================== */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(139, 115, 85, 0.15);
}

body.dark-mode .hover-lift:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ==================== GLOWING ACCENTS ==================== */
.glow-accent {
  position: relative;
}

.glow-accent::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.3), rgba(139, 115, 85, 0.1));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.glow-accent:hover::after {
  opacity: 1;
}

/* ==================== ANIMATED GRADIENT BORDERS ==================== */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #c9a959, #8b7355, #c9a959, #8b7355);
  background-size: 300% 300%;
  border-radius: inherit;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradient-shift 4s ease infinite;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ==================== ENHANCED SIDENOTE FOR MONTHS ==================== */
#doc .sidenote {
  font-variant-caps: normal;
  font-variant-numeric: tabular-nums;
}

/* Month labels in talks page */
.sidenote:not(:has(img)):not(:has(.altmetric-embed)) {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7355;
}

body.dark-mode .sidenote:not(:has(img)):not(:has(.altmetric-embed)) {
  color: #c9a959;
}

/* ==================== SMOOTH REVEAL ANIMATION ==================== */
@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
}

.reveal-on-scroll.revealed {
  animation: slideReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ==================== INTERACTIVE CURSOR GLOW ==================== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 169, 89, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

body.dark-mode .cursor-glow {
  background: radial-gradient(circle, rgba(201, 169, 89, 0.12) 0%, transparent 70%);
}

/* ==================== PUBLICATION CARD ENHANCEMENTS ==================== */
#doc h4 {
  position: relative;
  overflow: hidden;
}

#doc h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a959, transparent);
  transition: left 0.5s ease;
}

#doc h4:hover::after {
  left: 100%;
}

/* ==================== ENHANCED IFRAME CONTAINERS ==================== */
#doc iframe {
  position: relative;
  border: 1px solid rgba(201, 169, 89, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#doc iframe:hover {
  border-color: rgba(201, 169, 89, 0.4);
  box-shadow: 0 8px 30px rgba(201, 169, 89, 0.15);
}

body.dark-mode #doc iframe:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ==================== CUSTOM SCROLLBAR ==================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f0ede8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a959, #8b7355);
  border-radius: 5px;
  border: 2px solid #f0ede8;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d4b86a, #9a846a);
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  border-color: #1a1a1a;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #c9a959 #f0ede8;
}

body.dark-mode * {
  scrollbar-color: #c9a959 #1a1a1a;
}

/* ==================== PUBLICATIONS CAROUSEL ==================== */
.pub-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  overflow: hidden;
  padding: 1rem 1rem 2rem;
  perspective: 1200px;
}

.pub-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.pub-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

/* Show multiple cards on wider screens */
@media (min-width: 900px) {
  .pub-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}

@media (min-width: 1400px) {
  .pub-card {
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: calc(33.333% - 0.67rem);
  }
}

.pub-card-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.95) 100%);
  border: 1px solid rgba(201, 169, 89, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(201, 169, 89, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.pub-card-inner:hover {
  box-shadow: 0 12px 40px rgba(201, 169, 89, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(201, 169, 89, 0.4);
}

.pub-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a959, #8b7355, #c9a959);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

body.dark-mode .pub-card-inner {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
  border-color: rgba(201, 169, 89, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .pub-card-inner:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.pub-figure {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.pub-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.pub-card-inner:hover .pub-figure img {
  transform: scale(1.05);
}

body.dark-mode .pub-figure {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.15) 0%, rgba(139, 115, 85, 0.1) 100%);
}

.pub-journal {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9a959;
  background: rgba(201, 169, 89, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.pub-title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

body.dark-mode .pub-title {
  color: #e8e8e8;
}

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

.pub-title a:hover {
  color: #c9a959;
}

.pub-authors {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

body.dark-mode .pub-authors {
  color: #aaa;
}

.pub-authors .highlight {
  color: #c9a959;
  font-weight: 600;
}

.pub-tldr {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #555;
  line-height: 1.55;
  padding: 0.85rem;
  margin-top: auto;
  background: rgba(201, 169, 89, 0.06);
  border-radius: 6px;
  border-left: 3px solid var(--color-gold);
}

body.dark-mode .pub-tldr {
  color: #bbb;
  background: rgba(201, 169, 89, 0.08);
}

.pub-year {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(139, 115, 85, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

body.dark-mode .pub-year {
  color: rgba(201, 169, 89, 0.5);
}

/* Carousel Navigation */
.pub-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pub-nav-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(201, 169, 89, 0.5);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #c9a959;
}

.pub-nav-btn:hover {
  background: rgba(201, 169, 89, 0.2);
  border-color: #c9a959;
  transform: scale(1.1);
}

.pub-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.pub-dots {
  display: flex;
  gap: 0.5rem;
}

.pub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 169, 89, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pub-dot.active {
  background: #c9a959;
  transform: scale(1.3);
}

.pub-dot:hover:not(.active) {
  background: rgba(201, 169, 89, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .pub-card-inner {
    padding: 1rem;
  }
  
  .pub-title {
    font-size: 0.95rem;
  }
  
  .pub-year {
    font-size: 1.2rem;
  }
  
  .pub-figure img {
    border-radius: 6px;
  }
  
  .pub-carousel {
    margin: 1rem 0;
    padding: 0.5rem;
    overflow: hidden;
    perspective: none;
  }
  
  .pub-carousel-track {
    transform-style: flat;
  }
  
  .pub-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 0.25rem;
  }
  
  .pub-carousel-nav {
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .pub-nav-btn {
    width: 36px;
    height: 36px;
  }
  
  .pub-tldr {
    font-size: 0.8rem;
    padding: 0.6rem;
  }
  
  .pub-authors {
    font-size: 0.8rem;
  }
  
  .pub-journal {
    font-size: 0.65rem;
  }
}

/* Mobile-first improvements */
@media (max-width: 480px) {
  body {
    min-width: 320px;
  }
  
  .hero-section .title {
    font-size: 1.4rem;
  }
  
  .intro-text {
    font-size: 0.95rem;
  }
  
  .pub-authors {
    font-size: 0.75rem;
  }
  
  .pub-tldr {
    font-size: 0.78rem;
    padding: 0.7rem;
  }
  
  .recent {
    padding: 0.85rem 1rem;
  }
  
  .news-icon {
    width: 18px;
    height: 18px;
  }
  
  .recent .date {
    font-size: 0.65rem;
  }
  
  .recent a {
    font-size: 0.85rem;
  }
}

/* ==================== ENHANCED PAGE STYLING ==================== */

/* Page titles */
#doc h1:first-of-type,
.page-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(201, 169, 89, 0.3);
}

/* Section headers with subtle accent */
#doc h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--color-gold);
}

/* Talk/event list items */
#doc ul li {
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.04) 0%, transparent 100%);
  border-radius: 6px;
  transition: all 0.2s ease;
}

#doc ul li:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(139, 115, 85, 0.04) 100%);
  transform: translateX(4px);
}

body.dark-mode #doc ul li {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.06) 0%, transparent 100%);
}

body.dark-mode #doc ul li:hover {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.1) 0%, rgba(139, 115, 85, 0.05) 100%);
}

/* Talk titles (bold text in list) */
#doc ul li strong {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-text);
}

/* Talk descriptions (italic text) */
#doc ul li em {
  color: var(--color-text-muted);
  font-size: 0.92em;
}

/* Enhanced iframe containers for videos */
#doc iframe {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
  max-width: 100%;
}

body.dark-mode #doc iframe {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Contact section styling */
.contact-section {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.05) 0%, rgba(139, 115, 85, 0.02) 100%);
  border: 1px solid rgba(201, 169, 89, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.contact-section p {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

body.dark-mode .contact-section {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.06) 0%, rgba(139, 115, 85, 0.03) 100%);
  border-color: rgba(201, 169, 89, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 169, 89, 0.15);
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
}

body.dark-mode .contact-item {
  background: rgba(40, 40, 40, 0.6);
  border-color: rgba(201, 169, 89, 0.2);
}

.contact-item:hover {
  background: rgba(201, 169, 89, 0.12);
  border-color: rgba(201, 169, 89, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .contact-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-item a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 89, 0.3);
  transition: all 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-item a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Research publication cards */
#doc h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

#doc h4 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

#doc h4 a:hover {
  color: var(--color-gold);
}

/* Author lines */
#doc h5 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0.25rem 0 0.5rem;
}

/* Highlighted author name */
#doc h5 ins {
  text-decoration: none;
  color: var(--color-gold);
  font-weight: 600;
}

/* Journal names */
#doc p em:first-child {
  font-style: normal;
  font-weight: 500;
  color: var(--color-bronze);
}

body.dark-mode #doc p em:first-child {
  color: var(--color-gold);
}

/* TLDR blocks */
#doc p code {
  background: rgba(201, 169, 89, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85em;
  color: var(--color-bronze);
}

body.dark-mode #doc p code {
  background: rgba(201, 169, 89, 0.15);
  color: var(--color-gold);
}

/* Page dividers */
#doc hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 89, 0.3) 50%, transparent 100%);
  margin: 2rem 0;
}

/* About page avatar enhancement */
#doc .sidenote img {
  border: 3px solid rgba(201, 169, 89, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode #doc .sidenote img {
  border-color: rgba(201, 169, 89, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== CLOCKBASE AGENT HIGHLIGHT ==================== */
.clockbase-highlight {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.08) 0%, rgba(139, 115, 85, 0.04) 100%);
  border: 1px solid rgba(201, 169, 89, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clockbase-highlight:hover {
  border-color: rgba(201, 169, 89, 0.4);
  box-shadow: 0 4px 20px rgba(201, 169, 89, 0.1);
}

body.dark-mode .clockbase-highlight {
  background: linear-gradient(135deg, rgba(201, 169, 89, 0.12) 0%, rgba(139, 115, 85, 0.06) 100%);
  border-color: rgba(201, 169, 89, 0.25);
}

body.dark-mode .clockbase-highlight:hover {
  border-color: rgba(201, 169, 89, 0.5);
  box-shadow: 0 4px 20px rgba(201, 169, 89, 0.15);
}

.clockbase-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  background: rgba(201, 169, 89, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

body.dark-mode .clockbase-badge {
  background: rgba(201, 169, 89, 0.2);
}

.clockbase-title {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.clockbase-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem 0;
}

.clockbase-description a {
  color: var(--color-bronze);
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}

body.dark-mode .clockbase-description a {
  color: var(--color-gold);
  border-bottom-color: rgba(201, 169, 89, 0.3);
}

.clockbase-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201, 169, 89, 0.4);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.clockbase-link:hover {
  background: rgba(201, 169, 89, 0.15);
  border-color: var(--color-gold);
}

.clockbase-link:after {
  content: none !important;
}

.clockbase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clockbase-link-paper {
  color: var(--color-text-muted);
  border-color: rgba(139, 115, 85, 0.3);
}

.clockbase-link-paper:hover {
  color: var(--color-gold);
}

.clockbase-citation {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  opacity: 0.7;
  margin: 0 0 0.75rem 0;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid rgba(201, 169, 89, 0.3);
  background: rgba(201, 169, 89, 0.04);
  border-radius: 0 4px 4px 0;
}

.clockbase-citation a {
  color: var(--color-bronze);
}

body.dark-mode .clockbase-citation a {
  color: var(--color-gold);
}

.clockbase-citation a:after {
  content: none !important;
}

/* ==================== HIDE SKIP LINK ON MOBILE ==================== */
@media all and (max-width: 1200px) {
  .skip-link {
    display: none !important;
  }
}

/* ==================== APPLE-STYLE POLISH ==================== */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Reading progress indicator */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(201, 169, 89, 0.5);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(201, 169, 89, 0.3);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(201, 169, 89, 0.4);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

body.dark-mode .back-to-top {
  box-shadow: 0 4px 20px rgba(201, 169, 89, 0.2);
}

/* Scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Text reveal animation keyframes */
@keyframes textRevealChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero parallax support */
.hero-section {
  will-change: transform;
}

.avatar-container {
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Enhanced link hover effects */
#doc a:not(.menu-item):not(.pub-title a) {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(var(--color-gold), var(--color-gold));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

#doc a:not(.menu-item):not(.pub-title a):hover {
  background-size: 100% 2px;
}

/* Glassmorphism effect for cards on hover */
.pub-card-inner:hover,
.recent:hover {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Subtle glow on focus for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Mobile back to top positioning */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
  }
}

/* ==================== BLOG / LIST PAGE LAYOUT FIX ==================== */

/* Make hanging-subtitle flow normally instead of absolute margin positioning */
/* This prevents overlap with body text on typical viewport widths */
#doc > .hanging-subtitle {
  position: relative;
  left: 0;
  width: auto;
  float: none;
  text-align: left;
  margin-bottom: 2rem;
}

#doc > .hanging-subtitle p:first-child {
  border-top: 2px solid var(--color-gold);
  padding-top: 0.5rem;
  display: inline-block;
}

#doc > .hanging-subtitle p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-bronze);
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

body.dark-mode #doc > .hanging-subtitle p {
  color: var(--color-gold);
  opacity: 0.7;
}

/* Blog post images */
#doc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

body.dark-mode #doc img {
  opacity: 0.9;
}

/* Read time in hanging subtitle */
.read-time {
  font-style: italic;
  opacity: 0.6;
}

/* Blog tags */
.blog-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 89, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-bronze);
  background: rgba(201, 169, 89, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.blog-tag:hover {
  background: rgba(201, 169, 89, 0.2);
  color: var(--color-text);
}

.blog-tag:after {
  content: none !important;
}

body.dark-mode .blog-tag {
  color: var(--color-gold);
  background: rgba(201, 169, 89, 0.15);
}

body.dark-mode .blog-tag:hover {
  background: rgba(201, 169, 89, 0.25);
}

/* Blog share links */
.blog-share {
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-share-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bronze);
  opacity: 0.5;
}

.blog-share-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-bronze);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(201, 169, 89, 0.3);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.blog-share-link:hover {
  background: rgba(201, 169, 89, 0.1);
  border-color: var(--color-gold);
}

.blog-share-link:after {
  content: none !important;
}

body.dark-mode .blog-share-label {
  color: var(--color-gold);
}

body.dark-mode .blog-share-link {
  color: var(--color-gold);
  border-color: rgba(201, 169, 89, 0.3);
}

body.dark-mode .blog-share-link:hover {
  background: rgba(201, 169, 89, 0.15);
}

/* ==================== BLOG LISTING PAGE ==================== */
.blog-list-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 169, 89, 0.15);
}

.blog-list-item:last-child {
  border-bottom: none;
}

.blog-list-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.blog-list-date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-bronze);
  opacity: 0.6;
}

.blog-list-readtime {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--color-bronze);
  opacity: 0.4;
}

.blog-list-title {
  margin-bottom: 0.35rem;
}

.blog-list-description {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-text);
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.blog-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-list-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-bronze);
  opacity: 0.5;
}

body.dark-mode .blog-list-date,
body.dark-mode .blog-list-readtime {
  color: var(--color-gold);
}

body.dark-mode .blog-list-description {
  opacity: 0.6;
}

body.dark-mode .blog-list-tag {
  color: var(--color-gold);
}
