/* NICCI: reset, typografia, układ. Korzysta wyłącznie z tokenów semantycznych. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6.5rem; /* nagłówek ma do 84 px, fokus z klawiatury nie może pod nim zniknąć */
}

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--n-size-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

/* ---------- typografia: tracking zależny od rozmiaru ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-strong);
  text-wrap: balance;
  font-optical-sizing: auto;
}

.t-display {
  font-size: var(--n-size-display);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.t-h2 {
  font-size: var(--n-size-h2);
  line-height: 1.06;
  letter-spacing: -0.016em;
}
.t-h3 {
  font-size: var(--n-size-h3);
  line-height: 1.12;
  letter-spacing: -0.008em;
}
.t-h4 {
  font-size: var(--n-size-h4);
  line-height: 1.2;
  letter-spacing: 0;
}
/* złota kursywa w nagłówku, jak „za ułamek ceny”; na jasnym tle ciemniejsze złoto dla kontrastu */
.t-accent {
  font-style: italic;
  font-weight: 500;
  color: var(--text-accent);
}
.t-lead {
  font-size: var(--n-size-lead);
  line-height: 1.55;
  font-weight: 300;
  max-width: 34em;
}
.t-small { font-size: var(--n-size-small); line-height: 1.5; letter-spacing: 0.004em; }
.t-muted { color: var(--text-muted); }

/* nadtytuł w wersalikach z szerokim trackingiem i złotą kreską */
.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--n-space-3);
  font-family: var(--font-text);
  font-size: var(--n-size-micro);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-accent);
}
.t-eyebrow--rule::before {
  content: "";
  width: 2.5rem;
  height: var(--n-hairline);
  background: var(--accent);
  flex: none;
}

.t-nav {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- układ ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- fokus: zawsze widoczny, kolor zależny od tła ---------- */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--accent-soft); color: var(--on-accent); }

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