:root {
    color-scheme: light dark;
    --background: #ffffff;
    --text: #1f2328;
    --muted: #59636e;
    --border: #d1d9e0;
    --link: #0550ae;
    --notice-background: #fff8c5;
    --notice-border: #9a6700;
    --notice-text: #4d2d00;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0d1117;
        --text: #e6edf3;
        --muted: #9198a1;
        --border: #30363d;
        --link: #6cb6ff;
        --notice-background: #2e2500;
        --notice-border: #d29922;
        --notice-text: #f0d38a;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 2rem;
}

h1 {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}

.subtitle {
    margin: 0.35rem 0 2.5rem;
    color: var(--muted);
}

.notice {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--notice-border);
    border-radius: 4px;
    background: var(--notice-background);
    color: var(--notice-text);
}

.notice h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.notice p {
    margin: 0;
    font-size: 0.95rem;
}

p {
    margin: 0 0 1rem;
}

nav ul {
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
}

nav li {
    margin-bottom: 0.6rem;
}

a {
    color: var(--link);
    text-underline-offset: 0.15em;
}

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

footer p {
    margin: 0;
}
