* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background: radial-gradient(
        circle at top,
        #16251b 0%,
        #0b100d 45%,
        #050705 100%
    );

    color: #e5eee7;
    font-family: "Fredoka", sans-serif;
}


/* ================================
   FOREST
   ================================ */

.forest {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.forest::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 100px;

    background: linear-gradient(
        to top,
        rgba(5, 13, 7, 0.98),
        rgba(8, 20, 11, 0.7),
        transparent
    );
}

/* Grass */

.forest::before {
    content: "";

    position: absolute;
    left: -5%;
    bottom: 20px;

    width: 110%;
    height: 90px;

    background:
        linear-gradient(
            70deg,
            transparent 44%,
            #214d2c 45%,
            #214d2c 49%,
            transparent 50%
        ) 0 15px / 32px 70px repeat-x,

        linear-gradient(
            105deg,
            transparent 45%,
            #193f24 46%,
            #193f24 50%,
            transparent 51%
        ) 15px 5px / 45px 75px repeat-x,

        linear-gradient(
            80deg,
            transparent 44%,
            #285d35 45%,
            #285d35 48%,
            transparent 49%
        ) 5px 25px / 55px 65px repeat-x;

    opacity: 0.8;

    animation: grassMove 7s ease-in-out infinite alternate;
}


/* Pine tree layers */

.tree-layer {
    position: absolute;
    left: -5%;
    bottom: 45px;

    width: 110%;

    background-repeat: repeat-x;
    transform-origin: bottom center;
}

.tree-layer-back {
    height: 260px;
    opacity: 0.22;

    background:
        linear-gradient(
            135deg,
            transparent 45%,
            #315e3b 46%,
            #315e3b 54%,
            transparent 55%
        ) 0 0 / 105px 210px repeat-x;

    animation: forestMoveBack 20s ease-in-out infinite alternate;
}

.tree-layer-middle {
    height: 210px;
    opacity: 0.32;

    background:
        linear-gradient(
            135deg,
            transparent 44%,
            #214b2c 45%,
            #214b2c 55%,
            transparent 56%
        ) 30px 0 / 125px 190px repeat-x;

    animation: forestMoveMiddle 14s ease-in-out infinite alternate;
}

.tree-layer-front {
    height: 165px;
    opacity: 0.48;

    background:
        linear-gradient(
            135deg,
            transparent 43%,
            #12351d 44%,
            #12351d 56%,
            transparent 57%
        ) 5px 0 / 145px 160px repeat-x;

    animation: forestMoveFront 9s ease-in-out infinite alternate;
}


/* Forest movement */

@keyframes forestMoveBack {
    from {
        transform: translateX(-12px);
    }

    to {
        transform: translateX(12px);
    }
}

@keyframes forestMoveMiddle {
    from {
        transform: translateX(12px);
    }

    to {
        transform: translateX(-14px);
    }
}

@keyframes forestMoveFront {
    from {
        transform: translateX(-8px);
    }

    to {
        transform: translateX(8px);
    }
}

@keyframes grassMove {
    from {
        transform: translateX(-10px);
    }

    to {
        transform: translateX(10px);
    }
}


/* ================================
   SITE
   ================================ */

.site {
    width: min(92%, 760px);
    margin: 0 auto;
    padding: 30px 0 70px;
}


/* ================================
   NAVIGATION
   ================================ */

.nav {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-bottom: 55px;
}

.nav a {
    color: #a8cbb0;
    text-decoration: none;

    padding: 8px 18px;
    border-radius: 999px;

    font-size: 0.95rem;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav a:hover {
    background: rgba(74, 132, 88, 0.18);
    color: #d8efdc;
    transform: translateY(-2px);
}

.nav a.active {
    background: #234a2d;
    color: #e6f3e8;
}


/* ================================
   PROFILE
   ================================ */

.profile {
    text-align: center;
    margin-bottom: 35px;
}

.profile-image {
    width: min(280px, 75vw);
    aspect-ratio: 1;

    margin: 0 auto 22px;

    overflow: hidden;

    border-radius: 24px;
    border: 1px solid rgba(92, 145, 101, 0.3);

    background: #0a110c;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);
}

.profile-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
}

.profile h1 {
    color: #dcefe0;

    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;

    letter-spacing: -1px;
}

.bio {
    margin-top: 5px;

    color: #8fae96;
    font-size: 1rem;
}


/* ================================
   HOME LINKS
   ================================ */

