/* EFEMERNY DESIGN TOKENS — the only default site-wide color palette. */
/* EFEMERNY_LOCAL_FONTS_START: managed by scripts/install-local-fonts.mjs */
/* EFEMERNY_LOCAL_FONTS_END */
/* Source of visual truth: the existing v485 home page, NOT a new design. */
/* A work/collection/profile may explicitly override its own artwork scope. */
:root {
  color-scheme: dark;
  --ef-page-bg: #08070d;
  --ef-surface-deep: #100d18;
  --ef-surface: #14101e;
  --ef-surface-rgb: 20, 16, 30;
  --ef-raised: #1c1527;
  --ef-text: #f0ebf6;
  --ef-muted: #a59aad;
  --ef-quiet: #b8a9c6;
  /* Shared typography. Use installed, metric-stable fallbacks; no network font request. */
  --ef-font-ui: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ef-font-literary: Georgia, "Times New Roman", serif;
  --ef-font-code: ui-monospace, "Cascadia Code", Consolas, monospace;
  /* Optional geometric display families, never used for ordinary UI. */
  --ef-font-experimental: "Jura", var(--ef-font-ui);
  --ef-font-display-tech: "Tektur", var(--ef-font-ui);
  /* The single scale for interface typography; artistic work styles remain scoped. */
  --ef-type-caption: 0.75rem;       /* 12px: auxiliary counters / metadata */
  --ef-type-meta: 0.8125rem;        /* 13px: labels and tabs */
  --ef-type-small: 0.875rem;        /* 14px: secondary UI copy */
  --ef-type-control: 0.9375rem;     /* 15px: compact controls */
  --ef-type-body: 1rem;            /* 16px: readable UI text */
  --ef-type-lead: 1.125rem;        /* 18px: introductions */
  --ef-type-heading-small: 1.4375rem; /* 23px: pane headings */
  --ef-type-leading-control: 1.4;
  --ef-type-leading-body: 1.6;
  --ef-type-leading-literary: 1.7;
  --ef-type-leading-heading: 1.25;
  --ef-type-heading-tracking: -0.025em;
  --ef-type-label-tracking: 0.015em;
  /* v514: system spacing & focus contract. Artwork can override inside its own scope. */
  --ef-space-1: 4px;
  --ef-space-2: 8px;
  --ef-space-3: 12px;
  --ef-space-4: 16px;
  --ef-space-6: 24px;
  --ef-space-8: 32px;
  --ef-space-12: 48px;
  --ef-radius-small: 8px;
  --ef-radius-control: 12px;
  --ef-radius-card: 16px;
  --ef-focus-ring: #dfc9f8;
  --ef-focus-width: 2px;
  --ef-focus-offset: 2px;
  /* Shared geometry: controls and editorial panels use one scale. */
  /* v533: a single input-control geometry and color contract. */
  --ef-check-size: 20px;
  --ef-check-radius: 5px;
  --ef-check-outline: color-mix(in srgb, var(--ef-accent) 52%, var(--ef-quiet));
  --ef-check-fill: var(--ef-accent);
  --ef-switch-width: 46px;
  --ef-switch-height: 27px;
  --ef-switch-knob: 19px;
  --ef-switch-radius: 99px;
  --ef-switch-off: var(--ef-raised);
  --ef-control-min-height: 44px;
  --ef-control-radius: 12px;
  --ef-panel-radius: 12px;
  --ef-type-action-weight: 600;
  --ef-accent: #c7b0e5;
  --ef-accent-strong: #dfc9f8;
  --ef-accent-ink: #171021;
  --ef-border: #c5a5e333;
  --ef-border-strong: #756783;
  --ef-hover: color-mix(in srgb, var(--ef-accent) 14%, transparent);
  /* One neutral action treatment, matching the home page CTA. */
  --ef-action-radius: 12px;
  --ef-action-fill: var(--ef-accent);
  --ef-action-fill-hover: var(--ef-accent-strong);
  --ef-action-on-fill: var(--ef-accent-ink);
  --ef-action-surface: color-mix(in srgb, var(--ef-white) 2%, transparent);
  --ef-action-border: var(--ef-border);
  --ef-action-hover: var(--ef-hover);
  --ef-action-motion: background-color .18s ease, border-color .18s ease, color .18s ease;
  /* Shared system elevations. Artistic presets keep independent styling. */
  --ef-shadow-popover: 0 8px 22px color-mix(in srgb, var(--ef-shadow) 18%, transparent);
  --ef-shadow-dialog: 0 16px 40px color-mix(in srgb, var(--ef-shadow) 30%, transparent);
  --ef-shadow-drawer: 0 12px 28px color-mix(in srgb, var(--ef-shadow) 28%, transparent);
  --ef-white: #ffffff;
  --ef-shadow: #000000;
  --ef-success: #9acbb4;
  --ef-danger: #e5a0ad;
  --ef-warning: #e5c993;
  /* Compatibility aliases: the old component names no longer own colors. */
  --ac-bg: var(--ef-page-bg);
  --ac-panel: var(--ef-surface);
  --ac-panel-soft: var(--ef-raised);
  --ac-line: var(--ef-border);
  --ac-ink: var(--ef-text);
  --ac-muted: var(--ef-muted);
  --ac-accent: var(--ef-accent);
  --ac-green: var(--ef-success);
  --ac-red: var(--ef-danger);
  --control-bg: var(--ef-surface);
  --control-line: var(--ef-border);
  --control-ink: var(--ef-text);
  --control-muted: var(--ef-muted);
  --control-accent: var(--ef-accent);
  --ui-surface: var(--ef-surface);
  --ui-surface-raised: var(--ef-raised);
  --ui-text: var(--ef-text);
  --ui-muted: var(--ef-muted);
  --ui-line: var(--ef-border);
  --ui-accent: var(--ef-accent);
  --music-chrome: var(--ef-surface-deep);
  --music-surface: var(--ef-surface);
  --music-ink: var(--ef-text);
  --music-secondary: var(--ef-quiet);
  --music-edge: var(--ef-border);
  --rs-gold: var(--ef-accent);
  --rs-ink: var(--ef-text);
  --rs-muted: var(--ef-muted);
  --rs-line: var(--ef-border);
  --studio-ink: var(--ef-text);
  --studio-muted: var(--ef-muted);
  --studio-line: var(--ef-border);
  --studio-accent: var(--ef-accent);
  --desk-bg: var(--ef-page-bg);
  --rules-ink: var(--ef-text);
  --rules-muted: var(--ef-muted);
  --rules-accent: var(--ef-accent);
  --player-ink: var(--ef-text);
  --player-muted: var(--ef-muted);
  --player-accent: var(--ef-accent);
  --tray-bg: var(--ef-surface-deep);
  --tray-ink: var(--ef-text);
  --tray-line: var(--ef-border);
  --blog-muted: var(--ef-muted);
  --catalog-secondary: var(--ef-muted);
  /* Exactly the softly illuminated treatment used by the v485 portal home. */
  --ef-page-backdrop:
    radial-gradient(ellipse 70% 32% at 84% 6%, #4930641c, transparent 78%),
    radial-gradient(ellipse 45% 25% at 0 65%, #30264715, transparent 80%),
    var(--ef-page-bg);
  /* Existing old names remain as aliases until consumers are migrated. */
  --bg: var(--ef-page-bg);
  --text: var(--ef-text);
  --muted: var(--ef-muted);
  --line: var(--ef-border);
  --accent: var(--ef-accent);
}
