@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css");
/* ==========================================================================
   Luna Moth Design System - Luxury Monospace Theme
   ========================================================================== */
:root {
  /* Luna Moth Color Palette - Light Mode */
  --color-bg-primary: #fdfcfc;
  --color-bg-secondary: #f8f7f5;
  --color-bg-tertiary: #f0efed;
  --color-bg-code: #f4f3f1;
  --color-bg-accent: #e8f4f8;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #4a4a4a;
  --color-text-muted: #6b7280;
  --color-text-inverse: #fdfcfc;
  --color-accent-primary: #2d5f6f; /* Rich deep teal */
  --color-accent-secondary: #1e3a44; /* Darker teal */
  --color-accent-purple: #5b4b7c; /* Deep purple */
  --color-accent-purple-light: #7d6ba8; /* Lighter purple */
  --color-border: #e5e7eb;
  --color-border-accent: #2d5f6f;
  --luna-gradient: linear-gradient(135deg, #2d5f6f 0%, #5b4b7c 100%);
  --luna-gradient-soft: linear-gradient(135deg, rgba(45, 95, 111, 0.1) 0%, rgba(91, 75, 124, 0.1) 100%);
  /* Typography */
  --font-mono: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  --font-display: "JetBrains Mono", monospace;
  /* Spacing & Layout */
  --container-max-width: 1400px;
  --content-max-width: 800px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 95, 111, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 95, 111, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 95, 111, 0.16);
}

/* Dark Mode */
[data-theme=dark] {
  --color-bg-primary: #0f1419;
  --color-bg-secondary: #1a1f26;
  --color-bg-tertiary: #242b35;
  --color-bg-code: #1e252d;
  --color-bg-accent: #1a2832;
  --color-text-primary: #e6e8ea;
  --color-text-secondary: #c1c7cd;
  --color-text-muted: #9ca3af;
  --color-text-inverse: #0f1419;
  --color-accent-primary: #4a9db8; /* Brighter teal for dark mode */
  --color-accent-secondary: #6bb5d1; /* Even brighter teal */
  --color-accent-purple: #8b7aa8; /* Lighter purple for dark mode */
  --color-accent-purple-light: #a394c7;
  --color-border: #2d3748;
  --color-border-accent: #4a9db8;
  --luna-gradient: linear-gradient(135deg, #4a9db8 0%, #8b7aa8 100%);
  --luna-gradient-soft: linear-gradient(135deg, rgba(74, 157, 184, 0.15) 0%, rgba(139, 122, 168, 0.15) 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--luna-gradient);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--color-text-inverse);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--luna-gradient-soft);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-accent-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--color-accent-secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--luna-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main Content Area */
.site-main {
  flex: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

/* Luna Moth Hero Section */
.luna-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background: var(--luna-gradient-soft);
}

.luna-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("/assets/images/lunamoth.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

.luna-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.luna-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-accent-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.luna-hero p {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  margin: 0 0 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Typography & Content Styles
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin: 2rem 0 1rem 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1.5rem 0;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Lists */
ul, ol {
  margin: 0 0 1.5rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
}

/* Blockquotes */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-accent-primary);
  border-radius: var(--border-radius);
  font-style: italic;
}

blockquote p {
  margin: 0;
  color: var(--color-text-primary);
}

/* ==========================================================================
   Code Highlighting & Syntax
   ========================================================================== */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-code);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: var(--color-accent-purple);
  font-weight: 500;
  text-shadow: none;
}

pre {
  font-family: var(--font-mono);
  background: var(--color-bg-code);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  text-shadow: none;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--color-text-primary);
}

/* Custom Copy Button Styling for Rouge */
.copy-code-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--luna-gradient);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

pre:hover .copy-code-button {
  opacity: 1;
}

.copy-code-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Post & Article Styles
   ========================================================================== */
.post-list {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.post-card {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-primary);
}

.post-card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.post-card h2 a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--color-accent-primary);
}

.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.post-excerpt {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Single Post Layout */
.post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem 0;
  color: var(--color-text-primary);
}

.post-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  gap: 2rem;
}

