@font-face {
    font-family: "Fredoka";
    src: url("./Fredoka/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);
    background-color: var(--bg);
    color: var(--primary);
}
body{
    margin: 0;
}
.container{
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
header {
    color: var(--bg);
    background-color: var(--primary);
}
nav ul{
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-inline-start: -2rem;
}
nav a{
    padding-block: 1rem;
    padding-inline: 2rem;
    display: block;
    color: inherit;
    text-decoration: none;
}
.row {
    display: flex;
    column-gap: 2rem;
}
.row > *:first-child {
    border: 1px dashed oklch(0.7933 0.1998 175.63);
    padding: 1rem;
    flex: 2;
}
.row > *:last-child {
    border: 1px dashed oklch(0.7933 0.1998 175.63);
    padding: 1rem;
    flex: 1;
}
.visually-hidden{
    visibility: hidden;
}
main nav {
    --text: oklch(0.99 0.003 325);
    --bgd: oklch(0.45 0.32 40);
}
main nav a {
    color: var(--text);
    background-color: var(--bgd);
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
main nav a:hover,
main nav a:focus-visible {
    color: var(--bgd);
    background-color: var(--text);
}
main nav li:first-child {
    margin-inline-end: auto;
}
main nav li:first-child a {
    color: var(--primary);
    background-color: var(--bg);
    font-weight: bold;
}
.cards{
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-basis: 18rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow:
            0 0 0.2rem oklch(0 0 0 / 0.2),
            0 0 1rem oklch(0 0 0 / 1);
    border-radius: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition:
            transform 0.5s ease,
            background-color 0.5s ease,
            box-shadow 0.5s ease;
}
.content >*:not(img):not(.overlay-link){
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
}
.content h2,
.content p,
.content a{
    margin: 0.25rem 0;
}
.content a{
    padding-bottom: 1rem;
}
.content img{
    order: -1;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.content li a:not(.overlay-link){
    z-index: 1;
}
.content:hover {
    transform: scale(1.1);
    background: radial-gradient(oklch(0.5191 0.2269 278),oklch(0.6933 0.2269 36.53));
    box-shadow:
            0 0 0.4rem oklch(0 0 0 / 0.3),
            0 0 1.5rem oklch(0 0 0 / 1);
}
footer{
    margin: 1rem;
}