:root {
    --color-bg: #f4f4f2;
    --color-text: #1c1c1e;
    --color-muted: #6e6e6b;
    --color-border: #e0e0dc;
    --color-silhouette: #a3a39e;

    --font-sans: 'Jost', 'Century Gothic', 'Futura', 'Helvetica Neue', Arial, sans-serif;
}

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

html, body {
    margin: 0;
    height: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1:focus {
    outline: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}

a:hover {
    color: var(--color-muted);
}

a:focus-visible {
    outline: 1px solid var(--color-text);
    outline-offset: 4px;
}

/* On the home page the footer cub waits for the intro to land it (see js/cub.js). */
@media (prefers-reduced-motion: no-preference) {
    .page:has(.typewriter) .cub:not(.landed) {
        visibility: hidden;
        animation: none;
    }
}
