/* public/themes/simple-theme.css */

/* Theme variables */
:root {
    --bg-color: #f9f9f9;
    --text-color: #333;
    --link-color: #2a7cc7;
    --link-hover: #1d5e99;
    --heading-color: #2a7cc7;
    --code-bg: #eef;
    --button-bg: #2a7cc7;
    --button-hover-bg: #1d5e99;
    --button-text: #fff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #eee;
        --link-color: #8ab4f8;
        --link-hover: #a5c9ff;
        --heading-color: #8ab4f8;
        --code-bg: #2a2a2a;
        --button-bg: #8ab4f8;
        --button-hover-bg: #669df6;
        --button-text: #000;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px; /* back to normal on tablets/desktops */
    }
}

html {
    font-size: 18px; /* bump up from 16px */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 1rem;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Responsive container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* 32px – 48px */
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* 24px – 40px */
}

p, li, a, button, em {
    font-size: clamp(1rem, 3vw, 1.2rem); /* scales nicely */
}

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

a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--button-hover-bg);
}
