:root {
    --cream: #f5e6d3;
    --brown: #6b4423;
    --rust: #b85c38;
    --olive: #7d8f3d;
}

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

html, body {
    height: 100%;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background-color: var(--cream);
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

main {
    position: relative;
    text-align: center;
}

.steam {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 160px;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.wisp {
    position: absolute;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    filter: blur(9px);
    animation: rise 5s ease-in;
}

@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.7);
    }
    20% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translateY(-160px) scale(2);
    }
}

h1, .reveal {
    font-size: clamp(1.6rem, 5vw, 3.2rem);
    font-weight: normal;
    letter-spacing: 0.02em;
    font-style: italic;
}

.reveal {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    margin-top: 0.6em;
    color: var(--brown);
    line-height: 1.35;
}

.cursor {
    display: inline-block;
    margin-left: 0.08em;
    color: var(--rust);
    font-style: normal;
    animation: blink 1.1s steps(2, end) infinite;
}

@keyframes blink {
    0%, 49.9%   { opacity: 1; }
    50%, 100%   { opacity: 0; }
}

.brand {
    margin-top: 2.5rem;
    font-variant: small-caps;
    letter-spacing: 0.35em;
    color: var(--rust);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
}

.brand .icon {
    width: 1.6em;
    height: 1.6em;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    body { padding-inline: 1.25rem; }

    h1 {
        font-size: 2.2rem;
        line-height: 1.25;
    }
    h1 .line { display: block; }

    .reveal {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .brand {
        margin-top: 3rem;
        font-size: 1rem;
    }

    .steam { height: 130px; }

    .wisp { animation-name: rise-mobile; }
}

@keyframes rise-mobile {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.7);
    }
    20% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translateY(-130px) scale(2);
    }
}

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