/* Baza — reset i typografia. Minimalizm, duże światło, brak ozdobników.
   Ładowanie: base.html.twig linkuje fonts/tokens/app/landing równolegle (bez @import). */

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

/* atrybut hidden musi wygrywać z każdym display: (flex/grid na kartach itd.) */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

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

section[id] {
    scroll-margin-top: 4.5rem;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 var(--space-2);
    text-wrap: balance;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--text-xl);
}

p {
    margin: 0 0 var(--space-2);
    max-width: var(--content-max);
}

/* Linki w treści: granat + miedziane podkreślenie (miedź na białym nie przechodzi
   AA przy drobnym tekście — czysta miedź zostaje na dużych CTA). */
a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
    color: var(--accent);
}

.section--dark a {
    color: #fff;
}

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

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

::selection {
    background-color: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    max-width: var(--page-max);
    margin-inline: auto;
    padding-inline: var(--space-3);
}

@media (min-width: 1024px) {
    .container {
        padding-inline: var(--space-4);
    }
}

.section {
    padding-block: var(--section-gap);
}

.section--dark {
    background-color: var(--ink);
    color: var(--bg);
}
