/* Solvenly design tokens: the one place the inner pages' colours and type are set (the app mirrors these).
   Eucalyptus Sage (jian, 28 Nov 2026; design/eucalyptus/build-handoff.md). Light is the default; dark follows the
   visitor's system setting, and the nav toggle pins either one (data-theme on <html>, saved in localStorage
   "color-scheme" by assets/theme.js, the same key the app uses). The Home page carries the same values in
   scripts/fragments/home-v25.css. Main (--p-action) is ink (jian, 28 Nov): sage is never a button fill. */
:root {
  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 600; --display-tracking: -0.03em; --display-tracking-xl: -0.04em;

  /* brand: the logo, focus and selection, never a status */
  --pk-brand: #355c4e; --pk-brand-dark: #88b5a3;

  /* light */
  color-scheme: light;
  --p-bg: #f7f6f2; --p-surface: #fcfbf9; --p-ink: #252624; --p-muted: #61625c;
  --p-accent: #355c4e; --p-accent-ink: #f7f6f2; --p-action: #252624; --p-action-ink: #f7f6f2;
  /* the close strip and footer are always the dark set */
  --p-inv-bg: #151716; --p-inv-surface: #1c1f1d; --p-inv-ink: #e5e7e4; --p-inv-muted: #9ca39e;
  --p-inv-accent: #88b5a3; --p-inv-accent-ink: #151716; --p-inv-action: #e5e7e4; --p-inv-action-ink: #151716;
  --p-line: #e5e3db; --ink-2: #3b3c39; --soft: #686a63;
}

/* dark: the same set, swapped */
:root[data-theme="dark"] {
  color-scheme: dark;
  --p-bg: #151716; --p-surface: #1c1f1d; --p-ink: #e5e7e4; --p-muted: #9ca39e;
  --p-accent: #88b5a3; --p-accent-ink: #151716; --p-action: #e5e7e4; --p-action-ink: #151716;
  --p-inv-bg: #1c1f1d; --p-inv-surface: #222624; --p-inv-ink: #e5e7e4; --p-inv-muted: #9ca39e;
  --p-inv-accent: #88b5a3; --p-inv-accent-ink: #151716; --p-inv-action: #e5e7e4; --p-inv-action-ink: #151716;
  --p-line: #2c312e; --ink-2: #cfd3cf; --soft: #8f9691;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --p-bg: #151716; --p-surface: #1c1f1d; --p-ink: #e5e7e4; --p-muted: #9ca39e;
    --p-accent: #88b5a3; --p-accent-ink: #151716; --p-action: #e5e7e4; --p-action-ink: #151716;
    --p-inv-bg: #1c1f1d; --p-inv-surface: #222624; --p-inv-ink: #e5e7e4; --p-inv-muted: #9ca39e;
    --p-inv-accent: #88b5a3; --p-inv-accent-ink: #151716; --p-inv-action: #e5e7e4; --p-inv-action-ink: #151716;
    --p-line: #2c312e; --ink-2: #cfd3cf; --soft: #8f9691;
  }
}
::selection { background: #e8eef5; color: #252624; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::selection { background: #2f5546; color: #e5e7e4; } }
:root[data-theme="dark"] ::selection { background: #2f5546; color: #e5e7e4; }
:root { accent-color: var(--p-accent); caret-color: var(--p-accent); }

/* the lit ground (offer strips, panels behind UI) is the subtle band colour, not sand */
:root { --ground-bg: #efede7; --ground-surface: #fcfbf9; --ground-ink: #252624; --ground-muted: #61625c; --ground-accent: #355c4e; }
:root[data-theme="dark"] { --ground-bg: #222624; --ground-surface: #1c1f1d; --ground-ink: #e5e7e4; --ground-muted: #9ca39e; --ground-accent: #88b5a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ground-bg: #222624; --ground-surface: #1c1f1d; --ground-ink: #e5e7e4; --ground-muted: #9ca39e; --ground-accent: #88b5a3; } }
/* the footer is always the dark set */
footer.closing {
  --bg: var(--p-inv-bg); --surface: var(--p-inv-surface); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted);
  --accent: var(--p-inv-accent); --accent-ink: var(--p-inv-accent-ink); --card: var(--p-inv-surface);
  --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
  background: var(--bg); color: var(--ink);
}

/* logo: "solvenly." all in sage (#355c4e on light, #88b5a3 on the dark footer and in dark mode) */
.wordmark { font-weight: 600; font-size: 1.3em; letter-spacing: -.03em; line-height: 1; color: var(--p-accent); }
.wordmark__dot { color: inherit; }
.closing .wordmark, .footer .wordmark { color: var(--p-inv-accent); }
img.mark--light { display: none; }
:root:not([data-theme="dark"]) img.mark--dark { display: none; }
:root:not([data-theme="dark"]) img.mark--light { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.mark--dark { display: inline-block; }
  :root:not([data-theme="light"]) img.mark--light { display: none; }
}

/* the theme toggle in the nav */
.theme-toggle { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink, var(--p-ink)); cursor: pointer; }
.theme-toggle:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.theme-toggle:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .i-sun { display: none; } :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; } :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav__actions { display: flex; align-items: center; gap: var(--s-2, 8px); }

/* drawn mocks: on the light ground their softest text keeps 4.5:1 (it is the muted colour, not a blend of it) */
:root[data-theme="light"] .ui { --u-soft: var(--u-muted); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ui { --u-soft: var(--u-muted); } }
/* the mocks' pause buttons get the same clear focus ring as everything else */
button.ui-pause:focus-visible, button.loop-pause:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; opacity: 1; }

