:root {
    color-scheme: light;
    --page: #fbfdfc;
    --text: #243235;
    --muted: #627174;
    --line: rgba(58, 86, 90, 0.14);
    --blue: #e2f5fb;
    --teal: #dff5ef;
    --rose: #f9e8ed;
    --milk: #fff8ef;
    --focus: #1b7d77;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(135deg, rgba(226, 245, 251, 0.9), rgba(255, 248, 239, 0.8) 48%, rgba(249, 232, 237, 0.75)),
        var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

.home-page {
    flex: 1;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    color: #176b68;
}

a:focus-visible {
    border-radius: 0.35rem;
    outline: 3px solid rgba(27, 125, 119, 0.28);
    outline-offset: 0.22rem;
}

.page-shell {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.showcase {
    min-height: 100svh;
    padding-block: 1.5rem clamp(4rem, 8vw, 7rem);
}

.site-header,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    margin: 0;
    color: #1f3033;
    font-size: 1.25rem;
    font-weight: 700;
}

.site-header a {
    color: var(--muted);
    font-size: 0.98rem;
}

.showcase__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 1.5rem clamp(2rem, 7vw, 5rem);
    align-items: end;
    padding-block: clamp(4rem, 10vw, 8rem) clamp(2rem, 5vw, 4rem);
}

.showcase__eyebrow,
.about__eyebrow,
.project__kind {
    margin: 0;
    color: #47716f;
    font-size: 0.86rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase__intro h1 {
    grid-column: 1;
    margin: 0;
    color: #203033;
    font-size: 4.5rem;
    font-weight: 660;
    line-height: 1.04;
    overflow-wrap: break-word;
}

.showcase__intro p:last-child {
    grid-column: 2;
    margin: 0 0 0.45rem;
    color: #526669;
    font-size: 1.16rem;
    line-height: 1.48;
}

.project-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.project {
    position: relative;
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid rgba(58, 86, 90, 0.12);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 24px 70px rgba(39, 72, 75, 0.07);
}

.project::before {
    position: absolute;
    inset: auto -18% -35% 26%;
    height: 72%;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    filter: blur(20px);
}

.project--watch,
.project--near {
    grid-column: span 3;
}

.project--listen,
.project--tools {
    grid-column: span 3;
}

.project--watch {
    background: linear-gradient(145deg, rgba(226, 245, 251, 0.78), rgba(255, 255, 255, 0.62));
}

.project--listen {
    background: linear-gradient(145deg, rgba(249, 232, 237, 0.72), rgba(255, 248, 239, 0.68));
}

.project--near {
    background: linear-gradient(145deg, rgba(223, 245, 239, 0.78), rgba(255, 255, 255, 0.6));
}

.project--tools {
    background: linear-gradient(145deg, rgba(255, 248, 239, 0.82), rgba(226, 245, 251, 0.58));
}

.project__mark,
.project__body,
.project__links {
    position: relative;
}

.project__mark {
    color: rgba(36, 50, 53, 0.2);
    font-size: 0.88rem;
}

.project h2 {
    max-width: 620px;
    margin: 0.45rem 0 0;
    color: #203033;
    font-size: 2rem;
    font-weight: 640;
    line-height: 1.14;
    overflow-wrap: break-word;
}

.project__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-top: 1.4rem;
}

.project__links a {
    color: #2b5f5d;
    font-size: 1rem;
}

.service-link {
    display: inline-flex;
    min-height: 2.35rem;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(43, 95, 93, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    text-decoration: none;
}

.service-link:hover {
    border-color: rgba(43, 95, 93, 0.28);
    background: rgba(255, 255, 255, 0.68);
}

.service-link__icon {
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
}

.service-link__icon rect,
.service-link__icon circle,
.service-link__icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.service-link__icon text {
    fill: currentColor;
    font-size: 0.68rem;
    font-weight: 750;
}

.service-link--instagram {
    color: #8d3f67;
}

.service-link--youtube {
    color: #b6423d;
}

.service-link--yandex {
    color: #c54e46;
}

.service-link--spotify {
    color: #277b57;
}

.service-link--telegram {
    color: #2a7fa5;
}

.service-link--spotify .service-link__icon circle,
.service-link--telegram .service-link__icon circle {
    fill: currentColor;
    stroke: none;
}

.service-link--youtube .service-link__icon rect {
    fill: currentColor;
    stroke: none;
}

.service-link--youtube .service-link__icon path {
    fill: #ffffff;
    stroke: none;
}

.service-link--spotify .service-link__icon path,
.service-link--telegram .service-link__icon path {
    stroke: #ffffff;
}

.service-link--telegram .service-link__icon path {
    fill: #ffffff;
    stroke-width: 1.2;
}

.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    gap: clamp(2rem, 8vw, 6rem);
    align-items: center;
    padding-block: clamp(5rem, 10vw, 8rem);
}

.about h2 {
    margin: 0.35rem 0 0;
    color: #203033;
    font-size: 3.2rem;
    font-weight: 640;
    line-height: 1.08;
}

.about p:last-child {
    max-width: 680px;
    margin: 1.35rem 0 0;
    color: var(--muted);
    font-size: 1.16rem;
}

.about__photo {
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(58, 86, 90, 0.1);
    border-radius: 1.5rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(226, 245, 251, 0.58)),
        linear-gradient(25deg, rgba(249, 232, 237, 0.72), rgba(106, 204, 196, 0.2));
    box-shadow: 0 24px 70px rgba(39, 72, 75, 0.08);
}

.about__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: 62% center;
}

.site-footer {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.45);
    padding-bottom: 1.25rem;
}

.site-footer__inner {
    flex-wrap: wrap;
    padding-block: 1.35rem 0.55rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.site-footer__note {
    margin: 0;
    color: rgba(98, 113, 116, 0.78);
    font-size: 0.78rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 900px) {
    .showcase__intro,
    .about {
        grid-template-columns: 1fr;
    }

    .showcase__intro h1,
    .showcase__intro p:last-child {
        grid-column: auto;
    }

    .showcase__intro h1 {
        font-size: 3.15rem;
    }

    .project {
        grid-column: span 6;
        min-height: 215px;
    }

    .about__photo {
        order: -1;
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 1.25rem, 1120px);
    }

    .showcase {
        padding-block-start: 1.1rem;
    }

    .showcase__intro {
        padding-block: 3.4rem 1.5rem;
    }

    .showcase__intro h1 {
        font-size: 2rem;
        max-width: 19rem;
    }

    .showcase__intro p:last-child,
    .about p:last-child {
        max-width: 20rem;
        font-size: 1.05rem;
    }

    .project {
        min-height: 190px;
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .project h2 {
        font-size: 1.28rem;
    }

    .service-link {
        min-height: 2.25rem;
        padding-inline: 0.58rem;
        font-size: 0.95rem;
    }

    .about {
        padding-block: 3.6rem 5rem;
    }

    .about h2 {
        font-size: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
