:root {
    color-scheme: light dark;
    --bg: #ffffff;
    --panel: #f6f7f9;
    --border: #dfe3e8;
    --text: #16191d;
    --muted: #565d66;
    --accent: #12603a;
    --rise: #9a3412;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171a;
        --panel: #1c2024;
        --border: #2e343a;
        --text: #e9ecef;
        --muted: #a3abb3;
        --accent: #6fd6a3;
        --rise: #fca97a;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 1.5rem 1.1rem 5rem;
    background: var(--bg);
    color: var(--text);
    font:
        16px/1.6 -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    overflow-wrap: break-word;
}

main {
    max-width: 44rem;
    margin: 0 auto;
}

h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 2.6rem 0 0.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 1.6rem 0 0.4rem;
}

p {
    margin: 0 0 0.9rem;
}

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

ul,
ol {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
}

li {
    margin: 0 0 0.4rem;
}

.masthead {
    max-width: 44rem;
    margin: 0 auto 1.6rem;
    font-size: 0.88rem;
}

.masthead a {
    font-weight: 600;
    text-decoration: none;
}

.crumbs {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.stamp {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 1.6rem;
}

.stamp span {
    white-space: nowrap;
}

.lede {
    font-size: 1.05rem;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 1rem 1.1rem 0.2rem;
    margin: 0 0 1.4rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    font-size: 0.94rem;
}

caption {
    text-align: left;
    color: var(--muted);
    font-size: 0.88rem;
    padding: 0 0 0.5rem;
}

th,
td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-weight: 600;
}

td.num,
th.num {
    text-align: right;
    white-space: nowrap;
}

.fall {
    color: var(--accent);
}

.rise {
    color: var(--rise);
}

footer {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}
