/* Fonts: self-hosted Fontsource builds (OFL), latin + latin-ext subsets. */
@font-face {
    font-family: "Oxanium";
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/oxanium-latin-ext-wght-normal.woff2) format("woff2-variations");
    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: "Oxanium";
    font-weight: 200 800;
    font-display: swap;
    src: url(../fonts/oxanium-latin-wght-normal.woff2) format("woff2-variations");
    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: "Rubik";
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/rubik-latin-ext-wght-normal.woff2) format("woff2-variations");
    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: "Rubik";
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/rubik-latin-wght-normal.woff2) format("woff2-variations");
    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: "Rubik";
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/rubik-latin-ext-wght-italic.woff2) format("woff2-variations");
    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: "Rubik";
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/rubik-latin-wght-italic.woff2) format("woff2-variations");
    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: "Sedgwick Ave";
    font-display: swap;
    src: url(../fonts/sedgwick-ave-latin-ext-400-normal.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: "Sedgwick Ave";
    font-display: swap;
    src: url(../fonts/sedgwick-ave-latin-400-normal.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: "Sedgwick Ave Display";
    font-display: swap;
    src: url(../fonts/sedgwick-ave-display-latin-ext-400-normal.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: "Sedgwick Ave Display";
    font-display: swap;
    src: url(../fonts/sedgwick-ave-display-latin-400-normal.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 {
    --bg: #230021;
    --bg-dark: #120419;
    --bg-2: #1c0031;
    --bg-black: #050108;
    --bd: #261c2f;
    --title: #fff;
    --text: #f9f0ff;
    --meta: #e475e2;
    --link: #bd65ff;
    --hover: #ff85f8;
    --violet: #e179ff;
    --pink: #f50069;
    --crimson: #9e0044;
    --ink: #170022;
    --btn-bg: #4c225d;
    --btn-text: #d4b3e8;

    --font-text: "Rubik", sans-serif;
    --font-head: "Oxanium", sans-serif;
    --font-script: "Sedgwick Ave", cursive;

    --h1: 57px;
    --h2: 47px;
    --h3: 35px;
    --h4: 28px;
    --h5: 23px;
    --h6: 19px;
    --script: 48px;

    --gutter: clamp(20px, 6.5vw, 82px);
    --section-pad: 128px;
}

@media (max-width: 1279px) {
    :root {
        --h1: 45px;
        --h2: 36px;
        --h3: 28px;
        --h4: 24px;
        --h5: 20px;
        --h6: 18px;
        --section-pad: 96px;
    }
}

@media (max-width: 767px) {
    :root {
        --h1: 36px;
        --h2: 31px;
        --h3: 26px;
        --h4: 22px;
        --h5: 19px;
        --h6: 17px;
        --script: 45px;
        --gutter: 30px;
        --section-pad: 64px;
    }
}

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

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

body {
    margin: 0;
    font: 400 16px/1.625 var(--font-text);
    /* Breaks only strings that cannot fit at all (long URLs); normal words wrap whole. */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color .3s, background-color .3s, border-color .3s;
}

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

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

img {
    height: auto;
    vertical-align: top;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--title);
    text-transform: uppercase;
}

h1 { font-size: var(--h1); font-weight: 700; line-height: 1.105; text-transform: none; }
h2 { font-size: var(--h2); line-height: 1.13; }
h3 { font-size: var(--h3); line-height: 1.115; }
h4 { font-size: var(--h4); line-height: 1.215; }
h5 { font-size: var(--h5); line-height: 1.215; }
h6 { font-size: var(--h6); line-height: 1.265; }

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
}

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

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 10000;
    padding: 10px 16px;
    color: var(--title);
    background: var(--bg-dark);
}

.skip-link:focus {
    top: 10px;
}

.wrap {
    width: min(1420px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.script-title {
    font: 400 var(--script)/1.13 var(--font-script);
    text-transform: none;
}

.script-title--display {
    font-family: "Sedgwick Ave Display", cursive;
}

.script-title--small {
    font-size: 32px;
}

.eyebrow {
    margin: 0 0 25px;
    font: 600 16px/1 var(--font-head);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--violet);
}

.eyebrow--large {
    font-size: 24px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .eyebrow {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .eyebrow--large {
        font-size: 20px;
    }
}

/* Buttons */
.button,
.wp-block-button__link {
    display: inline-block;
    padding: 19px 40px 17px;
    border: 1px solid var(--btn-bg);
    border-radius: 0;
    font: 600 16px/19px var(--font-head);
    text-align: center;
    text-transform: uppercase;
    color: var(--btn-text);
    background: var(--btn-bg);
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    color: var(--ink);
    border-color: var(--link);
    background: var(--link);
}

.button--light {
    margin-top: 15px;
    color: var(--ink);
    border-color: #f1d7ff;
    background: #f1d7ff;
}

.button--light:hover,
.button--light:focus-visible {
    color: #fff;
    border-color: #fff;
    background: var(--crimson);
}

.button--glow {
    color: #fff;
    border-color: var(--crimson);
    background: linear-gradient(174deg, rgb(158 0 68 / .16) 0%, rgb(242 41 201 / .42) 100%);
}

.button--glow:hover,
.button--glow:focus-visible {
    color: #fff;
    border-color: #fff;
    background: var(--pink);
}

@media (max-width: 767px) {
    .button,
    .wp-block-button__link {
        font-size: 15px;
    }
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
}

.has-hero .site-header {
    position: absolute;
    inset: 0 0 auto;
}

.site-header__bar {
    padding: 12px 0;
    border-bottom: 1px solid var(--bd);
    background: var(--bg-dark);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 72px;
}

.site-logo img {
    width: auto;
    height: 56px;
}

.main-nav__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav__list a {
    display: block;
    padding: 16px;
    font: 600 16px/24px var(--font-head);
    text-transform: uppercase;
    color: var(--title);
}

.main-nav__list a:hover,
.main-nav__list .current-menu-item > a,
.main-nav__list .is-current > a {
    color: var(--link);
}

.menu-toggle {
    display: none;
    width: 30px;
    height: 34px;
    padding: 0;
    border: 0;
    color: var(--link);
    background: none;
    cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block;
    width: 22px;
    height: 3px;
    margin-inline: auto;
    border-radius: 2px;
    background: currentColor;
}

.menu-toggle__bars {
    position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 45px 20px;
    background: var(--bg-dark);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    border: 0;
    color: var(--title);
    background: none;
    cursor: pointer;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__list a {
    display: inline-block;
    padding: 7.75px 0;
    font: 600 31px/1.13 var(--font-head);
    text-transform: uppercase;
    color: var(--title);
}

.mobile-menu__list a:hover,
.mobile-menu__list .current-menu-item > a,
.mobile-menu__list .is-current > a {
    color: var(--link);
}

@media (max-width: 767px) {
    .site-header__bar {
        padding: 11.25px 0;
    }

    .site-header__bar .wrap {
        width: calc(100% - 40px);
    }

    .site-header__inner {
        min-height: 67px;
    }

    .site-logo img {
        height: 52px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* Page title band */
.page-title {
    padding: var(--section-pad) 0;
    text-align: center;
}

.page-title__caption {
    font-size: var(--h1);
}

.breadcrumbs {
    margin-top: 8px;
    font-size: 13px;
    line-height: 19px;
    color: var(--title);
}

.breadcrumbs a {
    color: inherit;
}

.breadcrumbs a:hover {
    color: var(--hover);
}

.breadcrumbs__sep {
    margin: 0 5.85px;
}

/* Content pages */
.page-body {
    padding: var(--section-pad) 0;
}

.page-body--single {
    padding-top: 64px;
}

.content-box {
    padding: 42.67px;
    background: var(--bg-dark);
}

.content-box--center {
    width: 66%;
    margin-inline: auto;
}

.layout-sidebar {
    display: grid;
    grid-template-columns: 72% 25%;
    justify-content: space-between;
    align-items: start;
}

@media (max-width: 1023px) {
    .content-box--center {
        width: 100%;
    }

    .layout-sidebar {
        grid-template-columns: 100%;
        gap: 60px;
    }
}

/* Phones: the content box runs edge to edge so posts get the full screen width. */
@media (max-width: 767px) {
    .page-body .wrap {
        width: 100%;
    }

    .page-body--single {
        padding-top: 0;
    }

    .content-box {
        padding: 28px 16px;
    }

    .layout-sidebar {
        gap: 40px;
    }

    .sidebar {
        padding-inline: 16px;
    }

    .entry-content .wp-block-table {
        width: calc(100% + 32px);
        margin-inline: -16px;
    }

    /* Columns size to their content; the wrapper scrolls if the table is still too wide. */
    .entry-content .wp-block-table table {
        table-layout: auto;
    }

    .entry-content td,
    .entry-content th {
        padding: 10px 8px;
        font-size: 14px;
    }
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.62em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.2em;
}

.entry-content :is(h1, h2, h3, h4, h5, h6) {
    margin: 1.38em 0 .5em;
}

.entry-content h1 {
    margin-bottom: .28em;
}

.entry-content figure {
    margin: 0 0 1em;
}

.entry-content .wp-block-image img {
    height: auto;
}

.entry-content hr,
.entry-content .wp-block-separator {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--bd);
}

.entry-content .wp-block-separator.has-background {
    border-top: 0;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
    margin: 1.62em 0;
    padding: 3.2em 2.6em;
    border: 0;
    color: var(--title);
    background: var(--bg-2);
}

.entry-content blockquote > :last-child {
    margin-bottom: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

/* Core sets word-break: break-word on fixed-layout table cells; keep words whole. */
.entry-content table,
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
    word-break: normal;
    overflow-wrap: normal;
}

/* main.js marks tables wider than the screen. */
.entry-content .wp-block-table.is-scrollable::before {
    content: "Przewiń tabelę w bok →";
    position: sticky;
    left: 0;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--meta);
}

/* Hyphenated words wrapped by inc/typography.php. */
.nowrap {
    white-space: nowrap;
}

.entry-content td,
.entry-content th {
    padding: 16px;
    border: 0;
    text-align: left;
    background: var(--bg-dark);
}

.entry-content tr:first-child > *,
.entry-content thead th {
    background: var(--bg-2);
}

.entry-content .wp-block-table {
    overflow-x: auto;
}

.entry-content .wp-block-buttons {
    margin-bottom: 1.62em;
}

.entry-title {
    margin-bottom: .5em;
}

/* Single post */
.post-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 400px;
    padding: 130px var(--gutter) 50px;
    text-align: center;
    background: var(--bg-dark);
}

.post-hero__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark scrim keeps the white title readable on any featured image. */
.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgb(18 4 25 / .55) 0%, rgb(18 4 25 / .25) 70%),
        linear-gradient(rgb(18 4 25 / .35), rgb(18 4 25 / .8));
}

.post-hero--plain {
    min-height: 0;
    padding: var(--section-pad) var(--gutter) 40px;
}

.post-hero__inner {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.post-hero__title {
    max-width: 725px;
    text-shadow: 0 2px 24px rgb(5 1 8 / .85), 0 1px 3px rgb(5 1 8 / .9);
}

@media (max-width: 767px) {
    .post-hero {
        min-height: 280px;
        padding-top: 110px;
        padding-bottom: 30px;
    }
}

.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 48px;
    padding: 14px;
    background: var(--bg-2);
}

.post-share__item {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--meta);
    cursor: pointer;
    transition: background-color .3s;
}

