:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf7;
  --ink: #181714;
  --muted: #6c685f;
  --line: #ded9cd;
  --accent: #b54524;
  --accent-dark: #7f2c16;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .2em; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 1.3rem; font-weight: 800; text-decoration: none; letter-spacing: .08em; }
nav { display: flex; gap: 22px; font-size: .94rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--accent); }
.hero { padding: clamp(72px, 11vw, 140px) 0 80px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .18em; }
.hero h1, .page-header h1 { margin: 0; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: .95; letter-spacing: -.04em; }
.hero > p:not(.eyebrow) { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; padding: 11px 18px; border: 1px solid var(--accent); background: var(--accent); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent-dark); }
.button-secondary { background: transparent; color: var(--accent); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 72px 0 24px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: clamp(1.8rem, 4vw, 3rem); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { min-height: 280px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.card .meta, .article .meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--accent); font-size: .78rem; font-weight: 700; }
.card h2 { margin: 28px 0 12px; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 1.45rem; line-height: 1.35; }
.card h2 a { text-decoration: none; }
.card p { margin: 0 0 24px; color: var(--muted); }
.read-more { margin-top: auto; color: var(--accent); font-weight: 700; }
.category-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.category-list a { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.muted { color: var(--muted); }
.empty-state { padding: 40px; border: 1px dashed var(--line); color: var(--muted); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.page-header { padding: 80px 0 48px; }
.page-header h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.page-header > p:last-child { max-width: 720px; color: var(--muted); }
.article { max-width: 780px; margin: 0 auto; padding: 76px 0; }
.article-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 20px 0; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.12; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 1.2rem; }
.prose { font-size: 1.06rem; }
.prose h2 { margin-top: 2.4em; font-family: Georgia, "Noto Serif CJK SC", serif; font-size: 1.8rem; }
.prose blockquote { margin-inline: 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose img { max-width: 100%; height: auto; }
.sources { margin-top: 52px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.sources h2 { margin-top: 0; }
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media (max-width: 820px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .category-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { align-items: flex-start; padding: 16px 0; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
  .card-grid, .category-list { grid-template-columns: 1fr; }
  .footer-grid { align-items: flex-start; flex-direction: column; padding: 28px 0; }
}

