@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=DM+Sans:wght@400;500;600&family=Share+Tech+Mono&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
}

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b1020;
  --card: #0e1527;
  --text: #e9f5ff;
  --muted: #7ea0c4;
  --accent: #7df9c2;
  --accent-2: #39b9ff;
  --border: rgba(125, 249, 194, 0.24);
  --glow-1: rgba(125, 249, 194, 0.08);
  --glow-2: rgba(57, 185, 255, 0.08);
  --shadow: 0 18px 60px rgba(3, 6, 12, 0.55);
  --code-bg: #060c18;
  --code-text: #e9f5ff;
  --bg-gradient: radial-gradient(circle at 15% 20%, rgba(125, 249, 194, 0.08), transparent 22%),
    radial-gradient(circle at 82% 6%, rgba(57, 185, 255, 0.1), transparent 28%),
    linear-gradient(145deg, #05070d 0%, #060b15 35%, #071020 65%, #05070d 100%);
  --hero-gradient: radial-gradient(circle at 10% 30%, rgba(125, 249, 194, 0.18), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(57, 185, 255, 0.12), transparent 26%);
}

html[data-theme='light'] {
  --bg: #dfeefa;
  --bg-soft: #eef5ff;
  --card: #f4f8ff;
  --text: #0c1424;
  --muted: #4a5b77;
  --accent: #0f9b8e;
  --accent-2: #2563eb;
  --border: rgba(12, 20, 36, 0.12);
  --glow-1: rgba(15, 155, 142, 0.16);
  --glow-2: rgba(37, 99, 235, 0.16);
  --shadow: 0 14px 34px rgba(12, 18, 32, 0.14);
  --code-bg: #eef3ff;
  --code-text: #0c1424;
  --bg-gradient: radial-gradient(circle at 15% 18%, rgba(15, 155, 142, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(145deg, #dfeefa 0%, #eef5ff 45%, #dfeefa 100%);
  --hero-gradient: radial-gradient(circle at 10% 30%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(15, 155, 142, 0.14), transparent 30%);
  color-scheme: light;
}

html {
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "DM Sans", "Share Tech Mono", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  margin: 0;
  transition: background 200ms ease, color 200ms ease;
  position: relative;
  min-height: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -10% 0;
  background:
    linear-gradient(90deg, rgba(125, 249, 194, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(57, 185, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 70%, rgba(125, 249, 194, 0.08), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(57, 185, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 35%);
  pointer-events: none;
  z-index: -2;
}

html[data-theme='light'] body {
  background: var(--bg-gradient);
}

html[data-theme='light'] body::after {
  background: radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.12), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(15, 155, 142, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), transparent 35%);
}

body.nav-open,
body.toc-open {
  overflow: hidden;
}

main.page-content {
  flex: 1 0 auto;
}

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

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

::selection {
  background: rgba(125, 249, 194, 0.25);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 2.2rem 0 3.5rem;
}

.muted {
  color: var(--muted);
}

.dot {
  color: var(--muted);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px) saturate(140%);
  padding-top: 0.6rem;
  overflow: visible;
}

html[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(12, 18, 32, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Share Tech Mono", monospace;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(125, 249, 194, 0.1), 0 0 22px var(--accent);
  animation: brandPulse 2.4s ease-in-out infinite;
}

@keyframes brandPulse {
  0% {
    box-shadow: 0 0 0 6px rgba(125, 249, 194, 0.08), 0 0 20px var(--accent);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(57, 185, 255, 0.08), 0 0 24px var(--accent-2);
  }

  100% {
    box-shadow: 0 0 0 6px rgba(125, 249, 194, 0.08), 0 0 20px var(--accent);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-family: "Share Tech Mono", monospace;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: linear-gradient(120deg, rgba(125, 249, 194, 0.08), rgba(57, 185, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.2rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: transform 150ms ease, color 150ms ease;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.icon-btn:hover {
  transform: translateY(-1px);
  color: var(--accent);
}

.icon {
  display: inline-flex;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 150ms ease, color 150ms ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  color: var(--accent);
}

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 14px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 12px;
}

.nav-links.open+.nav-icons .nav-toggle-bars span:nth-child(1),
.nav-toggle.is-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-links.open+.nav-icons .nav-toggle-bars span:nth-child(2),
.nav-toggle.is-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-links.open+.nav-icons .nav-toggle-bars span:nth-child(3),
.nav-toggle.is-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-label {
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

html[data-theme='light'] .site-footer {
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-note-right {
  margin-left: auto;
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-label {
  color: var(--muted);
}

.footer-note {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}


.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
  font-family: "Share Tech Mono", monospace;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eyebrow::before {
  content: "▹";
  color: var(--accent-2);
  font-size: 0.9em;
}

.lede {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 60ch;
  background: linear-gradient(90deg, rgba(125, 249, 194, 0.08), transparent 35%);
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1.05rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
  letter-spacing: 0.02em;
  font-family: "Share Tech Mono", monospace;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border: none;
  box-shadow: 0 15px 35px rgba(57, 185, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
}

.social-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}

.icon-pill .icon svg {
  width: 18px;
  height: 18px;
}

.pill-text {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
}

.link-pill {
  background: var(--bg-soft);
  color: var(--text);
}

.ghost-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.icon-pill:hover,
.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.15);
}


.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}



.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 0.65rem;
  color: var(--accent);
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(125, 249, 194, 0.35);
  position: relative;
  animation: heroGlitch 4s infinite linear alternate;
}

@keyframes heroGlitch {

  0%,
  95% {
    text-shadow: 2px 2px 0 rgba(57, 185, 255, 0.3), -2px -2px 0 rgba(125, 249, 194, 0.25);
  }

  96% {
    text-shadow: 4px -2px 0 rgba(57, 185, 255, 0.6), -4px 2px 0 rgba(125, 249, 194, 0.5);
  }

  100% {
    text-shadow: -2px 4px 0 rgba(57, 185, 255, 0.6), 2px -4px 0 rgba(125, 249, 194, 0.5);
  }
}

/* Home title color tweak for light mode */
html[data-theme='light'] .hero h1 {
  color: #0f9b8e;
  text-shadow: none;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background: rgba(125, 249, 194, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: "Share Tech Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-chip.accent {
  background: linear-gradient(120deg, rgba(125, 249, 194, 0.16), rgba(57, 185, 255, 0.14));
}

.meta-chip.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}



.terminal-card {
  background: linear-gradient(160deg, rgba(7, 11, 22, 0.95), rgba(6, 14, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

html[data-theme='light'] .terminal-card {
  background: linear-gradient(150deg, #ffffff, #eef3ff);
  border: 1px solid rgba(12, 20, 36, 0.08);
  box-shadow: 0 12px 30px rgba(12, 18, 32, 0.08);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(125, 249, 194, 0.14), rgba(57, 185, 255, 0.1));
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 700;
}

html[data-theme='light'] .terminal-header {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.14), rgba(15, 155, 142, 0.1));
  color: #0c1424;
  border-bottom: 1px solid rgba(12, 20, 36, 0.08);
}

.term-title {
  margin-left: auto;
  font-size: 0.85rem;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.red {
  background: #ff6b6b;
}

.term-dot.yellow {
  background: #ffd166;
}

.term-dot.green {
  background: #7df9c2;
}

.terminal-body {
  font-family: "Share Tech Mono", monospace;
  color: var(--text);
  padding: 1rem 1.1rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  background: radial-gradient(circle at 20% 20%, rgba(57, 185, 255, 0.08), transparent 45%);
  min-height: 148px;
}

html[data-theme='light'] .terminal-body {
  color: #0c1424;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 45%);
}


.highlights {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

.highlights h2 {
  margin: 0 0 0.75rem;
}

.highlights ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}

.card {
  background: linear-gradient(150deg, rgba(14, 21, 39, 0.9), rgba(10, 15, 28, 0.92));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

html[data-theme='light'] .card {
  background: linear-gradient(150deg, #ffffff, #eef3ff);
  border: 1px solid rgba(12, 20, 36, 0.08);
  box-shadow: 0 12px 30px rgba(12, 18, 32, 0.08);
}

.note {
  color: var(--text);
}


.top-posts {
  margin: 2.5rem 0;
}

.top-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.top-post-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.rank {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #0b1020;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.top-post-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.top-post-body .title {
  color: var(--text);
  font-weight: 700;
}

.top-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}


.latest {
  margin: 2rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-header::after {
  content: "";
  width: 100%;
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(125, 249, 194, 0.35), rgba(57, 185, 255, 0));
  border-radius: 999px;
}

.section-header h2,
.section-header h1 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-note {
  margin: 0 0 0.1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-header.inline {
  flex-direction: row;
  align-items: baseline;
  gap: 0.4rem;
}

.section-header.inline::after {
  display: none;
}

.section-note-inline {
  color: var(--muted);
  font-size: 1rem;
}

.see-all {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.see-all:hover {
  color: var(--accent);
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  position: relative;
  background: linear-gradient(160deg, rgba(14, 21, 39, 0.9), rgba(11, 16, 30, 0.95));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(125, 249, 194, 0.08), rgba(57, 185, 255, 0.06));
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 0;
}

.post-card>* {
  position: relative;
  z-index: 1;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 249, 194, 0.35);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.post-card:hover::before {
  opacity: 1;
}

html[data-theme='light'] .post-card {
  background: linear-gradient(150deg, #ffffff, #eef3ff);
  border: 1px solid rgba(12, 20, 36, 0.08);
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.08);
}

html[data-theme='light'] .post-card::before {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(15, 155, 142, 0.1));
}

html[data-theme='light'] .post-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 38px rgba(12, 18, 32, 0.12);
}

.post-meta {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  font-family: "Share Tech Mono", monospace;
}

.post-title {
  margin: 0.35rem 0 0.5rem;
  line-height: 1.3;
}

html[data-theme='light'] .post-title,
html[data-theme='light'] .post-link {
  color: #0c1424;
}

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

html[data-theme='light'] .post-excerpt {
  color: #2b3242;
}

.post-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.post-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.28rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(125, 249, 194, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
}

html[data-theme='light'] .post-tags .tag {
  background: rgba(12, 20, 36, 0.06);
  border-color: rgba(12, 20, 36, 0.08);
  color: #0c1424;
}

.post-link {
  color: var(--text);
  text-decoration: none;
}

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


.post {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.post-shell {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

.post-main {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(160deg, rgba(14, 21, 39, 0.95), rgba(10, 16, 28, 0.96));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.post-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(125, 249, 194, 0.08), rgba(57, 185, 255, 0.06));
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
}

.post-main>* {
  position: relative;
  z-index: 1;
}

html[data-theme='light'] .post-main {
  background: linear-gradient(160deg, #ffffff, #eef3ff);
  border: 1px solid rgba(12, 20, 36, 0.08);
  box-shadow: 0 14px 34px rgba(12, 18, 32, 0.12);
}

html[data-theme='light'] .post-main::before {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(15, 155, 142, 0.06));
  opacity: 0.4;
  mix-blend-mode: normal;
}

.post-main+.toc-card {
  margin-left: 0;
}


.toc-card {
  flex: 0 0 300px;
  order: 1;
  position: sticky;
  top: 1.5rem;
  background: linear-gradient(170deg, rgba(10, 15, 28, 0.95), rgba(8, 12, 22, 0.94));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 3rem);
  overflow: auto;
}

html[data-theme='light'] .toc-card {
  background: linear-gradient(160deg, #ffffff, #eef3ff);
  border: 1px solid rgba(12, 20, 36, 0.08);
  box-shadow: 0 12px 30px rgba(12, 18, 32, 0.12);
}

.toc-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}

.toc-list.depth-2 {
  border-left: 1px dashed var(--border);
  margin-left: 1.6rem;
  padding-left: 0;
  margin-top: 0.2rem;
}

.toc-list.depth-3 {
  border-left: 1px dashed var(--border);
  margin-left: 1.6rem;
  padding-left: 0.6rem;
  margin-top: 0.2rem;
}

.toc-item a {
  display: block;
  padding: 0.25rem 0.4rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

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

.toc-item.active>a {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 700;
}

.toc-item.depth-2 {
  font-size: 0.88rem;
}

.toc-item.depth-2 a {
  color: var(--muted);
}

.toc-item.active>a {
  color: var(--accent);
  font-weight: 700;
}

.toc-item.depth-2.active>a {
  font-weight: 600;
}

.toc-item.depth-3 a {
  font-size: 0.82rem;
  color: var(--muted);
}

.toc-item.depth-3.active>a {
  color: var(--accent);
  font-weight: 600;
}

.post-meta-line {
  color: var(--muted);
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.post .post-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.tag-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.post-body {
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--accent);
}

/* Keep headings neutral in light mode */
html[data-theme='light'] .post-body h2,
html[data-theme='light'] .post-body h3,
html[data-theme='light'] .post-body h4 {
  color: var(--text);
  font-weight: 800;
}

.post-body p {
  margin: 0 0 1rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.post-body blockquote {
  margin: 1.2rem 0;
  padding: 0.1rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.post-body th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
}

/* Make the first column look like a clear index/number column */
.post-body td:first-child,
.post-body th:first-child {
  width: 4.5rem;
  text-align: center;
  font-weight: 700;
}

.post-body tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme='light'] .post-body tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.03);
}


.tags-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 150ms ease, border-color 150ms ease;
}

.tag-tile:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tag-name {
  font-weight: 600;
}

.tag-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9em;
}

.tag-section {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.tag-post-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.tag-post-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  flex-wrap: wrap;
}

img {
  max-width: 100%;
}

/* Blog images: moderate width, left-aligned */
.post-main img {
  display: block;
  margin: 1.25rem 0;
  width: 90%;
  max-width: 360px;
  height: auto;
}

@media (max-width: 720px) {
  .post-main img {
    width: 100%;
  }
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}


:root {
  --code-bg: #060c18;
  --code-text: #e9f5ff;
  --code-border: rgba(125, 249, 194, 0.18);
  --code-header: #070d18;
  --code-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --code-dot-red: #ff5f56;
  --code-dot-yellow: #ffbd2e;
  --code-dot-green: #7df9c2;
  --code-accent: #7df9c2;
  --code-toolbar-bg: rgba(255, 255, 255, 0.05);
  --code-toolbar-hover: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] {
  --code-bg: #eef3ff;
  --code-text: #0b1220;
  --code-border: rgba(11, 18, 32, 0.12);
  --code-header: #e7eefb;
  --code-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --code-dot-red: #ff6b6b;
  --code-dot-yellow: #ffd166;
  --code-dot-green: #0f9b8e;
  --code-accent: #2563eb;
  --code-toolbar-bg: rgba(15, 23, 42, 0.06);
  --code-toolbar-hover: rgba(15, 23, 42, 0.12);
}

figure.highlight,
div.highlight {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  box-shadow: var(--code-shadow);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

figure.highlight::before,
div.highlight::before {
  content: "";
  display: block;
  height: 44px;
  background: var(--code-header);
  border-bottom: 1px solid var(--code-border);
  pointer-events: none;
}

figure.highlight::after,
div.highlight::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--code-dot-red);
  box-shadow:
    16px 0 0 var(--code-dot-yellow),
    32px 0 0 var(--code-dot-green);
  pointer-events: none;
}

.code-actions {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: auto;
}

.code-lang {
  font: 700 12px/1 "Fira Code", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--code-text);
  opacity: 0.78;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--code-border);
  background: var(--code-toolbar-bg);
  color: var(--code-text);
  font: 700 11px/1 "Fira Code", "JetBrains Mono", monospace;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: var(--code-toolbar-hover);
  border-color: var(--code-accent);
  color: var(--code-accent);
}

.copy-btn.copied {
  color: var(--code-accent);
  border-color: var(--code-accent);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

figure.highlight pre,
div.highlight pre {
  margin: 0;
  padding: 1rem 1.2rem 1.3rem;
  background: transparent;
  color: var(--code-text) !important;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  font-size: .95rem;
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  box-sizing: border-box;
  border-top: 1px solid var(--code-border);
}

figure.highlight pre code,
div.highlight pre code {
  background: transparent;
  color: var(--code-text) !important;
  padding: 0;
  margin: 0;
  display: block;
}

.highlight,
.highlight pre,
.highlight code,
.highlight span {
  color: var(--code-text) !important;
  background: transparent !important;
}

.highlight .hll {
  background: rgba(125, 211, 252, 0.12);
}

.post-body :not(pre)>code {
  background: var(--code-bg);
  color: var(--code-text);
  border: 1px solid var(--code-border);
  padding: .15em .35em;
  border-radius: 6px;
}

figure.highlight ::selection,
div.highlight ::selection {
  background: rgba(110, 231, 255, 0.22);
}

figure.highlight>figcaption,
.highlight>figcaption,
.highlight+p {
  display: none;
}


.toc-toggle {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.toc-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.toc-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


:root {
  --code-comment: #6b7487;
  --code-keyword: #c792ea;
  --code-func: #82aaff;
  --code-string: #addb67;
  --code-number: #f78c6c;
  --code-type: #ecc48d;
  --code-operator: #89ddff;
}

html[data-theme="light"] {
  --code-comment: #7c869b;
  --code-keyword: #7c4dff;
  --code-func: #3366cc;
  --code-string: #2f9d4d;
  --code-number: #d17b45;
  --code-type: #b6572a;
  --code-operator: #2563eb;
}

.highlight .c,
.highlight .cm,
.highlight .cp,
.highlight .c1,
.highlight .cs {
  color: var(--code-comment) !important;
}

.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kp,
.highlight .kr,
.highlight .kt,
.highlight .kv {
  color: var(--code-keyword) !important;
}

.highlight .o,
.highlight .ow,
.highlight .p {
  color: var(--code-operator) !important;
}

.highlight .nf,
.highlight .fm,
.highlight .na {
  color: var(--code-func) !important;
}

.highlight .nb,
.highlight .bp,
.highlight .vc,
.highlight .vg,
.highlight .vi {
  color: var(--code-type) !important;
}

.highlight .s,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .s1,
.highlight .s2,
.highlight .sh,
.highlight .sx,
.highlight .sr,
.highlight .ss {
  color: var(--code-string) !important;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .il,
.highlight .mo {
  color: var(--code-number) !important;
}

@media (max-width: 900px) {

  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    overflow: visible !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    order: -1;
    z-index: 10001 !important;
    color: var(--text) !important;
  }


  .nav-links {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;

    background: rgba(7, 12, 24, 0.96) !important;

    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);

    padding: 2.5rem 1.5rem;
    flex-direction: column;
    z-index: 10000;
    border-bottom: 1px solid var(--border);


    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }


  .toc-toggle {
    display: inline-flex !important;
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 2000;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }


  body.toc-open .toc-toggle {
    opacity: 0 !important;
    pointer-events: none;
    transform: scale(0.8);
  }

  .toc-card {
    display: block !important;
    position: fixed;
    bottom: 0 !important;
    top: auto !important;
    left: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: 24px 24px 0 0;
    z-index: 10000;


    background: rgba(7, 12, 24, 0.96) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);

    padding: 2.2rem 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .toc-card.open {
    transform: translateY(0) !important;
  }


  html[data-theme='light'] .nav-links,
  html[data-theme='light'] .toc-card {
    background: rgba(255, 255, 255, 0.7) !important;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .top-post-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ===== ENTRANCE ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--delay, 0) * 0.12s + 0.1s);
}


/* ===== GLOBAL PARTICLES CANVAS ===== */
.global-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.page-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.site-header {
  position: relative;
  z-index: 2;
}


/* ===== HERO SINGLE-COLUMN LAYOUT ===== */
.hero-single {
  position: relative;
  z-index: 1;
  max-width: 680px;
}


/* ===== WIDE TERMINAL (hero) ===== */
.terminal-wide {
  width: 100%;
  max-width: 600px;
  margin-top: 0.4rem;
}

.terminal-wide .terminal-body {
  min-height: 240px;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: "Share Tech Mono", monospace;
}

/* ===== HACKER BACKGROUND CANVAS (starts at 50% center, goes right) ===== */
.hacker-bg-canvas {
  position: absolute;
  top: 0;
  left: 60%;
  width: 80%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 100%);
}


/* ===== TERMINAL COLOR CLASSES ===== */
.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.t-prompt {
  color: var(--accent);
  font-weight: 700;
}

.t-prompt-muted {
  color: #475569;
  font-weight: 600;
}

html[data-theme='light'] .t-prompt-muted {
  color: #94a3b8;
}

.t-cmd {
  color: #e2e8f0;
  font-weight: 700;
}

html[data-theme='light'] .t-cmd {
  color: #1e293b;
}

.t-out {
  color: #94a3b8;
}

html[data-theme='light'] .t-out {
  color: #64748b;
}

.t-val {
  color: #e2e8f0;
}

html[data-theme='light'] .t-val {
  color: #334155;
}

.t-hi {
  color: var(--accent);
  font-weight: 700;
}

.t-label {
  color: #67e8f9;
}

html[data-theme='light'] .t-label {
  color: #0284c7;
}

.t-muted {
  color: #475569;
}

html[data-theme='light'] .t-muted {
  color: #94a3b8;
}

.t-marker {
  color: #facc15;
  font-weight: 700;
}

html[data-theme='light'] .t-marker {
  color: #ca8a04;
}

.t-typing {
  color: #94a3b8;
}

html[data-theme='light'] .t-typing {
  color: #64748b;
}

.t-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


/* ===== BUTTON ARROW ICON ===== */
.btn-arrow {
  transition: transform 200ms ease;
}

.btn.primary:hover .btn-arrow {
  transform: translate(2px, -2px);
}


/* ===== POST CARD REDESIGN ===== */
.post-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-left: 3px solid var(--accent);
  overflow: hidden;
}