/* the nav's Start free button has no arrow (PM, 28 Nov) */
.nav .btn--plain::after { display: none !important; content: none !important; }

/* the nav as on Home (Designer, 28 Nov): 64px bar with a hairline, the wordmark at 24/700, the words 40px after it in
   the muted colour at 400 and 24px apart, Sign in muted, Start free 600 with a 7px radius */
:root { --nav: 64px; }
@media (max-width: 639px) { :root { --nav: 60px; } }
header.nav { border-bottom: 1px solid var(--p-line); background: var(--p-bg); }
header.nav .nav__logo .wordmark { font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
@media (max-width: 639px) { header.nav .nav__logo .wordmark { font-size: 22px; } }
@media (min-width: 1024px) {
  header.nav .nav__bar { column-gap: 0; }
  header.nav .nav__links { margin-left: 40px; gap: 24px; }
  header.nav .nav__links .nav__link { padding: 12px 0; border-radius: 0; background: none; font-weight: 400; font-size: 15px; color: var(--p-muted); }
  header.nav .nav__links .nav__link:hover { color: var(--p-ink); background: none; }
  header.nav .nav__links .nav__link::before, header.nav .nav__links .nav__link::after { display: none; }
}
header.nav .nav__signin { padding: 12px 0; margin-right: 8px; font-weight: 400; font-size: 15px; color: var(--p-muted); background: none; }
header.nav .nav__signin:hover { color: var(--p-ink); background: none; }
header.nav .btn--plain { padding: 0 16px; border-radius: 7px; font-weight: 600; font-size: 15px; min-height: 44px; }

/* phones and tablets: the same header as Home (Designer, 28 Nov): the theme button, Start free, and a plain menu icon */
@media (max-width: 1023px) {
  header.nav .nav__actions { display: flex; margin-left: auto; gap: 4px; }
  header.nav .nav__actions .nav__signin { display: none; }
  header.nav .nav__toggle { margin-left: 4px; border: 0; border-radius: 7px; color: var(--p-muted); }
  header.nav:not(.is-open) .nav__actions > .theme-toggle { display: inline-grid; border-radius: 7px; color: var(--p-muted); }
}
/* tabular digits only where figures stack in a column; prose and single prices keep proportional digits */
body { font-variant-numeric: normal; }
table td, table th, .nv-plan li b, .nv-fm td { font-variant-numeric: tabular-nums; }
