/* ==========================================================================
   LUMEN · tokens
   Apple-flavoured dark glass design system.
   All materials derive from these values; the appearance panel writes to them.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- type ------------------------------------------------------------ */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo,
    Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(38px, 4.4vw, 60px);
  --fs-h1: 30px;
  --fs-h2: 22px;
  --fs-h3: 17px;
  --fs-body: 14.5px;
  --fs-sm: 13px;
  --fs-xs: 11.5px;
  --fs-micro: 10.5px;

  --tracking-display: -0.035em;
  --tracking-h: -0.02em;
  --tracking-caps: 0.14em;

  /* ---- ink ------------------------------------------------------------- */
  --text-1: rgba(255, 255, 255, 0.96);
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --text-4: rgba(255, 255, 255, 0.32);
  --text-invert: rgba(12, 12, 16, 0.92);

  /* ---- accent ---------------------------------------------------------- */
  --accent-h: 218;
  --accent: hsl(var(--accent-h) 100% 62%);
  --accent-soft: hsl(var(--accent-h) 100% 62% / 0.22);
  --accent-glow: hsl(var(--accent-h) 100% 62% / 0.45);
  --accent-2: hsl(calc(var(--accent-h) + 46) 100% 68%);

  /* ---- material -------------------------------------------------------- */
  --glass-blur: 26px;
  --glass-sat: 175%;
  --glass-tint: rgba(255, 255, 255, 0.075);
  --glass-tint-2: rgba(255, 255, 255, 0.115);
  --glass-tint-3: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glass-edge-hi: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.72),
    0 4px 14px -6px rgba(0, 0, 0, 0.4);

  --sheet-blur: 42px;
  --sheet-bg: rgba(16, 16, 21, 0.62);
  --sheet-bg-2: rgba(22, 22, 28, 0.72);

  --scrim: rgba(6, 6, 9, 0.58);

  /* ---- radii ----------------------------------------------------------- */
  --r-xs: 9px;
  --r-sm: 13px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-2xl: 38px;
  --r-pill: 999px;
  --r-card: 22px;

  /* ---- layout ---------------------------------------------------------- */
  --page-max: 1640px;
  --page-pad: clamp(16px, 3vw, 40px);
  --gap: 18px;
  --cols: 4;
  --topbar-h: 62px;
  --card-ratio: 1.6;

  /* ---- background ------------------------------------------------------ */
  --bg-blur: 30px;
  --bg-brightness: 0.82;
  --bg-saturation: 1.45;
  --bg-scale: 1.1;
  --bg-overlay: rgba(6, 7, 12, 0.34);

  /* ---- motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.35, 0.64, 1);
  --ease-switch: cubic-bezier(0.34, 0.96, 0.6, 0.99);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 360ms;
  --dur-4: 560ms;

  --z-topbar: 60;
  --z-filter: 50;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Appearance: light chrome ------------------------------------------------- */
html[data-surface="light"] {
  color-scheme: light;
  --text-1: rgba(14, 14, 18, 0.95);
  --text-2: rgba(24, 24, 30, 0.68);
  --text-3: rgba(24, 24, 30, 0.46);
  --text-4: rgba(24, 24, 30, 0.3);
  --glass-tint: rgba(255, 255, 255, 0.42);
  --glass-tint-2: rgba(255, 255, 255, 0.55);
  --glass-tint-3: rgba(255, 255, 255, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.55);
  --glass-edge-hi: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 22px 50px -24px rgba(20, 20, 40, 0.35),
    0 2px 8px -3px rgba(20, 20, 40, 0.2);
  --sheet-bg: rgba(248, 248, 252, 0.7);
  --sheet-bg-2: rgba(255, 255, 255, 0.8);
  --scrim: rgba(240, 240, 248, 0.5);
  --bg-brightness: 1.04;
  --bg-saturation: 0.82;
  --bg-overlay: rgba(244, 246, 252, 0.42);
}

/* Reduced motion ----------------------------------------------------------- */
html[data-motion="off"] {
  --dur-1: 0ms;
  --dur-2: 0ms;
  --dur-3: 0ms;
  --dur-4: 0ms;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-2: 1ms;
    --dur-3: 1ms;
    --dur-4: 1ms;
  }
}

/* ==========================================================================
   reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-1);
  background: #07070b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: var(--tracking-h);
  line-height: 1.18;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

::selection {
  background: hsl(var(--accent-h) 100% 62% / 0.36);
  color: #fff;
}

:focus-visible {
  outline: 2px solid hsl(var(--accent-h) 100% 70% / 0.9);
  outline-offset: 3px;
}

/* scrollbars --------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  background-clip: content-box;
}

/* utilities ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  letter-spacing: -0.01em;
}

.caps {
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  font-size: var(--fs-micro);
  font-weight: 620;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: 15px;
  height: 15px;
}
.icon--lg {
  width: 22px;
  height: 22px;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
