/* Base */
html,
body {
    height: 100%;
}

/* Global layout */
body {
    margin: 0;
    display: flex;
    flex-direction: column;

    background: radial-gradient(circle at center,
            #ffffff 0%,
            #f8f8f8 75%,
            #ebebeb 100%);

    color: #222;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 1rem;
    text-align: center;
}

/* Footer */
footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Typography */
h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.1;
}

p {
    margin: 1rem 0 0;
}

/* Responsive */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
}

/* Decorative underline */
h1::after {
    content: "";
    display: block;
    height: 0.5rem;
    margin-top: 1rem;

    background: repeating-linear-gradient(45deg,
            #ffe800 0,
            #ffe800 0.5rem,
            #222 0.5rem,
            #222 1rem);

    background-size: 1.414rem 1.414rem;
    animation: stripes-move 60s linear infinite;
}

/* Animation */
@keyframes stripes-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100rem 0;
    }
}