/* ============================================================
   Yash Pareek — portfolio theme
   Concept: the page reads like a model card / README —
   a YAML frontmatter block, markdown-style "## " eyebrows,
   and a changelog-style timeline. Signature: an ambient
   "embedding space" canvas in the hero.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-raised: #151515;
  --ink-raised-2: #1a1a1a;
  --ink-border: rgba(255, 255, 255, 0.1);
  --ink-border-strong: rgba(255, 255, 255, 0.18);

  /* text/icon color for content sitting directly on a neon-filled
     background (buttons, selection, hover states) — stays dark in
     both themes since the neon fills themselves don't change */
  --ink-on-neon: #0a0a0a;

  --paper: #f2efe4;
  --paper-dim: #e4e0d2;
  --paper-border: transparent;

  --text: #d9d4c5;
  --text-dim: #8f8d80;
  --text-bright: #f3f0e6;

  /* three distinct neons, each with a fixed job: green = actions/status,
     pink = links/underlines, cyan = data/labels/timeline */
  --neon-green: #b6ff3c;
  --neon-green-bright: #cbff6e;
  --neon-pink: #ff3dae;
  --neon-pink-bright: #ff6ec4;
  --neon-cyan: #2ee6ff;
  --neon-cyan-bright: #6ff0ff;
  --neon-red: #ff3b3b;
  --neon-red-bright: #ff6161;

  /* code syntax highlighting, kept separate from the neon tokens
     since strings/functions don't map to one of the three fixed jobs */
  --hl-string: #b7d98c;
  --hl-function: #8fb8e8;

  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --content-width: 800px;
  --wide-width: 960px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  color-scheme: dark;
}

/* ---------- light theme ----------
   opt-in via data-theme="light" on <html>, toggled + persisted by
   js/theme.js. Dark stays the default look. */
:root[data-theme="light"] {
  --ink: #f2efe4;
  --ink-raised: #ffffff;
  --ink-raised-2: #e9e5d6;
  --ink-border: rgba(10, 10, 10, 0.1);
  --ink-border-strong: rgba(10, 10, 10, 0.18);

  --paper: #ffffff;
  --paper-dim: #f3f0e6;
  --paper-border: rgba(10, 10, 10, 0.08);

  --text: #4a4738;
  --text-dim: #7c795f;
  --text-bright: #16150e;

  /* the "-bright" neons were tuned as pastel accents for near-black
     backgrounds; used as small-print text (eyebrows, tags, code
     highlighting) they read as illegible pastel-on-cream here, so
     swap in darker, more saturated equivalents of the same hue */
  --neon-green-bright: #4d7a0f;
  --neon-pink-bright: #c21c82;
  --neon-cyan-bright: #0c7f92;

  --hl-string: #5c7a35;
  --hl-function: #2f5f9e;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint noise / grain to keep the flat ink from looking dead */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--neon-pink-bright);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neon-cyan-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--neon-green);
  color: var(--ink-on-neon);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0 0 1.1em;
  max-width: 62ch;
}

code, pre {
  font-family: var(--font-mono);
}

/* ---------- layout shells ---------- */

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--wide {
  max-width: var(--wide-width);
}

.section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  border-top: 1px solid var(--ink-border);
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

.section-head {
  margin-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--neon-cyan-bright);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "##";
  color: var(--text-dim);
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.section-head p {
  color: var(--text-dim);
  margin-top: 10px;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--ink-border);
}

.topbar-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-bright);
  font-size: 15px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.brand .dot {
  color: var(--neon-green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-bright);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: var(--neon-pink);
  transition: right 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan-bright);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-toggle-icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle-icon--moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle-icon--sun {
  display: block;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-raised-2);
    border-bottom: 1px solid var(--ink-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.is-open {
    max-height: 420px;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
  }
  .nav-links a::after {
    display: none;
  }
}

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  color: var(--neon-pink-bright);
}

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 96px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.frontmatter {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 28px;
  color: var(--text-dim);
  line-height: 1.9;
}

.frontmatter .rule {
  color: var(--ink-border-strong);
}

.frontmatter .key {
  color: var(--text-dim);
}

.frontmatter .val {
  color: var(--neon-cyan-bright);
}

.frontmatter .val--teal {
  color: var(--neon-green-bright);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  margin-bottom: 6px;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon-cyan-bright);
  margin-bottom: 22px;
  display: block;
}

.hero-bio p {
  color: var(--text);
}

.hero-bio a {
  border-bottom: 1px solid rgba(255, 61, 174, 0.4);
}

.hero-bio a:hover {
  border-color: var(--neon-pink-bright);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--neon-green);
  color: var(--ink-on-neon);
  font-weight: 700;
  box-shadow: 0 0 24px rgba(182, 255, 60, 0.25);
}

.btn--primary:hover {
  background: var(--neon-green-bright);
  box-shadow: 0 0 32px rgba(182, 255, 60, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--ink-border-strong);
  color: var(--text-bright);
}

.btn--ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan-bright);
  transform: translateY(-1px);
}

.cv-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  width: 100%;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.icon-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-link svg {
  width: 16px;
  height: 16px;
}

.icon-link:hover {
  color: var(--ink-on-neon);
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* embedding-space canvas */

.embed-canvas-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-border);
  background: radial-gradient(circle at 30% 20%, rgba(46, 230, 255, 0.09), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 61, 174, 0.08), transparent 55%),
    var(--ink-raised);
  overflow: hidden;
}

