/* Fonty marki (Brand Book str. 21): Nunito do nagłówków, Figtree do tekstu i tagów. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-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;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  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 {
  /* Kolory podstawowe (str. 14) */
  --malina: #801247;
  --roz: #ef458f;
  --zolty: #fff87e;
  --czern: #16080e;
  --biel: #faf8fb;
  --lawenda: #f4eff6;
  --krem: #fffbf7; /* tekst na malinie, 9,7:1 */

  /* Tony robocze (str. 15) */
  --malina-900: #431026;
  --malina-800: #5e1235;
  --malina-600: #b02966;
  --roz-300: #feb7ce;
  --roz-200: #fdd7e5;
  --szary-700: #514349;
  --szary-500: #887c83;
  --szary-300: #beb5bc;
  --szary-200: #dbd4db;
  --braz-tagu: #3e2b2e;

  /* Zaokrąglenia (str. 23) */
  --r-tag: 5px;
  --r-btn: 8px;
  --r-kafel: 12px;
  --r-karta: 16px;
  --r-plaszczyzna: 22px;
  --r-wciecie: 38px;

  --font-naglowki: 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-tekst: 'Figtree', system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --max: 76rem;
}

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

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

body {
  margin: 0;
  background: var(--lawenda);
  color: var(--czern);
  font-family: var(--font-tekst);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-naglowki);
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 1.45rem + 3vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

:focus-visible {
  outline: 3px solid var(--malina-600);
  outline-offset: 3px;
}

.na-malinie :focus-visible {
  outline-color: var(--zolty);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

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

/* Tag: Figtree Bold, wersaliki ze światłem +2% (str. 22, 38) */
.tag {
  display: inline-block;
  padding: 0.4em 0.7em 0.35em;
  border-radius: var(--r-tag);
  background: var(--zolty);
  color: var(--braz-tagu);
  font-family: var(--font-tekst);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Naklejka: na krawędzi, pod kątem 4–8°, najwyżej dwie w kadrze (str. 36) */
.naklejka {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgb(67 16 38 / 0.18));
}

html {
  scroll-behavior: smooth;
}

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