:root {
  --bg: #fafafa;
  --card: #fff;
  --text: #111;
  --muted: #666;
  --accent: #0b62d6;
  --border: #eee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

header nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

header nav a:hover { text-decoration: underline; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

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

.note-card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.note-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.note-card h2 { margin: 0 0 0.5rem 0; font-size: 1.125rem; }

.note-card .meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.note-card .tags {
  color: var(--accent);
  margin-left: 0.5rem;
}

article.note .content {
  margin-top: 1.5rem;
}

article.note .content h2 { font-size: 1.25rem; }
article.note .content h3 { font-size: 1.1rem; }
article.note .content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

article.note .content code {
  background: #f0f0f0;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

article.note .content pre code { background: none; padding: 0; }

main table {
  border-collapse: collapse;
  width: 100%;
}

main table th,
main table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

main table th {
  background: #f5f5f5;
  font-weight: 600;
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.page-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
