:root {
    --ft-yellow: #ffc400;
    --ft-yellow-hover: #ffd334;
    --ft-dark: #333333;
    --ft-dark-deep: #252525;
    --ft-text: #3f3f3f;
    --ft-muted: #747474;
    --ft-soft: #f6f6f4;
    --ft-border: #e2e2df;
    --ft-white: #ffffff;
    --ft-container: 1280px;
    --ft-font: Inter, Roboto, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ft-white);
    color: var(--ft-text);
    font-family: var(--ft-font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    z-index: 100000;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 16px;
    clip: auto;
    background: #fff;
    color: #111;
}

/* =========================================================
   Nagłówek
   ========================================================= */
.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: #303030;
    color: #fff;
    border-top: 4px solid var(--ft-dark-deep);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header__top {
    width: min(var(--ft-container), calc(100% - 64px));
    margin: 0 auto;
}

.site-header__brand-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 152px;
    padding: 24px 0 18px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(820px, 72vw);
    max-height: 104px;
    margin: 0 auto;
}

/* Linki pomocnicze zostały przeniesione do stopki. */
.utility-navigation { display: none; }

.site-header__nav-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 64px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.primary-navigation { min-width: 0; }

.primary-menu,
.primary-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 38px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a,
.primary-navigation .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-navigation .menu a:hover,
.primary-navigation .menu a:focus {
    color: var(--ft-yellow);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 6px;
    background: var(--ft-yellow);
    color: #191919;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}
.site-header__cta:hover,
.site-header__cta:focus { background: var(--ft-yellow-hover); }

.menu-toggle { display: none; }

/* =========================================================
   Treść
   ========================================================= */
.site-main { min-height: 55vh; }
.page-shell,
.post-shell {
    width: min(1100px, calc(100% - 64px));
    margin: 0 auto;
    padding: 70px 0 90px;
}
.entry-header { margin-bottom: 36px; }
.entry-title {
    margin: 0;
    color: var(--ft-dark-deep);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.08;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content a {
    color: #7c6000;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* =========================================================
   Stopka
   ========================================================= */
.site-footer {
    border-top: 6px solid var(--ft-yellow);
    background: var(--ft-dark-deep);
    color: rgba(255,255,255,.82);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 44px;
    align-items: center;
    width: min(var(--ft-container), calc(100% - 64px));
    margin: 0 auto;
    padding: 46px 0;
}
.site-footer .custom-logo-link,
.site-footer .site-branding__fallback {
    display: inline-flex;
    padding: 0;
    background: transparent;
}
.site-footer img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 82px;
}
.site-footer__brand p { margin: 14px 0 0; font-size: 14px; }
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-menu a,
.site-footer a { color: #fff; text-decoration: none; }
.footer-menu a:hover,
.site-footer a:hover { color: var(--ft-yellow); }
.site-footer__meta {
    display: grid;
    gap: 7px;
    justify-items: end;
    font-size: 14px;
}

/* =========================================================
   RWD
   ========================================================= */
@media (max-width: 1100px) {
    .site-header__brand-row { min-height: 128px; }
    .site-header__logo img { max-width: min(650px, 68vw); max-height: 86px; }
    .primary-menu,
    .primary-navigation .menu { gap: 10px 24px; }
    .primary-menu a,
    .primary-navigation .menu a { font-size: 14px; }
}

@media (max-width: 960px) {
    .site-header__top { width: calc(100% - 40px); }
    .site-header__brand-row {
        min-height: auto;
        padding: 18px 0 14px;
    }
    .site-header__logo img { max-width: min(520px, 86vw); max-height: 72px; }

    .site-header__nav-row {
        grid-template-columns: 1fr auto;
        min-height: 58px;
    }
    .site-header__cta { display: none; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        justify-self: end;
        grid-column: 2;
        padding: 10px 0 10px 14px;
        border: 0;
        background: transparent;
        color: #fff;
        font-weight: 800;
        cursor: pointer;
    }
    .menu-toggle__icon { display: grid; gap: 4px; width: 24px; }
    .menu-toggle__icon span {
        display: block;
        width: 24px;
        height: 2px;
        background: currentColor;
    }
    .primary-navigation {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 0 0 18px;
    }
    .primary-navigation.is-open { display: block; }
    .primary-menu,
    .primary-navigation .menu {
        display: grid;
        gap: 0;
        justify-content: stretch;
    }
    .primary-menu li,
    .primary-navigation .menu li { border-top: 1px solid rgba(255,255,255,.12); }
    .primary-menu a,
    .primary-navigation .menu a {
        display: block;
        min-height: 0;
        padding: 12px 2px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        width: calc(100% - 48px);
    }
    .site-footer__meta {
        grid-column: 1 / -1;
        justify-items: start;
    }
}

@media (max-width: 600px) {
    .site-header__top { width: calc(100% - 28px); }
    .site-header__brand-row { padding: 14px 0 10px; }
    .site-header__logo img { max-width: min(420px, 86vw); max-height: 58px; }
    .site-header__nav-row { min-height: 52px; }
    .menu-toggle__label { display: none; }

    .page-shell,
    .post-shell {
        width: calc(100% - 32px);
        padding: 48px 0 64px;
    }
    .entry-title { font-size: 36px; }

    .site-footer__inner {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        gap: 30px;
        padding: 38px 0;
    }
    .site-footer__meta { grid-column: auto; }
}
