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

body {
    font-family: 'EB Garamond', Georgia, serif;
    background-color: #e0e0de;
    color: #1a1a1a;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 18px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.header {
    margin-bottom: 80px;
}

.logo {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 60px;
    align-items: baseline;
}

.date {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.description p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

.description a {
    color: #1a1a1a;
    text-decoration: none;
}

.description a:hover {
    color: #666;
}

/* Logo link */
.logo-link {
    text-decoration: none;
    color: inherit;
}

/* Event page styles */
.event-page {
    margin-top: 20px;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.event-date {
    display: block;
    font-size: 1rem;
    color: #888;
    margin-bottom: 50px;
}

.event-details {
    max-width: 520px;
}

.event-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Hangman Game Styles */
.hangman-game {
    margin-top: 20px;
    text-align: center;
}

.hangman-word {
    margin: 60px 0 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hangman-word .letter {
    font-size: 2.8rem;
    font-weight: 400;
    width: 50px;
    display: inline-block;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
    letter-spacing: 0.05em;
}

.hangman-status {
    margin-bottom: 40px;
    color: #888;
    font-size: 1rem;
}

.hangman-status .failed {
    color: #a85858;
}

.keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.key {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    border: 1px solid #bbb;
    background: transparent;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.15s ease;
}

.key:hover:not(.guessed) {
    background: #1a1a1a;
    color: #e0e0de;
    border-color: #1a1a1a;
}

.key.guessed {
    cursor: default;
    opacity: 0.3;
}

.key.correct {
    background: #c8d4c3;
    border-color: #a8b8a3;
    color: #1a1a1a;
    opacity: 1;
}

.key.wrong {
    background: #e8d4d4;
    border-color: #d4b8b8;
    color: #1a1a1a;
    opacity: 0.5;
}

.wrong-letters {
    margin-top: 30px;
    color: #a85858;
    font-size: 1rem;
    letter-spacing: 0.3em;
    min-height: 24px;
}

/* Title fade animation */
.event-title {
    transition: opacity 0.4s ease-out;
}

.event-title.fade-out {
    opacity: 0;
}

.event-title.fade-in {
    opacity: 1;
}

/* Night text */
.night-text {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0;
    margin-top: 20px;
    transition: opacity 0.6s ease-out;
}

.night-text.visible {
    opacity: 1;
}

/* Hide keyboard and status after win */
.keyboard.hidden,
.hangman-status.hidden,
.wrong-letters.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-out, max-height 0.4s ease-out;
    pointer-events: none;
}

/* Event Reveal Animation */
.event-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease-out, opacity 0.6s ease-out 0.2s;
}

.event-reveal.revealed {
    max-height: 500px;
    opacity: 1;
}

/* Invite Info */
.invite-info {
    margin-top: 50px;
    margin-bottom: 40px;
}

.invite-location {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.invite-time {
    font-size: 1.1rem;
    color: #888;
}

/* RSVP Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.rsvp-input {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid #bbb;
    background: transparent;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease;
}

.rsvp-input:focus {
    border-color: #1a1a1a;
}

.rsvp-input::placeholder {
    color: #999;
}

.rsvp-button {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #e0e0de;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.rsvp-button:hover {
    background: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 40px 24px;
    }

    .header {
        margin-bottom: 50px;
    }

    .entry {
        grid-template-columns: 100px 1fr;
        gap: 30px;
    }

    .date {
        font-size: 0.9rem;
    }

    .description p {
        font-size: 1rem;
    }

    .hangman-word .letter {
        font-size: 2rem;
        width: 36px;
    }

    .key {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}
