:root {
    color-scheme: dark;

    --background: #0d1117;
    --panel: #161b22;
    --panel-hover: #1b222c;
    --border: #30363d;

    --text: #e6edf3;
    --muted: #8b949e;
    --subtle: #6e7681;

    --green: #7ee787;
    --green-dark: #238636;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

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

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

.links-page {
    width:
        min(
            900px,
            calc(100% - 36px)
        );

    margin: 0 auto;

    padding:
        36px 0 26px;
}

.links-heading {
    margin-bottom: 24px;
}

.links-heading h1 {
    margin: 0;

    font-size: 28px;
    letter-spacing: -0.03em;
}

.links-heading p {
    margin:
        6px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.link-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.link-card {
    display: flex;
    flex-direction: column;

    min-height: 230px;

    padding: 20px;

    background:
        rgba(
            22,
            27,
            34,
            0.94
        );

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

    border-top:
        3px solid var(--green-dark);

    border-radius: 5px;

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

    backdrop-filter:
        blur(2px);

    transition:
        transform 150ms ease,
        background 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.link-card:hover {
    background:
        rgba(
            27,
            34,
            44,
            0.97
        );

    border-color:
        var(--green-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 26px
            rgba(0, 0, 0, 0.25),
        0 0 18px
            rgba(126, 231, 135, 0.06);
}

.link-card:focus-visible {
    outline:
        2px solid var(--green);

    outline-offset: 3px;
}

.link-icon {
    min-height: 52px;

    color: var(--green);

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 30px;
}

.link-card-body {
    margin-top: auto;
}

.link-card h2 {
    margin:
        0 0 6px;

    font-size: 17px;
}

.link-card p {
    margin:
        0 0 13px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

.link-status {
    color: var(--green);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.links-empty {
    grid-column: 1 / -1;

    padding: 30px;

    background:
        rgba(
            22,
            27,
            34,
            0.92
        );

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

    border-radius: 5px;

    color: var(--muted);

    text-align: center;
}

footer {
    margin-top: 28px;

    color: var(--subtle);

    font-size: 11px;
    text-align: center;
}

@media (max-width: 700px) {

    .links-page {
        width:
            calc(100% - 28px);

        padding-top: 28px;
    }

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

    .link-card {
        min-height: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .link-card {
        transition: none;
    }
}
