/* ─── Tokens ─────────────────────────────────────────── */
:root {
    --bg: #F5F2EE;
    --ink: #1C1917;
    --ink-muted: #8C8680;
    --ink-faint: #D8D2CB;

    --serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: var(--ink);
    color: var(--bg);
}

/* ─── Base ───────────────────────────────────────────── */
html {
    height: 100%;
}

body {
    min-height: 100%;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Frame ──────────────────────────────────────────── */
.frame {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
    padding: 2.25rem 3rem;
}

/* ─── Header ─────────────────────────────────────────── */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--ink);

    opacity: 0;
    animation: reveal 1s var(--ease-out) 0s forwards;
}

.nav-link {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ─── Content ────────────────────────────────────────── */
.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 0;
    max-width: 1536px;
}

.headline {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 4.2rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 2.25rem;

    opacity: 0;
    animation: reveal 1.2s var(--ease-out) 0.18s forwards;
}

.name {
    font-weight: 400;
}

/* ─── Frog link ──────────────────────────────────────── */
.frog-link {
    color: var(--ink);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.frog-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
}

.frog-link:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0.04em;

    opacity: 0;
    animation: reveal 1.2s var(--ease-out) 0.56s forwards;
}

/* ─── Animation ──────────────────────────────────────── */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1536px) {
    .content {
        max-width: 1150px;
    }
}

@media (max-width: 900px) {
    .frame {
        padding: 2rem 2rem;
    }

    .content {
        padding: 4rem 0;
    }
}

@media (max-width: 600px) {
    .frame {
        padding: 1.75rem 1.5rem;
        min-height: 100svh;
    }

    .content {
        padding: 3.5rem 0;
    }
}