/* Mantis design tokens, copied from mantis-lookbook/tokens.css (kept in step by hand).
   Only change: font paths point to ../fonts/. Edit the Lookbook file first, then copy here. */

/* ---------- type ---------- */
/* Opposit is the brand face (assets/fonts/). The on-page layer registers the same files
   through the FontFace API (an @font-face inside a shadow root is ignored by Chrome). */
@font-face { font-family: 'Opposite'; src: url('../fonts/Opposit-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Opposite'; src: url('../fonts/Opposit-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Opposite'; src: url('../fonts/Opposit-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Opposite'; src: url('../fonts/Opposit-Bold.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/SpaceMono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* color */
  --bg: #F3F3F1;
  --ink: #111111;
  --grey-1: #E6E6E4;
  --grey-2: #CFCFCC;
  --grey-3: #9A9A97;
  --grey-4: #5E5E5B;
  --grey-5: #2A2A2A;
  --accent: #45A6FF;
  --accent-hover: #2F93F5;
  --accent-glow: rgba(69, 166, 255, .35);

  /* text on the current surface (flipped by .on-dark) */
  --fg: var(--ink);
  --fg-muted: rgba(17, 17, 17, .56);
  --fg-faint: rgba(17, 17, 17, .36);
  --hairline: rgba(17, 17, 17, .10);

  /* panel background — the light end of 01-industry-selector */
  --panel-gradient:
    radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 65%),
    radial-gradient(90% 55% at 100% 100%, rgba(94,94,91,.28) 0%, rgba(94,94,91,0) 70%),
    linear-gradient(165deg, #F3F3F1 0%, #ECECEA 35%, #E1E1DE 70%, #D3D3D0 100%);

  /* glass */
  --glass-fill: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.12));
  --glass-blur: blur(18px) saturate(140%);
  --glass-border: 1px solid rgba(255,255,255,.45);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 8px 30px rgba(0,0,0,.12);
  --glass-fill-dark: linear-gradient(135deg, rgba(42,42,42,.78), rgba(17,17,17,.62));
  --glass-border-dark: 1px solid rgba(255,255,255,.16);
  --glass-shadow-dark: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 34px rgba(0,0,0,.35);

  /* grain tile (also used inside the on-page shadow roots) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* shape */
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  /* type */
  --font-display: 'Opposite', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --mono-size: 10.5px;
  --mono-track: .04em;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 200ms;
  --t: 300ms;
  --t-slow: 400ms;
}

.on-dark {
  --fg: var(--bg);
  --fg-muted: rgba(243, 243, 241, .72);
  --fg-faint: rgba(243, 243, 241, .5);
  --hairline: rgba(255, 255, 255, .16);
}

/* ---------- reusable surfaces ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}
.glass.dark, .glass.on-dark {
  background: var(--glass-fill-dark);
  border: var(--glass-border-dark);
  box-shadow: var(--glass-shadow-dark);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: var(--mono-track);
  text-transform: lowercase;
}

/* Fixed film grain over everything. */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: var(--grain);
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
}
