:root {
    --bg: #faf9f6;
    --text: #2c2c2c;
    --text-heading: #1a1a1a;
    --text-muted: #555;
    --text-faint: #777;
    --text-faintest: #999;
    --accent: #1a5632;
    --accent-hover: #134225;
    --card-bg: #fff;
    --card-border: #e5e2db;
    --photo-border: #e5e2db;
    --footer-text: #aaa;
    --toggle-bg: #e5e2db;
    --toggle-knob: #fff;
}

[data-theme="dark"] {
    --bg: #1a1a1a;
    --text: #d4d4d4;
    --text-heading: #e8e8e8;
    --text-muted: #aaa;
    --text-faint: #888;
    --text-faintest: #777;
    --accent: #3a9e65;
    --accent-hover: #2f8554;
    --card-bg: #242424;
    --card-border: #333;
    --photo-border: #444;
    --footer-text: #666;
    --toggle-bg: #444;
    --toggle-knob: #1a1a1a;
}

.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 26px;
    background: var(--toggle-bg);
    border-radius: 13px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
    z-index: 100;
}

.theme-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--toggle-knob);
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(22px);
}

.theme-toggle-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    height: 100%;
    font-size: 0.75rem;
    pointer-events: none;
}
