/* ============================================================
   Design tokens — glassmorphism, tech-luxury, dark + light
   ============================================================ */

:root {
    /* Base surfaces (dark, default) — "Verdigris Atelier": cool graphite,
       jade-teal signal, champagne trim. */
    --bg-0: #080b0d;
    --bg-1: #0b0f11;
    --bg-2: #111a1c;
    --bg-gradient:
        radial-gradient(1200px 600px at 15% -10%, rgba(34, 230, 196, 0.16), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(224, 176, 106, 0.14), transparent 55%),
        linear-gradient(180deg, #080b0d 0%, #0b0f11 50%, #080b0d 100%);

    /* Glass surfaces */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-strong: rgba(255, 255, 255, 0.095);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(255, 255, 255, 0.24);
    --glass-blur: 26px;
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --input-bg: rgba(0, 0, 0, 0.15);

    /* Text */
    --text-primary: #eef2f0;
    --text-secondary: #a9b3b0;
    --text-muted: #6f7b78;

    /* Accents — tech (teal) is the primary live/interactive signal, gold
       is the luxury trim, violet is the tertiary/depth accent. */
    --accent-gold: #e0b06a;
    --accent-gold-soft: rgba(224, 176, 106, 0.18);
    --accent-tech: #22e6c4;
    --accent-tech-soft: rgba(34, 230, 196, 0.18);
    --accent-violet: #8b7bff;
    --accent-violet-soft: rgba(139, 123, 255, 0.16);
    --accent-green: #5fd6a0;
    --accent-red: #ff7a7a;
    --accent-amber: #f2c464;

    /* Radii + spacing */
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    /* Type */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg-0: #eef2ef;
    --bg-1: #f5f8f6;
    --bg-2: #ffffff;
    --bg-gradient:
        radial-gradient(1200px 600px at 15% -10%, rgba(14, 143, 121, 0.10), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(156, 114, 40, 0.16), transparent 55%),
        linear-gradient(180deg, #f6f8f7 0%, #eef2ef 50%, #f6f8f7 100%);

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(10, 20, 18, 0.10);
    --glass-border-strong: rgba(10, 20, 18, 0.17);
    --glass-shadow: 0 8px 32px rgba(30, 50, 45, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --input-bg: rgba(255, 255, 255, 0.6);

    --text-primary: #101715;
    --text-secondary: #49534f;
    --text-muted: #7c8884;

    --accent-gold: #9c7228;
    --accent-gold-soft: rgba(156, 114, 40, 0.13);
    --accent-tech: #0e8f79;
    --accent-tech-soft: rgba(14, 143, 121, 0.13);
    --accent-violet: #5b48d9;
    --accent-violet-soft: rgba(91, 72, 217, 0.12);
    --accent-green: #218a63;
    --accent-red: #c0392b;
    --accent-amber: #a8790b;

    color-scheme: light;
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-3); color: var(--text-secondary); }

a { color: var(--accent-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

small, .text-muted { color: var(--text-muted); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-tech-soft); }

/* Scrollbar (webkit) — subtle, on-theme */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--glass-border-strong); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
