:root {
    --color-primary: #2d1b4e;
    --color-gold: #d4af37;
    --color-cream: #faf8f3;
    --color-text: #1a1a1a;
    --color-text-light: #5a5a5a;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--color-cream);
    color: var(--color-text);
    line-height: 1.7;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 27, 78, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
    animation: fadeIn 1s ease-out;
}

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

h1 {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--color-text-light);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        var(--color-gold) 0%,
        var(--color-gold) 50%,
        rgba(212, 175, 55, 0.3) 100%
    );
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.event {
    position: relative;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 3px solid transparent;
}

.event:hover {
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.event.collapsed {
    opacity: 0.7;
}

.event.collapsed .event-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event.expanded {
    border-left-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.event::before {
    content: '';
    position: absolute;
    left: -47px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 3px solid var(--color-cream);
    box-shadow: 0 0 0 2px var(--color-gold);
    transition: all 0.3s;
}

.event.past::before {
    background: #c9c9c9;
    box-shadow: 0 0 0 2px #c9c9c9;
}

.event.current {
    border-left-color: var(--color-gold);
    box-shadow: 0 8px 40px rgba(212, 175, 55, 0.25);
}

.event.current::before {
    background: var(--color-gold);
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.event-time {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
}

.event-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
}

.event-text {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.event-reference {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.event-reference a {
    color: var(--color-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.event-reference a:hover {
    border-bottom-color: var(--color-gold);
}

.event-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-past {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    color: #666;
}

.status-current {
    background: linear-gradient(135deg, var(--color-gold) 0%, #c9a030 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.status-future {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3d2766 100%);
    color: var(--color-gold);
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 45px;
    }

    .event {
        padding: 1.5rem;
    }

    .event::before {
        left: -35px;
    }

    .event-title {
        font-size: 1.3rem;
    }
}
