* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --text: #fcf9f9;
    --muted: #a8a8a8;
    --accent: #73b871;
    --border: #2a2a2a;
    --card-bg: #0d0d0d;
}

/* Light theme: same variables, flipped colors */
:root[data-theme="light"] {
    --bg: #ffffff;
    --text: #111111;
    --muted: #555555;
    --border: #d5d5d5;
    --card-bg: #f6f6f6;
}

html, body {
    height: 100%;
}

body {
    transition: background-color 0.3s, color 0.3s;
}

.theme-toggle {
    position: fixed;
    top: 16px;
    right: 28px;
    z-index: 10;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: border-color 0.3s;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden; /* only the right side scrolls */
}

/* ---------- Left: bio ---------- */
.bio {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.bio h1 {
    font-size: 2.2rem;
}

.bio-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.mission {
    max-width: 420px;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Right: scrollable articles ---------- */
.articles {
    height: 100vh;
    overflow-y: auto;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.articles h2 {
    text-align: center;
    font-size: 1.8rem;
}

.card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-image {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-text {
    flex: 1;
    text-align: center;
}

.card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.card-text p {
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Mobile: stack, page scrolls normally ---------- */
@media (max-width: 800px) {
    body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .articles {
        height: auto;
        overflow: visible;
    }

    .card {
        flex-direction: column;
    }
}