:root {
  color-scheme: light dark;
  --bg: #faf8f5;
  --fg: #24211d;
  --muted: #6b635b;
  --accent: #7a4b2a;
  --border: #e4ddd3;
  --card: #f3efe9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181614;
    --fg: #e8e3dc;
    --muted: #a69d93;
    --accent: #c98a5b;
    --border: #2e2924;
    --card: #211e1a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--fg);
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
}

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

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  margin-right: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

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

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
  margin-top: 1.8rem;
}

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

.note-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.note-list li {
  padding: 1rem 1.15rem;
  margin-bottom: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.note-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