.post-card:hover {
  border-left-color: var(--accent-2);
}

html[data-theme='light'] .post-card {
  border-left-color: var(--accent-2);
}

html[data-theme='light'] .post-card:hover {
  border-left-color: var(--accent);
}

.post-card-body {
  flex: 1;
  padding: 1.1rem 1.25rem;
  min-width: 0;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Share Tech Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease, gap 200ms ease;
}

.read-more svg {
  transition: transform 200ms ease;
}

.read-more:hover {
  color: var(--accent);
  gap: 0.5rem;
}

.read-more:hover svg {
  transform: translateX(3px);
}


/* ===== FOOTER (minimal, sticky bottom) ===== */
.site-footer {
  border-top: none;
  position: relative;
  padding: 1.2rem 0;
  z-index: 1;
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

.footer-inner {
  justify-content: center;
  text-align: center;
}

.footer-note-left {
  margin: 0 auto;
}


/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 900px) {
  .global-particles {
    opacity: 0.5;
  }

  .terminal-wide .terminal-body {
    min-height: 200px;
    font-size: 0.82rem;
  }

  .hacker-bg-canvas {
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .terminal-wide .terminal-body {
    min-height: 170px;
    font-size: 0.78rem;
  }

  .terminal-wide {
    max-width: 100%;
  }

  .hacker-bg-canvas {
    display: none;
  }
}
/* ===== VISITED LINK FIX - OVERRIDE ALL ===== */
a:visited {
  color: var(--accent) !important;
}

.tag-tile:visited,
.tag-tile:visited .tag-name {
  color: var(--text) !important;
}

.tag-post-list a,
.tag-post-list a:visited {
  color: var(--accent) !important;
}

.tag-post-list a:hover {
  color: var(--accent-2) !important;
}

.toc-item a:visited {
  color: var(--muted) !important;
}

.toc-item.active > a,
.toc-item.active > a:visited,
.toc-item.depth-2.active > a,
.toc-item.depth-2.active > a:visited,
.toc-item.depth-3.active > a,
.toc-item.depth-3.active > a:visited {
  color: var(--accent) !important;
  background: rgba(125, 249, 194, 0.15) !important;
  border-radius: 4px;
}
