@font-face {
    font-family: 'Swiss Time';
    src: url('fonts/SwissTime-Regular.woff2') format('woff2'),
         url('fonts/SwissTime-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Swiss Time', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        #0A0F1D 0%,
        #0F3283 32%,
        #0094BE 60%,
        #D5C5A6 79%,
        #FFFFFF 93%
    );
    color: white;
    position: relative;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.45;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="1.2" numOctaves="5" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: overlay;
    z-index: 1;
}

.container {
    width: 100%;
    height: 100%;
    padding: 60px 80px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date {
    position: absolute;
    top: 42px;
    right: 42px;
    font-size: 16px;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.add-button {
    position: absolute;
    top: 42px;
    left: 42px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    padding: 0;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

.add-button:hover {
    opacity: 0.7;
}

.add-button svg {
    width: 40px;
    height: 40px;
}

.haiku-container {
    display: flex;
    justify-content: space-between;
    align-items: last baseline;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.haiku {
    flex: 1;
    padding-left: 0;
}

.haiku .line {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 8px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.haiku .line:last-child {
    margin-bottom: 0;
}

.author {
    margin-right: 0;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-align: right;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }
    
    .date {
        top: 30px;
        right: 30px;
    }
    
    .haiku-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .haiku .line {
        font-size: 24px;
    }
    
    .author {
        text-align: left;
        padding-right: 0;
        padding-top: 40px;
    }
    
    .add-button {
        top: 30px;
        left: 30px;
    }
}

