:root {
  --bg: #faf9f6;
  --text: #252727;
  --muted: #676c6b;
  --faint: #73776f;
  --line: #dddfd8;
  --accent: #934433;
  --accent-soft: #f2e9e3;
  --surface-solid: #fff;
  --radius: 3px;
}

:root[data-theme="dark"] {
  --bg: #191a1b;
  --text: #ecebe7;
  --muted: #b6b9b5;
  --faint: #a8aca6;
  --line: #3d4240;
  --accent: #e5a78e;
  --accent-soft: #322b26;
  --surface-solid: #252b28;
}

body { background: var(--bg); font-size: 1rem; }
.site-header { min-height: 72px; position: relative; backdrop-filter: none; background: var(--bg); }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 400; }
.site-nav { flex-wrap: wrap; gap: 16px; }
.nav-link { font-size: .875rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.theme-toggle { width: auto; height: auto; min-height: 34px; padding: 5px 10px; border-radius: 3px; font-size: .875rem; background: transparent; }
.theme-toggle:hover { transform: none; }
.writing-page { padding-top: 56px; }
.section-heading h1 { margin: 0; font: 400 clamp(2.125rem, 4vw, 2.75rem)/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.writing { padding-bottom: 64px; }
.post-list { gap: 0; }
.post-card { min-height: 0; padding: 28px 0; gap: 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.post-card:hover { background: transparent; transform: none; }
.post-card h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.post-meta { margin-bottom: 10px; font-weight: 500; letter-spacing: .04em; }
.post-summary { margin-top: 10px; }
.post-arrow { width: 34px; height: 34px; border: 0; border-radius: 0; }
.category-filter button { font-size: .875rem; border-radius: 3px; font-weight: 400; }
.article-shell { padding-top: 48px; }
.article-header { padding: 35px 0; }
.article-header h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.17; }
.article-dek { font-size: 1.125rem; }
.article-content { font-size: 1.125rem; line-height: 1.8; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.375rem; }
.site-footer { min-height: 80px; }

@media (max-width: 640px) {
  .site-header { padding: 16px 0; flex-wrap: wrap; gap: 15px; }
  .site-nav { gap: 18px; }
  .writing-page { padding-top: 34px; }
  .section-heading { align-items: start; }
  .article-shell { padding-top: 30px; }
}

@media (pointer: coarse) {
  .site-nav a, .theme-toggle, .category-filter button { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
