@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito/Nunito-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
}

@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito/Nunito-Italic-VariableFont_wght.ttf") format("truetype");
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
}

:root {
    --color-primary: #50dfbd;
    --color-text: #edf4f5;
    --color-muted: #94a7b1;
    --color-surface: #172c35;
    --color-surface-deep: #101f25;
    --color-surface-hover: #1b3b3f;
    --color-ink: #0c191d;
    --color-border: #29464b;
    --color-border-soft: #254047;
    --color-text-soft: #d7e1e3;
    --color-text-subtle: #cbd5d8;
    --color-danger: #ff858f;
    --color-text-bright: #f4f7f8;
    --color-page: #182f33;
    --color-scrollbar: #1eb99b;
    --color-accent-bright: #22e6bd;
    --color-white: #fff;
    --color-surface-input: #1b333b;
    --color-shadow: #0008;
    --color-ink-deep: #071a1e;
    --color-surface-raised: #10252b;
    --color-border-dark: #2a3c43;
    --color-muted-deep: #71878d;
    --color-text-secondary: #d5e0e2;
    --color-text-highlight: #effaf8;
    --container-width: 1250px;
    --font-family: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-family);
    color-scheme: dark;
    background-color: var(--color-page);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--color-scrollbar) #0b2025;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--color-page);
}

::-webkit-scrollbar-thumb {
    background: var(--color-scrollbar);
    border-radius: 10px;
}

body p, figure, blockquote, dl, dd {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--color-white);
}

body {
    display: flow-root;
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--color-page) !important;
    background-image:
        radial-gradient(ellipse 70% 55% at 10% 5%, rgb(80 223 189 / 16%), transparent 75%),
        radial-gradient(ellipse 60% 45% at 90% 65%, rgb(102 161 177 / 12%), transparent 80%);
    color: #e8e8e8;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: break-word;
}

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

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

img, video {
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

textarea {
    resize: vertical;
}

button:not(:disabled), input[type="button"]:not(:disabled), input[type="submit"]:not(:disabled), input[type="reset"]:not(:disabled), summary {
    cursor: pointer;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

::selection {
    background: var(--color-accent-bright);
    color: var(--color-ink-deep);
}

::-moz-selection {
    background: var(--color-accent-bright);
    color: var(--color-ink-deep);
}

[hidden]:not([hidden="until-found"]) {
    display: none !important;
}

:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

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

.content {
    margin-block: 2rem;
    background-color: var(--color-ink);
    background-image: linear-gradient(to bottom, rgb(12 25 29 / 35%) 0, rgb(12 25 29 / 65%) 75px, var(--color-ink) 150px), url("../img/elements-bg.png");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 400px 400px;
    padding: 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    grid-gap: 2rem;
    margin-top: 1.5rem;
}

.layout > * {
    min-width: 0;
}

.layout__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 2rem 1.4rem;
}

@media (max-width: 1040px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .layout__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .layout__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .content {
        margin-block: 0;
        padding-top: 0;
        padding-inline: 14px;
        border-radius: 0;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .layout__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-gap: 20px 14px;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 600px) {
    .container {
        width: 100%;
    }

    .content {
        padding-inline: 12px;
    }

    .layout__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 16px 10px;
    }
}

.layout__title {
    grid-column: -1 / 1;
    font-size: 1rem;
}

.layout__title h2 {
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 800;
    line-height: 1.25;
}

.layout__title a {
    transition: 0.3s;
}

.layout__title a:hover {
    color: var(--color-primary);
}

.layout__full, #fullsearch {
    grid-column: -1 / 1;
}

#fullsearch {
    margin-top: -30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-ink);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: #6ce5c9;
    color: var(--color-ink);
}

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

.btn-secondary:hover, .btn-secondary:focus-visible {
    background-color: var(--color-surface-hover);
    color: var(--color-primary);
}

.btn:disabled, .btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.hero__title {
    font-size: 1.9rem;
}

.hero__description {
    font-size: 0.9rem;
    color: var(--color-muted);
}
