/* Base styles */
:root {
    --background-light: #f7f7fa;
    --background-dark: #181628;
    --text-light: #222;
    --text-dark: #f7f7fa;
    --highlight: #a259ff;
    --nav-bg: rgba(162, 89, 255, 0.08);
    --subtitle-light: #6c6c80;
    --subtitle-dark: #b3b3c6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: var(--background-dark);
        --text: var(--text-dark);
    }

    .subtitle {
        color: var(--subtitle-dark);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --background: var(--background-light);
        --text: var(--text-light);
    }

    .subtitle {
        color: var(--subtitle-light);
    }
}

@media (prefers-color-scheme: light) {}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--background, #181628);
    color: var(--text, #f7f7fa);
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.centered-image {
    display: block;
    margin: 0 auto 1.5rem auto;
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 32px rgba(162, 89, 255, 0.15);
    border: 4px solid var(--highlight);
    background: #fff;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--subtitle-dark);
    text-align: center;
    margin: 0 0 1rem 0;
    /* Smaller bottom margin */
    font-weight: 400;
    letter-spacing: 0.01em;
}

h1 {
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 0.15rem 0;
    /* Much smaller bottom margin */
    color: var(--text, #f7f7fa);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

nav a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 6px;
    background: var(--nav-bg);
    transition: background 0.2s, color 0.2s;
}

nav a:hover,
nav a:focus {
    background: var(--highlight);