:root {
    --bg: #0c0d0e;
    --panel: #121416;
    --panel-2: #191b1d;
    --border: #292a28;
    --gold: #c49a61;
    --orange: #b9633d;
    --orange-light: #cd7950;
    --orange-dark: #95482f;
    --green: #72a985;
    --red: #c76b61;
    --muted: #99958c;
    --text: #e4e0d8;
    --heading: Georgia, "Times New Roman", serif;
    --body: "Segoe UI", Tahoma, Arial, sans-serif;
}

html {
    scroll-behavior: auto;
}

body {
    background: var(--bg);
    background-image: radial-gradient(ellipse at 50% -24rem, rgba(145, 89, 49, .09), transparent 50rem);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.announcement {
    height: auto;
    min-height: 30px;
    padding: 5px 16px;
    background: #281b17;
    color: #d7bd9e;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
}

.site-header {
    width: 100%;
    max-width: none;
    height: 76px;
    padding: 0 max(24px, calc((100% - 1220px) / 2));
    background: #0c0d0e;
    border-bottom: 1px solid #242321;
}

.brand {
    font-family: var(--body);
    font-size: 18px;
    letter-spacing: .015em;
}

.brand strong {
    color: var(--gold);
}

.brand small {
    color: #928c82;
    font-size: 10px;
    letter-spacing: .11em;
}

.main-nav,
.header-actions {
    gap: clamp(13px, 2vw, 25px);
}

.main-nav a,
.login-link {
    color: #c5c0b7;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active,
.login-link:hover {
    color: #e0b77a;
}

.button {
    min-height: 40px;
    padding: 9px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    transition: background-color .16s ease, border-color .16s ease;
}

.button:hover {
    transform: none;
    filter: none;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d6b17c;
    outline-offset: 3px;
}

.button-primary {
    background: #a64f34;
    box-shadow: none;
}

.button-primary:hover {
    background: #bd6545;
}

.button-secondary {
    color: #d2b182;
    border-color: #62513d;
    background: transparent;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    position: relative;
    isolation: isolate;
    min-height: 530px;
    max-width: 1260px;
    margin: 22px auto 0;
    padding: 58px clamp(24px, 5vw, 72px) 28px;
    text-align: left;
    background: linear-gradient(115deg, #151513 0%, #141412 58%, #171411 100%);
    border: 1px solid #272522;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.hero::before {
    display: none;
}

.hero-scene {
    position: absolute;
    inset: 0 0 0 27%;
    overflow: hidden;
    pointer-events: none;
}

.hero-scene::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #141412 0%, rgba(20, 20, 18, .94) 13%, rgba(20, 20, 18, .48) 57%, rgba(20, 20, 18, .2) 100%),
        linear-gradient(0deg, #141412 0%, rgba(20, 20, 18, .86) 16%, transparent 52%);
    content: "";
}

.hero-scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    opacity: .72;
}

.hero-content {
    z-index: 1;
    width: min(620px, 62%);
    max-width: none;
    margin: 0;
}

.eyebrow {
    margin-bottom: 10px;
    color: #c18958;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
}

.hero h1,
.error-page h1 {
    margin: 10px 0 13px;
    color: #eee8dd;
    font-family: var(--heading);
    font-size: clamp(42px, 5.2vw, 68px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: .99;
    text-transform: none;
}

.hero h1 span {
    color: #d5ab70;
}

.hero-copy {
    max-width: 450px;
    margin: 0 0 23px;
    color: #c0b9ad;
    font-size: 17px;
}

.search-bar {
    height: 54px;
    max-width: 560px;
    margin: 0;
    padding: 4px;
    border: 1px solid #65513b;
    border-radius: 4px;
    background: rgba(12, 13, 14, .94);
    box-shadow: none;
}

.search-bar input {
    padding: 0 13px;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: #938c81;
}

.search-bar .button {
    min-width: 82px;
}

.filter-chips {
    justify-content: flex-start;
    gap: 7px;
    margin: 14px 0 25px;
}

.chip {
    padding: 4px 10px;
    border-color: #44413b;
    border-radius: 3px;
    color: #c5bfb4;
    font-size: 12px;
    font-weight: 500;
}

.chip:hover,
.chip.selected {
    color: #e3c18c;
    border-color: #8a6947;
    background: rgba(196, 154, 97, .08);
}

.home-page .stats-grid {
    z-index: 1;
    width: min(870px, 100%);
    max-width: none;
    margin: 5px 0 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(224, 212, 192, .18);
}

.home-page .stat-card {
    min-height: 74px;
    justify-content: center;
    padding: 10px 15px;
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(224, 212, 192, .13);
    border-radius: 0;
}

.home-page .stat-card:first-child {
    padding-left: 0;
}

.home-page .stat-card:last-child {
    border-right: 0;
}

.home-page .stat-card span,
.home-page .stat-card small {
    color: #aaa398;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
}

.home-page .stat-card strong {
    color: #e0b77a;
    font-family: var(--heading);
    font-size: 25px;
}

.home-page > main > .section-wrap,
.home-page > main > .home-leaderboard-wrap {
    max-width: 1260px;
}

.home-page .section-wrap {
    padding: 42px 24px;
}

.home-page .section-heading {
    align-items: center;
    margin-bottom: 17px;
}

.home-page .section-heading > div::after {
    display: none;
}

.home-page .section-heading h2,
.home-page .callout h2 {
    color: #e2d0b3;
    font-family: var(--heading);
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
    text-transform: none;
}

.home-page .section-heading .eyebrow {
    margin-bottom: 5px;
    text-transform: none;
}

.home-page .text-link {
    color: #d1aa74;
    font-size: 13px;
    font-weight: 500;
}

.home-page .server-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.home-page .server-card {
    border: 1px solid #302e2a;
    border-radius: 5px;
    background: #111314;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    transition: border-color .16s ease, transform .16s ease;
}

.home-page .server-card:hover {
    border-color: #766047;
    box-shadow: none;
    transform: translateY(-2px);
}

.home-page .server-banner {
    height: clamp(140px, 14vw, 190px);
    border: 0;
    border-bottom: 1px solid #302e2a;
    background-color: #171716;
}

.home-page .server-banner::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 13, 14, .34), transparent 60%);
    content: "";
    pointer-events: none;
}

