/* Very minimal / Karpathy-style */

body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  font-family: Georgia, serif;
  line-height: 1.4;
}



a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

header h1 {
  margin: 0;
  font-family: Helvetica, sans-serif;
  font-size: 2.4rem;
}

header p {
  margin: 0.3rem 0 2rem 0;
  color: #666;
}

.posts-list ul {
  list-style: none;
  padding: 0;
}

.posts-list li {
  margin-bottom: 1rem;
}

.posts-list time {
  color: #999;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

footer {
  margin-top: 3rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  color: #777;
  font-size: 0.9rem;
}

/* ------------------------------ */
/* Inline code (light mode)       */
/* ------------------------------ */

article p code,
article li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95em;
  background: rgba(27, 31, 35, 0.06);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

/* ------------------------------ */
/* Code blocks (light mode)       */
/* ------------------------------ */

pre[class*="language-"] {
  background: #f6f8fa;
  border-radius: 6px;
  padding: 1em;
  overflow-x: auto;
}

code[class*="language-"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

/* ------------------------------ */
/* Dark mode base styles          */
/* ------------------------------ */

.dark-mode {
  background: #121212;
  color: #eaeaea;
}

.dark-mode a {
  color: #8ab4f8;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
  color: #ffffff;
}

/* ------------------------------ */
/* Inline code (dark mode)        */
/* ------------------------------ */

.dark-mode article p code,
.dark-mode article li code {
  background: rgba(148, 163, 184, 0.15);
  color: #e5e7eb;
}

/* ------------------------------ */
/* Code blocks (dark mode)        */
/* ------------------------------ */

.dark-mode pre[class*="language-"],
.dark-mode code[class*="language-"] {
  background: #0f172a;      /* deep slate, easy on eyes */
  color: #e5e7eb;
  text-shadow: none;
}

.dark-mode pre[class*="language-"] {
  border: 1px solid #1e293b;
  border-radius: 8px;
}

/* Prism token overrides (dark) */

.dark-mode .token.comment,
.dark-mode .token.prolog,
.dark-mode .token.doctype,
.dark-mode .token.cdata {
  color: #64748b;
}

.dark-mode .token.punctuation {
  color: #94a3b8;
}

.dark-mode .token.property,
.dark-mode .token.tag,
.dark-mode .token.constant,
.dark-mode .token.symbol,
.dark-mode .token.deleted {
  color: #f87171;
}

.dark-mode .token.boolean,
.dark-mode .token.number {
  color: #fbbf24;
}

.dark-mode .token.selector,
.dark-mode .token.attr-name,
.dark-mode .token.string,
.dark-mode .token.char,
.dark-mode .token.builtin,
.dark-mode .token.inserted {
  color: #34d399;
}

.dark-mode .token.operator,
.dark-mode .token.entity,
.dark-mode .token.url {
  color: #60a5fa;
}

.dark-mode .token.function,
.dark-mode .token.class-name {
  color: #a78bfa;
}

.dark-mode .token.keyword {
  color: #fb7185;
}