/* =============================================================================
   VETUS — reset + typografia bazowa
   Wszystkie wartości przez tokeny (assets/css/tokens.css).
   ============================================================================= */

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  color: inherit;
}

h1 {
  font-size: var(--fs-display-l);
  font-weight: var(--fw-light);
  line-height: var(--lh-display-l);
  letter-spacing: var(--ls-display-l);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}

h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-h4);
}

h5,
h6 {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

p {
  margin: 0;
}

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

blockquote {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: var(--fs-input);
  color: var(--color-text);
}

/* WYSIWYG: akapity w polach ACF nie mogą wnosić własnych marginesów. */
h1 p, h2 p, h3 p, h4 p, h5 p, h6 p { margin: 0; }

.wl-screen-reader,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== Typografia pomocnicza — role z Design Systemu ===== */

.wl-display-xl {
  font-size: var(--fs-display-xl);
  font-weight: var(--fw-light);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
}

.wl-display-l {
  font-size: var(--fs-display-l);
  font-weight: var(--fw-light);
  line-height: var(--lh-display-l);
  letter-spacing: var(--ls-display-l);
}

.wl-eyebrow {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.wl-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.wl-small {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.wl-numeral {
  font-size: var(--fs-numeral);
  font-weight: var(--fw-medium);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-numeral);
}

.wl-rule {
  display: block;
  width: var(--space-10xl);
  height: 1px;
  background: var(--color-accent);
}

/* ===== Nagłówek sekcji ===== */

.wl-section-head__eyebrow {
  margin: 0 0 var(--space-xs);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-accent-ink);
}

.wl-section-head__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  white-space: pre-line; /* H2 w Figmie ma wymuszone łamanie linii */
}

.wl-section-head__title mark {
  background: transparent;
  color: var(--color-accent);
}

.wl-section-head__desc {
  margin-top: var(--space-lg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-soft);
}

.wl-section-head__line {
  display: none; /* Design nie ma linii pod nagłówkiem sekcji; linie są lokalne. */
}

.wl-section-head--dark .wl-section-head__eyebrow {
  color: var(--color-brass-light);
}

.wl-section-head--dark .wl-section-head__title {
  color: var(--color-text-invert);
}

.wl-section-head--dark .wl-section-head__desc {
  color: var(--color-text-invert-2);
}

/* ===== Wspólne: siatka treści ===== */

.wl-prose p + p {
  margin-top: var(--space-lg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
