:root {
  --bg: #fbfaf7;
  --fg: #23211d;
  --muted: #6d675d;
  --line: #e4dfd5;
  --accent: #9a4f1f;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1a18;
    --fg: #ece8e1;
    --muted: #a39d92;
    --line: #34312c;
    --accent: #e0915a;
    --card: #23221f;
  }
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Georgia, "PT Serif", "Times New Roman", serif;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.1rem; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 1rem;
  margin-bottom: 2rem;
}

header.site .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem; }

.brand { font-size: 1.25rem; font-weight: bold; color: var(--fg); text-decoration: none; letter-spacing: .01em; }

nav a { margin-left: 1.1rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .9rem; }
nav a:first-child { margin-left: 0; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .6rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }

.lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }

.meta { color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .82rem; }

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

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

.notes h3 { margin: .1rem 0 .35rem; font-size: 1.12rem; }
.notes p { margin: .3rem 0 0; }

article p, article li { hyphens: auto; }

pre, code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .85rem;
}

pre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .8rem 1rem;
  overflow-x: auto;
}

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
}
