@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2");
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin: auto;
    padding-inline: 1rem;
}

header {
    color: var(--primary);
    nav ul {
        display: flex;
        list-style: none;
        a {
            color: inherit;
            text-decoration: none;
            padding: 1rem;
        }
        a:hover, a:focus-visible {
            background-color: oklch(0.7403 0.1352 256.66);
        }
    }
}

.row {
    display: flex;
    gap: 2rem;
    div {
        padding: 1rem;
        border: dashed 1px oklch(0.7541 0.1475 0);
    }
    div:nth-child(1) {
        flex: 2;
    }
    div:nth-child(2) {
        flex: 1;
    }
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#nav_id ~ ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    a {
        display: flex;
        text-decoration: none;
        padding: 1rem;
    }
    li:first-child {
        margin-right: auto;
    }
    a.stays {
        font-weight: bold;
        color: inherit;
    }
    a.highlight {
        background-color: oklch(0.5714 0.2314 24.78);
        color: oklch(1 0 24.78);
        transition: background-color 500ms ease, color 500ms ease;
    }
    a.highlight:hover, a.highlight:focus-visible {
        background-color: oklch(1 0 24.78);
        color: oklch(0.5714 0.2314 24.78);
        transition: background-color 500ms ease, color 500ms ease;
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    li {
        display: flex;
        flex-direction: column;
        position: relative;
        flex: 1 1 18rem;
        border-radius: .5em;
        overflow: hidden;
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        transition: box-shadow 500ms ease;
        &::before {
            content: "";
            position: absolute;
            z-index: 0;
            inset: 0;
            background: oklch(0.7 0.16 25 / 75%);
            border-radius: 50%;
            transform: scale(0.05);
            opacity: 0;
            mix-blend-mode: multiply;
            pointer-events: none;
            transition: transform 500ms ease, border-radius 500ms ease 100ms, opacity 200ms ease;
        }
        &:hover::before, &:has(a:focus-visible)::before {
            transform: scale(1.5);
            border-radius: .5em;
            opacity: 1;
        }
    }
    li:hover, li:focus-visible {
        transition: box-shadow 500ms ease;
        box-shadow: 0 2px 6px rgb(0 0 0 / 10%);
    }
    a::after {
        content: "";
        position: absolute;
        inset: 0;

    }
    img {
        order: -1;
        width: 100%;
        object-fit: cover;
        position: relative;
        z-index: -1;
    }
    .content {
        padding: 1rem;
        position: relative;
        z-index: 1;
    }
}
