:root {
    --background: #f4f6f8;
    --surface: #ffffff;
    --surface-muted: #f8fafb;

    --text: #1d2733;
    --text-muted: #66717e;

    --border: #dfe4e8;

    --primary: #2d536c;
    --primary-hover: #203f53;

    --success: #27855c;
    --warning: #b7791f;
    --danger: #b84444;

    --shadow:
        0 1px 2px rgba(20, 32, 45, 0.04),
        0 8px 24px rgba(20, 32, 45, 0.06);

    --radius: 10px;
    --content-width: 1180px;
    --page-padding: 40px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--background);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.5;
}

/*
 * Header
 */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    width: 100%;
    max-width: calc(var(--content-width) + (var(--page-padding) * 2));

    height: 68px;
    margin: 0 auto;
    padding: 0 var(--page-padding);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--text);
    text-decoration: none;
}

.brand__logo {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: var(--primary);
    color: #ffffff;

    border-radius: 8px;

    font-size: 18px;
    font-weight: 700;
}

.brand__text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand__name {
    font-size: 18px;
    font-weight: 700;
}

.brand__description {
    margin-top: 3px;

    color: var(--text-muted);
    font-size: 12px;
}

/*
 * Main
 */

.main {
    width: 100%;
    max-width: calc(var(--content-width) + (var(--page-padding) * 2));

    margin: 0 auto;

    padding:
        48px
        var(--page-padding)
        64px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    margin-bottom: 32px;
}

.page-heading__title {
    margin: 0;

    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-heading__description {
    margin: 8px 0 0;

    color: var(--text-muted);
}

/*
 * Buttons
 */

.button {
    min-height: 40px;
    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid transparent;
    border-radius: 7px;

    font: inherit;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    background: var(--primary);
    color: #ffffff;
}

.button--primary:hover {
    background: var(--primary-hover);
}

.button--secondary {
    background: var(--surface);
    color: var(--text);

    border-color: var(--border);
}

.button--secondary:hover {
    background: var(--surface-muted);
}

/*
 * Server grid
 */

.server-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));

    gap: 20px;
}

.server-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.server-card__header {
    padding: 22px 24px 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.server-card__name {
    margin: 0;

    font-size: 18px;
    font-weight: 700;
}

.server-card__hostname {
    margin-top: 4px;

    color: var(--text-muted);
    font-size: 13px;
}

.server-card__body {
    padding: 20px 24px;
}

.server-card__stats {
    margin: 0;

    display: grid;
    grid-template-columns: 1fr auto;

    gap: 10px 20px;
}

.server-card__stats dt {
    color: var(--text-muted);
}

.server-card__stats dd {
    margin: 0;

    font-weight: 600;
    text-align: right;
}

.server-card__footer {
    padding: 15px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    background: var(--surface-muted);
    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-size: 13px;
}

/*
 * Status
 */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--text-muted);

    font-size: 13px;
    font-weight: 600;
}

.status::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--text-muted);
}

.status--ok::before {
    background: var(--success);
}

.status--warning::before {
    background: var(--warning);
}

.status--error::before {
    background: var(--danger);
}

/*
 * Empty state
 */

.empty-state {
    padding: 64px 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    text-align: center;
}

.empty-state__icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 20px;

    display: grid;
    place-items: center;

    background: var(--surface-muted);
    color: var(--primary);

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 25px;
}

.empty-state__title {
    margin: 0;

    font-size: 19px;
    font-weight: 700;
}

.empty-state__description {
    max-width: 460px;

    margin: 8px auto 24px;

    color: var(--text-muted);
}

/*
 * Footer
 */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    width: 100%;
    max-width: calc(var(--content-width) + (var(--page-padding) * 2));

    margin: 0 auto;
    padding: 20px var(--page-padding);

    color: var(--text-muted);
    font-size: 13px;
}

/*
 * Responsive
 */

@media (max-width: 700px) {
    :root {
        --page-padding: 20px;
    }

    .main {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .brand__description {
        display: none;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .page-heading .button {
        align-self: flex-start;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .empty-state {
        padding: 48px 24px;
    }
}