:root {
    --font-primary: 'Quattrocento', serif;
    --font-secondary: 'Montserrat', sans-serif;
    --color-bg: #faf7f2;
    --color-text: #3a332c;
    --color-accent: #9c7b5a;
    --color-line: #ddd3c4;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img, iframe {
    max-width: 100%;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(58,51,44,0.35), rgba(58,51,44,0.35)),
        url('eskuvoi_kep.png') center/cover no-repeat;
    color: #fff;
    padding: 2rem 1.25rem;
}

.hero-content {
    width: 100%;
    max-width: 100%;
}

.hero-content .greeting {
    font-size: clamp(1rem, 4vw, 1.2rem);
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 12vw, 6rem);
    margin-bottom: 1.2rem;
    word-break: break-word;
}

.hero-content h1 span {
    font-style: italic;
    font-weight: 400;
    opacity: 0.85;
}

.hero-content .date {
    font-size: clamp(1rem, 4vw, 1.2rem);
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.hero-content .countdown {
    font-family: var(--font-secondary);
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    letter-spacing: 0.03em;
    color: #f4ede2;
    padding: 0 0.5rem;
    margin-bottom: 1.75rem;
}

.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    text-align: center;
}

.section h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 1.75rem 1.25rem;
    text-align: left;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timeline-time {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-accent);
    min-width: 3.2rem;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.timeline-icon svg {
    width: 100%;
    height: 100%;
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .timeline {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 2rem 1.5rem;
        position: relative;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        flex: 1;
        text-align: center;
        position: relative;
    }

    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: calc(0.95rem + 16px);
        left: calc(50% + 2rem);
        width: calc(100% - 2.4rem);
        height: 1px;
        background: var(--color-line);
    }

    .timeline-time {
        order: 1;
        min-width: 0;
    }

    .timeline-icon {
        order: 2;
    }

    .timeline-title {
        order: 3;
    }
}

.section-notes {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.section-notes p {
    font-size: 1rem;
    color: var(--color-text);
}

.venue {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 1.5rem;
    }

    .venue {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.venue-map {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
}

.venue-map iframe {
    display: block;
    width: 100%;
    height: 200px;
}

@media (min-width: 768px) {
    .venue-map iframe {
        height: 250px;
    }
}

.venue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
}

.venue-info h3 {
    font-size: 1.4rem;
    color: var(--color-accent);
}

.venue-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.icon-btn-hero {
    border-color: #fff;
    color: #fff;
}

.icon-btn-hero:hover {
    background: #fff;
    color: var(--color-text);
}

.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.footer p + p {
    margin-top: 0.5rem;
}

.footer a {
    color: var(--color-accent);
}
