/* Дизайн-токени: кольори обох тем, шрифти, відступи, розміри. */
/* Design tokens. The rules behind these values are in docs/DESIGN.md. */

/* Theme-independent tokens. */
:root {
  --font-sans: "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Manrope Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, Menlo, Consolas, monospace;

  /* Type scale, ratio 1.25. Root is 16px, 17px from 64em (see base.css). */
  --fs--2: 0.75rem;   /* mono labels only: the smallest text on the site (12px) */
  --fs--1: 0.8125rem;
  --fs-0: 1rem;
  --fs-1: 1.25rem;
  --fs-2: 1.5625rem;
  --fs-3: 1.953rem;
  --fs-4: 2.441rem;
  --fs-5: 3.052rem;
  --fs-6: 3.815rem;
  --fs-hero: clamp(2.75rem, 1.4rem + 5.6vw, 5.5rem);
  --lh-body: 1.55;
  --lh-snug: 1.3;
  --lh-tight: 1.05;
  --track-display: -0.03em;
  --track-label: 0.06em;

  /* Space, 4px base. */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: var(--s-8);

  /* Records, panels, fields and marks are cut square. Buttons are the one rounded object (they are pressed,
     records are not), and people (avatars) stay round. */
  --radius: 0;
  --radius-btn: 10px;

  /* Layout. --pad is the side padding of .container. */
  --container: 1200px;
  --shell-narrow: 46rem; /* reading pages: about 68ch of body text */
  --shell-card: 32rem;   /* single-card pages: sign in, report */
  --measure: 68ch;
  --pad: 1rem;
  --control-h: 2.75rem;
  --control-h-lg: 3.25rem;
  --btn-pad: 1.25rem;     /* side padding of a button; .btn--lg 1.375rem */
  --btn-pad-lg: 1.375rem;
  --chip-pad: 0.625rem;   /* side padding of chips (hallmarks, tags); small chips use --s-2 */

  /* Icons: three sizes (POLISH3 stage 3b). s = meta lines and small controls, m = buttons and menus (the default),
     l = empty states. Inside a mono chip an icon follows the chip's text: 1.1em. Stroke 1.5px everywhere. */
  --icon-s: 1rem;
  --icon-m: 1.25rem;
  --icon-l: 1.5rem;

  /* Motion. Durations are short; loops are slow. See motion.css. */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-press: cubic-bezier(0.3, 0, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
}

@media (min-width: 48em) {
  :root { --pad: 1.5rem; --section: var(--s-9); }
}

@media (min-width: 64em) {
  :root { --pad: 2rem; }
}

/* Palette roles and every derivation: docs/PALETTE.md. */
:root,
[data-theme="light"] {
  color-scheme: light;
  --paper: #F3F6F7;
  --surface: #F3F6F7;
  --raised: #F3F6F7;
  --text: #071C1E;
  --muted: #20383A;
  --line: #20383A;
  --line-strong: #6A7A7C;
  --accent: #C7F36B;
  --accent-hover: #79D9D2;
  --on-accent: #071C1E;
  --accent-text: #20383A;
  --proof-bg: #C7F36B;
  --proof: #071C1E;
  --danger: #20383A;
  --danger-hover: #071C1E;
  --on-danger: #F3F6F7;
  --focus: #C7F36B;
  --signal: #79D9D2;
  --focus-edge: #071C1E;
  --halo-tint: #527049;
  --halo-track: #071C1E;
  --tint: rgb(7 28 30 / 0.05);
  --danger-tint: var(--tint);
  --shadow-pop: 0 1px 0 rgb(7 28 30 / 0.04), 0 8px 24px -12px rgb(7 28 30 / 0.25);
}

[data-theme="dark"],
.band {
  color-scheme: dark;
  --paper: #071C1E;
  --surface: #15292B;
  --raised: #233638;
  --text: #F3F6F7;
  --muted: #B1B9BA;
  --line: #4E6264;
  --line-strong: #7F8E8F;
  --accent: #C7F36B;
  --accent-hover: #79D9D2;
  --on-accent: #071C1E;
  --accent-text: #79D9D2;
  --proof-bg: #C7F36B;
  --proof: #071C1E;
  --danger: #79D9D2;
  --danger-hover: #C7F36B;
  --on-danger: #071C1E;
  --focus: #C7F36B;
  --signal: #79D9D2;
  --focus-edge: #071C1E;
  --halo-tint: #79D9D2;
  --halo-track: #071C1E;
  --tint: rgb(243 246 247 / 0.06);
  --danger-tint: var(--tint);
  --shadow-pop: 0 1px 0 rgb(7 28 30 / 0.04), 0 8px 24px -12px rgb(7 28 30 / 0.25);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #071C1E;
    --surface: #15292B;
    --raised: #233638;
    --text: #F3F6F7;
    --muted: #B1B9BA;
    --line: #4E6264;
    --line-strong: #7F8E8F;
    --accent: #C7F36B;
    --accent-hover: #79D9D2;
    --on-accent: #071C1E;
    --accent-text: #79D9D2;
    --proof-bg: #C7F36B;
    --proof: #071C1E;
    --danger: #79D9D2;
    --danger-hover: #C7F36B;
    --on-danger: #071C1E;
    --focus: #C7F36B;
    --signal: #79D9D2;
    --focus-edge: #071C1E;
    --halo-tint: #79D9D2;
    --halo-track: #071C1E;
    --tint: rgb(243 246 247 / 0.06);
    --danger-tint: var(--tint);
    --shadow-pop: 0 1px 0 rgb(7 28 30 / 0.04), 0 8px 24px -12px rgb(7 28 30 / 0.25);
  }
}

:root, [data-theme="light"] { --band-bg: #071C1E; }
[data-theme="dark"] { --band-bg: #071C1E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band-bg: #071C1E; }
}
