/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS — the one source for every page
   (home, paint, blog, business, studio, proof).
   Load this first, before any page stylesheet.

   Rules of the system:
   - ONE primary green (--cta) for buttons, chosen options, links.
     --accent is the softer green for dots, fills and gradients only.
   - Chosen option (size, style, preset) = green.
     Current view / step / tab           = --ink-deep.
   - Playfair (--font-serif) only in marketing headlines and modal titles,
     never in tool UI (paint, studio, proof).
   - The business side changes only a few tokens (see the end of this file),
     never its own colours.
   ═══════════════════════════════════════════════════════ */

/* Self-hosted fonts (same variable files Google serves), preloaded from the HTML. */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500 700;
    font-display: optional;  /* preloaded + cached: no fallback-then-swap flash on reload */
    src: url('/assets/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: optional;
    src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Fonts */
    --font-sans:  'Manrope', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-mono:  ui-monospace, Menlo, monospace;

    /* Surfaces */
    --white:        #ffffff;
    --surface:      #ffffff;
    --surface-warm: #fffdf8;
    --bg:           #f9f6f2;
    --bg-soft:      #f2ede7;
    --bg-tool:      #eceae3;   /* workspace behind a canvas */
    --bg-tool-soft: #f3f1eb;   /* segmented controls, hovers on tool surfaces */

    /* Text: one green-grey family */
    --ink:        #1c1c1e;
    --ink-soft:   #4b5348;
    --ink-muted:  #6c7569;     /* 4.5:1+ on white and --bg */
    --ink-deep:   #1b2520;     /* dark chrome: studio bar, current tab, status pills */
    --on-deep:       #ffffff;
    --on-deep-muted: #b9c8bd;

    /* Brand green */
    --cta:        #4e6f56;
    --cta-hover:  #3d5844;
    --cta-glow:   rgba(78, 111, 86, 0.22);
    --cta-soft:   rgba(78, 111, 86, 0.08);
    --cta-ring:   rgba(78, 111, 86, 0.15);
    --accent:     #6b8f71;
    --accent-soft:  #dfe9dc;
    --accent-light: #9fc4a8;   /* green on dark chrome */
    --accent-light-hover: #b6d6bd;
    --teal:       #3d6b5a;
    --teal-soft:  rgba(61, 107, 90, 0.08);

    /* Status */
    --danger:       #b55664;
    --danger-hover: #9e4455;
    --danger-soft:  rgba(181, 86, 100, 0.1);
    --warn:         #a35a14;
    --warn-soft:    #fff4e2;
    --warn-line:    #f1d3a6;
    --warn-dot:     #e39b2d;
    --success:      #2f6b3d;
    --success-soft: #eaf5ed;
    --success-line: #b9dcc2;
    --success-dot:  #3f9a58;
    --highlight:    #ffc400;   /* edit mode on */

    /* Borders */
    --border:     rgba(0, 0, 0, 0.09);
    --border-md:  rgba(0, 0, 0, 0.15);

    /* Shadows */
    --s-xs: 0 1px 4px  rgba(0,0,0,0.06);
    --s-sm: 0 2px 10px rgba(0,0,0,0.07);
    --s-md: 0 6px 22px rgba(0,0,0,0.09);
    --s-lg: 0 12px 40px rgba(0,0,0,0.11);
    --s-xl: 0 24px 64px rgba(0,0,0,0.13);

    /* Radii: four steps + pill */
    --r-sm: 8px;     /* inputs, small buttons, chips in a grid */
    --r-md: 12px;    /* buttons, option cards, popovers */
    --r-lg: 16px;    /* cards */
    --r-xl: 24px;    /* modals, hero panels */
    --r-pill: 999px;

    --w: 1080px;

    /* Top bar height, shared by the site nav and the studio bar. */
    --nav-h: 60px;
}

@media (max-width: 768px) {
    :root { --nav-h: 54px; }
}

/* Business tier: same palette, tool background. */
body[data-tier="b2b"] {
    --bg: var(--bg-tool);
}