.embed-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.embed-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--ink) 60%, transparent);
  padding: 3px 8px;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .embed-canvas-wrap {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- project cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  color: #26241c;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-border);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.card h3 {
  color: #201e17;
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  color: #4c4a3f;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(46, 230, 255, 0.12);
  color: var(--neon-cyan-bright);
  letter-spacing: 0.01em;
}

.tag--metric {
  background: rgba(182, 255, 60, 0.14);
  color: var(--neon-green-bright);
}

.card .tag {
  background: rgba(70, 194, 181, 0.16);
  color: #1c5f58;
}

.card .tag--metric {
  background: rgba(232, 163, 61, 0.22);
  color: #6b4514;
}

.card-links {
  margin-top: auto;
  display: flex;
  gap: 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(38, 36, 28, 0.12);
}

.card-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #26241c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-links a:hover {
  color: #1c5f58;
}

.card-links svg {
  width: 13px;
  height: 13px;
}

.note-private {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(38, 36, 28, 0.12);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #6b6858;
}

/* ---------- timeline / changelog ---------- */

.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--ink-border-strong);
}

.entry {
  position: relative;
  padding-bottom: 40px;
}

.entry:last-child {
  padding-bottom: 0;
}

.entry::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 0 4px var(--ink), 0 0 8px rgba(46, 230, 255, 0.6);
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--neon-cyan-bright);
  display: block;
  margin-bottom: 6px;
}

.entry h3 {
  font-size: 19px;
  margin-bottom: 2px;
}

.entry h3 a {
  color: var(--text-bright);
  border-bottom: 1px solid transparent;
}

.entry h3 a:hover {
  border-color: var(--neon-pink);
}

.entry-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}

.entry ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.entry li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

/* ---------- stack tags ---------- */

.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.stack-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  color: #26241c;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--paper-border);
  font-family: var(--font-mono);
  font-size: 13px;
}

.stack-chip img,
.stack-chip .chip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.stack-chip .chip-icon {
  color: #6b6858;
}

/* ---------- contact / footer ---------- */

.contact-panel {
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

@media (max-width: 640px) {
  .contact-panel {
    padding: 28px 22px;
  }
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--neon-green-bright);
  background: rgba(182, 255, 60, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(182, 255, 60, 0.25), 0 0 8px rgba(182, 255, 60, 0.5);
}

.contact-panel h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 14px;
}

.contact-panel p {
  color: var(--text);
}

.contact-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- doc pages (projects / blog) ---------- */

.doc-header {
  padding: 40px 0 8px;
}

.doc-header .back-link {
  display: flex;
  margin-bottom: 26px;
}

.doc-header h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  margin-bottom: 10px;
}

.doc-lede {
  color: var(--text-dim);
  font-size: 16px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 18px;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-meta svg {
  width: 14px;
  height: 14px;
}

.doc-cover {
  width: 140px;
  margin: 8px 0 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-border);
}

/* prose: long-form article / blog body text on ink */

.prose {
  font-size: 16px;
  line-height: 1.8;
}

.prose h2 {
  font-size: 26px;
  margin-top: 52px;
  margin-bottom: 16px;
  color: var(--text-bright);
}

.prose h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--neon-cyan-bright);
  font-family: var(--font-body);
  font-weight: 600;
}

.prose p {
  max-width: 68ch;
  color: var(--text);
}

.prose ul,
.prose ol {
  max-width: 68ch;
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text);
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  border-bottom: 1px solid rgba(255, 61, 174, 0.4);
}

.prose a:hover {
  border-color: var(--neon-pink-bright);
}

.prose img {
  border-radius: var(--radius-md);
  margin: 28px auto;
}

.prose .mark {
  background: rgba(182, 255, 60, 0.16);
  color: var(--neon-green-bright);
  padding: 1px 5px;
  border-radius: 3px;
}

.prose pre {
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.prose pre code {
  color: var(--text);
}

.hl-keyword { color: var(--neon-cyan-bright); }
.hl-builtin { color: var(--neon-green-bright); }
.hl-string { color: var(--hl-string); }
.hl-number { color: var(--neon-pink-bright); }
.hl-comment { color: var(--text-dim); font-style: italic; }
.hl-function { color: var(--hl-function); }

.doc-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* ---------- forms ---------- */

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 14px;
  resize: vertical;
}

.field-textarea:focus-visible {
  outline: 2px solid var(--neon-cyan-bright);
  outline-offset: 2px;
}

.result-box {
  margin-top: 24px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.result-box h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 8px;
}

.result-box p {
  font-family: var(--font-mono);
  font-size: 15px;
  margin: 0;
}

/* ---------- visualization grid ---------- */

.viz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .viz-grid {
    grid-template-columns: 1fr;
  }
}

.viz-grid figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-border);
  padding: 10px;
}

.viz-grid img {
  border-radius: 4px;
}

/* ---------- blog list ---------- */

.blog-item {
  background: var(--paper);
  color: #26241c;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-border);
  padding: 30px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.blog-item h3 {
  font-size: 21px;
  color: #201e17;
  margin-bottom: 10px;
}

.blog-item h3 a {
  color: #201e17;
}

.blog-item h3 a:hover {
  color: #1c5f58;
}

.blog-item .doc-meta {
  color: #6b6858;
  margin: 0 0 14px;
}

.blog-item p {
  color: #4c4a3f;
  font-size: 14.5px;
}

.empty-note {
  text-align: center;
  padding: 44px 24px;
  border: 1px dashed var(--ink-border-strong);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  margin-top: 12px;
}

/* ---------- misc utility ---------- */

.mono {
  font-family: var(--font-mono);
}

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