/* ===========================================================================
   Flavio Arenas — single-page site
   Black & white only, white background
   =========================================================================== */

:root {
    --bg: #ffffff;
    --fg: #000000;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    line-height: 1.6;
}

main {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

p {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    margin-bottom: 24px;
}

.link {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    padding: 12px 26px;
    border: 2px solid var(--fg);
    border-radius: 999px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.link:hover,
.link:focus {
    background-color: var(--fg);
    color: var(--bg);
}

/* ---------- Fade-in animation ---------- */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade {
    opacity: 0;
    animation: fade-in 1.2s ease forwards;
    animation-delay: var(--delay, 0s);
}

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