/* Firefly Collective — design tokens. "Guild Hall": a craft guild's hall at night.
 * Oxblood and timber for the hall, burnished copper for rims and rules,
 * lantern gold for the lights, parchment and ink for reading.
 * The four base colours come from the Customizer (options.php) as
 * --fcg-hall, --fcg-copper, --fcg-ink and --fcg-paper; everything else is
 * mixed from them, so any choice there stays in tune. */
:root {
    --fcg-hall: #2a0e10;
    --fcg-copper: #b87333;
    --fcg-ink: #1f1612;
    --fcg-paper: #f3ead8;
}
.fcg-page, .editor-styles-wrapper {
    /* Hall */
    --fcg-hall-deep: color-mix(in oklab, var(--fcg-hall) 70%, #000);
    --fcg-hall-2: color-mix(in oklab, var(--fcg-hall) 88%, #5a1a1d);
    --fcg-hall-3: color-mix(in oklab, var(--fcg-hall) 76%, #7a2a26);
    --fcg-vellum: #f8eedb;
    --fcg-lantern: #f6c453; /* firefly and lantern light: small accents on the hall */
    --fcg-on-hall: #eadcc4;
    --fcg-on-hall-muted: color-mix(in oklab, var(--fcg-on-hall) 66%, var(--fcg-hall));
    --fcg-hall-line: color-mix(in oklab, var(--fcg-copper) 24%, transparent);
    --fcg-hall-line-soft: rgba(234, 220, 196, 0.1);

    /* Copper */
    --fcg-copper-soft: color-mix(in oklab, var(--fcg-copper) 55%, #ffe2b3);
    --fcg-copper-deep: color-mix(in oklab, var(--fcg-copper) 72%, #3d1d0c);
    --fcg-copper-ink: color-mix(in oklab, var(--fcg-copper) 58%, #5a2a0e); /* gold that reads on parchment */
    --fcg-copper-glow: color-mix(in oklab, var(--fcg-copper) 40%, transparent);
    --fcg-on-copper: #1f1612;
    --fcg-ember: #c8553d; /* the wax seal: used once or twice a page */

    /* Parchment */
    --fcg-paper-2: color-mix(in oklab, var(--fcg-paper) 92%, var(--fcg-copper-deep));
    --fcg-paper-3: color-mix(in oklab, var(--fcg-paper) 84%, var(--fcg-copper-deep));
    --fcg-surface: color-mix(in oklab, var(--fcg-paper) 40%, #fff);
    --fcg-muted: color-mix(in oklab, var(--fcg-ink) 64%, var(--fcg-paper));
    --fcg-line: color-mix(in oklab, var(--fcg-ink) 14%, transparent);
    --fcg-line-strong: color-mix(in oklab, var(--fcg-ink) 26%, transparent);

    /* Type */
    --fcg-font-display: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --fcg-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fcg-font-read: "Source Serif 4", "Iowan Old Style", Georgia, serif;
    --fcg-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    --fcg-step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
    --fcg-step--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
    --fcg-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
    --fcg-step-1: clamp(1.15rem, 1.08rem + 0.36vw, 1.32rem);
    --fcg-step-2: clamp(1.35rem, 1.22rem + 0.62vw, 1.72rem);
    --fcg-step-3: clamp(1.65rem, 1.42rem + 1.1vw, 2.35rem);
    --fcg-step-4: clamp(2.05rem, 1.66rem + 1.9vw, 3.3rem);
    --fcg-step-5: clamp(2.6rem, 1.9rem + 3.4vw, 5rem);
    --fcg-step-6: clamp(3.1rem, 2rem + 5.4vw, 6.8rem);

    /* Space */
    --fcg-space-1: 0.25rem; --fcg-space-2: 0.5rem; --fcg-space-3: 0.85rem; --fcg-space-4: 1.25rem;
    --fcg-space-5: 2rem; --fcg-space-6: 3rem; --fcg-space-7: 4.5rem; --fcg-space-8: 6.5rem;
    --fcg-section: clamp(4rem, 2.8rem + 6vw, 8rem);
    --fcg-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
    --fcg-wrap: 1240px;
    --fcg-wrap-narrow: 760px;
    --fcg-wrap-tree: 620px;
    --fcg-header-h: 72px;

    /* Shape and depth */
    --fcg-radius: 3px;
    --fcg-radius-lg: 6px;
    --fcg-arch: 999px 999px var(--fcg-radius) var(--fcg-radius);
    --fcg-shadow-sm: 0 1px 2px rgba(26, 8, 9, 0.08);
    --fcg-shadow: 0 10px 30px -12px rgba(26, 8, 9, 0.35);
    --fcg-shadow-lg: 0 30px 70px -28px rgba(26, 8, 9, 0.55);
    --fcg-glow: 0 0 0 1px var(--fcg-hall-line), 0 18px 50px -20px rgba(0, 0, 0, 0.7), 0 0 40px -16px var(--fcg-copper-glow);

    /* Motion */
    --fcg-ease: cubic-bezier(.4, 0, .2, 1);
    --fcg-ease-out: cubic-bezier(.16, 1, .3, 1);
    --fcg-fast: 160ms; --fcg-med: 280ms; --fcg-slow: 700ms;
}
