@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500 700;
}

@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 700;
}

:root {
    --bg: #070709;
    --surface: #0d0d0f;
    --surface2: #121214;
    --border: rgba(255, 255, 255, .1);
    --border-hover: rgba(255, 255, 255, .2);
    --text: #f4f4f2;
    --text-muted: rgba(255, 255, 255, .34);
    --text-dim: rgba(255, 255, 255, .52);
    --accent: #fff;
    --accent2: #fff;
    --orange: #fff;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Geist", sans-serif;
    letter-spacing: -.025em;
}

body::before,
.ambient {
    display: none;
}

.nav {
    position: relative;
    top: auto;
    width: calc(100% - 32px);
    max-width: 1240px;
    height: 68px;
    margin: 24px auto 0;
    padding: 0 14px 0 18px;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    background: rgba(9, 9, 11, .88);
    backdrop-filter: blur(18px);
}

.nav-left {
    display: contents;
}

.logo {
    grid-column: 1;
    width: max-content;
    padding: 0;
    color: #fff;
}

.logo-mark {
    width: 126px;
    height: 38px;
    border-radius: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    grid-column: 2;
    padding: 4px;
    display: flex;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: #111114;
}

.nav-links a {
    min-height: 36px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, .48);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.025em;
}

.nav-links a:hover {
    background: transparent;
    color: rgba(255, 255, 255, .78);
}

.nav-links a.active {
    background: #f4f4f2;
    color: #09090a;
}

.nav-right {
    grid-column: 3;
    justify-self: end;
}

.user-pill,
.btn-back {
    min-height: 44px;
    padding: 5px 13px 5px 5px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: #121214;
    color: rgba(255, 255, 255, .82);
    box-shadow: none;
}

.btn-back {
    padding: 0 17px;
    font-family: "Geist", sans-serif;
    font-size: 12px;
}

.user-pill:hover,
.btn-back:hover {
    border-color: rgba(255, 255, 255, .2);
    background: #151517;
    color: #fff;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: #f4f4f2;
    color: #09090a;
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.user-name {
    color: rgba(255, 255, 255, .82);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.user-dropdown {
    width: 214px;
    top: calc(100% + 12px);
    right: 0;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .2);
    backdrop-filter: none;
    transform: translateY(7px);
}

.user-dropdown.active {
    transform: translateY(0);
}

.dropdown-header {
    display: none;
}

.dropdown-item,
.dropdown-item.danger {
    min-height: 44px;
    padding: 6px 8px;
    gap: 10px;
    border-radius: 12px;
    color: rgba(9, 9, 10, .68);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-item svg,
.dropdown-item.danger svg {
    width: 30px;
    height: 30px;
    padding: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(9, 9, 10, .06);
    color: rgba(9, 9, 10, .64);
    opacity: 1;
}

.dropdown-item:hover {
    background: rgba(9, 9, 10, .055);
    color: #09090a;
}

.dropdown-divider {
    background: rgba(9, 9, 10, .1);
}

.dropdown-item.danger:hover {
    background: rgba(210, 46, 46, .07);
    color: #c83232;
}

.page-wrap {
    width: calc(100% - 32px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 82px 0 96px;
}

.page-header {
    margin-bottom: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-areas:
        "eyebrow subtitle"
        "title subtitle"
        "title filters";
    column-gap: 72px;
    align-items: end;
}

.page-eyebrow {
    grid-area: eyebrow;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .38);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.page-title {
    grid-area: title;
    margin: 0;
    color: #f4f4f2;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: clamp(58px, 7vw, 92px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.065em;
}

.page-subtitle {
    grid-area: subtitle;
    max-width: 460px;
    margin: 0 0 28px;
    align-self: end;
    color: rgba(255, 255, 255, .5);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
}

.filter-toggle {
    grid-area: filters;
    width: max-content;
    padding: 4px;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 11px;
    background: #0d0d0f;
}

.filter-btn {
    min-width: 104px;
    min-height: 38px;
    padding: 0 17px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .42);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -.015em;
    text-transform: none;
}

.filter-btn:hover {
    color: rgba(255, 255, 255, .78);
}

.filter-btn.active-releases,
.filter-btn.active-tweaks {
    background: #f4f4f2;
    color: #09090a;
}

.slide-outer {
    overflow: hidden;
}

.slide-panel {
    padding: 0;
}

.timeline {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
}

.timeline::before,
.timeline-entry::before {
    display: none;
}

.timeline-entry {
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.entry-date {
    margin: 19px 0 0;
    color: rgba(255, 255, 255, .36);
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .02em;
    text-transform: none;
}

.update-card,
.tweak-card {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 14px;
    background: #0d0d0f;
    box-shadow: none;
}

.card-banner,
.tweak-banner {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: none;
    aspect-ratio: auto;
    background: #121214;
}

.card-banner img,
.tweak-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-banner-overlay,
.tweak-banner-overlay {
    background: linear-gradient(90deg, transparent 65%, rgba(13, 13, 15, .26) 100%);
}

.card-type-badge {
    top: 12px;
    right: auto;
    left: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(10, 10, 11, .76);
    color: rgba(255, 255, 255, .78);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -.01em;
    text-transform: none;
}

.card-body,
.tweak-body {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-version,
.tweak-title {
    margin: 0 0 16px;
    color: #f4f4f2;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.card-changes {
    gap: 8px;
}

.card-changes li,
.tweak-text {
    padding-left: 16px;
    color: rgba(255, 255, 255, .5);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.card-changes li::before,
.timeline.orange .card-changes li::before {
    content: "";
    top: .72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
}

.tweak-text {
    padding-left: 0;
}

.section-label {
    max-width: 1040px;
    margin: 0 auto 24px;
    padding-left: 148px;
    color: rgba(255, 255, 255, .7);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.015em;
}

.section-label-badge {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .38);
    font-family: "Geist", sans-serif;
    font-size: 9px;
}

.spinner {
    border-color: rgba(255, 255, 255, .08);
    border-top-color: #fff !important;
}

@media (max-width: 900px) {
    .nav {
        width: calc(100% - 24px);
        height: auto;
        min-height: 68px;
        padding: 12px;
        grid-template-columns: 1fr auto;
    }

    .logo-mark {
        width: 112px;
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
    }

    .nav-links a {
        flex: 1 0 auto;
        justify-content: center;
    }

    .nav-right {
        grid-column: 2;
        grid-row: 1;
    }

    .page-wrap {
        width: calc(100% - 32px);
        padding: 58px 0 78px;
    }

    .page-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "eyebrow"
            "title"
            "subtitle"
            "filters";
        gap: 0;
    }

    .page-title {
        margin-bottom: 24px;
    }

    .page-subtitle {
        margin-bottom: 24px;
    }

    .timeline-entry {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .entry-date {
        margin: 0;
    }

    .section-label {
        padding-left: 0;
    }
}

@media (max-width: 680px) {
    .user-name {
        display: none;
    }

    .user-pill {
        padding-right: 5px;
    }

    .update-card,
    .tweak-card {
        grid-template-columns: 1fr;
    }

    .card-banner,
    .tweak-banner {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .card-body,
    .tweak-body {
        padding: 22px 20px 24px;
    }

    .card-version,
    .tweak-title {
        font-size: 22px;
    }

    .filter-toggle {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .nav-links a:nth-child(4) {
        display: none;
    }

    .page-title {
        font-size: 54px;
    }
}
