/* 01a — baza: aliasy zmiennych, reset, typografia, siatka, sekcje ciemne.
   Źródło: makieta style.css l. 1–122. */

/* Aliasy makiety mapowane na tokeny marki (brand/tokens.css). */
:root {
  --page-width: 1320px;
  --page-pad: clamp(22px, 5vw, 80px);
  --section-space: clamp(76px, 8vw, 124px);
  --display-size: clamp(2.2rem, 4.1vw, 4rem);
  --dark: var(--ai-bg-ciemne-gl);
  --accent: var(--ai-karmin);
  --soft: var(--ai-rose-ciemne);        /* mały tekst akcentowy na granacie */
  --soft-duzy: var(--ai-akcent-ciemne); /* duże elementy na granacie: „4", nadkreślenia, fokus, zaznaczenie */
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color-scheme: light;
}
body {
  margin: 0;
  font-family: var(--ai-font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--ai-bg);
  color: var(--ai-text);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
::selection {
  background: var(--soft-duzy);
  color: var(--dark);
}
:focus-visible {
  outline: 3px solid var(--ai-akcent);
  outline-offset: 5px;
}
.dark :focus-visible {
  outline-color: var(--soft-duzy);
}
[hidden] {
  display: none !important;
}
.container {
  max-width: var(--page-width);
  padding-inline: var(--page-pad);
  margin-inline: auto;
}
.section {
  padding-block: var(--section-space);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--ai-font-display);
  font-weight: 800;
  color: var(--ai-heading);
}
h2 {
  font-size: var(--display-size);
  letter-spacing: -0.055em;
  line-height: 1.13;
  margin-bottom: 28px;
  text-wrap: balance;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
p {
  max-width: 64ch;
}
em {
  font-style: normal;
  color: var(--ai-rose);
}
/* Wyróżnienie w nagłówku to duży tekst (próg 3:1): magenta marki, nie róż. */
h1 em,
h2 em,
h3 em {
  color: var(--ai-akcent);
}
.dark {
  background: var(--dark);
  color: var(--ai-text-ciemne);
}
.dark h1,
.dark h2,
.dark h3 {
  color: var(--ai-biel);
}
.dark em,
.dark .eyebrow {
  color: var(--soft);
}
/* Duże wyróżnienia w nagłówkach na granatowym pasie: magenta (próg 3:1),
   nie jasny róż zarezerwowany dla małego tekstu. */
.dark h1 em,
.dark h2 em,
.dark h3 em,
.dark .section-heading strong {
  color: var(--soft-duzy);
}
