/*
 * Design tokens, borrowed from devmutualfund (profitmediaab/devmutualfund, web/src/styles.css,
 * commit b7b77ee). Light-only frosted glass: a soft colour field behind translucent white panels.
 *
 * The first :root block is a verbatim copy of devmutualfund's tokens. Keep it identical so the two
 * apps can be diffed and kept in step; put anything new for this app in the second block.
 */

/* Inter Variable 5.3.0 (Fontsource), self-hosted. Latin and Latin Extended cover English and
   Swedish. Licence: ../fonts/LICENSE-Inter.txt (SIL Open Font License 1.1). */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-opsz-normal.woff2) format('woff2-variations');
  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: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-opsz-normal.woff2) format('woff2-variations');
  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;
}

/* ---------- From devmutualfund, verbatim ---------- */

:root {
  color-scheme: light;

  /* Ink and lines */
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  /* Text of cautions: data that is behind, partial or from an earlier copy */
  --caution-ink: #6b4200;
  --wash: rgba(15, 23, 42, 0.04);

  /* Accent: the same blue the charts use, so interface and data read as one */
  --accent: #2a78d6;
  --accent-strong: #1c5cab;
  --accent-soft: rgba(42, 120, 214, 0.14);
  --violet: #6250d6;

  /* Glass */
  --glass-top: rgba(255, 255, 255, 0.74);
  --glass-bottom: rgba(255, 255, 255, 0.56);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --inner: rgba(255, 255, 255, 0.62);
  --blur: blur(22px) saturate(170%);
  --shadow-soft: 0 1px 2px rgba(22, 34, 66, 0.04);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(22, 34, 66, 0.04), 0 18px 48px -20px rgba(22, 34, 66, 0.2);
  --shadow-pop: 0 2px 6px rgba(22, 34, 66, 0.06), 0 24px 60px -16px rgba(22, 34, 66, 0.28);

  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Chart roles. Categorical slots keep their fixed order (validated together). */
  --surface: rgba(255, 255, 255, 0.92);
  --grid: rgba(15, 23, 42, 0.07);
  --axis: rgba(15, 23, 42, 0.2);
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --on-series-4: #0b0b0b;
  --seq-0: #cde2fb;
  --seq-1: #9ec5f4;
  --seq-2: #6da7ec;
  --seq-3: #2a78d6;
  --seq-4: #1c5cab;
  --seq-5: #184f95;
  --seq-6: #0d366b;
  --status-critical: #d03b3b;
  --status-warning: #fab219;
  --status-good: #16a34a;

  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Added for this app ----------
 * devmutualfund writes these values directly in its rules; here they are named so pages use the
 * same numbers. Sizes are the ones devmutualfund uses for each role.
 */
:root {
  /* Page colour behind the colour field (also the theme-color in index.html) */
  --page: #f4f6fb;
  /* The colour field that sits fixed behind the glass */
  --backdrop:
    radial-gradient(62rem 42rem at 6% -12%, rgba(118, 170, 255, 0.46), transparent 62%),
    radial-gradient(52rem 38rem at 98% -4%, rgba(170, 142, 255, 0.36), transparent 62%),
    radial-gradient(50rem 36rem at 74% 96%, rgba(92, 214, 196, 0.28), transparent 62%),
    radial-gradient(42rem 30rem at -4% 104%, rgba(255, 188, 158, 0.24), transparent 62%),
    var(--page);
  --accent-gradient: linear-gradient(100deg, var(--accent) 10%, var(--violet) 90%);

  /* Type, by role */
  --text-small: 12.5px; /* captions, table labels */
  --text-control: 13.5px; /* buttons, tabs, inputs */
  --text-body: 15px;
  --text-heading: 17px; /* panel and section headings */
  --text-lead: 18px; /* intro paragraph under the page title */
  --text-title: 24px; /* page title */
  --text-stat: 32px; /* big number in a stat tile */
  --text-display: clamp(36px, 6vw, 62px); /* front-page headline */

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-strong: 650;
  --weight-display: 680;

  --tracking-body: -0.006em;
  --tracking-display: -0.04em;

  /* Layout */
  --content-width: 1320px;
  --topbar-height: 60px;
}
