@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
    --dark-blue: #2e3234;
    --blue: #7d929e;
    --green: #2e3234;
    --white: #ffffff;
    --light-gray: #e0e0e0;
    --muted: #6f777b;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--dark-blue);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 12pt;
    background: var(--white);
}

a {
    color: #337ab7;
}

a:hover {
    color: #23527c;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.content {
    width: min(960px, calc(100% - 40px));
    flex: 1;
    margin: 0 auto;
    padding: 56px 0 72px;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 6vw, 70px);
    margin-bottom: 54px;
}

#icon {
    width: clamp(150px, 22vw, 210px);
    height: auto;
    image-rendering: pixelated;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

h1 {
    margin: 0;
    color: var(--green);
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.1;
}

.intro p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    min-width: 0;
    padding: 24px;
    border: 2px solid var(--light-gray);
    background: var(--white);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.platform-icon {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    font-size: 28px;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.card h2 {
    margin: 0;
    color: #7d929e;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.card-heading div > span {
    color: #7d929e;
    font-size: 80%;
}

.package-name {
    min-height: 22px;
    margin: 24px 0 16px;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-button,
.archives-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    text-align: center;
    text-decoration: none;
}

.download-button {
    color: var(--white);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: #2e3234;
}

.download-button:hover,
.download-button:active {
    color: var(--white);
    background: #655561;
}

.archives-button {
    margin-top: 9px;
    color: var(--dark-blue);
    font-size: 14px;
    border: 2px solid var(--light-gray);
    background: var(--white);
}

.archives-button:hover,
.archives-button:active {
    color: var(--white);
    border-color: #7d929e;
    background: #7d929e;
}

.build-date {
    min-height: 16px;
    margin-top: 14px;
    overflow: hidden;
    color: #333;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-dropdown {
    position: relative;
}

.download-dropdown summary {
    list-style: none;
}

.download-dropdown summary::-webkit-details-marker {
    display: none;
}

.download-dropdown summary span {
    margin-left: 7px;
}

.dropdown-menu {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    border: 1px solid var(--light-gray);
    box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
}

.download-option {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--dark-blue);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--light-gray);
    background: var(--white);
}

.download-option:last-child { border-bottom: 0; }
.download-option span { color: var(--blue); }
.download-option:hover { color: var(--white); background: var(--blue); }
.download-option:hover span { color: var(--white); }

.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--muted);
    font-size: 14px;
    background: #f4f6f7;
}

.notice > span {
    width: 22px;
    height: 22px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--white);
    font-family: Georgia, serif;
    font-weight: 700;
    background: var(--blue);
}

footer {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--blue);
    font-size: .9em;
    background: #2E3234;
}

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

footer a:hover {
    color: #ffff7d;
}

.film-decorator {
    background-color:#ffffff;
    background-image:url("https://www.aseprite.org/assets/images/film.png");
    background-repeat:repeat-x;
    width:100%;
    height:32px;
}

@media (max-width: 800px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
    }

    .package-name {
        margin-top: 18px;
    }
}

@media (max-width: 560px) {
    .content {
        width: calc(100% - 32px);
        padding: 38px 0 48px;
    }

    .intro {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 38px;
        text-align: center;
    }

    .notice {
        align-items: flex-start;
    }
}
