:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --ink: #2b2420;
  --muted: #7a6d64;
  --line: #eadfd3;
  --accent: #b5532a;
  --accent-soft: #f6e4d8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1916;
    --paper: #26211d;
    --ink: #efe6dd;
    --muted: #a99b90;
    --line: #3a322c;
    --accent: #e08a5c;
    --accent-soft: #3a2a21;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}

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

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 22px;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 22px; letter-spacing: .2px; }

nav a {
  font: 15px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding: 36px 0 56px; }

.intro { font-size: 19px; color: var(--muted); margin: 0 0 36px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; font-weight: normal; }
h2 { font-size: 23px; line-height: 1.3; margin: 34px 0 10px; font-weight: normal; }

.meta {
  font: 14px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--muted);
  margin: 0 0 26px;
}

.posts { list-style: none; padding: 0; margin: 0; }
.posts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.posts h2 { margin: 0 0 6px; font-size: 22px; }
.posts h2 a { color: var(--ink); text-decoration: none; }
.posts h2 a:hover { color: var(--accent); }
.posts p { margin: 6px 0 0; }
.posts .meta { margin: 0; }

article p, article li { margin: 0 0 16px; }
article ul, article ol { padding-left: 22px; }

.note {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
  font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  nav a { margin-left: 14px; }
}
