:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #444;
    --color-link: #0645ad;
    --color-focus: #0b5fff;
    --color-border: #eee;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #121212;
        --color-text: #e4e4e4;
        --color-text-muted: #a0a0a0;
        --color-link: #6db3f2;
        --color-focus: #6db3f2;
        --color-border: #333;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-bg);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
}

.site-brand:hover {
    text-decoration: none;
}

.site-logo {
    width: 28px;
    height: 28px;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

main h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p,
ul {
    margin-bottom: 1rem;
}

ul {
    padding-left: 1.5rem;
}

a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 3px;
}

a:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

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

.back-link {
    margin-top: 2rem;
}

.last-updated,
.status {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

code {
    background: var(--color-border);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

body.page-home ul {
    list-style: none;
    padding: 0;
}

body.page-home li {
    margin-bottom: 0.5rem;
}

body.page-home section {
    margin-bottom: 2rem;
}

body.page-privacy main h1 {
    margin-bottom: 0.25rem;
}

body.page-404 {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

body.page-404 header {
    margin-bottom: 0;
}

body.page-404 main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.page-404 main h1 {
    font-size: 4rem;
}

body.page-404 main p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
