@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 11px;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    max-width: 980px;
    margin: auto;
}

header {
    display: flex;
    align-items: center;
    background-color: #5e00da;
    color: white;
    padding: 8px;
    gap: 16px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

a {
    color: #5e00da;
}

nav ul li {
    list-style-type: none;
    width: max-content;
}

[aria-current="page"] {
    font-weight: bold;
    color: #5e00da;
    background-color: white;
}

nav ul li a {
    color: white;
    border: 2px;
    text-decoration: none;
    padding: 2px 4px;
    text-align: center;

    &:hover {
        color: #5e00da;
        background-color: white;
    }
}

main {
    border: 1px solid #5e00da;
    background-color: white;
}

main h2 {
    padding-bottom: 8px;
    padding-left: 8px;
    padding-top: 8px;
    border-bottom: 1px solid #5e00da;
    background-color: #5e00da20;
}

section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #5e00da;
}

section:last-child {
    border-bottom: 0;
}

section > :not(h3) {
    margin-left: 8px;
}

section ul {
    display: grid;
    gap: 8px;
}

section ul li {
    list-style-type: none;
}

section ul li a {
    text-decoration: none;
}

section ul li a:hover {
    text-decoration: underline;
}

dl {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px;
}

dl a {
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

dt {
    font-weight: bold;
}

footer {
    padding: 8px;
    background-color: #5e00da;
    color: white;
}

@media screen and (max-width: 360px) {
    header {
        flex-direction: column;
        gap: 8px;
    }
    header nav ul {
        flex-direction: column;
    }
}