/* Power Walk – podstawy: reset, krój, typografia, ikony, fokus, narzędzia.
   Wymaga tokens.css. Wszystkie kroje lokalnie z ../fonts/ – strona działa bez internetu (licencje: fonts/README.md). */

/* Aileron – krój marki (jak „walk” w logo). 400 treść, 600 wyróżnienia, 700 przyciski i belka, 800 nagłówki. */
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Aileron-Regular.e1b88512b107.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/Aileron-Italic.3547c78ea6f0.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/Aileron-SemiBold.631eae5c990c.woff2") format("woff2"); }
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/Aileron-Bold.99d4479b85d2.woff2") format("woff2"); }
/* Aileron Heavy – nagłówki 800 z ciasnym światłem (makieta v8). */
@font-face { font-family: "Aileron"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("../fonts/Aileron-Heavy.61e29c69f092.woff2") format("woff2"); }

/* Material Symbols Rounded – przycięte do wght 500 / opsz 24, oś FILL zostaje. */
@font-face { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 100 700; font-display: block; src: url("../fonts/MaterialSymbolsRounded.a1f89b5d4215.woff2") format("woff2"); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-body);
  font: 400 16px/1.5 var(--font-brand);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; text-wrap: balance; }
:where(a) { color: inherit; text-decoration: none; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--accent-line); color: var(--ink); }
[hidden] { display: none !important; }

/* Fokus klawiatury: pierścień --focus 2px z odstępem 2px na każdym interaktywnym elemencie */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Typografia (role z design systemu) ---------- */
.t-display      { font: 700 56px/1.05 var(--font-brand); letter-spacing: -1px;   color: var(--ink); }   /* tylko web: hero */
.t-headline-lg  { font: 800 36px/1.1  var(--font-brand); letter-spacing: -0.035em; color: var(--ink); } /* duże H1 */
.t-headline     { font: 800 32px/1.1  var(--font-brand); letter-spacing: -0.045em; color: var(--ink); } /* powitanie, duże liczby */
.t-screen       { font: 800 24px/1.2  var(--font-brand); letter-spacing: -0.035em; color: var(--ink); } /* H1 ekranu / H2 */
.t-card         { font: 800 20px/1.2  var(--font-brand); letter-spacing: -0.025em; color: var(--ink); } /* tytuł sekcji, dialogu */
.t-section      { font: 800 16px/1.25 var(--font-brand); letter-spacing: -0.015em; color: var(--ink); } /* tytuł karty / wiersza */
.t-body-lg      { font: 400 18px/1.5  var(--font-brand); color: var(--ink-body); }                     /* lead */
.t-body-web     { font: 400 16px/1.5  var(--font-brand); color: var(--ink-body); }                     /* domyślna treść web */
.t-body         { font: 400 14px/1.5  var(--font-brand); color: var(--ink-body); }                     /* domyślna treść w aplikacji */
.t-strong       { font: 600 14px/1.5  var(--font-brand); color: var(--ink); }                          /* wyróżnienie, imiona */
.t-hint         { font: 400 12px/1.4  var(--font-brand); color: var(--ink-muted); }                    /* podpisy, metadane */
.t-label        { font: 700 12px/1.2  var(--font-brand); letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent-text); } /* etykieta sekcji */
.t-num          { font-variant-numeric: tabular-nums; }                                                /* kroki, km, punkty */

@media (max-width: 767px) {
  .t-display { font-size: 40px; }
  .t-headline-lg { font-size: 30px; }
  .t-headline { font-size: 28px; }
}

/* Aliasy z makiety web/panel (wersja D) – pozwalają przenosić ekrany 1:1 */
.h1    { margin: 0; font: 800 32px/1.12 var(--font-brand); color: var(--ink); letter-spacing: -0.035em; }
.lead  { margin: 6px 0 0; font: 400 16px/1.5 var(--font-brand); color: var(--ink-muted); }
.p     { margin: 0; font: 400 15px/1.55 var(--font-brand); color: var(--ink-body); }
.label { margin: 0; font: 700 12px/1.2 var(--font-brand); letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--ink-muted); }
.reading { max-width: var(--reading-max); }

/* ---------- Ikony: Material Symbols Rounded, grubość 500 ---------- */
.pw-icon {
  font-family: var(--font-icons);
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  flex: none;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 500, "opsz" 24;
  user-select: none;
}
.pw-icon--fill { font-variation-settings: "FILL" 1, "wght" 500, "opsz" 24; }
.pw-icon--sm { font-size: 16px; }
.pw-icon--lg { font-size: 24px; }

/* ---------- Narzędzia ---------- */
.sr, .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; }
.row   { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.spacer { flex: 1; }
.paper-bg { background: var(--paper) url("../img/graphics/paper-texture.7851a9c16dc6.jpg") center / cover; color: var(--brand-black); }

/* Wejście treści kaskadą: dodaj .pw-enter do kontenera; dzieci dostają --i (0…7) */
.pw-enter > * { animation: pw-rise var(--dur-enter) var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * var(--stagger-step)); }
@keyframes pw-rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
