@font-face {
    font-family: 'InterVariable';
    src: url('../assets/InterVariable.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
    --hover-color: #f0f0f0;
    --divider-color: #ccc;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

body {
    max-width: min(600px, calc(100% - 4em));
    margin-left: auto;
    margin-right: auto;
}

strong {
    font-variation-settings: 'wght' 700;
}

code {
    white-space: pre;
}

caption {
    caption-side: bottom;
    padding-top: 1em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    position: sticky;
    top: 0;
    left: 0;
    border: 2px solid var(--divider-color);
    border-radius: 1em;
    padding: 1em 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(1em);
    -webkit-backdrop-filter: blur(1em);
}

nav a {
    color: black;
    text-decoration: none;
    padding: 1em;
    border-radius: 1em;
}

nav a:hover {
    background-color: var(--hover-color);
}

li {
    margin-bottom: 0.5em;
}

.chip {
    display: inline-block;
    padding: 0.5em 1em;
    border: 2px solid var(--divider-color);
    border-radius: 1em;
}

.chip:hover {
    background-color: var(--hover-color);
}

.chip-set {
    list-style-type: none;
    padding-inline-start: 0;
}

.chip-set .chip {
    margin-right: 0.5em;
}

@media (max-width: 767px) {
    .chip-set .chip {
        display: block;
        width: fit-content;
        margin-bottom: 1em;
    }
}

.linked:hover {
    background-color: var(--hover-color);
    text-decoration: underline;
    cursor: pointer;
}

.header-row {
    display: flex;
    align-items: center;
    column-gap: 2em;
    row-gap: 0.5em;
    flex-wrap: wrap;
}

.header-row h1 {
    margin: 0;
}

.contact-icons {
    display: flex;
    gap: 0.75em;
    align-items: center;
    font-size: 2rem;
}

.contact-icons a,
.contact-icons a:link,
.contact-icons a:visited {
    color: #181717;
    line-height: 0;
    transition: color 0.2s ease-in-out;
}

.contact-icons a:hover {
    color: #888;
    text-decoration: none;
}

.contact-icons svg {
    width: 1em;
    height: 1em;
    display: block;
}