/* ==========================================================================
   iDARIS — Base / Reset / Typografia
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

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

/* --- Focus widoczny (dostępność, WCAG) --- */
:focus-visible {
  outline: 2px solid var(--c-red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Typografia nagłówkowa --- */
h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  text-transform: none;
  font-weight: 600;
}

h4 {
  font-size: var(--fs-h4);
  text-transform: none;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 400;
}

/* --- Etykiety "eyebrow" nad nagłówkami (technika blueprintu) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red-bright);
  margin-bottom: var(--sp-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-red-bright);
}

.text-steel {
  color: var(--c-steel);
  font-family: var(--font-mono);
}

/* --- Zaznaczenie tekstu --- */
::selection {
  background: var(--c-red);
  color: var(--c-white);
}

/* --- Skip link (dostępność) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-red);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-3);
  z-index: 999;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
}

.skip-link:focus {
  left: var(--sp-2);
  top: var(--sp-2);
}

/* --- Scrollbar (subtelna, premium) --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-black);
}

::-webkit-scrollbar-thumb {
  background: var(--c-graphite-2);
  border-radius: 10px;
  border: 2px solid var(--c-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-red-dim);
}
