/* =========================
   Light Theme (Default)
   ========================= */

:root {
    --bg: #f2f3f5;
    --surface: #ffffff;
    --surface-border: #e1e3e6;
    --text: #1f2328;
    --text-muted: #5f6368;
    --text-faint: #8b9096;
    --accent: #5e7f73;
    --accent-muted: #5e7f7333;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

    /* =========================
   Dark Theme
   ========================= */

    :root[data-theme="dark"] {
        --bg: #0e0f11;
        --surface: #15171a;
        --surface-border: #24272b;
        --text: #e3e3e3;
        --text-muted: #b6b7ba;
        --text-faint: #8b8d91;
        --accent: #6f8f82;
        --accent-muted: #6f8f8244;
        --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.45);
    }

/* =========================
   Reset
   ========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    transition: background-color 120ms ease, color 120ms ease;
}

/* =========================
   Layout
   ========================= */

.page {
    max-width: 820px;
    margin: 0 auto;
    padding: 5rem 2rem 3.5rem;
    position: relative;
}

/* =========================
   Theme Toggle
   ========================= */

.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background-color: color-mix( in srgb, var(--surface) 92%, var(--bg) );
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0.4rem;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

    .theme-toggle:hover {
        background-color: color-mix( in srgb, var(--surface) 88%, var(--bg) );
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06), 0 6px 14px rgba(0, 0, 0, 0.1);
    }

.theme-icon {
    width: 22px;
    height: 22px;
    display: block;
    opacity: 0.75;
}

.theme-toggle:hover .theme-icon {
    opacity: 1;
}

/* =========================
   Header
   ========================= */

.header {
    margin-bottom: 3.5rem;
}

.wordmark {
    width: 300px;
    max-width: 100%;
    height: auto;
}

/* =========================
   Elevated Status Surface
   ========================= */

.surface {
    display: flex;
    margin-bottom: 4rem;
}

.surface-accent {
    width: 4px;
    background-color: var(--accent);
    border-radius: 2px 0 0 2px;
}

.surface-content {
    flex: 1;
    background-color: var(--surface);
    border: 1px solid var(--surface-border);
    border-left: none;
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-soft);
    border-radius: 0 6px 6px 0;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

    .surface-content h2 {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
    }

    .surface-content p {
        margin-bottom: 1rem;
        color: var(--text-muted);
    }

/* =========================
   Contact
   ========================= */

.contact {
    margin-top: 1.75rem;
}

    .contact a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 500;
    }

        .contact a:hover {
            text-decoration: underline;
        }

/* =========================
   Footer
   ========================= */

.footer {
    font-size: 0.85rem;
    color: var(--text-faint);
}

    .footer .note {
        margin-top: 0.35rem;
        font-size: 0.8rem;
    }

/* =========================
   Responsive
   ========================= */

@media (max-width: 620px) {
    .page {
        padding-top: 3.5rem;
    }

    .surface {
        flex-direction: column;
    }

    .surface-accent {
        width: 100%;
        height: 4px;
        border-radius: 6px 6px 0 0;
    }

    .surface-content {
        border-left: 1px solid var(--surface-border);
        border-top: none;
        border-radius: 0 0 6px 6px;
    }
}
