:root {
    color-scheme: light;

    --bg: #f5f7f5;
    --surface: #ffffff;
    --text: #26352c;
    --muted: #65736a;
    --border: #dce4de;

    --accent: #426d55;
    --accent-hover: #345641;
    --accent-soft: #e4ede8;

    --danger: #b64141;
    --shadow: 0 3px 14px rgba(0,0,0,.04);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #181f1b;
    --surface: #242d27;
    --text: #e5eee8;
    --muted: #a6b6ab;
    --border: #39463d;

    --accent: #426d55;
    --accent-hover: #507f65;
    --accent-soft: #34483b;

    --danger: #f18e8e;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system,
                 "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button, input, select, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: .6;
    cursor: wait;
}

h1, h2, h3, p {
    margin-top: 0;
}

a {
    color: var(--text);
}

small {
    color: var(--muted);
}

:focus-visible {
    outline: 3px solid #7fa68b;
    outline-offset: 3px;
}
