* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.7;
    color: #222;
    background: #ffffff;
}


/* Header */

.site-header {
    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../images/banner.png");

    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;

    color: white;
    padding: 40px 20px 30px;
    min-height: 400px;
}

.header-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.header-brand {
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: 4rem;
    line-height: 1.1;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.tagline {
    margin-top: 4px;
    color: #d8e1eb;
    font-size: 1.2rem;
}


/* Navigation */

.site-nav {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.site-nav a:hover,
.site-nav a:focus {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
}


/* Main content */

main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 22px 70px;
}

section {
    margin-bottom: 55px;
}

h2 {
    color: #17263c;
    margin-top: 0;
}

h3 {
    color: #374c66;
}


/* Hero */

.hero {
    border-bottom: 1px solid #ddd;
    padding: 30px 0 55px;
}

.hero h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero h3 {
    font-weight: 400;
    font-size: 1.3rem;
}

.event-details {
    font-size: 1.15rem;
}


/* Buttons */

.button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;

    background: #17263c;
    color: white;

    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.button:hover {
    background: #314866;
}


/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding: 12px 8px;
}

th {
    color: #17263c;
}


/* Lists */

li {
    margin-bottom: 8px;
}


/* Special blocks */

.notice {
    padding: 18px 22px;
    border-left: 4px solid #17263c;
    background: #f3f5f8;
}

.sister-event {
    background: #f3f5f8;
    padding: 25px;
}


/* Venue */

.venue-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 55px;
}

.venue-text {
    flex: 1;
}

.venue-text p:first-child {
    margin-top: 0;
}

.venue-card {
    flex: 0 0 330px;
    overflow: hidden;
    border-radius: 14px;

    background: #7a8445;
    color: white;

    text-decoration: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.venue-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.venue-card-text {
    padding: 14px 22px 16px;
}

.venue-card-text strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
}

.venue-card-text span {
    display: block;
    color: #e5e8d7;
    line-height: 1.3;
}

.venue-card:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}


/* Footer */

footer {
    margin-top: auto;
    background: #17263c;
    color: white;
    text-align: center;
    padding: 25px;
}

footer p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    text-decoration: none;
}


/* Tablet */

@media (max-width: 750px) {

    .venue-layout {
        flex-direction: column;
        gap: 25px;
    }

    .venue-card {
        width: 100%;
        max-width: 450px;
        flex-basis: auto;
    }

}


/* Mobile */

@media (max-width: 650px) {

    .site-header {
        min-height: auto;
        padding: 14px 18px;
        background-position: center center;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .header-brand {
        display: block;
    }

    .site-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }

    .tagline {
        display: none;
    }

    .menu-toggle {
        display: flex;

        width: 46px;
        height: 46px;

        flex: 0 0 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        margin: 0;
        padding: 0;

        border: 1px solid rgba(255, 255, 255, 0.55);
        border-radius: 8px;

        background: rgba(0, 0, 0, 0.40);
        color: white;

        cursor: pointer;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        background: rgba(0, 0, 0, 0.60);
        outline: none;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid white;
        outline-offset: 3px;
    }

    .menu-icon {
        display: block;

        width: 21px;
        height: 2px;

        border-radius: 2px;
        background: white;

        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-icon:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        display: none;

        width: 100%;
        margin-top: 12px;
        padding: 8px;

        flex-direction: column;
        gap: 0;

        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 10px;

        background: rgba(15, 25, 38, 0.96);

        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: block;

        width: 100%;
        padding: 10px 12px;

        border-radius: 6px;

        color: white;

        font-size: 1rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .site-nav a:hover,
    .site-nav a:focus {
        background: rgba(255, 255, 255, 0.12);
        text-decoration: none;
        outline: none;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    main {
        padding: 30px 20px 55px;
    }

}