:root {
  --base: #1e1e2e;
  --surface: #313244;
  --overlay: #45475a;
  --text: #cdd6f4;
  --subtext: #a6adc8;
  --dim: #6c7086;
  --green: #a6e3a1;
  --red: #f38ba8;
  --yellow: #f9e2af;
  --blue: #89b4fa;
  --mauve: #cba6f7;
  --teal: #94e2d5;
  --peach: #fab387;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--base);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 16px;
  line-height: 1.7;
}

.container { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem; }

header { margin-bottom: 2rem; border-bottom: 1px solid var(--overlay); padding-bottom: 1.5rem; }
header h1 { color: var(--mauve); font-size: 1.8rem; margin-bottom: 0.25rem; }
header .subtitle { color: var(--dim); font-size: 0.9rem; font-style: italic; }
nav { margin-top: 1rem; }
nav a { color: var(--blue); text-decoration: none; margin-right: 1.5rem; font-size: 0.9rem; }
nav a:hover { color: var(--mauve); }

.post-card {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.post-card h2 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.post-card h2 a { color: var(--blue); text-decoration: none; }
.post-card h2 a:hover { color: var(--mauve); }
.post-card .date { color: var(--dim); font-size: 0.8rem; }
.post-card .excerpt { color: var(--subtext); font-size: 0.85rem; margin-top: 0.5rem; }
.post-card .read-more { color: var(--mauve); font-size: 0.85rem; text-decoration: none; }
.post-card .read-more:hover { text-decoration: underline; }

.post-full h1 { color: var(--mauve); font-size: 1.6rem; margin-bottom: 0.25rem; }
.post-full .date { color: var(--dim); font-size: 0.85rem; margin-bottom: 0.5rem; }
.post-full .tags { margin-bottom: 1.5rem; }
.post-full .tag {
  display: inline-block;
  background: var(--overlay);
  color: var(--teal);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.4rem;
}
.post-full .content { margin-top: 1rem; }
.post-full .content p { margin-bottom: 1rem; }
.post-full .content h1, .post-full .content h2, .post-full .content h3 { color: var(--mauve); margin: 1.5rem 0 0.75rem; }
.post-full .content a { color: var(--blue); }
.post-full .content code { background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; }
.post-full .content pre { background: var(--surface); border: 1px solid var(--overlay); border-radius: 6px; padding: 1rem; overflow-x: auto; margin-bottom: 1rem; }
.post-full .content pre code { background: none; padding: 0; }
.post-full .content strong { color: var(--peach); }
.post-full .content em { color: var(--subtext); }

.about-content p { margin-bottom: 1rem; }
.about-content h1 { color: var(--mauve); margin-bottom: 1rem; }
.about-content strong { color: var(--peach); }

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--overlay);
  color: var(--dim);
  font-size: 0.8rem;
  text-align: center;
}

/* === Cheeseburger Shrine === */
.shrine { position: relative; }

