@property --gradient-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --gradient-alpha { syntax: "<percentage>"; initial-value: 0%; inherits: false; }
@keyframes rotation { 0% { --gradient-angle: 0deg; } 100% { --gradient-angle: 360deg; } }

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    src: url("font/inter.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    src: url("font/jetbrainsmono.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --background: #000000;
    --surface: #0d0d0d;
    --surface-hover: #141414;
    --text: #f2f2f2;
    --icon: #d1d1d1;
    --muted: #9e9e9e;

    --border: #141414;
    --border-width: 2px;
    --border-radius: 6px;

    --font: "Inter", sans-serif;
    --mono: "JetBrains Mono", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font), sans-serif;

    min-height: 100svh;
    position: relative;
}

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

.title {
    font-size: 300%;
    user-select: none;
    margin: 0 0 2rem;
    font-family: var(--mono), monospace;
    font-weight: normal;
}

.content {
    max-width: 800px;
    margin: auto;
    padding: 110px 30px;
    border-top: 1px solid var(--border);
}

.grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: .8rem;
}

.card {
    position: relative;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--border-radius);
    animation: rotation 5s linear infinite;
    background-image: conic-gradient(from var(--gradient-angle) in hsl longer hue, rgb(255 0 0 / var(--gradient-alpha)), rgb(255 0 0 / var(--gradient-alpha))), linear-gradient(var(--border));
    transition: --gradient-alpha .125s ease;
}

.card:hover::before {
    --gradient-alpha: 100%;
}

.card::after {
    content: '';
    position: absolute;
    inset: var(--border-width);
    z-index: -1;
    border-radius: calc(var(--border-radius) - var(--border-width));
    background: var(--surface);
}

.card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #ffffff04;
    border: var(--border-width) solid var(--border);
    border-radius: var(--border-radius);
}

.card-icon svg {
    width: 23px;
    height: 23px;
    object-fit: contain;
    fill: var(--icon);
}

.card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card strong {
    font-size: 12px;
    font-weight: 600;
}

.card small {
    color: var(--muted);
    font-size: 10px;
}

.links {
    display: flex;
    gap: 25px;
    margin-top: 55px;
}

.links a {
    font-family: var(--mono), monospace;
    color: var(--muted);
    font-size: 11px;
    transition: .2s;
}

.particles {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 600px) {
    .title {
        font-size: 200%;
    }

    .card {
        padding: 13px 10px;
        gap: 10px;
    }

    .card-icon {
        width: 35px;
        height: 35px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }
}