/* StoneForge Labs — design tokens webu (směr „Arcade Lab 07“, říjen 2026)
 *
 * Web se tímhle vědomě odchýlil od Claude Design projektu „StoneForge Labs
 * Design System“ (2ff3b700-3d3a-44a7-b9a9-2ac18126149e): paleta, poloměry
 * a akcenty jsou ze schváleného podkladu Arcade Lab 07 (tmavá navy, levandulová,
 * limetková pro Play). Písma zůstávají z design systému. Viz web/README.md.
 */

/* ---------- colors ---------- */
:root {
  --sf-bg: #0b1020;
  --sf-rail: #0d1122;
  --sf-surface: #11172b;
  --sf-surface-hover: #1a2240;
  --sf-sunken: #080c18;
  --sf-text: #f4f3ff;
  --sf-text-secondary: #bab7da;
  --sf-text-muted: #8f8cb3;
  --sf-lavender: #b8a5ff;
  --sf-play: #c7f65b;
  --sf-play-hover: #d4fa7c;
  --sf-on-play: #11170a;
  --sf-border: #444568;
  --sf-border-subtle: #2a2e4d;

  /* Marble Mill — barvy ér (copper C · silver G · gold D · diamond A) */
  --mat-copper: #c47a3d; --mat-silver: #c9ccd3;
  --mat-gold: #e3b341; --mat-diamond: #9be0ef;

  color-scheme: dark;
}

/* ---------- typography ---------- */
/* Písma z vlastního serveru (SIL OFL, licence v assets/fonts/), ne z Google Fonts:
   návštěvník nikomu třetímu neposílá IP (plán HQ-17, F2). Variabilní, latin + latin-ext. */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  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: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  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: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  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: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../fonts/space-grotesk-latin.woff2) format('woff2');
  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;
}

:root {
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ---------- layout & effects ---------- */
:root {
  --sf-rail-width: 224px;
  --sf-content-max: 1440px;
  --sf-pad: 32px;
  --sf-gap: 16px;
  --sf-radius-panel: 16px;
  --sf-radius-card: 12px;
  --sf-radius-control: 10px;
  --sf-duration: 160ms;
  --sf-ease: cubic-bezier(.22, .9, .35, 1);
  --sf-focus: 0 0 0 3px var(--sf-bg), 0 0 0 5px var(--sf-play);
}

@media (prefers-reduced-motion: reduce) {
  :root { --sf-duration: 0ms; }
  html { scroll-behavior: auto !important; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sf-text);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--sf-lavender); text-decoration: none; }
a:hover { color: var(--sf-text); }

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

::selection { background: var(--sf-lavender); color: var(--sf-bg); }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--sf-focus); border-radius: 6px; }

/* atribut hidden vyhrává i nad display z tříd (.btn je inline-flex) */
[hidden] { display: none !important; }

.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;
}
