/* @generated by frontend/scripts/sync-theme-assets.mjs from frontend/src/shared/tokens/tokens.css. Do not edit. */

/*
 * Design tokens of Footnote. Components use only these variables.
 *
 * Colours are declared once with light-dark(): the active scheme comes from
 * `color-scheme`, set by the theme preference (system, light or dark).
 */

:root {
  color-scheme: light dark;

  /* Surfaces: paper white and graphite. */
  --color-canvas: light-dark(#f6f6f3, #131518);
  --color-surface: light-dark(#fff, #1a1d21);
  --color-surface-raised: light-dark(#fff, #21252a);
  --color-surface-sunken: light-dark(#efefeb, #0f1113);
  --color-sheet: light-dark(#fff, #1c1f23);
  --color-overlay: light-dark(rgb(29 32 37 / 36%), rgb(0 0 0 / 56%));

  /* Text. */
  --color-text: light-dark(#1d2025, #e7e8ea);
  --color-text-secondary: light-dark(#4f5560, #a8adb5);
  --color-text-tertiary: light-dark(#5f646d, #858b94);
  --color-text-on-accent: #fff;
  --color-text-document: light-dark(#23262b, #dddfe2);

  /* Lines. */
  --color-border: light-dark(#e3e3de, #2b2f35);
  --color-border-strong: light-dark(#cfcfc8, #3a3f46);
  --color-divider: light-dark(#ecece8, #24272c);

  /* Ink: the single accent, used for footnotes, links and the primary action. */
  --color-ink: light-dark(#2438c4, #8d9bff);
  --color-ink-hover: light-dark(#1b2c9e, #a9b4ff);
  --color-ink-soft: light-dark(#eceefc, #23284a);
  --color-ink-line: light-dark(#c3c9f4, #3a4280);
  --color-on-ink: light-dark(#fff, #10132b);

  /* Severity: deliberately apart from the ink accent. */
  --color-critical: light-dark(#b42b14, #ff8a6b);
  --color-critical-soft: light-dark(#fbebe6, #3a1d16);
  --color-important: light-dark(#965a00, #f0b45a);
  --color-important-soft: light-dark(#fbf1df, #352914);
  --color-advice: light-dark(#23705f, #67c9b1);
  --color-advice-soft: light-dark(#e3f2ee, #15302a);
  --color-success: light-dark(#23705f, #67c9b1);
  --color-success-soft: light-dark(#e3f2ee, #15302a);
  --color-neutral-soft: light-dark(#efefeb, #262a30);

  --color-focus: light-dark(#2438c4, #a9b4ff);

  /* Devices that frame screenshots of the product. */
  --color-device: light-dark(#1d2025, #0b0c0e);
  --color-device-edge: light-dark(#3a3f46, #2b2f35);
  --color-highlight: light-dark(#e6e9fd, #2a3060);

  /* Typography. */
  --font-ui: var(--font-plex-sans), system-ui, sans-serif;
  --font-document: var(--font-plex-serif), "Times New Roman", serif;
  --font-code: var(--font-plex-mono), ui-monospace, monospace;

  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-document: 1.0625rem;
  --text-document-heading: 1.25rem;

  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.55;
  --leading-document: 1.72;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-tight: -0.011em;
  --tracking-display: -0.02em;

  /* Spacing scale (4px base). */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-1-5: 0.375rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-gutter: 1rem;

  /* Radii: small for controls, larger for floating surfaces. */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 999px;

  /* Elevation. */
  --shadow-sheet:
    light-dark(0 1px 2px rgb(29 32 37 / 6%), 0 1px 2px rgb(0 0 0 / 40%)),
    light-dark(
      0 8px 28px -12px rgb(29 32 37 / 14%),
      0 10px 30px -12px rgb(0 0 0 / 50%)
    );
  --shadow-popover:
    0 1px 2px light-dark(rgb(29 32 37 / 8%), rgb(0 0 0 / 40%)),
    0 12px 32px -8px light-dark(rgb(29 32 37 / 18%), rgb(0 0 0 / 60%));
  --shadow-focus: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-focus);

  --blur-header: 12px;

  /* Controls. */
  --control-height-sm: 2rem;
  --control-height-md: 2.25rem;
  --control-height-lg: 2.75rem;
  --tap-target: 2.75rem;
  --icon-sm: 1rem;
  --icon-md: 1.125rem;
  --icon-lg: 1.25rem;
  --border-width: 1px;
  --border-width-strong: 2px;

  /* Layout. */
  --sidebar-width: 15.5rem;
  --rail-width: 4rem;
  --panel-width: 20rem;
  --outline-width: 15rem;
  --topbar-height: 3.5rem;
  --topbar-offset: calc(var(--topbar-height) + env(safe-area-inset-top));
  --content-max: 72rem;
  --content-narrow: 52rem;
  --content-wide: 78rem;
  --sheet-max: 47rem;
  --sheet-padding: 3.5rem;
  --bottom-bar-height: 4rem;

  /* A floating action keeps this distance from the screen edge; content
     scrolls clear of it by the clearance (add the bottom safe area). */
  --floating-offset: var(--space-4);
  --floating-clearance: calc(
    var(--control-height-lg) + var(--floating-offset) + var(--space-6)
  );

  /* Measures of floating and centred elements. */
  --size-tooltip-max: 18rem;
  --size-state-max: 26rem;
  --size-dialog: 32rem;
  --size-menu-min: 13rem;
  --size-drawer: 22rem;

  /* Motion. */
  --duration-loop: 1400ms;
  --duration-spin: 700ms;
  --duration-instant: 80ms;
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Layers. */
  --layer-raised: 1;
  --layer-sticky: 10;
  --layer-header: 20;
  --layer-overlay: 40;
  --layer-popover: 50;
  --layer-toast: 60;
}

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

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

@media (pointer: coarse) {
  :root {
    --control-height-md: 2.75rem;
    --control-height-sm: 2.5rem;
  }
}

@media (width >= 48rem) {
  :root {
    --space-gutter: 1.5rem;
  }
}

@media (width >= 80rem) {
  :root {
    --space-gutter: 2rem;
  }
}
