@font-face {
    font-family: Ubuntu;
    src: url("assets/ubuntu-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Ubuntu;
    src: url("assets/ubuntu-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

html {
    color-scheme: dark;
}

body {
    box-sizing: border-box;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 1.5rem;
    display: grid;
    place-items: center;
    background: #121418;
    color: #e9edf2;
    font: 1rem/1.6 Ubuntu, sans-serif;
}

main {
    max-width: 100%;
}

h1,
h2 {
    line-height: 1.2;
}

h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
}

p {
    margin: 0 0 0.4rem;
}

ul {
    margin: 0;
    padding-left: 1.4rem;
}

a {
    color: #a5c9ff;
    text-underline-offset: 0.2em;
    overflow-wrap: anywhere;
}

a:hover,
a:focus-visible {
    color: #d5e6ff;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(circle at 20% 30%,
            rgba(80, 100, 200, 0.20),
            transparent 35%),
        radial-gradient(circle at 80% 70%,
            rgba(50, 160, 150, 0.15),
            transparent 35%);

    animation: ambient 20s ease-in-out infinite alternate;
}

main {
    position: relative;
    z-index: 1;
}

@keyframes ambient {
    from {
        transform: translate(-2%, -2%) scale(1);
    }

    to {
        transform: translate(3%, 3%) scale(1.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}
