:root {
    --bg-light: #99a6b2;
    --fg-light: #25242F;
    --muted-light: #25242F;
    --bg-dark: #25242F;
    --fg-dark: #f1f5f9;
    --muted-dark: #94a3b8;
    --bg-img-light: url('./lineart-light.png');
    --bg-img-dark: url('./lineart-dark.png');
    --accent-light: #16739b;
    --accent-dark: #38bdf8;

    --bg: var(--bg-dark);
    --fg: var(--fg-dark);
    --muted: var(--muted-dark);
    --bg-img: var(--bg-img-dark);
    --accent: var(--accent-dark);
}

[data-theme='light'] {
    --bg: var(--bg-light);
    --fg: var(--fg-light);
    --muted: var(--muted-light);
    --bg-img: var(--bg-img-light);
    --accent: var(--accent-light);
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    background-image: var(--bg-img);
    color: var(--fg);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.3s, color 0.3s;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    animation: fadeIn 1.2s ease-in-out;
}

p {
    color: var(--muted);
    max-width: 500px;
    animation: fadeIn 1.6s ease-in-out;
}

.links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 2s ease-in-out;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

a:hover {
    background: var(--accent);
    color: var(--bg);
}

.toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.toggle:hover {
    background: var(--accent);
    color: var(--bg);
}

footer {
    position: absolute;
    bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