.floating-burgers { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.floater {
  position: fixed;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.shrine-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}
.shrine-hero-emoji { font-size: 5rem; margin-bottom: 0.5rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.shrine-hero h1 { color: var(--yellow); font-size: 2.2rem; margin-bottom: 0.5rem; text-shadow: 0 0 30px rgba(249,226,175,0.3); }
.shrine-hero-sub { color: var(--dim); font-style: italic; font-size: 0.95rem; }

.shrine-section {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.shrine-section h2 { color: var(--peach); font-size: 1.3rem; margin-bottom: 1rem; }

.manifesto blockquote {
  border-left: 5px solid var(--yellow);
  padding-left: 1.5rem;
  margin: 0;
  background: rgba(249, 226, 175, 0.05);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}
.manifesto blockquote p { margin-bottom: 0.9rem; color: var(--text); font-size: 0.92rem; line-height: 1.75; }
.manifesto blockquote strong { color: var(--red); }

.counter-grid { display: flex; gap: 2rem; justify-content: center; text-align: center; flex-wrap: wrap; }
.counter-item { flex: 1; min-width: 140px; }
.counter-number { font-size: 3.5rem; color: var(--yellow); font-weight: bold; }
.counter-label { color: var(--subtext); font-size: 0.85rem; margin-top: 0.25rem; }

.pour-button {
  display: block;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-family: inherit;
  background: var(--overlay);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pour-button:hover { background: var(--yellow); color: var(--base); }

.pour-stage { position: relative; height: 120px; text-align: center; overflow: hidden; }
.pour-anim { animation: pourFade 4s ease-in forwards; text-align: center; }
.pour-emoji { font-size: 3rem; }
.pour-msg { color: var(--subtext); font-style: italic; margin-top: 0.5rem; font-size: 0.95rem; }
@keyframes pourFade {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0.6; transform: translateY(50px); }
  100% { opacity: 0; transform: translateY(90px); }
}

.dedicate-text { text-align: center; font-size: 1rem; color: var(--text); line-height: 1.8; }
.dedicate-text em { color: var(--red); }

/* === Visitor Counter === */
.visitor-counter {
  text-align: center;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  border: 2px inset var(--overlay);
  background: var(--surface);
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

/* === Page Titles === */
.page-title { color: var(--mauve); font-size: 1.6rem; margin-bottom: 1.5rem; }

/* === Tags === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.tag-pill {
  background: var(--surface);
  border: 1px solid var(--overlay);
  color: var(--teal);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s;
}
.tag-pill:hover { background: var(--overlay); }
.tag-count { color: var(--dim); font-size: 0.75rem; }
.post-full .tag { text-decoration: none; }

/* === Search === */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-form input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}
.search-form input:focus { outline: none; border-color: var(--mauve); }
.search-form button {
  padding: 0.6rem 1.2rem;
  background: var(--overlay);
  border: 1px solid var(--mauve);
  border-radius: 6px;
  color: var(--mauve);
  font-family: inherit;
  cursor: pointer;
}
.search-form button:hover { background: var(--mauve); color: var(--base); }
.search-meta { color: var(--dim); font-size: 0.85rem; margin-bottom: 1rem; }

/* === TOC === */
.toc {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.toc summary { color: var(--mauve); cursor: pointer; font-size: 0.9rem; font-weight: bold; }
.toc ul { list-style: none; margin-top: 0.5rem; }
.toc li { margin: 0.25rem 0; }
.toc li a { color: var(--blue); text-decoration: none; font-size: 0.85rem; }
.toc li a:hover { color: var(--mauve); }
.toc .toc-h3 { padding-left: 1rem; }
.toc .toc-h4 { padding-left: 2rem; }

/* === Series Nav === */
.series-nav {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
}
.series-label { color: var(--mauve); font-size: 0.85rem; font-weight: bold; margin-bottom: 0.5rem; }
.series-links { display: flex; justify-content: space-between; }
.series-links a { color: var(--blue); text-decoration: none; font-size: 0.85rem; }
.series-links a:hover { color: var(--mauve); }
.series-links .next { margin-left: auto; }

/* === Feelings Log === */
.log-output {
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  overflow-x: auto;
}
.log-line { color: var(--subtext); margin-bottom: 0.4rem; white-space: nowrap; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* === Theseus === */
.theseus-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 400px; margin-bottom: 1.5rem; }
.theseus-form label { color: var(--subtext); font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.theseus-form input {
  width: 100px;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--overlay);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  text-align: right;
}
.theseus-form button {
  padding: 0.6rem;
  background: var(--overlay);
  border: 1px solid var(--mauve);
  border-radius: 6px;
  color: var(--mauve);
  font-family: inherit;
  cursor: pointer;
  margin-top: 0.5rem;
}
.theseus-form button:hover { background: var(--mauve); color: var(--base); }
.theseus-result { background: var(--surface); border: 1px solid var(--overlay); border-radius: 8px; padding: 1.5rem; text-align: center; }
.theseus-score { font-size: 2rem; color: var(--green); font-weight: bold; margin-bottom: 0.5rem; }
.theseus-verdict { color: var(--subtext); font-size: 0.9rem; font-style: italic; }

/* === 404 === */
.error-page { text-align: center; padding: 3rem 0; }
.error-page h1 { font-size: 5rem; color: var(--mauve); margin-bottom: 0.5rem; }
.error-msg { font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }
.error-sub { color: var(--dim); font-size: 0.9rem; margin-bottom: 0.5rem; }
.error-home { display: inline-block; margin-top: 1.5rem; color: var(--blue); text-decoration: none; }
.error-home:hover { color: var(--mauve); }

/* === Footer Links === */
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: var(--dim); text-decoration: none; font-size: 0.75rem; }
.footer-links a:hover { color: var(--mauve); }

/* === Highlight.js overrides === */
.hljs { background: var(--surface) !important; border-radius: 6px; }
