:root {
    --color-primary: #000;
    --color-secondary: #eee;
}

html {
    font-size: 16px;
}

@media (max-width: 300px) {
    html {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 20px;
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;

    background-color: var(--color-primary);
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-secondary);
}

div.center {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 3em;
    margin: 1vh;
    line-height: 1.2;
}

p {
    font-size: 1em;
    margin: 1vh;
    line-height: 1.2;
    white-space-collapse: preserve;
}

p.inline-links > * {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

/* Link with slide-up invert effect */
a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--color-secondary);
    overflow: hidden;
    transition: color 0.3s ease;
    cursor: pointer;
    user-select: none;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

a:hover::after {
    transform: translateY(0%);
}

a span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: color 0.3s ease;
}

a:hover span {
    color: var(--color-primary);
}
