/* 
NOTE: This entire file was generated by an LLM.

Playing around with webcomponents and other bits is fun, but writing CSS is not.
I haven't even read through it at the time of commiting. 
It just guessed what I wanted based on the class names I had put in the HTML.
Hopefully it hasn't stolen any copyrighted code!
If it has, I apologize to the original author(s) and will remove it immediately upon notification.
*/


/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
  /* Colors - Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-elevated: #ffffff;
  --fg-primary: #1a1a2e;
  --fg-secondary: #4a5568;
  --fg-muted: #718096;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  
  /* Layout */
  --max-width: 680px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-elevated: #252540;
    --fg-primary: #f1f5f9;
    --fg-secondary: #cbd5e1;
    --fg-muted: #94a3b8;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(129, 140, 248, 0.15);
    --border: #2d2d44;
    --border-hover: #3d3d5c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  }
}

/* ========================================
   Base Reset & Typography
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg-primary);
  color: var(--fg-primary);
  min-height: 100vh;
}

/* Subtle gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* ========================================
   Main Container
   ======================================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (min-width: 640px) {
  main {
    padding: 3rem 2rem 5rem;
  }
}

/* ========================================
   Links
   ======================================== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ========================================
   Site Header
   ======================================== */
site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-color-scheme: dark) {
  site-header {
    background: rgba(15, 15, 26, 0.85);
  }
}

site-header main {
  padding: 1rem 1.5rem;
  margin: 0 auto;
}

site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  site-header main {
    padding: 1.25rem 2rem;
  }
}

site-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

site-header h1 a {
  color: var(--fg-primary);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}

site-header h1 a:hover {
  opacity: 0.8;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: 
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ========================================
   Post List (Index Page)
   ======================================== */
.post-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-list li {
  margin: 0;
}

.post-list a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--fg-primary);
  box-shadow: var(--shadow-sm);
  transition: 
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

@media (min-width: 480px) {
  .post-list a {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}

.post-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.post-title {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

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

.post-list time {
  color: var(--fg-muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

/* ========================================
   Blog Post Content
   ======================================== */
post-content {
  display: block;
}

post-content main {
  animation: fadeInUp 0.5s ease-out;
}

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

post-content header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

post-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--fg-primary);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

post-content header time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

post-content header time::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Growth Stage Indicator */
.growth-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: help;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.growth-stage:hover {
  transform: scale(1.05);
}

.growth-emoji {
  font-size: 1rem;
  line-height: 1;
}

.growth-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stage-specific colors */
.growth-stage[data-stage="seedling"] {
  background: linear-gradient(135deg, rgba(134, 239, 172, 0.2) 0%, rgba(74, 222, 128, 0.15) 100%);
  color: #16a34a;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.growth-stage[data-stage="sprout"] {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.2) 0%, rgba(52, 211, 153, 0.15) 100%);
  color: #059669;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.growth-stage[data-stage="growing"] {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2) 0%, rgba(20, 184, 166, 0.15) 100%);
  color: #0d9488;
  border: 1px solid rgba(20, 184, 166, 0.4);
}

.growth-stage[data-stage="tree"] {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

@media (prefers-color-scheme: dark) {
  .growth-stage[data-stage="seedling"] {
    color: #86efac;
  }
  .growth-stage[data-stage="sprout"] {
    color: #6ee7b7;
  }
  .growth-stage[data-stage="growing"] {
    color: #5eead4;
  }
  .growth-stage[data-stage="tree"] {
    color: #fcd34d;
  }
}

/* Article content typography */
post-content article {
  font-size: 1.0625rem;
  color: var(--fg-secondary);
}

post-content article p {
  margin-bottom: 1.5rem;
}

post-content article p:last-child {
  margin-bottom: 0;
}

post-content article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

post-content article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-primary);
  margin: 2rem 0 0.75rem;
}

post-content article strong {
  color: var(--fg-primary);
  font-weight: 600;
}

post-content article em {
  font-style: italic;
}

post-content article blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg-secondary);
  font-style: italic;
}

post-content article blockquote p:last-child {
  margin-bottom: 0;
}

post-content article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

post-content article pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow-x: auto;
  border: 1px solid var(--border);
}

post-content article pre code {
  padding: 0;
  background: none;
  color: var(--fg-primary);
  font-size: 0.875rem;
  line-height: 1.6;
}

post-content article ul,
post-content article ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

post-content article li {
  margin-bottom: 0.5rem;
}

post-content article a {
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

post-content article a:hover {
  text-decoration-color: var(--accent);
}

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

post-content article hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: var(--border);
}

/* ========================================
   Selection Style
   ======================================== */
::selection {
  background: var(--accent-soft);
  color: var(--fg-primary);
}

/* ========================================
   Scrollbar (Webkit)
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-muted);
}
