:root {
    --background: #0b1219;
    --surface: #111c26;
    --surface-hover: #152330;
    --border: #223342;

    --text: #e8eef3;
    --muted: #8ea0ae;
    --primary: #248ee5;

    --container: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* Header */

header {
    border-bottom: 1px solid var(--border);
    background: #0d161f;
}

.header-inner {
    min-height: 68px;

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 11px;
}

.logo strong {
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.11em;
}

.logo span {
    color: var(--muted);
    font-size: 13px;
}

nav a {
    color: var(--muted);
    font-size: 13px;
}

nav a:hover {
    color: #ffffff;
}

/* Main */

main {
    padding: 65px 0 80px;
}

.intro {
    max-width: 720px;
    margin-bottom: 60px;
}

.intro h1 {
    margin: 0 0 13px;

    color: #ffffff;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.intro p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-title h2 {
    margin: 0;

    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

/* Repository list */

.repositories {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.repositories > a {
    min-height: 78px;

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

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

.repositories > a:last-child {
    border-bottom: 0;
}

.repositories > a:hover {
    background: var(--surface-hover);
}

.repositories div {
    display: flex;
    flex-direction: column;
}

.repositories strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.repositories div span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.status {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.status.syncing {
    color: #d7ae68;
}

.status.online {
    color: #5ecf96;
}

/* Information */

.information {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;

    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.information div {
    min-height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 18px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.information div:last-child {
    border-right: 0;
}

.information span {
    color: var(--muted);
    font-size: 11px;
}

.information strong {
    margin-top: 5px;

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

/* Footer */

footer {
    border-top: 1px solid var(--border);
    background: #0d161f;
}

.footer-inner {
    min-height: 64px;

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

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

/* Directory */

.directory-main {
    padding-top: 38px;
}

.directory-heading {
    margin-bottom: 14px;

    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.directory-list {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.directory-list > h1 {
    margin: 0;
    padding: 19px 20px;

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

    color: #ffffff;
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 14px;
    font-weight: 500;
}

#list {
    width: 100%;
    border-collapse: collapse;
}

#list thead {
    background: #0e1922;
}

#list th {
    padding: 11px 15px;
    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#list td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(34, 51, 66, 0.7);

    color: var(--muted);
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 11px;
    white-space: nowrap;
}

#list tbody tr:last-child td {
    border-bottom: 0;
}

#list tbody tr:hover {
    background: var(--surface-hover);
}

#list a {
    color: var(--text);
}

#list a:hover {
    color: var(--primary);
}

#list .size,
#list .date {
    text-align: right;
}

#list img {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -3px;
    opacity: 0.7;
}

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

    .information div:nth-child(2) {
        border-right: 0;
    }

    .information div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .directory-list {
        overflow-x: auto;
    }

    #list {
        min-width: 650px;
    }
}
