/* Core design system 1.0.0. GENERATED by scripts/build-tokens.mjs from tokens/tokens.json. Do not edit by hand. */

/* Tint: --hue is the single hue of the neutrals, --k its strength (0 = pure neutral, 1 = subtle tint), --pop-c the chroma of the pop section.
   Registered so that changing them animates. The pop hue is always --hue + 140deg. */
@property --hue { syntax: "<number>"; inherits: true; initial-value: 264; }
@property --k { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pop-c { syntax: "<number>"; inherits: true; initial-value: 0.115; }

:root {
  color-scheme: light dark;
  --hue: 264;
  --k: 0;
  --pop-c: 0.115;
}
[data-tint="neutral"] { --hue: 264; --k: 0; --pop-c: 0.115; }
[data-tint="green"] { --hue: 145; --k: 1; --pop-c: 0.1; }
[data-tint="amber"] { --hue: 75; --k: 1; --pop-c: 0.135; }
[data-tint="cyan"] { --hue: 195; --k: 1; --pop-c: 0.15; }
[data-theme="light"] { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

/* Colour tokens. Declared on every element that can change theme or tint, so nested [data-theme] and [data-tint] areas recompute. */
:root, [data-theme], [data-tint] {
  --pop-hue: calc(var(--hue) + 140);
  --bg: light-dark(oklch(0.968 calc(0.006 * var(--k)) var(--hue)), oklch(0.150 calc(0.008 * var(--k)) var(--hue)));
  --bg-subtle: light-dark(oklch(0.940 calc(0.008 * var(--k)) var(--hue)), oklch(0.185 calc(0.010 * var(--k)) var(--hue)));
  --bg-muted: light-dark(oklch(0.910 calc(0.010 * var(--k)) var(--hue)), oklch(0.225 calc(0.012 * var(--k)) var(--hue)));
  --text: light-dark(oklch(0.200 calc(0.020 * var(--k)) var(--hue)), oklch(0.945 calc(0.024 * var(--k)) var(--hue)));
  --text-muted: light-dark(oklch(0.470 calc(0.018 * var(--k)) var(--hue)), oklch(0.690 calc(0.022 * var(--k)) var(--hue)));
  --line: light-dark(color-mix(in srgb, var(--text) 12%, transparent), color-mix(in srgb, var(--text) 11%, transparent));
  --line-strong: light-dark(color-mix(in srgb, var(--text) 30%, transparent), color-mix(in srgb, var(--text) 26%, transparent));
  --border-control: light-dark(color-mix(in srgb, var(--text) 55%, transparent), color-mix(in srgb, var(--text) 45%, transparent));
  --accent: var(--text);
  --accent-hover: light-dark(oklch(0.320 calc(0.020 * var(--k)) var(--hue)), oklch(0.990 0 0));
  --on-accent: var(--bg);
  --focus-ring: var(--text);
  --fill: var(--bg-subtle);
  --fill-hover: var(--bg-muted);
  --fill-active: var(--bg-muted);
  --success-text: var(--text);
  --warning-text: var(--text);
  --danger-text: var(--text);
  --status-fill: transparent;
  --pop-bg: oklch(0.80 var(--pop-c) var(--pop-hue));
  --pop-text: oklch(0.17 0.028 var(--pop-hue));
  --pop-text-muted: oklch(0.34 0.055 var(--pop-hue));
  --pop-text-hover: oklch(0.26 0.040 var(--pop-hue));
  --pop-line: color-mix(in srgb, var(--pop-text) 32%, transparent);
  --duo-light: light-dark(oklch(0.975 calc(0.009 * var(--k)) var(--hue)), oklch(0.860 calc(0.066 * var(--k)) var(--hue)));
  --duo-dark: light-dark(oklch(0.240 calc(0.040 * var(--k)) var(--hue)), oklch(0.130 calc(0.022 * var(--k)) var(--hue)));
  --success-fill: var(--status-fill); --warning-fill: var(--status-fill); --danger-fill: var(--status-fill);
  --success-line: var(--line-strong); --warning-line: var(--line-strong); --danger-line: var(--line-strong);
  --shadow-overlay: 0 10px 28px light-dark(rgb(0 0 0 / 0.14), rgb(0 0 0 / 0.6)), 0 0 0 1px var(--line-strong);
}

@media (prefers-reduced-motion: no-preference) {
  :root, [data-tint] { transition: --hue var(--dur-3) var(--ease), --k var(--dur-3) var(--ease), --pop-c var(--dur-3) var(--ease); }
}

/* Non-colour tokens */
:root {
  --font-display: "Bricolage Grotesque", "Geist", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Geist", "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --type-d1-size: clamp(60px, 10vw, 156px); --type-d1-lh: 0.9; --type-d1-weight: 500; --type-d1-tracking: -0.04em; --type-d1-family: var(--font-display);
  --type-d2-size: clamp(48px, 7.2vw, 112px); --type-d2-lh: 0.92; --type-d2-weight: 500; --type-d2-tracking: -0.04em; --type-d2-family: var(--font-display);
  --type-d3-size: clamp(44px, 5.4vw, 84px); --type-d3-lh: 0.94; --type-d3-weight: 500; --type-d3-tracking: -0.04em; --type-d3-family: var(--font-display);
  --type-h1-size: 40px; --type-h1-lh: 1; --type-h1-weight: 500; --type-h1-tracking: -0.03em; --type-h1-family: var(--font-display);
  --type-h2-size: 28px; --type-h2-lh: 1.05; --type-h2-weight: 500; --type-h2-tracking: -0.03em; --type-h2-family: var(--font-display);
  --type-h3-size: 20px; --type-h3-lh: 1.2; --type-h3-weight: 500; --type-h3-tracking: -0.02em; --type-h3-family: var(--font-display);
  --type-num-size: 72px; --type-num-lh: 1; --type-num-weight: 400; --type-num-tracking: -0.04em; --type-num-family: var(--font-display);
  --type-standfirst-size: 23px; --type-standfirst-lh: 34px; --type-standfirst-weight: 400; --type-standfirst-tracking: 0; --type-standfirst-family: var(--font-sans);
  --type-prose-size: 19px; --type-prose-lh: 31px; --type-prose-weight: 400; --type-prose-tracking: 0; --type-prose-family: var(--font-sans);
  --type-lead-size: 17px; --type-lead-lh: 26px; --type-lead-weight: 400; --type-lead-tracking: 0; --type-lead-family: var(--font-sans);
  --type-body-size: 15px; --type-body-lh: 23px; --type-body-weight: 400; --type-body-tracking: 0; --type-body-family: var(--font-sans);
  --type-ui-size: 14px; --type-ui-lh: 20px; --type-ui-weight: 400; --type-ui-tracking: 0; --type-ui-family: var(--font-sans);
  --type-label-size: 13px; --type-label-lh: 16px; --type-label-weight: 500; --type-label-tracking: 0; --type-label-family: var(--font-sans);
  --type-mono-size: 12px; --type-mono-lh: 16px; --type-mono-weight: 400; --type-mono-tracking: 0.01em; --type-mono-family: var(--font-mono);
  --space-1: 4px;
  --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;
  --space-20: 80px;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 3px;
  --radius-full: 9999px;
  --control-sm: 30px;
  --control-md: 36px;
  --control-lg: 46px;
  --wrap-max: 1328px;
  --prose-max: 680px;
  --header-h: 60px;
  --app-top-h: 56px;
  --app-menu-w: 208px;
  --detail-w: 400px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 600ms;
  --dur-reveal: 900ms;
  --dur-settle: 1200ms;
  --z-sticky: 20;
  --z-overlay: 30;
  --z-toast: 40;
}
