/* Fundacja dla Transplantacji: tokeny, reset, typografia, przyciski. Jedyny właściciel zmiennych --fdt-* na :root. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-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 {
  --fdt-night: #0a1620;
  --fdt-deep: #102431;
  --fdt-steel: #1b3446;
  --fdt-line: rgba(255, 255, 255, 0.16);
  --fdt-line-dark: rgba(10, 22, 32, 0.14);
  --fdt-paper: #f4f7f8;
  --fdt-white: #ffffff;
  --fdt-ink: #0a1620;
  --fdt-mute: #4f6370;
  --fdt-mute-on-dark: #a9bcc8;
  --fdt-brand: #2db4ea;
  --fdt-brand-ink: #086a92;
  --fdt-teal: #3cbcbc;
  --fdt-warm: #ff9242;
  --fdt-warm-ink: #7a3200;
  --fdt-festival: #e1202b;
  --fdt-radius: 6px;
  --fdt-radius-lg: 14px;
  --fdt-gap: clamp(14px, 2vw, 26px);
  --fdt-pad: clamp(16px, 4vw, 56px);
  --fdt-wrap: min(1240px, 100% - 2 * var(--fdt-pad));
  --fdt-section: clamp(56px, 8vw, 112px);
  --fdt-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fdt-header-h: 72px;
  --fdt-shadow: 0 1px 2px rgba(10, 22, 32, 0.06), 0 12px 32px rgba(10, 22, 32, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fdt-header-h) + 16px);
}

body {
  margin: 0;
  background: var(--fdt-white);
  color: var(--fdt-ink);
  font-family: var(--fdt-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  display: block;
}

/* Poprawka rozmiarów obrazów lazy (dawniej styl wstawiany przez WordPress do <head>; przy CSP bez styli w treści strony żyje tu). */
img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px;
}

a {
  color: var(--fdt-brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--fdt-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

p {
  margin: 0 0 1.1em;
}

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

.fdt-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--fdt-white);
  color: var(--fdt-ink);
  padding: 10px 16px;
  border-radius: var(--fdt-radius);
  font-weight: 700;
}

.fdt-skip:focus {
  top: 12px;
}

.fdt-wrap {
  width: var(--fdt-wrap);
  margin-inline: auto;
}

/* Etykiety i nagłówki sekcji */
.fdt-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fdt-brand-ink);
}

.fdt-on-dark .fdt-eyebrow {
  color: var(--fdt-brand);
}

.fdt-lead {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--fdt-mute);
  max-width: 62ch;
}

.fdt-on-dark .fdt-lead {
  color: var(--fdt-mute-on-dark);
}

.fdt-muted {
  color: var(--fdt-mute);
}

.fdt-note {
  padding: 12px 16px;
  border-left: 4px solid var(--fdt-warm);
  background: var(--fdt-paper);
  border-radius: 0 var(--fdt-radius) var(--fdt-radius) 0;
  font-size: 0.9375rem;
}

/* Przyciski */
.fdt-btn,
.fdt-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--fdt-radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fdt-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.fdt-btn--primary {
  background: var(--fdt-brand);
  color: var(--fdt-night);
}

.fdt-btn--primary:hover {
  background: #54c4f0;
  color: var(--fdt-night);
}

.fdt-btn--donate {
  background: var(--fdt-warm);
  color: var(--fdt-night);
}

.fdt-btn--donate:hover {
  background: #ffa766;
  color: var(--fdt-night);
}

.fdt-btn--ghost {
  background: transparent;
  color: var(--fdt-brand-ink);
  border-color: currentcolor;
}

.fdt-btn--ghost:hover {
  background: var(--fdt-brand-ink);
  border-color: var(--fdt-brand-ink);
  color: var(--fdt-white);
}

.fdt-on-dark .fdt-btn--ghost,
.fdt-btn--light {
  color: var(--fdt-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.fdt-on-dark .fdt-btn--ghost:hover,
.fdt-btn--light:hover {
  background: var(--fdt-white);
  border-color: var(--fdt-white);
  color: var(--fdt-night);
}

.fdt-btn--lg {
  min-height: 56px;
  padding: 14px 34px;
  font-size: 1.0625rem;
}

.fdt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}

@media (max-width: 720px) {
  body {
    font-size: 1rem;
  }

  .fdt-btn {
    width: 100%;
  }

  .fdt-actions .fdt-btn {
    width: 100%;
  }
}

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

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