@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("dmsans.ttf") format("truetype");
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("dmsans.ttf") format("truetype");
}

:root {
    --base: #0d241c;
    --text: #beeedd;
    --accent: #48F5B8;
    --border: #2d6853;
    --radius: 12px;

    background: var(--base);
    color: var(--text);
    scroll-snap-type: y proximity;
}

body {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    margin: 0 auto;
    max-width: 768px;
}

footer {
    padding: 20px 0;
    text-align: center;
}

a {
    color: var(--accent);
}

h1 {
    scroll-snap-align: start;
    scroll-margin-top: 32px;
    margin: 32px 0;
    font-size: clamp(14pt, 6vw, 50pt);
    font-weight: 900;
    text-align: center;
}

.portfolio {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    padding-inline: 12px;
}

.portfolio:has(.portfolio__item:hover) .portfolio__item:not(:hover) {
    opacity: 0.5;
}

.portfolio__item {
    scroll-snap-align: center;
    scroll-margin-block: 20px;
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    cursor: zoom-in;
    transition: 0.2s cubic-bezier(.05,.9,.17,.97);
    transition-property: border-radius, border-color, box-shadow, opacity;
}

.portfolio__item:hover {
    box-shadow: 0 0 24px var(--accent);
    border-color: var(--accent);
    border-radius: 0;
}

.portfolio__item__image {
    display: block;
    width: 100%;
    height: auto;
}
