:root { --bg: #f7f4ec; --fg: #14172e; --muted: #4a4f6e; --card: #ffffff; --line: #d9d6cc; --accent: #b8860b; --link: #1f4fd1; --ph: #fff1a8; --phfg: #5a4300; --brand1: #14172e; --brand2: #c9a000; }
@media (prefers-color-scheme: dark) { :root { --bg: #0d1022; --fg: #f1efe8; --muted: #b9bdd6; --card: #161a36; --line: #2a2f55; --accent: #ffd23f; --link: #8fb4ff; --ph: #5a4a00; --phfg: #fff1a8; --brand1: #f7f4ec; --brand2: #ffd23f; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
header { border-bottom: 1px solid var(--line); background: var(--card); }
.bar { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.brand { font-weight: 800; font-style: italic; letter-spacing: .02em; text-decoration: none; font-size: 20px; color: var(--brand1); margin-right: auto; padding: 8px 0; }
.brand span { color: var(--brand2); }
nav { display: flex; flex-wrap: wrap; gap: 2px 14px; }
nav a { color: var(--fg); text-decoration: none; font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
nav a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
nav a.alt { color: var(--muted); }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: 1.9em; line-height: 1.2; margin: .8em 0 .3em; }
h2 { font-size: 1.35em; line-height: 1.25; margin: 1.6em 0 .4em; padding-top: .3em; border-top: 1px solid var(--line); }
h3 { font-size: 1.1em; margin: 1.3em 0 .3em; }
section > h2:first-child { border-top: 0; }
section + section { margin-top: 2em; border-top: 3px solid var(--line); }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.4em; } li { margin: .25em 0; }
.tbl { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92em; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; } th { background: rgba(127,127,127,.08); }
@media (max-width: 560px) { table, thead, tbody, tr, th, td { display: block; } thead { position: absolute; left: -9999px; } tr { padding: 8px 0; border-bottom: 1px solid var(--line); } tr:last-child { border-bottom: 0; } td { border: 0; padding: 2px 12px; } td::before { content: attr(data-h); display: block; font-size: .78em; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; } }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 12px; background: #e8384f; color: #fff; font-weight: 700; text-decoration: none; margin: .4em 0; }
mark.ph { background: var(--ph); color: var(--phfg); padding: 0 .2em; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
.lead { color: var(--muted); }
footer { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
