/*
 * The three faces are served from this site, so a page view sends no request
 * to another host. They are the Latin subsets of the Fontsource 5.3.0
 * packages, unmodified, under the SIL Open Font License 1.1. The license texts
 * sit beside them in fonts/. Other characters fall back to the system faces
 * named in the stacks below.
 */
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/quicksand-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: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-sans-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-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;
}

/*
 * The colours are YUME's shared palette, config/palette.json, which the
 * desktop and Android apps use too: plum and sakura on one OKLCH hue, with
 * separate light and dark themes. scripts/yume_palette.py writes the
 * palette regions below. Light values live on :root. Dark values live once
 * in the --dark-* block and are mapped onto the same names when data-theme
 * is "dark". Light is the default. The system colour preference does not
 * switch the theme, only the visitor's own choice does.
 */

:root {
  color-scheme: light;

  /*
   * Diagram roles. A role is what a colour means inside a figure or a state,
   * and the apps use the same role colours: the client in the brand plum, the
   * server in wisteria, the reader's own data in sky blue, the disguise in
   * apricot, keys in honey, the outside world in sage, and refused or
   * still-visible things in rose. Every role has a mid tone, a strong ink, a
   * soft tint and the ink on that tint at matched lightness and low chroma,
   * so no hue outshouts another. Roles never replace the accent in site
   * chrome. Neutrals stay on the palette's hue.
   */
  /* palette:light Generated by scripts/yume_palette.py from config/palette.json. Do not edit. */
  --color-paper: oklch(96.5% 0.0065 338);
  --color-paper-soft: oklch(95.5% 0.008 338);
  --color-paper-deep: oklch(94.5% 0.009 338);
  --color-cloud: oklch(99.3% 0.0035 338);
  --color-ink: oklch(26.5% 0.014 338);
  --color-ink-soft: oklch(49% 0.018 338);
  --color-muted: oklch(53.5% 0.016 338);
  --color-rule: oklch(86% 0.014 338);
  --color-rule-soft: oklch(91.5% 0.011 338);
  --color-line-strong: oklch(66.5% 0.02 338);
  --color-logo-from: #FFCBF3;
  --color-logo-to: #E59FD1;
  --color-accent: oklch(76% 0.085 338);
  --color-accent-strong: oklch(54.5% 0.095 338);
  --color-accent-soft: oklch(91.5% 0.042 338);
  --color-accent-ink: oklch(37% 0.07 338);
  --color-button: oklch(88% 0.06 338);
  --color-button-hover: oklch(85.5% 0.066 338);
  --color-button-pressed: oklch(83% 0.072 338);
  --color-button-ink: oklch(37% 0.07 338);
  --color-focus: oklch(54.5% 0.095 338);
  --color-track: oklch(80% 0.07 338);
  --color-code: oklch(95.5% 0.014 338);
  --color-code-head: oklch(92.5% 0.018 338);
  --color-code-ink: oklch(28% 0.02 338);
  --color-code-rule: oklch(88% 0.02 338);
  --color-code-inline: oklch(95% 0.016 338);
  --color-warn: oklch(50% 0.075 62);
  --color-warn-soft: oklch(93.5% 0.035 62);
  --color-role-server: oklch(72% 0.08 310);
  --color-role-server-strong: oklch(50% 0.075 310);
  --color-role-server-soft: oklch(93.5% 0.035 310);
  --color-role-server-ink: oklch(34% 0.06 310);
  --color-role-data: oklch(72% 0.08 245);
  --color-role-data-strong: oklch(50% 0.075 245);
  --color-role-data-soft: oklch(93.5% 0.035 245);
  --color-role-data-ink: oklch(34% 0.06 245);
  --color-role-disguise: oklch(72% 0.08 62);
  --color-role-disguise-strong: oklch(50% 0.075 62);
  --color-role-disguise-soft: oklch(93.5% 0.035 62);
  --color-role-disguise-ink: oklch(34% 0.06 62);
  --color-role-keys: oklch(72% 0.08 80);
  --color-role-keys-strong: oklch(50% 0.075 80);
  --color-role-keys-soft: oklch(93.5% 0.035 80);
  --color-role-keys-ink: oklch(34% 0.06 80);
  --color-role-outside: oklch(72% 0.08 165);
  --color-role-outside-strong: oklch(50% 0.075 165);
  --color-role-outside-soft: oklch(93.5% 0.035 165);
  --color-role-outside-ink: oklch(34% 0.06 165);
  --color-role-refused: oklch(72% 0.08 18);
  --color-role-refused-strong: oklch(50% 0.075 18);
  --color-role-refused-soft: oklch(93.5% 0.035 18);
  --color-role-refused-ink: oklch(34% 0.06 18);
  --color-role-client: var(--color-accent);
  --color-role-client-strong: var(--color-accent-strong);
  --color-role-client-soft: var(--color-accent-soft);
  --color-role-neutral: var(--color-rule);
  --color-role-neutral-strong: var(--color-muted);
  --color-role-neutral-soft: var(--color-rule-soft);
  /* palette:end */

  --shadow-whisper: 0 0.75rem 2rem oklch(46% 0.06 337 / 0.06);
  --shadow-cloud: 0 2rem 6rem oklch(55% 0.09 337 / 0.12);
  --shadow-logo: 0 1rem 2rem oklch(55% 0.1 337 / 0.14);

  /* Dark palette source values. Mapped below, never referenced directly. */
  /* palette:dark-source Generated by scripts/yume_palette.py from config/palette.json. Do not edit. */
  --dark-paper: oklch(19% 0.012 338);
  --dark-paper-soft: oklch(28% 0.016 338);
  --dark-paper-deep: oklch(31% 0.017 338);
  --dark-cloud: oklch(25% 0.015 338);
  --dark-ink: oklch(92% 0.012 338);
  --dark-ink-soft: oklch(80% 0.015 338);
  --dark-muted: oklch(69% 0.016 338);
  --dark-rule: oklch(40% 0.018 338);
  --dark-rule-soft: oklch(33% 0.016 338);
  --dark-line-strong: oklch(56% 0.02 338);
  --dark-logo-from: #FFCBF3;
  --dark-logo-to: #E59FD1;
  --dark-accent: oklch(72% 0.08 338);
  --dark-accent-strong: oklch(84.5% 0.072 338);
  --dark-accent-soft: oklch(37% 0.045 338);
  --dark-accent-ink: oklch(90% 0.05 338);
  --dark-button: oklch(84.5% 0.072 338);
  --dark-button-hover: oklch(81.5% 0.075 338);
  --dark-button-pressed: oklch(78.5% 0.078 338);
  --dark-button-ink: oklch(31% 0.06 338);
  --dark-focus: oklch(84.5% 0.072 338);
  --dark-track: oklch(84.5% 0.072 338);
  --dark-code: oklch(15% 0.01 338);
  --dark-code-head: oklch(20% 0.014 338);
  --dark-code-ink: oklch(92% 0.01 338);
  --dark-code-rule: oklch(28% 0.016 338);
  --dark-code-inline: oklch(28% 0.016 338);
  --dark-warn: oklch(83% 0.07 62);
  --dark-warn-soft: oklch(37% 0.045 62);
  --dark-role-server: oklch(72% 0.07 310);
  --dark-role-server-strong: oklch(83% 0.07 310);
  --dark-role-server-soft: oklch(37% 0.045 310);
  --dark-role-server-ink: oklch(91% 0.04 310);
  --dark-role-data: oklch(72% 0.07 245);
  --dark-role-data-strong: oklch(83% 0.07 245);
  --dark-role-data-soft: oklch(37% 0.045 245);
  --dark-role-data-ink: oklch(91% 0.04 245);
  --dark-role-disguise: oklch(72% 0.07 62);
  --dark-role-disguise-strong: oklch(83% 0.07 62);
  --dark-role-disguise-soft: oklch(37% 0.045 62);
  --dark-role-disguise-ink: oklch(91% 0.04 62);
  --dark-role-keys: oklch(72% 0.07 80);
  --dark-role-keys-strong: oklch(83% 0.07 80);
  --dark-role-keys-soft: oklch(37% 0.045 80);
  --dark-role-keys-ink: oklch(91% 0.04 80);
  --dark-role-outside: oklch(72% 0.07 165);
  --dark-role-outside-strong: oklch(83% 0.07 165);
  --dark-role-outside-soft: oklch(37% 0.045 165);
  --dark-role-outside-ink: oklch(91% 0.04 165);
  --dark-role-refused: oklch(72% 0.07 18);
  --dark-role-refused-strong: oklch(83% 0.07 18);
  --dark-role-refused-soft: oklch(37% 0.045 18);
  --dark-role-refused-ink: oklch(91% 0.04 18);
  /* palette:end */

  --dark-shadow-whisper: 0 0.75rem 2rem oklch(5% 0.008 337 / 0.45);
  --dark-shadow-cloud: 0 2rem 5rem oklch(5% 0.008 337 / 0.35);
  --dark-shadow-logo: 0 0 2.75rem oklch(79% 0.13 337 / 0.22);

  --font-display: "Quicksand", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  --font-body: "Nunito Sans", "Avenir Next", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.25rem;
  --text-lg: 1.5625rem;
  --text-xl: 1.953rem;
  --text-2xl: 2.441rem;
  --text-3xl: 3.052rem;
  --text-display: clamp(3.25rem, 7vw, 5.25rem);

  --space-3xs: 0.25rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;

  --rule-hairline: 1px;
  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-cloud: 1.75rem;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --dur-morph: 520ms;

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  /* palette:dark Generated by scripts/yume_palette.py from config/palette.json. Do not edit. */
  --color-paper: var(--dark-paper);
  --color-paper-soft: var(--dark-paper-soft);
  --color-paper-deep: var(--dark-paper-deep);
  --color-cloud: var(--dark-cloud);
  --color-ink: var(--dark-ink);
  --color-ink-soft: var(--dark-ink-soft);
  --color-muted: var(--dark-muted);
  --color-rule: var(--dark-rule);
  --color-rule-soft: var(--dark-rule-soft);
  --color-line-strong: var(--dark-line-strong);
  --color-logo-from: var(--dark-logo-from);
  --color-logo-to: var(--dark-logo-to);
  --color-accent: var(--dark-accent);
  --color-accent-strong: var(--dark-accent-strong);
  --color-accent-soft: var(--dark-accent-soft);
  --color-accent-ink: var(--dark-accent-ink);
  --color-button: var(--dark-button);
  --color-button-hover: var(--dark-button-hover);
  --color-button-pressed: var(--dark-button-pressed);
  --color-button-ink: var(--dark-button-ink);
  --color-focus: var(--dark-focus);
  --color-track: var(--dark-track);
  --color-code: var(--dark-code);
  --color-code-head: var(--dark-code-head);
  --color-code-ink: var(--dark-code-ink);
  --color-code-rule: var(--dark-code-rule);
  --color-code-inline: var(--dark-code-inline);
  --color-warn: var(--dark-warn);
  --color-warn-soft: var(--dark-warn-soft);
  --color-role-server: var(--dark-role-server);
  --color-role-server-strong: var(--dark-role-server-strong);
  --color-role-server-soft: var(--dark-role-server-soft);
  --color-role-server-ink: var(--dark-role-server-ink);
  --color-role-data: var(--dark-role-data);
  --color-role-data-strong: var(--dark-role-data-strong);
  --color-role-data-soft: var(--dark-role-data-soft);
  --color-role-data-ink: var(--dark-role-data-ink);
  --color-role-disguise: var(--dark-role-disguise);
  --color-role-disguise-strong: var(--dark-role-disguise-strong);
  --color-role-disguise-soft: var(--dark-role-disguise-soft);
  --color-role-disguise-ink: var(--dark-role-disguise-ink);
  --color-role-keys: var(--dark-role-keys);
  --color-role-keys-strong: var(--dark-role-keys-strong);
  --color-role-keys-soft: var(--dark-role-keys-soft);
  --color-role-keys-ink: var(--dark-role-keys-ink);
  --color-role-outside: var(--dark-role-outside);
  --color-role-outside-strong: var(--dark-role-outside-strong);
  --color-role-outside-soft: var(--dark-role-outside-soft);
  --color-role-outside-ink: var(--dark-role-outside-ink);
  --color-role-refused: var(--dark-role-refused);
  --color-role-refused-strong: var(--dark-role-refused-strong);
  --color-role-refused-soft: var(--dark-role-refused-soft);
  --color-role-refused-ink: var(--dark-role-refused-ink);
  /* palette:end */

  --shadow-whisper: var(--dark-shadow-whisper);
  --shadow-cloud: var(--dark-shadow-cloud);
  --shadow-logo: var(--dark-shadow-logo);
}
