:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-synthesis: none;
    background: #08090b;
    color: #eeedf0;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    min-height: 100%;
}

body {
    min-height: 100svh;
    margin: 0;
    background: #08090b;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible {
    border-radius: 0.25rem;
    outline: 0.15rem solid #92a7ff;
    outline-offset: 0.25rem;
}

main,
footer {
    width: min(100% - 4rem, 60rem);
    margin-inline: auto;
}

main {
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(6rem, 10vw, 9rem);
}

.introduction {
    text-align: left;
}

h1 {
    margin: 0;
    color: #f5f4f7;
    font-size: clamp(2.1rem, 4vw, 2.75rem);
    font-weight: 680;
    letter-spacing: -0.055em;
    line-height: 1;
}

.introduction p {
    margin: 1rem 0 0;
    color: #92939b;
    font-size: 1rem;
    line-height: 1.55;
}

.catalog {
    margin-top: clamp(3.5rem, 7vw, 5rem);
}

.app-group + .app-group {
    margin-top: clamp(5rem, 9vw, 7rem);
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #24262b;
}

.section-heading h2,
.section-heading p {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #d7d6db;
}

.section-heading p {
    color: #606168;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(3.75rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}

.app-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-icon {
    display: block;
    width: clamp(6.5rem, 10vw, 7.5rem);
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 22.5%;
    object-fit: cover;
    filter: drop-shadow(0 1rem 1.35rem rgba(0, 0, 0, 0.35));
}

.app-copy {
    max-width: 17rem;
}

.app-copy h3 {
    margin: 0;
    color: #ededf0;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.app-copy p {
    margin: 0.65rem 0 0;
    color: #82838b;
    font-size: 0.94rem;
    line-height: 1.62;
}

.app-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
}

.app-link {
    color: #aebeff;
    font-size: 0.82rem;
    font-weight: 620;
    text-decoration: none;
    transition: color 150ms ease;
}

.app-link:hover {
    color: #d6deff;
}

.catalog-error {
    max-width: 38rem;
    margin: 2rem 0 0;
    color: #b98484;
}

footer {
    display: flex;
    justify-content: space-between;
    padding-block: 2rem 3rem;
    border-top: 1px solid #1f2024;
    color: #5e6067;
    font-size: 0.8rem;
}

footer p {
    margin: 0;
}

footer a {
    color: #858790;
    text-decoration: none;
}

footer a:hover {
    color: #c6c5cb;
}

@media (max-width: 54rem) {
    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 36rem) {
    main,
    footer {
        width: min(100% - 2.25rem, 60rem);
    }

    main {
        padding-top: 2.5rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 3.75rem;
    }

    footer {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-link {
        transition: none;
    }
}