.home-page .server-banner:not([style*="background-image"]) .banner-mark {
    color: #8e795c;
    font-size: 30px;
    text-shadow: none;
}

.home-page .server-banner[style*="background-image"] .banner-mark {
    display: none;
}

.home-page .vip-badge {
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 7px;
    border: 1px solid rgba(231, 193, 132, .35);
    border-radius: 2px;
    background: rgba(35, 29, 22, .88);
    color: #e6c38d;
    font-size: 10px;
    font-weight: 600;
}

.home-page .server-card-body {
    padding: 15px;
}

.home-page .server-title-row {
    min-height: 42px;
}

.home-page .server-title-row > div:last-child {
    min-width: 0;
}

.home-page .server-logo {
    width: 40px;
    height: 40px;
    margin-top: -23px;
    border: 1px solid #756047;
    border-radius: 4px;
    background: #161716;
    box-shadow: none;
}

.home-page .server-logo img {
    border-radius: 3px;
}

.home-page .server-title-row h3 {
    color: #e8e0d4;
    font-family: var(--body);
    font-size: 16px;
    font-weight: 600;
}

.home-page .server-title-row p {
    color: #a39c91;
    font-size: 13px;
}

.home-page .tag-row {
    gap: 6px;
    margin: 11px 0;
}

.home-page .tag-row span {
    padding: 3px 7px;
    border: 1px solid #36342f;
    border-radius: 2px;
    background: transparent;
    color: #c5b9a7;
    font-size: 11px;
    font-weight: 500;
}

.home-page .server-opening {
    margin: 8px 0 10px;
    color: #aaa398;
    font-size: 12px;
}

