/* denovo-kit / tokens.css
   Design tokens — default DeNovo theme (spheric palette).
   Colors, fonts, spacing, radius, shadows. Referenced by every other
   stylesheet. To re-theme an app, override these :root vars in your
   own theme.css loaded AFTER this file. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,300&display=swap');

:root {
    /* ── Brand colors ── */
    --accent:        #2D5A3D;
    --accent-light:  #3a7a52;
    --accent-muted:  rgba(45,90,61,0.25);
    --accent-text:   #6abf82;

    /* ── Surfaces ── */
    --bg:            #0F0F0E;
    --bg-raised:     #1A1918;
    --bg-card:       #1F1E1D;
    --bg-input:      #141413;

    /* ── Ink (text) ── */
    --ink:           #E8E6DF;
    --ink-soft:      #A8A49C;
    --ink-faint:     #6B6760;

    /* ── Semantic ── */
    --amber:         #C8943E;
    --amber-muted:   rgba(200,148,62,0.15);
    --amber-text:    #E8B34A;
    --red:           #D94444;
    --red-muted:     rgba(217,68,68,0.15);

    /* ── Structure ── */
    --border:        #2E2D2A;
    --border-light:  #252422;
    --radius:        6px;
    --shadow:        0 1px 4px rgba(0,0,0,0.3);
    --shadow-lg:     0 8px 24px rgba(0,0,0,0.5);

    /* ── Spacing scale ── */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  12px;
    --space-lg:  16px;
    --space-xl:  24px;
    --space-2xl: 32px;

    /* ── Typography ── */
    --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;

    /* ── Scroll system (for scroll.css + scroll-system.js) ── */
    --scroll-thumb:  var(--border);
    --scroll-track:  transparent;

    /* ── Mobile nav (used by layout-mobile.css) ── */
    --bottom-nav-h:  56px;
    --desktop-breakpoint: 1024px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Base document */
html, body {
    overflow: hidden;
    /* dvh handles mobile Safari URL-bar height changes */
    height: 100dvh;
}
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Links */
a {
    color: var(--accent-text);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--accent-text); }

/* Headings */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.25;
}
h1 { font-size: 28px; margin-bottom: 4px; }
h2 { font-size: 22px; margin-bottom: 4px; }
h3 { font-size: 17px; margin-bottom: 4px; }
