:root {
    color-scheme: light;

    --bg: #f3f4f6;
    --surface: #ffffff;
    --header: #253244;
    --header-text: #f8fafc;
    --text: #202936;
    --muted: #64748b;
    --border: #d7dce2;
    --accent: #2563eb;
    --radius: 3px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --bg: #111827;
        --surface: #19212d;
        --header: #202936;
        --header-text: #f1f5f9;
        --text: #e2e8f0;
        --muted: #94a3b8;
        --border: #334155;
        --accent: #93c5fd;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI",
                 Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.site-header {
    background: var(--header);
    color: var(--header-text);
}

.header-inner,
.footer-inner,
.site-main {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.header-inner {
    min-height: 52px;
    display: flex;
    align-items: center;
}

.brand {
    color: var(--header-text);
    font-size: 17px;
    font-weight: 600;
}

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

.site-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding-top: 24px;
    padding-bottom: 24px;
}

.welcome {
    width: 100%;
    max-width: 520px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.welcome h1 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 600;
}

.welcome p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.footer-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.separator {
    margin: 0 4px;
}

@media (max-width: 600px) {
    .header-inner,
    .footer-inner,
    .site-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .brand {
        font-size: 15px;
    }

    .welcome {
        padding: 20px;
    }
}