.home-page .card-stats {
    gap: 0;
    border-top: 1px solid #302e2a;
    border-bottom: 1px solid #302e2a;
}

.home-page .card-stats > div {
    padding: 8px 4px;
    border-right: 1px solid #302e2a;
    border-radius: 0;
    background: transparent;
}

.home-page .card-stats > div:last-child {
    border: 0;
}

.home-page .card-stats small {
    color: #a39c91;
    font-size: 10px;
    letter-spacing: .05em;
}

.home-page .card-stats strong {
    color: #e4ddd1;
    font-size: 14px;
    font-weight: 600;
}

.home-page .vote-progress {
    height: 2px;
    margin: 10px 0;
    border-radius: 0;
    background: #292723;
}

.home-page .vote-progress span {
    border-radius: 0;
    background: #a97849;
    box-shadow: none;
}

.home-page .card-actions {
    gap: 8px;
}

.home-page .card-actions .button {
    min-height: 36px;
    border-radius: 3px;
    font-size: 12px;
}

.home-page .card-actions .button-secondary {
    border-color: #4a453d;
    color: #d1c7b6;
}

.home-page .lower-grid {
    align-items: start;
    gap: 30px;
    border-top: 1px solid #292a28;
}

.home-page .server-ranking-row {
    cursor: pointer;
}

.home-page .server-ranking-row:hover {
    background: rgba(196, 154, 97, .07);
}

.home-page .server-ranking-row:focus-visible {
    outline: 2px solid #d6b17c;
    outline-offset: -2px;
}

.home-page .panel {
    padding: 18px;
    border: 1px solid #302e2a;
    border-radius: 4px;
    background: #111314;
}

.home-page .compact h2 {
    font-size: 21px;
}

.home-page .upcoming-panel > p {
    color: #bcb5a9;
}

.home-page .ad-placeholder {
    border-color: #37332d;
    border-radius: 4px;
    background: #171716;
}

.home-page .blog-grid {
    gap: 16px;
}

.home-page .blog-card {
    border: 1px solid #302e2a;
    border-radius: 4px;
    background: #111314;
}

.home-page .blog-card h3 {
    color: #e2d0b3;
    font-family: var(--body);
    font-size: 17px;
    font-weight: 600;
}

.home-page .callout {
    max-width: 1260px;
    margin: 20px auto 45px;
    padding: 32px clamp(22px, 5vw, 56px);
    border: 1px solid #504231;
    border-left: 3px solid #a97849;
    border-radius: 0;
    background: #171613;
}

.home-page .callout p:not(.eyebrow) {
    color: #bdb5a8;
}

.site-footer {
    border-top: 1px solid #292a28;
    background: #090a0b;
}

.site-footer h3 {
    color: #d3b080;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
}

.site-footer a:not(.brand),
.site-footer p,
.copyright {
    color: #aaa398;
}

.page-main {
    max-width: 1260px;
}

.page-intro {
    padding: 18px 0 27px;
    text-align: left;
}

.page-intro h1 {
    margin: 6px 0 8px;
    color: #e4d6c0;
    font-family: var(--heading);
    font-size: clamp(29px, 4vw, 43px);
    letter-spacing: -.02em;
    text-transform: none;
}

.page-intro h1,
.auth-card h1,
.error-page h1,
.detail-panel .section-heading h2,
.link-panel h2,
.vote-panel h2,
.admin-page .section-heading h2 {
    text-transform: lowercase;
}

.page-intro h1::first-letter,
.auth-card h1::first-letter,
.error-page h1::first-letter,
.detail-panel .section-heading h2::first-letter,
.link-panel h2::first-letter,
.vote-panel h2::first-letter,
.admin-page .section-heading h2::first-letter {
    text-transform: uppercase;
}

.page-intro > p:last-child {
    color: #b5aea3;
    font-size: 16px;
}

