/* ========================================
   USTAWIENIA GLOBALNE
======================================== */

:root {
    --background: #ffffff;
    --portfolio-background: #b9c5c3;
    --text-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text-color);

    font-family: "Outfit", sans-serif;
    font-size: 22px;
    line-height: 1.1;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}


/* ========================================
   NAGŁÓWEK
======================================== */

.header {
    width: 100%;
    min-height: 224px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 60px 8.7%;
}


/* LOGO */

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo img {
    display: block;
    width: 95px;
    height: auto;
}


/* EMAIL */

.header-contact a {
    font-size: 24px;
    font-weight: 700;

    color: #000000;
    text-decoration: underline;

    text-underline-offset: 2px;

    transition: text-decoration-color 0.2s ease;
}

.header-contact a:hover {
    text-decoration-color: transparent;
}


/* ========================================
   PORTFOLIO
======================================== */

.portfolio {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    background: var(--portfolio-background);
}


/* POJEDYNCZY PROJEKT */

.project {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* MINIATURA */

.project-image {
    display: block;
    width: 100%;

    aspect-ratio: 2.16 / 1;

    overflow: hidden;
    background: #b9c5c3;
}

.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease,
                opacity 0.3s ease;
}


/* EFEKT PO NAJECHANIU */

.project-image:hover img {
    transform: scale(1.025);
    opacity: 0.92;
}


/* OPIS PROJEKTU */

.project-description {
    width: 100%;
    min-height: 156px;
    padding: 25px 17.4% 120px;
    background: var(--portfolio-background);
}

.project-description p {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}


/* ========================================
   STOPKA — FOTOGRAFIA WYDM
======================================== */

.footer {
    position: relative;

    width: 100%;
    background: var(--portfolio-background);

    overflow: hidden;
}


/* ZDJĘCIE */

.footer-image {
    display: block;

    width: 100%;
    height: auto;
}


/* ROK */

.footer-content {
    position: absolute;

    left: 8.7%;
    bottom: 7%;

    color: #ffffff;

    font-size: 22px;
    font-weight: 400;
}


/* ========================================
   TABLETY
======================================== */

@media (max-width: 900px) {

    .header {
        min-height: 180px;
        padding: 45px 6%;
    }

    .header-logo img {
        width: 85px;
    }

    .project-description {
        padding: 24px 12% 30px;
        min-height: 145px;
    }

    .footer-content {
        left: 6%;
    }

}


/* ========================================
   TELEFONY
======================================== */

@media (max-width: 600px) {

    /* NAGŁÓWEK */

    .header {
        min-height: 145px;

        padding: 35px 6%;

        gap: 20px;
    }

    .header-logo img {
        width: 75px;
    }

    .header-contact a {
        font-size: 16px;
    }


    /* PORTFOLIO */

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

    .project-image {
        aspect-ratio: 2.16 / 1;
    }

    .project-description {
        min-height: 125px;
        padding: 25px 6% 30px;
    }

    .project-description h2 {
        font-size: 16px;
    }

    .project-description p {
        font-size: 16px;
    }


    /* STOPKA */

    .footer-content {
        left: 6%;
        bottom: 7%;

        font-size: 15px;
    }

}


/* ========================================
   DOSTĘPNOŚĆ
======================================== */

a:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .project-image img {
        transition: none;
    }
}

/* ========================================
   DUŻY NAPIS NA ZDJĘCIU WYDM
======================================== */

.footer-slogan {
    position: absolute;
    top: 15%;
    left: 8.7%;
    z-index: 2;
    color: #ffffff;
}

.footer-slogan p {
    font-family: "Outfit", sans-serif;
    font-size: clamp(50px, 9.5vw, 145px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.025em;
}


/* ========================================
   DUŻY NAPIS — TABLETY
======================================== */

@media (max-width: 900px) {

    .footer-slogan {
        top: 15%;
        left: 6%;
    }

    .footer-slogan p {
        font-size: 9.5vw;
    }

}

/* ========================================
   DUŻY NAPIS — TELEFONY
======================================== */

@media (max-width: 600px) {

    .footer-slogan {
        top: 12%;
        left: 6%;
    }

    .footer-slogan p {
        font-size: 9.5vw;
        line-height: 1.05;
    }

}