.post-share__item:hover,
.post-share__item:focus-visible,
.post-share__item.is-copied {
    color: #fff;
    background: var(--link);
}

.post-share__label {
    margin-right: 8px;
    font: 600 14px/1 var(--font-head);
    text-transform: uppercase;
    color: var(--meta);
}

.post-share__status {
    margin-left: 8px;
    font-size: 14px;
    color: var(--meta);
}

.post-nav {
    margin-top: 32px;
}

.post-nav .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav a {
    display: grid;
    gap: 6px;
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--bd);
    color: var(--title);
}

.post-nav a:hover,
.post-nav a:focus-visible {
    border-color: var(--link);
}

.post-nav .nav-next {
    grid-column: 2;
    text-align: right;
}

.post-nav__dir {
    font: 600 13px/1 var(--font-head);
    text-transform: uppercase;
    color: var(--meta);
}

.post-nav__title {
    font: 600 17px/1.3 var(--font-head);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .post-nav .nav-links {
        grid-template-columns: 1fr;
    }

    .post-nav .nav-next {
        grid-column: auto;
    }
}

.post-share__item svg {
    width: 14px;
    height: 16px;
}

/* Blog list */
.post-item + .post-item {
    margin-top: 60px;
}

.post-item__thumb {
    display: block;
    margin-bottom: 27.2px;
    overflow: hidden;
}

