/* GENERATED by `den gen auth-tokens` from modules/web/styles/themes/graphite.css,
   modules/web/styles/themes/washi.css, modules/web/styles/tokens.css and the
   faces in modules/web/fonts. Do not edit: change those and run
   `den gen auth-tokens`. The auth pages' own rules are page.css. */

/* --- the faces --- */
@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/ibm-plex-sans-400-3b646991d3.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 Sans";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/assets/ibm-plex-sans-500-0717336fb3.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: "Commit Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/commit-mono-400-86132abb57.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;
}

:root {
	--font-sans: "IBM Plex Sans";
	--font-mono: "Commit Mono";
}

/* --- modules/web/styles/themes/graphite.css --- */
/* Graphite, the dark theme: its inputs and nothing else. tokens.css maps them. */
:root {
	--graphite-ground: #0e0c0c;
	--graphite-side: #110f0f;
	--graphite-ink: #efe9e6;
	--graphite-ink-2: #aaa09c; /* labels, times */
	--graphite-ink-3: #7a706c; /* inert */
	--graphite-line: rgb(239 233 230 / 0.08);
	--graphite-line-2: rgb(239 233 230 / 0.16);
	--graphite-pink: #f2a7bc; /* fills, marks */
	--graphite-pink-ink: #f2a7bc; /* pink as text */
	--graphite-shu: #f25a2b;
	--graphite-shu-ink: #f25a2b;
	--graphite-shadow: rgb(0 0 0 / 0.5);
}

/* --- modules/web/styles/themes/washi.css --- */
/* Washi, the light theme: its inputs and nothing else. tokens.css maps them. */
:root {
	--washi-ground: #f6f2ef;
	--washi-side: #efe9e5;
	--washi-ink: #2a2226;
	--washi-ink-2: #6b6064; /* labels, times */
	--washi-ink-3: #93898d; /* inert */
	--washi-line: rgb(42 34 38 / 0.12);
	--washi-line-2: rgb(42 34 38 / 0.22);
	--washi-pink: #da5a86; /* fills, marks */
	--washi-pink-ink: #a6385f; /* pink as text */
	--washi-shu: #f25a2b;
	--washi-shu-ink: #bc3504; /* shu as text */
	--washi-shadow: rgb(42 34 38 / 0.18);
}

/* --- modules/web/styles/tokens.css --- */
/* Everything derived from the themes' inputs, and the scales. With no
   data-theme the system decides; the account menu's picker sets one.

   Every colour here is resolved in OKLab for each theme: keep
   the colour expressions to light-dark(), var(), color-mix(in oklab, ...), a
   hex or rgb() literal, black, white and transparent. */
:root {
	color-scheme: light dark;
}
[data-theme="graphite"] {
	color-scheme: dark;
}
[data-theme="washi"] {
	color-scheme: light;
}

