@font-face {
    font-family: "Proxima Nova";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/ProximaNova/proximanova-extrabold-webfont.woff2") format("woff2");
}

@font-face {
    font-family: "Proxima Nova";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ProximaNova/proximanova-regular-webfont.woff2") format("woff2");
}

:root {
    --name: #333;
    --text: #999;
    --link: #555;
    --quiet: #b4b4b4;
    --hover: #31a2f1;
    --mark: #fcd211;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--mark);
    color: #444;
}

.home {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding: 6em;
    animation: appear 1.5s ease-out both;
}

@keyframes appear {
    from {
        opacity: 0;
    }
}

.masthead {
    display: flex;
    align-items: center;
    gap: 0.28em;
    font-size: clamp(44px, 6.4vw, 88px);
}

.mark {
    display: block;
    flex: none;
    width: 1.1em;
    height: 1.1em;
}

h1 {
    color: var(--name);
    font-size: 1em;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-left: -0.04em;
}

.intro {
    max-width: 27em;
    margin-top: 2em;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.4;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em 4.5em;
    margin-top: 3em;
}

.clients {
    margin-top: 3em;
}

.clients ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5em 2.25em;
}

.clients img {
    display: block;
    opacity: 0.4;
}

.clients h2,
.links h2 {
    margin-bottom: 0.7em;
    color: var(--quiet);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

.links li + li {
    margin-top: 0.55em;
}

.links a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

.links a:hover {
    color: var(--hover);
    text-decoration: underline;
}

.links a:active {
    background: var(--mark);
    color: #444;
}

.links a:focus-visible {
    outline: 2px solid var(--hover);
    outline-offset: 3px;
}

.links span {
    display: block;
    color: var(--quiet);
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .home {
        animation: none;
    }
}

@media (max-width: 720px) {
    .home {
        padding: 4em 1.5em 3em;
    }

    .links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2em 1.5em;
    }

    .links a {
        overflow-wrap: anywhere;
    }

    .clients ul {
        justify-content: center;
        gap: 1.25em 2em;
    }
}