.post-item__thumb img {
    width: 100%;
    aspect-ratio: 924 / 520;
    object-fit: cover;
    transition: transform .5s;
}

.post-item__thumb:hover img {
    transform: scale(1.03);
}

.post-item__title {
    font-size: var(--h3);
}

.post-item__meta {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 21px;
}

.post-item__meta a {
    color: var(--meta);
}

.post-item__excerpt {
    margin-top: 16px;
}

.post-item__excerpt p {
    margin: 0;
}

/* --pg is the accent, --pg-on the text on a filled item; sections override both. */
.pagination {
    --pg: var(--link);
    --pg-on: var(--ink);
    margin-top: 40px;
}

.pagination,
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--pg);
    font: 600 16px/1 var(--font-head);
    color: var(--pg);
    transition: color .3s, background-color .3s;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible,
.pagination .current {
    color: var(--pg-on);
    background: var(--pg);
}

.pagination .dots {
    border-color: transparent;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 30px;
    padding-left: 40px;
}

.sidebar .script-title {
    margin-bottom: 30px;
    line-height: 1.265;
}

.mini-post {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mini-post + .mini-post {
    margin-top: 25.6px;
}

.mini-post__thumb {
    flex: 0 0 100px;
}

.mini-post__thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.mini-post__title {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.265;
}

.mini-post__date {
    font-size: 14px;
    line-height: 18px;
    color: var(--meta);
}

@media (max-width: 1023px) {
    .sidebar {
        position: static;
        padding-left: 0;
    }
}

/* Front page: hero */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 720px;
    padding: 0 70px;
    background: var(--bg-black);
}