.links {
    width: min(100%, 560px);

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.social-link,
.commission-button {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    width: 100%;
    min-height: 42px;

    padding: 9px 16px;

    border-radius: 12px;

    text-align: center;
    text-decoration: none;

    font-size: 0.92rem;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.social-link svg,
.social-link img,
.commission-button svg {
    width: 17px;
    height: 17px;

    flex-shrink: 0;

    object-fit: contain;
}

.social-link svg,
.commission-button svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.social-link {
    color: #afc8b3;

    background: rgba(10, 20, 12, 0.76);

    border: 1px solid rgba(83, 137, 94, 0.2);
}

.social-link:hover {
    color: #e0f0e2;

    background: rgba(38, 79, 48, 0.72);

    border-color: rgba(99, 150, 109, 0.45);

    transform: translateY(-2px);
}

.commission-button {
    margin-top: 7px;

    color: #e8f4ea;

    background: #285b36;

    border: 1px solid #477b53;

    font-weight: 600;
}

.commission-button:hover {
    background: #347345;
    transform: translateY(-2px);
}


/* ================================
   COMMISSIONS
   ================================ */

.page-header {
    text-align: center;
    margin-bottom: 45px;
}

.page-header h1 {
    color: #dcefe0;

    font-size: clamp(2.3rem, 7vw, 3.6rem);
    font-weight: 700;

    letter-spacing: -1px;
}

.page-header p {
    margin-top: 8px;

    color: #8fae96;
    font-size: 1rem;
}

.commission-section {
    margin-bottom: 42px;
    padding: 22px;

    background: rgba(10, 18, 12, 0.78);

    border: 1px solid rgba(83, 137, 94, 0.22);
    border-radius: 20px;

    backdrop-filter: blur(5px);
}

.section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.section-title h2 {
    color: #cce4d0;

    font-size: 1.65rem;
    font-weight: 600;
}

.price {
    flex-shrink: 0;

    color: #d9f0dc;

    background: #234a2d;

    padding: 5px 13px;

    border-radius: 999px;

    font-size: 0.95rem;
}


/* ================================
   GALLERY
   ================================ */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 12px;
}

.gallery img {
    display: block;

    width: 100%;

    aspect-ratio: 1;

    object-fit: cover;

    border-radius: 14px;

    border: 1px solid rgba(92, 145, 101, 0.25);

    background: #0a110c;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

    opacity: 0;
    transform: translateY(8px);
}

.gallery img.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery img:hover {
    transform: translateY(-4px) scale(1.015);

    border-color: rgba(113, 174, 123, 0.65);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.35);
}

.gallery img.image-error {
    opacity: 0.5;
    object-fit: contain;
    padding: 20px;
}


/* ================================
   INFO
   ================================ */

.info-section {
    margin-bottom: 22px;
    padding: 22px;

    background: rgba(10, 18, 12, 0.72);

    border: 1px solid rgba(83, 137, 94, 0.2);
    border-radius: 18px;
}

.info-section h2 {
    margin-bottom: 14px;

    color: #cce4d0;
    font-size: 1.4rem;
}

.info-section ul {
    list-style: none;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.info-section li {
    color: #a9bcae;

    padding-left: 18px;

    line-height: 1.5;
}

.info-section li::before {
    content: "•";

    color: #63966d;

    margin-right: 9px;
}


/* ================================
   FOOTER
   ================================ */

footer {
    text-align: center;
    margin-top: 45px;
}

footer a {
    color: #8fb497;
    text-decoration: none;
}

footer a:hover {
    color: #d5ebd8;
}

footer p {
    color: #5f7765;
    font-size: 0.85rem;
}


/* ================================
   TABLET
   ================================ */

@media (max-width: 650px) {

    .site {
        width: min(94%, 600px);
        padding-top: 22px;
    }

    .nav {
        margin-bottom: 40px;
    }

    .commission-section {
        padding: 17px;
        border-radius: 17px;
    }

    .gallery {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(125px, 1fr)
            );
    }

    .tree-layer-back {
        height: 200px;
    }

    .tree-layer-middle {
        height: 165px;
    }

    .tree-layer-front {
        height: 135px;
    }
}


/* ================================
   PHONE
   ================================ */

@media (max-width: 430px) {

    .site {
        width: calc(100% - 24px);
        padding-bottom: 50px;
    }

    .page-header h1 {
        font-size: 2.35rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .commission-section {
        padding: 14px;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .gallery img {
        border-radius: 11px;
    }

    .info-section {
        padding: 17px;
    }

    .tree-layer-back {
        height: 160px;
    }

    .tree-layer-middle {
        height: 135px;
    }

    .tree-layer-front {
        height: 110px;
    }

    .forest::before {
        bottom: 10px;
        height: 70px;
    }
}


/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .forest::before,
    .tree-layer,
    .gallery img,
    .nav a,
    .social-link,
    .commission-button {
        animation: none;
        transition: none;
    }
}