@font-face {
    font-family: Inter;
    src: url(../fonts/Inter.ttf);
}

* {
    font-family: Inter, Arial, sans-serif;
    font-style: normal;
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    box-sizing: border-box;
}

html {
    color: #000;
    background-color: #f6f6f6;
}

@media (prefers-color-scheme: dark) {
    html {
        color: #fff;
        background-color: #000;
    }
}

a {
    text-decoration: none;
}

nav {
    margin: 0 auto;
    padding: 32px;
    font-size: 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: calc(100vh * (16 / 9));
}

@media screen and (max-width: 500px) {
    nav {
        font-size: 5vw;
        flex-direction: column;
        gap: 6vw;
        align-items: start;
    }
}

#logo img {
    height: 50px;
    object-fit: cover;
    filter: invert(0);
}

@media (prefers-color-scheme: dark) {
    #logo img {
        filter: invert(1);
    }
}

@media screen and (max-width: 500px) {
    #logo img {
        height: 10vw;
    }
}

#tabs {
    display: flex;
    align-items: center;
}

#tabs a {
    display: inline-block;
    margin: 0 10px;
    font-weight: 400;
}

#tabs a, a:visited, a:hover, a:active {
    color: inherit;
}

#content {
    margin: 0 auto;
    max-width: calc(100vh * (16 / 9));
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    display: block;
    padding: 0 32px;
}

@media screen and (max-width: 500px) {
    #content {
        font-size: 6vw;
    }
}

.card {
    background: #fff;
    padding: 40px;
    margin: 60px auto;
    border-radius: 16px;
    max-width: 90vh;
}

@media (prefers-color-scheme: dark) {
    .card {
        background: #222;
    }
}

@media screen and (max-width: 500px) {
    .card {
        margin: 10vw auto;
    }
}

.app-icon {
    max-height: 120px;
    margin: 0;
    border-radius: 20%;
    box-shadow: 2px 2px 8px #aaa;
}

@media (prefers-color-scheme: dark) {
    .app-icon {
        box-shadow: 2px 2px 8px #333;
    }
}

@media screen and (max-width: 500px) {
    .app-icon {
        max-width: 20vw;
    }
}

.button {
    color: #007aff;
    background-color: #e6ecf3;
    padding: 16px 24px;
    border: none;
    border-radius: 320px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
}

.app {
    text-align: start;
}

.app-header {
    display: flex;
    justify-content: space-between;
    vertical-align: middle;
    gap: 40px;
    margin-bottom: 40px;
}

@media screen and (max-width: 500px) {
    .app-header {
        flex-direction: column;
    }
}

.screenshots {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.screenshots img {
    margin: 10px;
    --radius-factor: 16;
    --desktop-height: min(600px, 90vh);
    --height: var(--desktop-height);
    --mobile-height: 90vw;
    max-height: var(--height);
    max-width: var(--height);
    border-radius: calc(var(--height)/var(--radius-factor));
    border: 1px solid #eee;
}

@media screen and (max-width: 500px) {
    .screenshots img {
        --height: var(--mobile-height);
    }
}

@media (prefers-color-scheme: dark) {
    .screenshots img {
        border: 1px solid #000;
    }
}