/* VKEFUN public UI: one semantic source for archive and existing components. */
:root {
    --color-page: #f3ecdf;
    --color-surface: #ffffff;
    --color-surface-muted: #eee3d0;
    --color-surface-hover: #f4e9d6;
    --color-ink: #27251f;
    --color-text-secondary: #514a40;
    --color-text-muted: #665d50;
    --color-accent: #923a29;
    --color-accent-hover: #71291e;
    --color-accent-soft: #f3e1cc;
    --color-border: #d2bfa3;
    --color-border-strong: #9f8261;
    --color-focus: #8e3426;
    --color-success: #32694f;
    --color-danger: #a53936;
    --font-ui: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    --color-scheme: light;
    --shadow-surface: 0 2px 5px rgb(77 51 27 / 10%);
    --material-button: linear-gradient(#fffaf2, #efe2cc);
    --material-red: url('/images/archive/paint-grain-26ee9a8c4f3d784b25867788ec991643642f427030c3ec4247b58fc248a36264.svg') 0 0 / 128px 128px repeat, linear-gradient(#9f3e2c, #842c22);
    --material-nav: url('/images/archive/nav-patina-26ee9a8c4f3d784b25867788ec991643642f427030c3ec4247b58fc248a36264.svg') center / 156px 96px repeat, linear-gradient(160deg, #9b3d27, #8e3424 52%, #7b2b20);
    --material-paper: linear-gradient(135deg, rgb(255 255 255 / 38%), rgb(231 211 180 / 14%)), url('/images/archive/ivory-paper-26ee9a8c4f3d784b25867788ec991643642f427030c3ec4247b58fc248a36264.webp') center / 480px;
    --material-label: linear-gradient(#fff9ef, #f0e5d4);
    --shadow-control: inset 0 1px 0 rgb(255 213 166 / 48%), inset 0 0 0 1px rgb(255 224 180 / 12%), inset 0 -1px 0 rgb(82 26 16 / 18%), 0 1px 2px rgb(74 41 21 / 22%);
    --shadow-paper-edge: inset 0 0 0 1px rgb(255 252 243 / 60%), inset 0 -1px 0 rgb(174 141 100 / 10%), 0 1px 2px rgb(77 51 27 / 6%);
    --shadow-inset: inset 0 1px 3px rgb(76 53 30 / 15%);
    --shadow-group: inset 0 1px 0 rgb(255 255 255 / 35%);
    --font-editorial: Georgia, "Noto Serif SC", "Songti SC", "STSong", serif;
    --font-brand: Georgia, "Times New Roman", serif;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --container-max: 1360px;
    --page-gutter: 24px;
    --grid-gap: 20px;
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 5px;
    --motion-fast: 180ms cubic-bezier(0.23, 1, 0.32, 1);
    --control-background: #ffffff;
    --control-border: var(--color-border-strong);
    --control-focus: var(--color-focus);
    --form-control-height: 44px;
    --compact-control-height: 36px;
    --control-gap: var(--space-2);
    /* Compatibility aliases: existing forms, details, dialogs and workspaces. */
    --paper: var(--color-page);
    --paper-dark: var(--color-surface-muted);
    --paper-raised: var(--color-surface);
    --paper-inset: var(--color-surface-muted);
    --ink: var(--color-ink);
    --ink-soft: var(--color-text-secondary);
    --ink-faint: var(--color-text-muted);
    --rule: var(--color-border-strong);
    --rule-light: var(--color-border);
    --rule-faint: var(--color-border);
    --accent: var(--color-accent);
    --accent-dark: var(--color-accent-hover);
    --positive: var(--color-success);
    --positive-dark: #284e39;
    --brand-font: var(--font-brand);
    --regular-font: var(--font-ui);
    --ui-font: var(--font-ui);
    --body-font: var(--font-ui);
    --title-font: var(--font-ui);
    --page-width: var(--container-max);
    --reading-width: 760px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 1440px) { :root { --page-gutter: 32px; } }
@media (max-width: 1023px) { :root { --page-gutter: 20px; } }
@media (max-width: 767px) { :root { --page-gutter: 16px; --grid-gap: 16px; } }