.nav-previous,
.nav-next {
  flex: 1;
  text-align: center;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  color: var(--color-accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.nav-title:hover {
  color: var(--color-accent-secondary);
}

/* Post Tags */
.post-tags {
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--color-bg-accent);
  color: var(--color-accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--color-accent-primary);
  color: var(--color-text-inverse);
}

/* Archive Styles */
.archive-year {
  margin: 3rem 0 2rem 0;
}

.archive-year h2 {
  color: var(--color-accent-primary);
  border-bottom: 2px solid var(--color-accent-primary);
  padding-bottom: 0.5rem;
}

.archive-post {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.archive-date {
  flex-shrink: 0;
  width: 120px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.archive-content {
  flex: 1;
}

.archive-content h3 {
  margin: 0 0 0.5rem 0;
}

.archive-content h3 a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.archive-content h3 a:hover {
  color: var(--color-accent-primary);
}

.archive-excerpt {
  color: var(--color-text-secondary);
  margin: 0;
}

/* Projects Grid */
.projects-container {
  margin: 2rem 0;
}

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

.project-card {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
  width: 100%;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 95, 111, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  color: var(--color-text-inverse);
}

.view-project {
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.external-link-icon {
  width: 20px;
  height: 20px;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text-primary);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--luna-gradient);
  color: var(--color-text-inverse);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text-inverse);
}

/* Page Layout */
.page {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  color: var(--color-text-primary);
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Utility Classes */
.citation {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-left: 4px solid var(--color-accent-primary);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-secondary);
}

.center {
  text-align: center;
}

.clear-both {
  clear: both;
}

.scaling.left {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 300px;
}

/* Embedded Content */
.youtube_resize {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 2rem 0;
}

.youtube_frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
}

/* Social Media Embeds */
.twitter-tweet {
  margin: 2rem auto !important;
  max-width: 500px;
}

.twitter-tweet.tw-align-center {
  text-align: center;
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-item {
  display: flex;
  flex-direction: column;
}

/* Panel System */
.panel {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  padding: 1rem;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.panel-body {
  padding: 1rem;
}

/* Graph Containers */
.graph-container {
  margin: 2rem 0;
}

.graph {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}

/* Flex Utilities */
.flex {
  display: flex;
  gap: 1rem;
}

.flex.center {
  justify-content: center;
  align-items: center;
}

.flex-child {
  flex: 1;
}

.flex-child.mr {
  margin-right: 2rem;
}

/* Font Awesome Icon Styling */
.fab, .fa, .fas, .far, .fal, .fad, .fa-brands {
  color: var(--color-accent-primary);
  margin-right: 0.5rem;
  transition: color 0.2s ease;
}

a .fab, a .fa, a .fas, a .far, a .fal, a .fad, a .fa-brands {
  color: inherit;
}

a:hover .fab, a:hover .fa, a:hover .fas, a:hover .far, a:hover .fal, a:hover .fad, a:hover .fa-brands {
  color: var(--color-accent-secondary);
}

/* Social Media Icons in Lists */
ul li .fab, ul li .fa, ul li .fas, ul li .far, ul li .fal, ul li .fad, ul li .fa-brands {
  margin-right: 0.75rem;
  width: 1.2em;
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  margin-top: 4rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-moth-container {
  margin-top: 2rem;
  text-align: center;
}

.footer-moth {
  width: 32px;
  height: 32px;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-moth:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
  .site-nav {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-main {
    padding: 2rem 1rem;
  }
  .luna-hero {
    min-height: 50vh;
    margin-bottom: 2rem;
  }
  .luna-hero-content {
    padding: 1rem;
  }
  .post-card {
    padding: 1.5rem;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  .theme-toggle {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .luna-hero h1 {
    font-size: 2rem;
  }
  .post-content {
    font-size: 1rem;
  }
}
/* ==========================================================================
   Rouge Syntax Highlighting - Unified Theme
   ========================================================================== */
.highlight {
  background: var(--color-bg-code);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

div.highlight {
  margin: auto;
  margin-bottom: 1em;
}

.highlight pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: none;
}

.highlight code {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  text-shadow: none;
}

/* Rouge Syntax Tokens */
.highlight .c,
.highlight .cd,
.highlight .cm,
.highlight .c1,
.highlight .cs { /* Comment.Special */
  color: var(--color-text-muted);
  font-style: italic;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt { /* Keyword.Type */
  color: var(--color-accent-purple);
  font-weight: 600;
}

.highlight .s,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .s1,
.highlight .ss { /* String.Symbol */
  color: var(--color-accent-primary);
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .il,
.highlight .mo { /* Number.Oct */
  color: var(--color-accent-secondary);
  font-weight: 500;
}

.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .nc,
.highlight .no,
.highlight .nd,
.highlight .ni,
.highlight .ne,
.highlight .nf,
.highlight .nl,
.highlight .nn,
.highlight .nx,
.highlight .py,
.highlight .nt,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi { /* Name.Variable.Instance */
  color: var(--color-text-primary);
}

.highlight .nf,
.highlight .nc { /* Name.Class */
  color: var(--color-accent-purple);
  font-weight: 600;
}

.highlight .o,
.highlight .ow { /* Operator.Word */
  color: var(--color-accent-purple-light);
  font-weight: 600;
}

.highlight .p { /* Punctuation */
  color: var(--color-text-primary);
}

/*# sourceMappingURL=main.css.map */