:root { color-scheme: light; --paper: #f7f6f1; --ink: #283730; --muted: #65716a; --line: #dcded5; --accent: #456953; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #203f2b; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.language-switch { display: flex; gap: 3px; flex-shrink: 0; }
.language-switch button { font: inherit; font-size: 12px; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 5px 8px; border-radius: 3px; }
.language-switch button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); background: #eeeee5; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { font-family: Georgia, "Songti SC", "SimSun", serif; line-height: 1.5; }
html[lang="zh-CN"] .intro, html[lang="zh-CN"] .reading { line-height: 1.9; }
header, main, footer { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
header { padding: 32px 0 22px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font: 26px Georgia, serif; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { display: block; font: 11px/2 system-ui, sans-serif; color: var(--muted); letter-spacing: .04em; }
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
main { min-height: calc(100vh - 230px); padding-block: 62px 80px; }
main:focus { outline: none; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 58px); margin: 0 0 24px; letter-spacing: -.025em; }
h2 { font-size: 27px; margin: 38px 0 16px; }
h3 { font-size: 21px; }
p { max-width: 690px; }
.intro { font-size: 19px; color: var(--muted); margin-bottom: 38px; max-width: 660px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card { padding: 24px 0; border-top: 1px solid var(--line); }
.card h2 { font-size: 25px; margin: 0 0 12px; }
.card p { font-size: 14px; color: var(--muted); }
.card a { text-decoration: none; }
.note { border-left: 2px solid #a1b29f; padding: 4px 0 4px 22px; margin-top: 38px; color: var(--muted); max-width: 700px; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; list-style: none; max-width: 780px; gap: 0 36px; }
.topics li { border-bottom: 1px solid var(--line); padding: 15px 0; }
.reading { max-width: 760px; }
.reading h1 { font-size: 38px; }
.reading h2 { margin-top: 42px; }
.reading h3 { margin-top: 28px; }
.reading hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.reading blockquote { border-left: 2px solid #a1b29f; margin: 24px 0; padding-left: 22px; color: var(--muted); }
.reading code { font-size: .9em; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 16px; }
.skip-link { position: fixed; left: 12px; top: -100px; padding: 8px 16px; background: white; }
.skip-link:focus { top: 12px; }
@media (max-width: 800px) { header { align-items: flex-start; flex-direction: column; gap: 16px; } .grid { grid-template-columns: 1fr; gap: 0; } main { padding-block: 40px 60px; } }
@media (max-width: 480px) { header, main, footer { width: calc(100% - 36px); } nav { gap: 6px 16px; } .topics { grid-template-columns: 1fr; } footer { flex-direction: column; gap: 4px; } }