.filter-panel,
.auth-card,
.server-owner-form,
.admin-page .panel,
.detail-layout .panel,
.upcoming-card,
.public-package {
    border-color: #302e2a;
    border-radius: 4px;
    background: #121416;
}

.filter-panel input,
.filter-panel select,
.stacked-form input,
.stacked-form select,
.stacked-form textarea,
.reminder-form input,
.support-form input,
.support-form textarea,
.package-order-form input,
.package-order-form select {
    border-color: #3b3934;
    border-radius: 3px;
    background: #0d0f10;
}

.filter-panel input:focus,
.filter-panel select:focus,
.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus,
.reminder-form input:focus {
    outline: 1px solid #9c7953;
    border-color: #9c7953;
}

.listing-grid {
    gap: 16px;
}

.listing-grid .server-card,
.similar-card {
    border-color: #302e2a;
    border-radius: 4px;
    background: #121416;
}

.detail-banner {
    height: 245px;
    border-color: #38342e;
    border-radius: 4px;
}

.detail-banner.has-banner-image {
    height: auto;
    min-height: 0;
    background: #101112;
}

.detail-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(65vh, 520px);
    object-fit: contain;
    object-position: center;
    background: #0b0c0d;
}

.server-detail .detail-heading {
    padding: 22px 0 24px;
    border-bottom: 1px solid #292a28;
}

.server-detail .detail-title h1 {
    font-size: clamp(27px, 3.4vw, 40px);
    line-height: 1.12;
}

.server-detail .detail-layout {
    gap: 22px;
}

.server-detail .detail-layout .panel {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.detail-title h1,
.blog-article > h1 {
    color: #e4d6c0;
    font-family: var(--heading);
    text-transform: none;
}

.detail-facts > div {
    border-color: #302e2a;
    border-radius: 3px;
    background: #191b1d;
}

.auth-page {
    background: radial-gradient(ellipse at 50% 20%, rgba(126, 82, 47, .12), transparent 42rem);
}

.auth-card {
    box-shadow: none;
}

.auth-card h1 {
    color: #e4d6c0;
    font-family: var(--heading);
}

.admin-header {
    border-bottom-color: #302e2a;
    background: #0d0e0f;
}

.menu-toggle {
    border-color: #464139;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .hero {
        min-height: 485px;
        margin: 15px 15px 0;
        padding: 42px 28px 22px;
    }

    .hero-content {
        width: min(600px, 76%);
    }

    .home-page .server-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-header {
        height: 68px;
        padding: 0 15px;
    }

    .main-nav,
    .header-actions {
        gap: 11px;
    }

    .hero {
        min-height: 0;
        margin: 10px 10px 0;
        padding: 35px 19px 16px;
    }

    .hero-scene {
        inset: 0 0 0 5%;
        opacity: .58;
    }

    .hero-scene::after {
        background: linear-gradient(90deg, rgba(20, 20, 18, .95), rgba(20, 20, 18, .58)),
            linear-gradient(0deg, #141412 0%, rgba(20, 20, 18, .86) 18%, transparent 58%);
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .hero-copy {
        max-width: 360px;
        font-size: 15px;
    }

    .filter-chips {
        margin-bottom: 15px;
    }

    .home-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .stat-card {
        min-height: 63px;
        padding: 8px 10px;
        border-bottom: 1px solid rgba(224, 212, 192, .13);
    }

    .home-page .stat-card:nth-child(2) {
        border-right: 0;
    }

    .home-page .stat-card:nth-child(n+3) {
        border-bottom: 0;
    }

    .home-page .section-wrap {
        padding: 31px 15px;
    }

    .home-page .server-banner {
        height: clamp(130px, 38vw, 190px);
    }

    .home-page .callout {
        margin: 10px 15px 30px;
    }

    .page-intro {
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .announcement {
        font-size: 11px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .home-page .server-grid {
        grid-template-columns: 1fr;
    }

    .home-page .server-banner {
        height: 190px;
    }

    .home-page .section-heading {
        align-items: end;
    }

    .server-detail .detail-heading {
        padding: 16px 0 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
