/* ==========================================
   Lider Kara — Personal Website
   Inspired by darioamodei.com
   ========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Dark theme (default) --- */
body.dark {
    --bg: #1a1a1a;
    --text: #d4cfc4;
    --heading: #e8e4da;
    --link: #c8b8a0;
    --link-hover: #f0e6d0;
    --toggle-bg: #555;
    --toggle-thumb: #ccc;
}

/* --- Light theme --- */
body.light {
    --bg: #faf9f6;
    --text: #3a3a3a;
    --heading: #1a1a1a;
    --link: #1a5276;
    --link-hover: #0b3d5e;
    --toggle-bg: #bbb;
    --toggle-thumb: #fff;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding: 4rem 1.5rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: 620px;
    margin: 0 auto;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: -0.01em;
}

/* --- Theme toggle switch --- */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background-color: var(--toggle-bg);
    border-radius: 12px;
    position: relative;
    transition: background-color 0.25s ease;
    display: block;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--toggle-thumb);
    border-radius: 50%;
    transition: transform 0.25s ease, background-color 0.25s ease;
    display: block;
}

/* Move thumb to the right when light mode */
body.light .toggle-thumb {
    transform: translateX(20px);
}

/* --- Bio & Content --- */
.bio {
    margin-bottom: 2.5rem;
}

.bio p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* --- Sections --- */
h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* --- Link lists --- */
.link-list {
    list-style: disc;
    padding-left: 1.25rem;
}

.link-list li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

a {
    color: var(--link);
    text-decoration: underline;
    transition: color 0.15s ease;
}

a:hover,
a:focus {
    color: var(--link-hover);
}