:root {
    --primary-color: #f15a24;
    /* Logo orange */
    --text-color: #222;
    --bg-color: #fff7f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #fff;
        --bg-color: #1a1a1a;
    }
}

/* Manual override via attribute */
html[data-theme="light"] {
    --text-color: #222;
    --bg-color: #fff7f5;
}

html[data-theme="dark"] {
    --text-color: #fff;
    --bg-color: #1a1a1a;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

header {
    padding: 20px;
}

.logo {
    width: 120px;
    margin-bottom: 10px;
}

/* Social media links with rounded corners */
nav ul {
    list-style: none;
    padding: 0;
    text-align: center; /* Center the li/a containers */
}

nav ul li {
    margin: 15px 0;
}

/* Button style */
nav ul li a {
    display: flex;                  /* flex layout for icon + text */
    align-items: center;            /* vertical align */
    justify-content: flex-start;    /* icon+text start at left inside button */
    gap: 8px;                       /* space between icon and text */
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 180px;                   /* fixed width for all buttons */
    box-sizing: border-box;
    margin: 0 auto;                 /* center button horizontally */
}

nav ul li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    flex-shrink: 0; /* icon doesn't shrink */
}

/* Footer and subtle toggle button */
footer {
    margin-top: 30px;
    font-size: 14px;
    padding: 20px 0;
}

button#theme-toggle {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

button#theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}