
/* ===== THEME ===== */

:root {
    --bg: #ffffff;
    --text: #222;
    --accent: #003a8c;
    --muted: #666;
    --border: #e5e5e5;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #e6e6e6;
    --accent: #6aa0ff;
    --muted: #aaa;
    --border: #333;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, serif;
    margin: 0;
    line-height: 1.7;
}

.container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

h1 {
    margin-bottom: 5px;
}

h2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    margin-top: 40px;
}

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

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.small {
    color: var(--muted);
}

.button {
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    background: none;
    color: var(--text);
}

/* ===== SWITCH ===== */

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: var(--border);
    border-radius: 22px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text);
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
}


/* Mobile */

@media (max-width:600px) {
    .topbar {
        flex-direction: column;
        gap: 10px;
    }
}

