:root {
  --bg: #fbfaf7;
  --text: #1f2328;
  --muted: #5b6168;
  --accent: #9a3b1e;
  --accent-text: #fff;
  --line: #e4e1da;
  --panel: #f2efe8;
  --max: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181b;
    --text: #e8e6e1;
    --muted: #a3a8ae;
    --accent: #f0a27e;
    --accent-text: #16181b;
    --line: #2c3035;
    --panel: #1e2125;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-text); padding: 0.5rem 0.75rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a { color: var(--text); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

main { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.meta { color: var(--muted); margin-top: 0; font-size: 0.95rem; }

.notice { background: var(--panel); border-left: 4px solid var(--accent); padding: 0.75rem 1rem; margin: 1.25rem 0 1.75rem; font-size: 0.95rem; }
.notice p { margin: 0; }

.post-list { list-style: none; padding: 0; margin: 1rem 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-list li > a { font-weight: 600; font-size: 1.1rem; }
.post-list p { margin: 0.25rem 0 0; color: var(--muted); }
.empty { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; padding: 1.5rem 0 2rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0.75rem 0 0; }
