:root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #5b6168;
    --border: #e6e1da;
    --accent: #2f6f4f;
    --accent-soft: #e7f1ec;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #15181b;
        --surface: #1d2125;
        --text: #e8e6e3;
        --muted: #a3a9af;
        --border: #2e3439;
        --accent: #7cc4a0;
        --accent-soft: #1f2e27;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.topbar {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}

nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
nav a[aria-current="page"] { font-weight: 600; }

main {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-top: 8px; }
h3 { font-size: 1.05rem; margin: 24px 0 8px; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }

.summary {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    border-radius: 6px;
    margin: 0 0 24px;
}

.summary p { margin: 0; }

a { color: var(--accent); }

ul, ol { padding-left: 1.3rem; }
li { margin: 4px 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    background: var(--surface);
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border: 1px solid var(--border);
}

th { background: var(--accent-soft); }

footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 24px 16px;
}
