.transfer h1 {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.hero img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
}

.hero .subtitle {
    margin-top: 2px;
    color: #666;
    font-size: 1.6rem;
    line-height: 1.3;
}

.lead {
    font-size: 1.7rem;
    line-height: 1.55;
    max-width: 640px;
}

.scene {
    margin: 28px 0 4px;
}

.scene img {
    display: block;
    width: 80%;
    height: auto;
}

.downloads {
    margin-top: 36px;
}

.os-downloads {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.os-downloads .ver {
    margin-top: 6px;
    color: #999;
    font-size: 1.3rem;
    padding-left: 4px;
}

a.dl {
    display: inline-flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    min-height: 64px;
    min-width: 280px;
    padding: 12px 28px 12px 58px;
    border-radius: 12px;
    background-color: #000;
    color: #fff;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

a.dl:hover {
    background-color: #222;
    color: #fff;
}

a.dl:focus-visible {
    outline: 2px solid rgb(21, 111, 201);
    outline-offset: 3px;
}

a.dl::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

a.dl.macos::before {
    background-image: url(../images/apple_logo.svg);
}

a.dl.windows::before {
    background-image: url(../images/windows_logo.svg);
}

.latest .item.windows ms-store-badge {
    display: inline-block;
    line-height: 0;
}

.latest .item.windows ms-store-badge::part(img) {
    width: auto;
    height: 64px;
}

html.os-mac .latest .item.windows ms-store-badge::part(img) {
    height: 44px;
}

html.os-mac .latest .item.windows,
html.os-windows .latest .item.mac {
    order: 1;
}

html.os-windows .latest .item.windows,
html.os-windows .legacy .item.windows {
    order: -1;
}

html.os-mac .latest .item.windows a.dl,
html.os-windows .latest .item.mac a.dl,
.legacy a.dl {
    min-height: 44px;
    min-width: 0;
    padding: 8px 16px 8px 44px;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    background-color: transparent;
    color: var(--fg-body-color);
    font-size: 1.5rem;
    font-weight: 400;
}

html.os-mac .latest .item.windows a.dl::before,
html.os-windows .latest .item.mac a.dl::before,
.legacy a.dl::before {
    left: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background-size: 16px 16px;
}

html.os-mac .latest .item.windows a.dl:hover,
html.os-windows .latest .item.mac a.dl:hover,
.legacy a.dl:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--fg-body-color);
}

.requires {
    margin-top: 22px;
    max-width: 560px;
    color: #999;
    font-size: 1.3rem;
    line-height: 1.5;
}

.requires strong {
    font-weight: 600;
}

.requires + details.legacy {
    margin-top: 28px;
}

details.legacy {
    margin-top: 56px;
    max-width: 560px;
}

details.legacy summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #888;
    font-size: 1.4rem;
    font-weight: 400;
    list-style: none;
}

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

details.legacy summary::marker {
    content: "";
}

details.legacy summary::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 5px;
    border-color: transparent transparent transparent currentColor;
}

details.legacy[open] summary::before {
    transform: rotate(90deg);
}

details.legacy .desc {
    margin-top: 12px;
    margin-bottom: 14px;
    color: #999;
    font-size: 1.3rem;
    line-height: 1.5;
}

details.legacy .os-downloads {
    gap: 12px;
}

.guides {
    margin-top: 48px;
    max-width: 560px;
    border: 1px solid #ccc;
    padding: 12px 16px 16px;
    border-radius: 12px;
    background-color: #f3f3f3;
}

.guides h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 600;
    color: #070707;
}

.guides ul {
    margin-top: 12px;
    list-style: none;
}

.guides li + li {
    margin-top: 10px;
}

.guides a {
    color: rgb(22, 96, 171);
}

@media only screen and (max-width: 600px) {
    .transfer h1 {
        font-size: 2.6rem;
    }

    .scene img {
      width: 100%;
    }
  
    .hero img {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .latest a.dl,
    html.os-other .latest a.dl {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .hero .subtitle {
        color: #aaa;
    }

    .latest a.dl {
        background-color: #f3f3f3;
        color: #111;
    }

    .latest a.dl:hover {
        background-color: #fff;
        color: #111;
    }

    html.os-mac .latest .item.windows a.dl,
    html.os-windows .latest .item.mac a.dl,
    .legacy a.dl {
        background-color: transparent;
        color: #eee;
        border-color: #555;
    }

    html.os-mac .latest .item.windows a.dl:hover,
    html.os-windows .latest .item.mac a.dl:hover,
    .legacy a.dl:hover {
        background-color: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    details.legacy summary {
        color: #999;
    }

    details.legacy .desc {
        color: #888;
    }

    .guides {
        border-color: #666;
        background-color: #333;
    }

    .guides h2 {
        color: #f3f3f3;
    }

    .guides a {
        color: rgb(52, 144, 235);
    }
}
