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

:root {
    color-scheme: light dark;
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-surface: #1a1a1a;
    --color-border: #333333;
    --color-strong-border: #ffffff;
    --color-button-bg: #ffffff;
    --color-button-text: #000000;
}

@media (prefers-color-scheme: light) {
    :root {
        --color-bg: #f2f2f2;
        --color-text: #0a0a0a;
        --color-surface: #ffffff;
        --color-border: #9a9a9a;
        --color-strong-border: #000000;
        --color-button-bg: #0a0a0a;
        --color-button-text: #ffffff;
    }
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -48px;
    z-index: 1000;
    padding: 10px 14px;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Header */
header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid var(--color-strong-border);
    margin-bottom: 40px;
}

.logo {
    margin-bottom: 20px;
}

.logo-image {
    display: block;
    margin: 0 auto;
    width: 170px;
    max-width: 70vw;
    height: auto;
    filter: none;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

/* Main content */
main {
    margin-bottom: 60px;
}

section {
    margin-bottom: 50px;
}

h2 {
    position: relative;
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 1px;
    background-color: var(--color-strong-border);
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Schedule */
.schedule-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.schedule-item {
    background-color: var(--color-surface);
    padding: 25px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.schedule-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.schedule-item p {
    font-size: 15px;
    margin-bottom: 10px;
}

.map-link {
    color: var(--color-text);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.map-link:hover {
    opacity: 0.85;
}

.map-link:focus-visible,
.contact-link:focus-visible,
.skip-link:focus-visible {
    outline: 3px solid var(--color-strong-border);
    outline-offset: 3px;
}

.schedule-item .description {
    opacity: 0.8;
    font-size: 14px;
    margin-top: 10px;
}

/* Contact links */
.contact-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-strong-border);
}

.contact-link:hover {
    background-color: transparent;
    color: var(--color-text);
    transform: translateY(-2px);
}

.contact-link.facebook:hover {
    border-color: #1877f2;
}

.contact-link.whatsapp:hover {
    border-color: #25d366;
}

.contact-link.strava:hover {
    border-color: #fc4c02;
}

.social-icon {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-link {
        transition: none;
    }

    .contact-link:hover {
        transform: none;
    }
}

@media (prefers-color-scheme: light) {
    .logo-image {
        filter: invert(1);
    }

    .map-link:hover {
        opacity: 1;
        color: #000000;
        text-decoration-thickness: 2px;
    }

    .contact-link:hover {
        background-color: #e8e8e8;
        color: #000000;
    }

    .tagline,
    .schedule-item .description,
    footer {
        opacity: 1;
    }

    .tagline,
    .schedule-item .description {
        color: #1a1a1a;
    }

    footer {
        color: #222222;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid var(--color-strong-border);
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 24px;
    }

    .logo-image {
        width: 130px;
    }

    .schedule-container {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
        text-align: center;
    }
}
