/**
 * Kupetz design tokens.
 *
 * These aliases map the current visual language to stable semantic variables.
 * Values intentionally match the legacy CSS in phase 2, so using a token does
 * not alter the rendered design.
 */
:root {
    --kupetz-color-brand: var(--wp--preset--color--brand-brown, #5e4545);
    --kupetz-color-brand-dark: var(--wp--preset--color--brand-brown-dark, #4e3737);
    --kupetz-color-gold: var(--wp--preset--color--brand-gold, #ba9249);
    --kupetz-color-gold-dark: var(--wp--preset--color--brand-gold-dark, #af852c);
    --kupetz-color-text: var(--wp--preset--color--text, #262626);
    --kupetz-color-white: var(--wp--preset--color--white, #fff);
    --kupetz-color-light-border: var(--wp--preset--color--light-border, #dbdbdb);
    --kupetz-color-ornament: #dcc8a4;
    --kupetz-color-border-muted: #bab0b0;
    --kupetz-color-social-icon: #dfc79e;
    --kupetz-color-social-hover: #3b5998;
    --kupetz-color-footer-rule: #a18888;
    --kupetz-color-product-text: #6e4e4e;
    --kupetz-color-card-border: #ddd3ce;
    --kupetz-color-placeholder: #666;
    --kupetz-color-muted-text: #7e6a6a;
    --kupetz-color-form-background: #ede9e9;
    --kupetz-color-form-border: #cbc1c0;
    --kupetz-shadow-card: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
    --kupetz-shadow-card-hover: 0 7px 28px hsla(0, 0%, 39%, .25), 0 10px 10px hsla(0, 0%, 39%, .22);

    --kupetz-font-body: var(--wp--preset--font-family--circe, _circe, Arial, sans-serif);
    --kupetz-font-body-light: var(--wp--preset--font-family--circe-light, _circe_light, Arial, sans-serif);
    --kupetz-font-body-bold: var(--wp--preset--font-family--circe-bold, _circe_bold, Arial, sans-serif);
    --kupetz-font-serif: var(--wp--preset--font-family--bazhanov, _baz, Georgia, serif);
    --kupetz-font-display: var(--wp--preset--font-family--bandera, _band, Georgia, serif);

    --kupetz-content-width: var(--wp--custom--layout--content, 978px);

    /* Header/navigation geometry. Values mirror the established layout. */
    --kupetz-header-bar-height: 50px;
    --kupetz-mobile-menu-width: min(80vw, 300px);
    --kupetz-mobile-menu-logo-height: 180px;
}

/* Semantic layout tokens: never make the content layout inherit chrome width.
 * Chrome: topbar, brand, navigation and footer.
 * Editorial: full-width homepage sections (hero remains full-bleed).
 * Catalog: dedicated sidebar/results grid, with its original card density.
 * This design is enabled only via the theme's controlled release switch.
 */
body.kcv20-chrome {
    --kcv-chrome-max: 1660px;
    --kcv-chrome-gutter: clamp(14px, 1.8vw, 30px);
    --kcv-editorial-max: 1900px;
    --kcv-editorial-gutter: clamp(17px, 2.05vw, 42px);
    --kcv-catalog-max: 1484px;
    --kcv-catalog-gutter: clamp(15px, 2.25vw, 36px);

    /* Reversible emerald colour trial — set this one RGB token to
     * 67 12 28 for the historic burgundy variant. Affects only the
     * emblem and gift editorial panel, never header/footer/checkout.
     */
    --kcv-secondary-rgb: 13 80 64;

    /* One arrow size/colour contract for theme slider navigation. */
    --kcv-slider-control-size: 46px;
    --kcv-slider-control-ink: #ebc183;
    --kcv-slider-control-border: rgba(231, 190, 126, .82);
    --kcv-slider-control-fill: rgba(57, 13, 30, .78);
}