:root {
	/* --- the inputs, mapped: light first, then dark --- */
	--ground: light-dark(var(--washi-ground), var(--graphite-ground));
	--side: light-dark(var(--washi-side), var(--graphite-side));
	--ink: light-dark(var(--washi-ink), var(--graphite-ink));
	--ink-2: light-dark(var(--washi-ink-2), var(--graphite-ink-2));
	--ink-3: light-dark(var(--washi-ink-3), var(--graphite-ink-3));
	--line: light-dark(var(--washi-line), var(--graphite-line));
	--line-2: light-dark(var(--washi-line-2), var(--graphite-line-2));
	--pink: light-dark(var(--washi-pink), var(--graphite-pink));
	--pink-ink: light-dark(var(--washi-pink-ink), var(--graphite-pink-ink));
	--shu: light-dark(var(--washi-shu), var(--graphite-shu));
	--shu-ink: light-dark(var(--washi-shu-ink), var(--graphite-shu-ink));
	--shadow: light-dark(var(--washi-shadow), var(--graphite-shadow));

	/* --- derived colours --- */
	/* surfaces */
	--raised: color-mix(in oklab, var(--ink) 3%, var(--ground));
	--sunken: color-mix(in oklab, black 8%, var(--ground));
	--floating: color-mix(in oklab, var(--ink) 6%, var(--ground));
	--floating-edge: color-mix(in oklab, var(--ink) 20%, var(--floating));
	--scrim: color-mix(in oklab, var(--ground) 72%, transparent);
	/* states of a row or a control */
	--hover: color-mix(in oklab, var(--ink) 4%, transparent);
	--chosen: color-mix(in oklab, var(--ink) 6.5%, transparent);
	--focus-ring: color-mix(in oklab, var(--pink) 85%, var(--ink));
	/* pink: yours, current, needs you */
	--pink-wash: color-mix(in oklab, var(--pink) 14%, var(--ground));
	--on-pink: color-mix(in oklab, var(--pink) 12%, black);
	/* shu: stopped */
	--shu-wash: color-mix(in oklab, var(--shu) 10%, var(--ground));

	/* --- space: a 4 px base --- */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 24px;
	--s-6: 32px;
	--s-7: 48px;
	--s-8: 64px;

	/* --- type --- */
	--size-12: 12px;
	--size-13: 13px;
	--size-14: 14px;
	--size-15: 15px;
	--size-17: 17px;
	--size-20: 20px;
	--size-24: 24px;
	--size-30: 30px;
	--w-regular: 400;
	--w-medium: 500;
	--lh-tight: 1.2;
	--lh-snug: 1.35;
	--lh-body: 1.5;

	/* --- shape --- */
	--r: 6px;
	--r-inner: 4px;
	--r-round: 9999px;

	/* --- scroll caps: how tall a list may grow before it scrolls inside (ui/Scroll); lg is also the height of a file's text --- */
	--scroll-sm: min(30dvh, 240px);
	--scroll-md: min(45dvh, 400px);
	--scroll-lg: 70dvh;

	/* --- layers --- */
	--z-nav: 10;
	--z-pop: 20;
	--z-dialog: 30;
	--z-toast: 40;

	/* --- motion --- */
	--t-hover: 120ms;
	--t-enter: 200ms;
	--t-exit: 140ms;
	--t-layout: 260ms;
	--t-ping: 2400ms;
	--t-spin: 1100ms;
	/* how long what arrived live stays lit (a shout): a hold, not motion, so motion off keeps it */
	--t-lit: 3000ms;
	/* how long a skeleton stays unseen: a read that answers sooner shows no placeholder at all. A hold, so motion off keeps it */
	--t-wait: 150ms;
	/* Navigation (styles/motion.css). The current place's mark sliding to the link just pressed, as the menu's page bar does */
	--t-indicator: 90ms;
	/* the content region as a page is left and as the next one lands: the old goes quickly, the new comes in, from --page-slide on the side it lies */
	--t-page-out: 60ms;
	--t-page-in: 160ms;
	--page-slide: 8px;
	/* a read streaming into its page, a list's rows in a new order or page */
	--t-reveal: 120ms;
	/* a row's name becoming its page's title */
	--t-morph: 200ms;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-in: cubic-bezier(0.4, 0, 1, 1);

	/* --- layout --- */
	/* the page fills the window up to this, gutters included; the gutter grows with the window, so a wide window has a centred field with room on both sides */
	--page: 1600px;
	--gutter: clamp(var(--s-5), 6vw, 112px);
	/* a narrow page's content stops here, from the page's left edge: one thing's own page (a profile, a file) */
	--page-narrow: 1040px;
	/* a section caption, its hairline included: one height wherever it sits */
	--caption-h: 32px;
	/* a field, a menu, a segments group and a button in a filter row: one height, so they share a line */
	--control-h: 32px;
	--nav-h: 44px;
	--row2-h: 36px;
	--side-w: 220px;
}

/* Phone: the page's gutter is one step of the space scale. */
@media (max-width: 640px) {
	:root {
		--gutter: var(--s-4);
	}
}

/* Motion off: every duration is zero, so a transition lands at once and a loop
   (a ping, a spin) rests at its end state. */
@media (prefers-reduced-motion: reduce) {
	:root {
		--t-hover: 0ms;
		--t-enter: 0ms;
		--t-exit: 0ms;
		--t-layout: 0ms;
		--t-ping: 0ms;
		--t-spin: 0ms;
		--t-indicator: 0ms;
		--t-page-out: 0ms;
		--t-page-in: 0ms;
		--page-slide: 0px;
		--t-reveal: 0ms;
		--t-morph: 0ms;
	}
}
