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

body {
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

h1 {
    font-size: 4rem;
    text-align: center;
}

/* Main */
main {
    padding: 2rem;
}

/* Footer */
footer {
    padding: 2rem;
}

/* Construction page */
.construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.teacup {
    overflow: visible;
}

/* Cup and handle - draw animation */
.cup-outline,
.cup-handle {
    fill: none;
    stroke: #5d4037;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw 1.5s ease-out forwards;
}

.cup-handle {
    animation-delay: 0.8s;
}

/* Saucer */
.saucer {
    fill: none;
    stroke: #5d4037;
    stroke-width: 3;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 1s ease-out 0.3s forwards;
}

/* Tea liquid - fills up */
.tea-liquid {
    fill: #c8a86b;
    clip-path: inset(100% 0 0 0);
    animation: fill-tea 1s ease-out 1.8s forwards;
}

/* Steam */
.steam {
    fill: none;
    stroke: #a0a0a0;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    animation: steam-rise 2s ease-in-out 2.8s infinite;
}

.steam-2 {
    animation-delay: 3s;
}

.steam-3 {
    animation-delay: 3.2s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-tea {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes steam-rise {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Construction text */
.construction-text {
    font-size: 1.5rem;
    color: #5d4037;
    letter-spacing: 0.1em;
}

.dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}
