/* ============================================================================
   Level UP Fitness · zīmola tokeni
   Viens avots visām četrām virsmām: lietotne, admin, landing, mājaslapa.
   Krāsu lomas: canvas, surface, ink, ink-soft, accent, accent-ink (+ statusi).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,62..125,100..900;1,62..125,100..900&display=swap");

:root {
  /* --- krāsu lomas ------------------------------------------------------ */
  --lu-canvas:     #0B0907;   /* silti melns, nekad #000 */
  --lu-surface:    #14100C;
  --lu-surface-2:  #1C1711;
  --lu-surface-3:  #272019;
  --lu-ink:        #F7EFE5;
  --lu-ink-soft:   #B9AC9C;   /* tonēts no ink, nevis pelēks */
  --lu-ink-mute:   #8F8273;
  --lu-accent:     #FF8A1F;   /* viens akcents: dzintara gaisma */
  --lu-accent-hi:  #FFB45E;
  --lu-accent-deep:#C4600F;
  --lu-accent-ink: #170C02;

  --lu-ok:   #63D297;
  --lu-warn: #FFC857;
  --lu-bad:  #FF6A55;

  --lu-line:        color-mix(in oklab, var(--lu-ink) 10%, transparent);
  --lu-line-strong: color-mix(in oklab, var(--lu-ink) 20%, transparent);
  --lu-line-accent: color-mix(in oklab, var(--lu-accent) 46%, transparent);
  --lu-accent-wash: color-mix(in oklab, var(--lu-accent) 12%, transparent);
  --lu-ok-wash:     color-mix(in oklab, var(--lu-ok) 14%, transparent);
  --lu-bad-wash:    color-mix(in oklab, var(--lu-bad) 14%, transparent);
  --lu-warn-wash:   color-mix(in oklab, var(--lu-warn) 14%, transparent);

  /* --- tips: viena ģimene ar platuma asi (display plats, etiķetes šauras) - */
  --lu-font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --lu-t-2xs: 0.6875rem;  /* 11 */
  --lu-t-xs:  0.75rem;    /* 12 */
  --lu-t-sm:  0.8125rem;  /* 13 */
  --lu-t-md:  0.9375rem;  /* 15 */
  --lu-t-lg:  1.0625rem;  /* 17 */
  --lu-t-xl:  1.25rem;    /* 20 */
  --lu-t-2xl: 1.625rem;   /* 26 */
  --lu-t-3xl: 2.125rem;   /* 34 */

  /* --- atstarpes, 4px bāze ---------------------------------------------- */
  --lu-1: 0.25rem; --lu-2: 0.5rem;  --lu-3: 0.75rem; --lu-4: 1rem;
  --lu-5: 1.25rem; --lu-6: 1.5rem;  --lu-7: 2rem;    --lu-8: 2.5rem;
  --lu-9: 3rem;    --lu-10: 4rem;   --lu-11: 6rem;

  /* --- rādiuss: viena skala visam -------------------------------------- */
  --lu-r-xs: 6px; --lu-r-sm: 10px; --lu-r-md: 14px; --lu-r-lg: 20px; --lu-r-xl: 28px;

  /* --- dziļums: nobīde + izplūdums, tonēts uz canvas -------------------- */
  --lu-shadow: 24 60% 2%;
  --lu-e1: 0 1px 2px hsl(var(--lu-shadow) / .34), 0 2px 6px -1px hsl(var(--lu-shadow) / .26);
  --lu-e2: 0 2px 4px hsl(var(--lu-shadow) / .30), 0 10px 22px -6px hsl(var(--lu-shadow) / .44);
  --lu-e3: 0 4px 8px hsl(var(--lu-shadow) / .28), 0 22px 48px -10px hsl(var(--lu-shadow) / .55),
           0 56px 100px -30px hsl(var(--lu-shadow) / .45);
  --lu-edge: inset 0 1px 0 color-mix(in oklab, var(--lu-ink) 9%, transparent);

  /* --- kustība ---------------------------------------------------------- */
  --lu-ease:        cubic-bezier(0.23, 1, 0.32, 1);
  --lu-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --lu-fast: 140ms; --lu-base: 220ms; --lu-slow: 380ms;
}

/* ------------------------------------------------------------------ bāze -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lu-canvas);
  color: var(--lu-ink);
  font-family: var(--lu-font);
  font-size: var(--lu-t-md);
  line-height: 1.5;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

/* pārlūka virsmas: atlase, kursors, fokuss, ritjosla, cipari */
::selection { background: var(--lu-accent); color: var(--lu-accent-ink); }
:root { caret-color: var(--lu-accent); accent-color: var(--lu-accent); color-scheme: dark; }
:focus-visible { outline: 2px solid var(--lu-accent); outline-offset: 3px; border-radius: var(--lu-r-xs); }
@supports (scrollbar-color: auto) {
  * { scrollbar-color: color-mix(in oklab, var(--lu-ink) 24%, transparent) transparent; scrollbar-width: thin; }
}
.lu-nums, table, time { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- tipogrāfija -- */
/* Display: plats, smags, slīps, kā zīmola virsraksts. Latviešu lielie burti ar
   garumzīmēm prasa gaisu virs rindas, tāpēc rindstarpa nav zem 1.02. */
.lu-display {
  font-stretch: 118%;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}
.lu-title { font-stretch: 108%; font-weight: 700; letter-spacing: -0.012em; line-height: 1.18; text-wrap: balance; }
.lu-label {
  font-stretch: 82%;
  font-weight: 600;
  font-size: var(--lu-t-xs);
  text-transform: uppercase;
  letter-spacing: 0.085em;
  line-height: 1.2;
  color: var(--lu-ink-soft);
}
.lu-soft { color: var(--lu-ink-soft); }
.lu-mute { color: var(--lu-ink-mute); }
.lu-accent { color: var(--lu-accent); }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* vārdzīme: LEVEL UP / FITNESS CENTER */
.lu-mark { flex: none; display: inline-flex; flex-direction: column; align-items: center; gap: 0.18em; line-height: 1; text-decoration: none; color: var(--lu-accent); }
.lu-mark__top { white-space: nowrap; font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em; font-size: 1em; }
.lu-mark__sub {
  display: flex; align-items: center; gap: 0.55em;
  font-stretch: 100%; font-weight: 500; font-style: normal; text-transform: uppercase;
  font-size: 0.29em; letter-spacing: 0.42em; margin-right: -0.42em; color: var(--lu-ink);
}
.lu-mark__sub::before, .lu-mark__sub::after { content: ""; width: 1.6em; height: 1px; background: var(--lu-accent); }
.lu-mark__sub::after { margin-left: -0.42em; }

/* Samazināta kustība: mazāk un maigāk, nevis nulle. Pozīcijas maiņas atmet
   katra komponente pati; šeit tikai bezgalīgās animācijas un gludā ritināšana. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .lu-loop { animation: none !important; }
}
