/* vSuite's colours, type and measures, for vJournal and vTodo: paper, slate
   and teal, with copper as vJournal's own note (the bookmark in the logo,
   callouts, the sun) and marigold as vTodo's.

   Light, or dark. Dark when the device asks for it, unless the page says
   data-theme="light"; and always when it says data-theme="dark". That's how
   an app offers Auto / Light / Dark: no attribute, or one of the two. The
   two dark blocks below must stay the same (test.mjs checks). */

:root {
  color-scheme: light;
  --font-ui: "Plus Jakarta Sans", "Avenir Next", "Segoe UI Variable", system-ui, sans-serif;
  --font-read: "Literata", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  --paper: #F2EDE6;          /* page */
  --paper-2: #FBF7F1;        /* drawer, sheets */
  --card: #FFFDFA;           /* cards, inputs, round buttons */
  --glass: rgba(255, 252, 247, 0.9);
  --ink: #1D2630;
  --ink-soft: #51606F;       /* secondary text: 5.6:1 on paper */
  --ink-subtle: #6E7A86;     /* tertiary: 4.1:1, for 13px+ metadata only */
  --line: #E3DACE;
  --line-soft: #EFE8DE;
  --box-line: #B3A99B;       /* empty checkbox ring */
  --teal: #0F766E;
  --teal-strong: #0B5752;
  --teal-soft: #DDECE9;
  --on-teal: #FFFFFF;
  --copper: #C3722C;
  --copper-soft: #F7EADB;
  --copper-line: #ECD6BD;
  --marigold: #D69E2E;       /* vTodo's note: the dot in its logo, "today" */
  --marigold-soft: #FBEFD4;
  --marigold-ink: #7A4F08;
  --success: #2F855A;
  --success-soft: #E1F0E7;
  --danger: #BB4D3E;
  --danger-soft: #F6E1DC;
  --mark: rgba(15, 118, 110, 0.18);
  --focus: rgba(15, 118, 110, 0.22);
  --scrim: rgba(17, 22, 29, 0.36);
  --shadow-sm: 0 2px 10px rgba(23, 31, 41, 0.07);
  --shadow-md: 0 8px 26px rgba(23, 31, 41, 0.1);
  --shadow-lg: 0 18px 42px rgba(23, 31, 41, 0.18);
  /* the home scene */
  --sky-top: #E8F0EE;
  --sky-low: #F5ECE0;
  --hill-1: #DCE7E3;
  --hill-2: #E3D7C7;
  --hill-3: #D7C7B3;
  --sun: #F3D2AE;

  --radius: 18px;
  --gutter: 16px;
  --bar-h: 64px;
  --bar-gap: calc(24px + env(safe-area-inset-bottom, 0px));
  --content: 52rem;
  --sidebar-w: 272px;        /* the frame's sidebar, pinned from 900px (frame.css) */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #11161D;
    --paper-2: #161C25;
    --card: #1C2430;
    --glass: rgba(28, 36, 48, 0.92);
    --ink: #EDF2F7;
    --ink-soft: #C2C9D1;
    --ink-subtle: #93A0AE;
    --line: #2A3442;
    --line-soft: #222B37;
    --box-line: #5E6B7A;
    --teal: #38B2AC;
    --teal-strong: #8FE4DE;
    --teal-soft: #173A3A;
    --on-teal: #08201F;
    --copper: #F2A65A;
    --copper-soft: #2C2218;
    --copper-line: #4A3826;
    --marigold: #F2B544;
    --marigold-soft: #33290F;
    --marigold-ink: #F6C76A;
    --success: #68D391;
    --success-soft: #1B3326;
    --danger: #FC8181;
    --danger-soft: #3A1F1F;
    --mark: rgba(56, 178, 172, 0.3);
    --focus: rgba(56, 178, 172, 0.3);
    --scrim: rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.5);
    --sky-top: #0F1A1E;
    --sky-low: #141A22;
    --hill-1: #17262A;
    --hill-2: #1B2430;
    --hill-3: #212C3A;
    --sun: #5A4029;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11161D;
  --paper-2: #161C25;
  --card: #1C2430;
  --glass: rgba(28, 36, 48, 0.92);
  --ink: #EDF2F7;
  --ink-soft: #C2C9D1;
  --ink-subtle: #93A0AE;
  --line: #2A3442;
  --line-soft: #222B37;
  --box-line: #5E6B7A;
  --teal: #38B2AC;
  --teal-strong: #8FE4DE;
  --teal-soft: #173A3A;
  --on-teal: #08201F;
  --copper: #F2A65A;
  --copper-soft: #2C2218;
  --copper-line: #4A3826;
  --marigold: #F2B544;
  --marigold-soft: #33290F;
  --marigold-ink: #F6C76A;
  --success: #68D391;
  --success-soft: #1B3326;
  --danger: #FC8181;
  --danger-soft: #3A1F1F;
  --mark: rgba(56, 178, 172, 0.3);
  --focus: rgba(56, 178, 172, 0.3);
  --scrim: rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.5);
  --sky-top: #0F1A1E;
  --sky-low: #141A22;
  --hill-1: #17262A;
  --hill-2: #1B2430;
  --hill-3: #212C3A;
  --sun: #5A4029;
}
