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

:root {
  --text: #1a1a1a;
  --muted: #666;
  --link: #0066cc;
  --border: #e0e0e0;
  --max-width: 680px;
  --font: system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, monospace;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.site-title { font-weight: 600; font-size: 1.1rem; color: var(--text); }

/* Notes list */
.notes-list {
  list-style: decimal;
  padding-left: 2.5rem;
  margin: 0;
}
.notes-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
}
.notes-list li a { font-weight: 500; flex: 1; min-width: 0; }
.notes-list time { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }

/* Tags */
.tags a {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.4em;
  margin-right: 0.25rem;
}
.tags a:hover { color: var(--link); border-color: var(--link); text-decoration: none; }

/* Tags list page */
.tags-list { list-style: none; padding: 0; }
.tags-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.count { color: var(--muted); font-size: 0.875rem; }

/* Pagination */
.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Note header */
.note-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.note-header h1 { margin: 0 0 0.25rem; }
.note-header time { color: var(--muted); font-size: 0.875rem; }
.note-header .tags { margin-top: 0.5rem; }

/* Note content */
.note-content h2, .note-content h3 { margin-top: 2rem; }
.note-content img { max-width: 100%; height: auto; display: block; margin: 1.5rem 0; }
.note-content pre { background: #f5f5f5; padding: 1rem; overflow-x: auto; border-radius: 4px; }
.note-content code { font-family: var(--mono); font-size: 0.875em; }
.note-content pre code { font-size: 0.85rem; }
.note-content blockquote { border-left: 3px solid var(--border); margin: 0; padding-left: 1rem; color: var(--muted); }

/* Note nav */
.note-nav { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Footer */
footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
