:root {
    --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --bg: #F3F0E9;
    --surface: #FBF9F5;
    --surface-soft: #E9E4DA;
    --text: #171717;
    --muted: #777777;
    --accent: #B9A58A;
    --accent-light: #CFC0AB;
    --accent-ink: #171717;
    --rail-bg: #171717;
    --rail-surface: rgba(243, 240, 233, 0.07);
    --rail-text: #F3F0E9;
    --rail-muted: #9B9388;
    --border: rgba(23, 23, 23, 0.14);
    --danger: #B42318;
    --shadow: 0 18px 44px -14px rgba(23, 23, 23, 0.1);
}

:root[data-dashboard-theme="dark"] {
    color-scheme: dark;
    --bg: #110F0D;
    --surface: #1B1815;
    --surface-soft: #25211D;
    --text: #F5EFE6;
    --muted: #A99E90;
    --accent: #DFAD74;
    --accent-light: #F0CB9B;
    --accent-ink: #161310;
    --rail-bg: #0D0B0A;
    --rail-surface: rgba(255, 250, 242, 0.07);
    --rail-text: #F5EFE6;
    --rail-muted: #8C8174;
    --border: rgba(185, 165, 138, 0.16);
    --danger: #FF8F86;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(184, 118, 60, 0.09), transparent 36%),
        radial-gradient(circle at 92% 100%, rgba(111, 101, 90, 0.08), transparent 40%),
        linear-gradient(180deg, #FBF8F3 0%, var(--bg) 100%);
    -webkit-font-smoothing: antialiased;
}

:root[data-dashboard-theme="dark"] body {
    color: var(--text);
    background:
        radial-gradient(ellipse at top left, rgba(185, 165, 138, 0.09), transparent 40%),
        linear-gradient(180deg, #171411 0%, var(--bg) 100%);
}

button,
a {
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(184, 118, 60, 0.12);
}

.button:active,
.button.is-active,
.button-primary,
.button-primary:hover {
    color: #FFFDF9;
    border-color: #9C612E;
    background: linear-gradient(135deg, #211B17 0%, #3A2C21 100%);
    box-shadow: 0 10px 22px rgba(27, 23, 20, 0.18), inset 0 1px 0 rgba(185, 165, 138, 0.28);
}

:root[data-dashboard-theme="dark"] .button {
    background: var(--surface);
}

:root[data-dashboard-theme="dark"] .button:hover {
    background: var(--surface-soft);
}

:root[data-dashboard-theme="dark"] .button:active,
:root[data-dashboard-theme="dark"] .button.is-active,
:root[data-dashboard-theme="dark"] .button-primary,
:root[data-dashboard-theme="dark"] .button-primary:hover {
    color: #161310;
    border-color: #DFAD74;
    background: linear-gradient(135deg, #DFAD74, #F0CB9B);
    box-shadow: 0 8px 20px rgba(185, 165, 138, 0.22);
}
