/*
 * ngnote's theme, shared: app.ngnote.com's palette (fantail apps/web/src/app.css, which overrides the
 * design system's ngnote.css for the app), so account.ngnote.com and ngnote.com look like the product
 * they belong to. Warm paper by day, a deep warm slate at night — never pure white or pure black — with
 * muted ink and ngnote's sage as the one accent. Light and dark follow the system unless a page sets
 * data-theme="light" | "dark" on <html> (kept in localStorage under "ngnote-theme", the app's key).
 * Change a colour here and in the app's app.css together.
 */
:root {
    --t-press: 90ms;
    --t-panel: 160ms;
    --t-glide: 220ms;
    --sans: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: "Newsreader", "Iowan Old Style", Charter, Georgia, serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    color-scheme: light dark;
    font-synthesis: none;

    --bg: #f4f2ec; --paper: #fbfaf6; --ink: #2d2b27; --soft: #4a4740; --muted: #8b867c;
    --border: #e4e0d6; --tint: #ece8df; --panel: #efece5; --raised: #fbfaf6;
    --accent: #6b7f5a; --accent-strong: #586b48; --on-accent: #fbfaf6; --link: #586b48; --danger: #b0574f; --live: #a07a2c;
    --float-shadow: 0 0 0 1px rgb(60 52 36 / 0.06), 0 1px 2px rgb(60 52 36 / 0.04), 0 10px 30px rgb(60 52 36 / 0.08);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1b1c1e; --paper: #202124; --ink: #e4e1d9; --soft: #c2bfb7; --muted: #8e8b84;
        --border: #2f3033; --tint: #2b2c2f; --panel: #222326; --raised: #26272a;
        --accent: #a5b78e; --accent-strong: #b8c9a2; --on-accent: #1b1c1e; --link: #b8c9a2; --danger: #dc958d; --live: #d8b878;
        --float-shadow: 0 0 0 1px rgb(255 255 255 / 0.05), 0 12px 32px rgb(0 0 0 / 0.38);
    }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1b1c1e; --paper: #202124; --ink: #e4e1d9; --soft: #c2bfb7; --muted: #8e8b84;
    --border: #2f3033; --tint: #2b2c2f; --panel: #222326; --raised: #26272a;
    --accent: #a5b78e; --accent-strong: #b8c9a2; --on-accent: #1b1c1e; --link: #b8c9a2; --danger: #dc958d; --live: #d8b878;
    --float-shadow: 0 0 0 1px rgb(255 255 255 / 0.05), 0 12px 32px rgb(0 0 0 / 0.38);
}
@media (prefers-reduced-motion: reduce) {
    :root { --t-press: 0ms; --t-panel: 0ms; --t-glide: 0ms; }
}
