* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }

/* Theme variables */
body.theme-dark { --bg: #1a1a2e; --text: #e0e0e0; --text-secondary: #d0d0d8; --accent: #bb86fc; --border: #2a2a4a; --surface: #2a2a4a; --muted: #b0b0bc; --dim: #a0a0ac; --tip-bg: rgba(187, 134, 252, 0.06); --overlay: rgba(0,0,0,0.5); --strong: #e0e0e0; }
body.theme-light { --bg: #ffffff; --text: #1a1a2e; --text-secondary: #4a4a5a; --accent: #7c3aed; --border: #e0e0e0; --surface: #f0f0f4; --muted: #888; --dim: #999; --tip-bg: rgba(124, 58, 237, 0.06); --overlay: rgba(0,0,0,0.3); --strong: #1a1a2e; }

body { color: var(--text); background: var(--bg); }
a { color: var(--accent); }
strong { color: var(--strong); }

/* Header */
header { padding: 24px 32px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
header a { color: var(--accent); text-decoration: none; font-size: 18px; font-weight: 500; }
header a:hover { text-decoration: underline; }

/* Content */
main { max-width: 720px; margin: 0 auto; padding: 48px 32px; flex: 1; }
h1 { font-size: 32px; color: var(--accent); margin-bottom: 8px; }
h2 { font-size: 20px; color: var(--accent); margin: 32px 0 12px; }
p, li { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
ul, ol { padding-left: 24px; }
code { background: var(--surface); padding: 2px 6px; border-radius: 3px; font-size: 14px; color: var(--accent); }

/* Shared components */
.subtitle { font-size: 16px; margin-bottom: 40px; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.note { background: var(--tip-bg); border-left: 3px solid var(--accent); padding: 12px 16px; margin: 24px 0; border-radius: 0 4px 4px 0; }
.note p { margin-bottom: 0; }

/* Footer */
footer { padding: 24px 32px; border-top: 1px solid var(--border); text-align: center; }
footer a { color: var(--muted); text-decoration: none; font-size: 14px; margin: 0 12px; }
footer a:hover { color: var(--accent); }

/* Theme toggle */
.theme-btn { background: none; border: none; color: var(--text-secondary); font-size: 18px; cursor: pointer; padding: 4px; line-height: 1; }
.theme-btn:hover { color: var(--accent); }
