/* The tokens of the Cadence design system: every colour, size, corner, shadow
   and text style a page may use, under the name the design system gives it.

   The reference is docs/design/tokens.json, a copy of the design system's own
   file. test/styleguide.test.js fails when a value here differs from it, so
   change that file first and this one to match. /styleguide.html shows them.

   Light is the default and dark follows the visitor's system setting. A part of
   a page can be put in one theme with the class theme-light or theme-dark. */

/* The fonts are served from here, never from another site. Both are under the
   SIL Open Font License: the licence texts are beside the files. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root, .theme-light {
  color-scheme: light;
  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* color */
  --surface-canvas: #faf9f7;
  --surface-raised: #ffffff;
  --surface-sunken: #f1efea;
  --surface-hover: #f0ede8;
  --surface-active: #e7e3db;
  --ink-primary: #1b1a19;
  --ink-secondary: #55524c;
  --ink-tertiary: #6e6a63;
  --ink-inverse: #faf9f7;
  --border-subtle: #ebe7e0;
  --border-default: #ded9d0;
  --border-strong: #8f887c;
  --accent: #4a50c4;
  --accent-hover: #3f45b0;
  --accent-active: #363b99;
  --accent-subtle: #eeeffa;
  --accent-border: #c6c8ee;
  --accent-text: #4046b5;
  --on-accent: #ffffff;
  --focus-ring: var(--accent);
  --success: #146152;
  --success-subtle: #e4f1ec;
  --success-text: var(--success);
  --warning: #8a5a0b;
  --warning-subtle: #fbf0dc;
  --warning-text: var(--warning);
  --danger: #a9342e;
  --danger-hover: #8f2a25;
  --danger-subtle: #fbebe9;
  --danger-text: var(--danger);
  --overlay-scrim: rgba(27, 26, 25, 0.32);
  --skeleton: #ece8e1;
  /* shadow */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(27, 26, 25, 0.05);
  --shadow-sm: 0 2px 6px rgba(27, 26, 25, 0.07);
  --shadow-md: 0 6px 18px rgba(27, 26, 25, 0.09);
  --shadow-overlay: 0 18px 48px rgba(27, 26, 25, 0.16);
  /* spacing */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --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;
  /* radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-full: 999px;
  /* size */
  --control-sm: 28px;
  --control-md: 32px;
  --control-lg: 38px;
  --icon-sm: 14px;
  --icon-md: 16px;
  --icon-lg: 20px;
  --icon-stroke: 1.5px;
  --focus-width: 2px;
  --sidebar-width: 228px;
  /* opacity */
  --opacity-disabled: 0.45;
  --opacity-skeleton: 0.7;
}
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    color-scheme: dark;
    --surface-canvas: #131311;
    --surface-raised: #1b1b19;
    --surface-sunken: #0d0d0c;
    --surface-hover: #232321;
    --surface-active: #2c2c29;
    --ink-primary: #f2f0eb;
    --ink-secondary: #afaaa1;
    --ink-tertiary: #8b867d;
    --ink-inverse: #131311;
    --border-subtle: #2a2a27;
    --border-default: #35342f;
    --border-strong: #75716a;
    --accent: #8e93f0;
    --accent-hover: #a3a7f5;
    --accent-active: #b6b9f8;
    --accent-subtle: #22233a;
    --accent-border: #3b3c63;
    --accent-text: #9fa4f5;
    --on-accent: #14142b;
    --focus-ring: var(--accent);
    --success: #5fc2a3;
    --success-subtle: #22312c;
    --success-text: var(--success);
    --warning: #dfa94a;
    --warning-subtle: #332813;
    --warning-text: var(--warning);
    --danger: #ef8b83;
    --danger-hover: #f6a49d;
    --danger-subtle: #361f1d;
    --danger-text: var(--danger);
    --overlay-scrim: rgba(0, 0, 0, 0.55);
    --skeleton: #262623;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
    --shadow-overlay: 0 18px 48px rgba(0, 0, 0, 0.65);
  }
}
.theme-dark {
  color-scheme: dark;
  --surface-canvas: #131311;
  --surface-raised: #1b1b19;
  --surface-sunken: #0d0d0c;
  --surface-hover: #232321;
  --surface-active: #2c2c29;
  --ink-primary: #f2f0eb;
  --ink-secondary: #afaaa1;
  --ink-tertiary: #8b867d;
  --ink-inverse: #131311;
  --border-subtle: #2a2a27;
  --border-default: #35342f;
  --border-strong: #75716a;
  --accent: #8e93f0;
  --accent-hover: #a3a7f5;
  --accent-active: #b6b9f8;
  --accent-subtle: #22233a;
  --accent-border: #3b3c63;
  --accent-text: #9fa4f5;
  --on-accent: #14142b;
  --focus-ring: var(--accent);
  --success: #5fc2a3;
  --success-subtle: #22312c;
  --success-text: var(--success);
  --warning: #dfa94a;
  --warning-subtle: #332813;
  --warning-text: var(--warning);
  --danger: #ef8b83;
  --danger-hover: #f6a49d;
  --danger-subtle: #361f1d;
  --danger-text: var(--danger);
  --overlay-scrim: rgba(0, 0, 0, 0.55);
  --skeleton: #262623;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-overlay: 0 18px 48px rgba(0, 0, 0, 0.65);
}

/* The ten text styles of the app. */
.text-display { font-family: var(--font-sans); font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.text-title-lg { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.015em; }
.text-title-md { font-family: var(--font-sans); font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.text-title-sm { font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; }
.text-body { font-family: var(--font-sans); font-size: 15px; line-height: 23px; font-weight: 400; }
.text-body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; }
.text-label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 500; }
.text-caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.text-overline { font-family: var(--font-sans); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.text-mono { font-family: var(--font-mono); font-size: 12.5px; line-height: 20px; font-weight: 400; }

/* The seven text styles of the public site. A large one grows with the width of
   the screen, from its size on a phone to its size on a wide screen. */
.text-hero { font-family: var(--font-sans); font-size: clamp(40px, 6.4vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.text-display-xl { font-family: var(--font-sans); font-size: clamp(36px, 5.4vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.text-display-lg { font-family: var(--font-sans); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.text-display-md { font-family: var(--font-sans); font-size: clamp(24px, 3vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.text-statement { font-family: var(--font-sans); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.text-lede { font-family: var(--font-sans); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; font-weight: 400; }
.text-wordmark { font-family: var(--font-sans); font-size: 19px; line-height: 24px; font-weight: 600; letter-spacing: -0.03em; }
