:root {
    --green: #496b5d;
    --green-dark: #355347;
    --cream: #f7f4ee;
    --accent: #d99b6c;
    --white: #ffffff;
    --text: #26352f;

    --container: 1160px;
    --radius: 3em;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Source Sans 3", sans-serif;
    font-size: 19px;
    line-height: 1.65;
    padding: 0 3%;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Fraunces", serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--green-dark);
    font-optical-sizing: none;;
}

h1 {
    margin-bottom: 25px;
    font-size: clamp(3.4rem, 8vw, 7rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 30px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

p {
    margin-top: 0;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    min-height: min(820px, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--green);
    border-radius: 0 0 4em 4em;
}

.hero-image {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(53, 83, 71, 0.52),
            rgba(53, 83, 71, 0.72)
        ),
        url("Tori.jpg") center / cover no-repeat;

    transform: scale(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 120px;
    text-align: center;
}

.hero h1,
.hero .intro {
    color: var(--white);
}

.hero h1 {
    max-width: 1000px;
    margin-inline: auto;
}

.intro {
    max-width: 700px;
    margin-inline: auto;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.45;
}

/* =========================================
   TEKSTI + KUVA
   ========================================= */

.story-section {
    padding-block: 140px;
}

.section-light {
    background: var(--white);
    border-radius: 4em;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.story-layout.reverse {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 0.95fr);
}

.story-layout.reverse .story-text {
    grid-column: 2;
    grid-row: 1;
}

.story-layout.reverse .story-image {
    grid-column: 1;
    grid-row: 1;
}

.story-text {
    max-width: 620px;
    justify-self: center;
    text-align: left;
}

.story-text h2 {
    max-width: 570px;
}

.story-text p {
    font-size: 1.18rem;
    line-height: 1.8;
}

.story-image {
    width: 100%;
    aspect-ratio: 4 / 4.7;
    min-height: 420px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 2em;
    box-shadow: 0 25px 60px rgba(53, 83, 71, 0.16);
}

.story-image-tori {
    background-image: url("Tori.jpg");
}

.story-image-piknik {
    background-image: url("Piknik.jpg");
}


/* =========================================
   VARJOSTA VALOON
   ========================================= */

.project-section {
    position: relative;
    min-height: 760px;
    padding: 100px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image {
    position: absolute;
    inset: 70px 6%;

    background:
        linear-gradient(
            90deg,
            rgba(53, 83, 71, 0.2),
            rgba(53, 83, 71, 0.5)
        ),
        url("Teatteri.jpg") center / cover no-repeat;

    border-radius: 70px;
}

.project-card {
    position: relative;
    z-index: 2;
    right: 2em;
    width: min(600px, 90%);
    margin-left: 35%;
    padding: clamp(40px, 6vw, 75px);
    background: var(--cream);
    border-radius: 50px;
    box-shadow: 0 30px 80px rgba(25, 45, 37, 0.28);
    text-align: left;
}

.project-card h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.project-card p {
    font-size: 1.18rem;
    line-height: 1.8;
}


/* =========================================
   ARVOT
   ========================================= */

.values-section {
    position: relative;
    overflow: hidden;
    padding-block: 140px;
    background: var(--green);
    color: var(--white);
    border-radius: 4em;
}

.values-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: clamp(60px, 9vw, 120px);
}

.values-copy {
    max-width: 700px;
}

.values-copy h2 {
    color: var(--white);
}

.values-copy p {
    font-size: 1.18rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 55px;
}

.value {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: var(--cream);
    color: var(--green-dark);
    border-radius: 100px;
    font-family: "Fraunces", serif;
    font-optical-sizing: none;
    font-size: clamp(1.3rem, 2.3vw, 1.75rem);
    line-height: 1.2;
    text-align: center;
}

.value-large {
    background: var(--accent);
    color: var(--white);
}

.value:nth-child(3) {
    background: var(--green-dark);
    color: var(--white);
}


/* Pystymallinen arvokuva */

.values-image {
    width: 100%;
    max-width: 460px;
    justify-self: end;
    aspect-ratio: 3 / 4.4;

    background:
        linear-gradient(
            rgba(53, 83, 71, 0.08),
            rgba(53, 83, 71, 0.18)
        ),
        url("Tehtavarasteja.jpg") center / cover no-repeat;

    border-radius: 2em;
    box-shadow: 0 30px 70px rgba(20, 40, 32, 0.25);
}


/* =========================================
   YHTEYSTIEDOT
   ========================================= */

.contact-section {
    padding-block: 140px;
    background: var(--cream);
}

.contact-inner > h2 {
    margin-bottom: 65px;
    text-align: left;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius);
    text-align: left;
    box-shadow: 0 15px 40px rgba(53, 83, 71, 0.07);
}

.contact-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card li {
    margin-bottom: 4px;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding-block: 32px;
    border-top: 2px solid var(--accent);
    text-align: left;
}

.site-footer p {
    margin: 0;
    font-family: "Fraunces", serif;
}


/* =========================================
   TABLETTI
   ========================================= */

@media (max-width: 900px) {

    .story-layout,
    .story-layout.reverse {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .story-layout.reverse .story-text,
    .story-layout.reverse .story-image {
        grid-column: auto;
        grid-row: auto;
    }

    .story-text {
        max-width: 720px;
    }

    .story-image {
        max-width: 600px;
        justify-self: start;
    }

    .project-card {
        
    }

    .values-layout {
        grid-template-columns: 1fr;
    }

    .values-copy {
        max-width: 720px;
    }

    .values-image {
        justify-self: start;
        max-width: 500px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
}


/* =========================================
   PUHELIN
   ========================================= */

@media (max-width: 650px) {

    body {
        font-size: 17px;
    }

    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2.3rem, 11vw, 3.3rem);
    }

    .hero {
        min-height: 680px;
        border-radius: 0 0 3em 3em;
    }

    .hero-content {
        padding-block: 80px;
    }

    .hero-shape-one {
        width: 100px;
        height: 100px;
        right: -25px;
        top: 12%;
    }

    .hero-shape-two {
        width: 60px;
        height: 60px;
        left: -15px;
        bottom: 12%;
    }

    .intro {
        font-size: 1.25rem;
    }

    .story-section {
        padding-block: 85px;
    }

    .story-text p,
    .project-card p,
    .values-copy p {
        font-size: 1.08rem;
    }

    .story-image {
        min-height: 330px;
        aspect-ratio: 1 / 1;
    }

    .project-section {
        min-height: auto;
        padding: 2em 0;
        margin: 2em 0;
    }

    .project-image {
        top: 0;
        bottom: 0;
        border-radius: 3em;
    }

    .project-card {
        width: 80%;
        margin: 0 auto;
        padding: 3em 2em;
        border-radius: 2em;
        right: auto;
        left: auto;
    }

    .values-section {
        padding-block: 85px;
        border-radius: 3em;
    }

    .values-layout {
        gap: 55px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 45px;
    }

    .value {
        min-height: 115px;
        border-radius: 70px;
    }

    .values-image {
        max-width: 100%;
        aspect-ratio: 3 / 4;
    }

    .contact-section {
        padding-block: 85px;
    }

    .contact-inner > h2 {
        margin-bottom: 40px;
    }

    .contact-card {
        padding: 32px 24px;
        border-radius: 28px;
    }
}