/**
 * Sasterawan — Cream scheme (aged paper)
 *
 * SCHEME OWNS SURFACE. TIME OWNS INK.
 *
 * Selectors on body.bwp-scheme-cream set surface tokens directly on <body>.
 * Custom properties set on body beat values inherited from <html> (where
 * the time class lives) — so cream paper holds regardless of time period.
 *
 * Compound selectors (time + scheme) are wrapped in :where() so they keep
 * the specificity of the base rule and the reader's night toggle
 * (html.bwp-night body in frontend.css) can still override them.
 *
 * Compound selectors (time + scheme) tune the surface tint to complement
 * the active ink mood: cooler at dawn, warmest at morning, deep at dusk,
 * dimmed at night. Ink tokens are untouched — time provides those.
 */

/* ── Base surface ────────────────────────────────────────────────────────── */
/* Afternoon default and fallback for any unlisted period.                   */

body.bwp-scheme-cream {
    --bwp-bg:           #faf5dc;
    --bwp-bg-subtle:    #f3edcc;
    --bwp-border:       #d8cfc0;
    --bwp-border-faint: #e8e2d4;
    --bwp-stone:        #9a8c70;
}

/* ── Cream + Dawn — faintly cooler paper, misty morning ─────────────────── */

:where(:root.bwp-time-dawn) body.bwp-scheme-cream {
    --bwp-bg:           #f6f4f8;
    --bwp-bg-subtle:    #efecf4;
    --bwp-border:       #ccc8d8;
    --bwp-border-faint: #e2dff0;
    --bwp-stone:        #8a84a0;
}

/* ── Cream + Morning — warmest paper, amber-soaked ─────────────────────── */

:where(:root.bwp-time-morning) body.bwp-scheme-cream {
    --bwp-bg:           #fdf6e0;
    --bwp-bg-subtle:    #f8eecc;
    --bwp-border:       #dcc898;
    --bwp-border-faint: #ede4c0;
    --bwp-stone:        #a08850;
}

/* ── Cream + Dusk — ochre-tinged parchment ──────────────────────────────── */

:where(:root.bwp-time-dusk) body.bwp-scheme-cream {
    --bwp-bg:           #fdf0d0;
    --bwp-bg-subtle:    #f5e4b8;
    --bwp-border:       #d4b888;
    --bwp-border-faint: #e8d8b0;
    --bwp-stone:        #a07848;
}

/* ── Cream + Night — dimmed warm parchment, lamp-lit ───────────────────── */

:where(:root.bwp-time-night) body.bwp-scheme-cream {
    --bwp-bg:           #f0e8cc;
    --bwp-bg-subtle:    #e8ddb8;
    --bwp-border:       #c8b898;
    --bwp-border-faint: #d8c8a8;
    --bwp-stone:        #907858;

    /* Ink — the global night ink is silver for a navy surface; on parchment
       it must be re-set to a dark, lamp-lit tone or the page is unreadable. */
    --bwp-text:         #2b2418;
    --bwp-text-mid:     #4a4030;
    --bwp-muted:        #6b5d48;
    --bwp-link:         #2d5a80;
    --bwp-link-hover:   #1e4160;
    --bwp-accent:       #2d5a80;
    --bwp-ornament:     #a89878;
    --bwp-progress:     #2d5a80;
    --bwp-border-ink:   #8a7a60;
    --bwp-teal:         #1B3C53;
    --bwp-gold:         #8a7050;
    --bwp-gold-dim:     #6a5438;
    --bwp-gold-light:   #a89070;
}