.hero__bg,
.hero__bg img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.hero__bg img {
    object-fit: cover;
}

.hero__eyebrow {
    margin: 0 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--pink);
}

.hero__title {
    max-width: 562px;
    font-size: 48px;
    line-height: 1.105;
}

.hero__text {
    max-width: 562px;
    margin: 0;
    padding-top: 30px;
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
}

.counter {
    margin-top: 30px;
}

.counter__title {
    margin: 0 0 12px;
    font: 600 16px/1 var(--font-head);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--violet);
}

.counter__units {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.counter__unit {
    display: grid;
    justify-items: center;
    min-width: 88px;
    padding: 14px 10px 10px;
    border: 1px solid var(--crimson);
    background: linear-gradient(174deg, rgb(158 0 68 / .16) 0%, rgb(242 41 201 / .42) 100%), rgb(18 4 25 / .7);
}

.counter__value {
    font: 700 44px/1 var(--font-head);
    font-variant-numeric: tabular-nums;
    color: var(--title);
}

.counter__label {
    margin-top: 6px;
    font: 600 13px/1 var(--font-head);
    text-transform: uppercase;
    color: var(--meta);
}

.counter__finished,
.counter.is-finished .counter__units {
    display: none;
}

.counter.is-finished .counter__finished {
    display: block;
    margin: 0;
    font: 600 22px/1.2 var(--font-head);
    text-transform: uppercase;
    color: var(--title);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.hero__buttons .button--light {
    margin-top: 0;
}

@media (max-width: 1279px) {
    .hero {
        padding-inline: var(--gutter);
    }
}

@media (max-width: 767px) {
    /*
     * The landscape artwork is zoomed 1.7× and only its bottom part (--hero-crop) is shown
     * under the copy: the "Rozpoznasz fake news?" neon stays, the big logo is cropped out.
     */
    .hero {
        --hero-zoom: 1.7;
        --hero-crop: .55;
        --hero-img-h: calc(100vw * var(--hero-ratio) * var(--hero-zoom));
        --hero-band: calc(var(--hero-img-h) * var(--hero-crop));
        justify-content: flex-start;
        min-height: 0;
        padding: 40px 20px calc(var(--hero-band) - 50px);
    }

    .hero__bg {
        top: auto;
        height: var(--hero-band);
        overflow: hidden;
    }

    .hero__bg img {
        inset: auto auto 0 calc(-80% * (var(--hero-zoom) - 1));
        width: calc(100% * var(--hero-zoom));
        max-width: none;
        height: var(--hero-img-h);
    }

    .hero__bg::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        z-index: 1;
        height: 90px;
        background: linear-gradient(var(--bg-black), transparent);
    }

    .hero__eyebrow {
        display: none;
    }

    .hero__title {
        font-size: 30px;
        line-height: 36px;
    }

    .hero__text {
        padding-top: 15px;
        font-size: 15px;
        font-weight: 400;
        line-height: 1.625;
    }

    .hero__content {
        width: 100%;
    }

    .counter__units {
        gap: 8px;
    }

    .counter__unit {
        flex: 1;
        min-width: 0;
        padding: 10px 4px 8px;
    }

    .counter__value {
        font-size: 30px;
    }

    .counter__label {
        font-size: 11px;
    }

    .hero__buttons .button {
        flex: 1 1 100%;
    }
}

/* Front page: news */
.news {
    padding: 75px 0 30px;
    color: #000;
    background: #fff;
}

.news .script-title {
    margin-bottom: 28px;
    color: var(--ink);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.news__body.is-loading {
    opacity: .5;
    transition: opacity .2s;
}

.card__thumb {
    display: block;
    margin-bottom: 20px;
}

.card__thumb img {
    width: 100%;
    aspect-ratio: 924 / 520;
    object-fit: cover;
}

.card__title {
    margin-bottom: 10px;
    font-size: var(--h3);
    color: #23192e;
}

.card {
    position: relative;
}

/* The whole card is clickable through the title link. */
.card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card:hover .card__title a,
.card__title a:focus-visible {
    color: #b0f;
}

.card:focus-within {
    outline: 2px solid var(--link);
    outline-offset: 6px;
}

.card__title a:focus-visible {
    outline: none;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 20px;
    color: #8e4fa8;
}

.card__meta svg {
    width: 14px;
    height: 16px;
}

.card__excerpt {
    margin: 0 0 20px;
}

.news__pagination {
    --pg: var(--ink);
    --pg-on: #fff;
    margin-top: 0;
}

.news__pagination a.page-numbers:hover,
.news__pagination a.page-numbers:focus-visible {
    color: var(--ink);
    border-color: var(--link);
    background: var(--link);
}

@media (max-width: 1279px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news {
        padding: 30px 0;
    }

    .news .script-title {
        margin-bottom: 15px;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }
}

/* Front page: about (dark) */
.about {
    position: relative;
    overflow: hidden;
    padding: 50px 0 100px;
    color: var(--title);
    background: var(--bg-black);
}

.about--notice {
    padding-top: 200px;
}

.about__glow {
    position: absolute;
    top: 509px;
    left: 25%;
    width: 100%;
    max-width: none;
    pointer-events: none;
}

.about--notice .about__glow {
    top: 127px;
}

.decor__item {
    position: absolute;
    pointer-events: none;
}

.decor__item--1,
.decor__item--3 {
    height: 316px;
    width: auto;
}

.decor__item--2,
.decor__item--4 {
    height: 240px;
    width: auto;
}

.decor__item--1 { top: 177px; left: -8%; }
.decor__item--2 { top: 25px; left: 87%; }
.decor__item--3 { bottom: 291px; left: 79%; }
.decor__item--4 { bottom: 25px; left: -1%; }

.about > :not(.about__glow, .decor) {
    position: relative;
    z-index: 2;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    padding-bottom: 100px;
}

.feature__media {
    text-align: center;
}

.feature__body {
    padding-left: 73px;
}

.feature__logo {
    width: auto;
    max-height: 108px;
    margin-bottom: 12.65px;
}

.feature__text {
    margin-bottom: 30px;
}

.feature__text p {
    margin: 0 0 1.62em;
}

.feature__text > :last-child {
    margin-bottom: 0;
}

.scope {
    display: grid;
    gap: 30px;
    padding: 50px;
}

.scope .eyebrow {
    margin: 0;
}

.scope__text p {
    margin: 0 0 1.62em;
}

.scope__text ul {
    margin: 0;
    padding-left: 1.2em;
}

.rules,
.stages {
    display: flex;
    flex-direction: column;
}

.rules {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.rules .script-title {
    padding-bottom: 50px;
    color: var(--title);
}

.rules__row,
.stages__row {
    display: flex;
    gap: 30px;
}

.rules__row {
    padding-bottom: 43px;
}

.rules__row + .rules__row {
    margin-top: 43px;
}

.rules__icon {
    flex: 0 0 17.5%;
    color: var(--title);
}

.rules__icon svg {
    width: 50px;
    height: 50px;
}

.rules__link {
    flex: 1;
}

.stages .script-title {
    margin-bottom: 53px;
    color: var(--title);
}

.stages__row {
    padding-bottom: 20px;
}

.stages__row + .stages__row {
    margin-top: 25px;
}

.stages__name {
    flex: 0 0 17.5%;
    font-size: var(--h3);
}

.stages__text {
    flex: 1;
}

.stages__text p {
    margin: 0;
}

@media (max-width: 1279px) {
    .decor {
        display: none;
    }
}

@media (max-width: 767px) {
    .about {
        padding: 0 0 30px;
    }

    .about--notice {
        padding-top: 120px;
    }

    .about__glow {
        display: none;
    }

    .feature {
        grid-template-columns: 1fr;
        padding-bottom: 65px;
    }

    .feature__body {
        padding-left: 0;
    }

    .feature__logo {
        max-height: 73px;
        margin-bottom: 4px;
    }

    .feature__text {
        margin-bottom: 15px;
    }

    .scope {
        width: calc(100% - 2 * var(--gutter));
        margin: 0 auto 30px;
        padding: 0;
    }

    .rules .script-title,
    .stages .script-title {
        margin: 0 0 28px;
        padding: 0 0 28px;
    }

    .rules__row,
    .stages__row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .rules__row {
        padding-bottom: 0;
    }

    .rules__row + .rules__row {
        margin-top: 30px;
    }

    .rules__icon,
    .stages__name {
        flex-basis: 100%;
    }

    .stages__row {
        padding-bottom: 30px;
    }

    .stages__row + .stages__row {
        margin-top: 0;
    }
}

/* Front page: materials accordion */
.materials {
    display: grid;
    gap: 30px;
    padding: 80px 0 48px;
    background: #fcfcfc;
}

.materials .script-title {
    color: var(--ink);
}

@media (min-width: 768px) {
    .materials__title {
        width: min(1420px, 100% - 2 * var(--gutter));
        margin-inline: auto;
    }
}

.accordion {
    container-type: inline-size;
    display: flex;
    gap: 20px;
}

.accordion__item {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    transition: flex .6s cubic-bezier(.22, .61, .36, 1);
}

.accordion__item.is-active {
    flex: 3;
}

/* Expand on hover only where hover exists; on touch screens a tap must not reflow the tiles. */
@media (hover: hover) and (min-width: 768px) {
    .accordion:hover .accordion__item {
        flex: 1;
    }

    .accordion:hover .accordion__item:hover {
        flex: 3;
    }
}

/* Keyboard users open a tile by tabbing to its button. */
@media (min-width: 768px) {
    .accordion:focus-within .accordion__item {
        flex: 1;
    }

    .accordion .accordion__item:focus-within {
        flex: 3;
    }
}

.accordion__image {
    position: relative;
    height: 474px;
    overflow: hidden;
    background: var(--crimson);
}

/*
 * The photo keeps the width of an open tile (3 of 5 parts minus the gaps) and stays centred,
 * so expanding a tile only reveals more of it instead of rescaling and re-cropping it.
 */
.accordion__image img {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc((100cqw - 40px) * .6);
    max-width: none;
    height: 100%;
    object-fit: cover;
    transform: translateX(-50%);
}

.accordion__body {
    margin-top: 23px;
}

.accordion__title {
    margin-bottom: 5px;
    font-size: var(--h3);
    white-space: nowrap;
    color: var(--ink);
}

@media (max-width: 767px) {
    .materials {
        padding: 30px var(--gutter);
    }

    .accordion {
        flex-direction: column;
        gap: 25px;
    }

    .accordion__item,
    .accordion__item.is-active {
        flex: none;
        transition: none;
    }

    .accordion__image {
        height: 272px;
    }

    .accordion__image img {
        left: 0;
        width: 100%;
        transform: none;
    }

    .accordion__title {
        white-space: normal;
    }
}

/* Front page: funding */
.funding {
    color: #000;
    background: #fff;
}

.funding__inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 50px 0;
}

.funding__title {
    flex: 0 0 25%;
    font-size: 20.8px;
    line-height: 28.8px;
    text-align: right;
    color: #000;
}

.funding__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-left: 80px;
}

.funding__logos img {
    width: 300px;
}

@media (max-width: 767px) {
    .funding__inner {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
    }

    .funding__title {
        font-size: 19.5px;
        line-height: 27px;
        text-align: center;
    }

    .funding__logos {
        justify-content: center;
        gap: 30px;
        padding-left: 0;
    }

    .funding__logos img {
        width: calc(50% - 15px);
    }
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
}

.site-footer .wrap {
    width: min(1420px, 100% - 140px);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 0;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.site-footer__logo {
    margin-bottom: 16px;
}

.site-footer__logo img {
    width: auto;
    height: 80px;
    object-fit: contain;
}

.site-footer__brand .button {
    margin-top: 10px;
}

.socials {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials a {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #a99bb8;
    background: #34134f;
}

.socials a:hover,
.socials a:focus-visible {
    color: #fff;
}

.socials svg {
    width: 25px;
    height: 25px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.site-footer__links .script-title {
    color: var(--title);
}

.site-footer__links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    padding-bottom: 7.5px;
}

.site-footer__links li + li {
    margin-top: 7.5px;
}

.site-footer__links li:last-child {
    padding-bottom: 0;
}

.site-footer__links a {
    color: var(--text);
}

.site-footer__links a:hover {
    color: var(--title);
}

.site-footer__partner {
    justify-self: start;
}

.site-footer__partner img {
    width: 177px;
}

@media (max-width: 1023px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
        padding: 50px 0 40px;
    }

    .site-footer__brand {
        order: -1;
    }

    .site-footer__partner {
        justify-self: center;
    }

    .site-footer__links {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .site-footer .wrap {
        width: calc(100% - 40px);
    }

    .site-footer__partner img {
        width: 168px;
    }
}

/* Sitemap */
.sitemap ul ul {
    margin: .5em 0 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
