:root {
    --maroon: #8b0000;
    --orange: #f59b18;
    --gold: #ffc23a;
    --purple: #6b49b5;
    --navy: #1f2a44;
    --green: #63ad48;
    --ink: #161616;
    --paper: #fffaf0;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(31, 42, 68, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.theme-dark {
    background: var(--navy);
    color: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(139, 0, 0, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--maroon);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--maroon);
    box-shadow: inset 0 0 0 3px var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a,
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--orange);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 0 #c47400;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.button:hover,
.button:focus-visible {
    background: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #c47400;
    outline: none;
}

.nav-links a[aria-current="page"] {
    color: var(--white);
    background: var(--maroon);
    box-shadow: 0 4px 0 #4e0000;
}

.nav-links .register-link {
    color: var(--white);
    background: var(--purple);
    box-shadow: 0 4px 0 #442b82;
}

.hero,
.page-hero {
    position: relative;
    overflow: hidden;
}

.hero {
    min-height: calc(100svh - 72px);
    display: grid;
    align-items: center;
    background: var(--white);
}

.home-hero {
    min-height: calc(100svh - 72px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.24) 72%),
        url("Index.PNG") center / cover no-repeat;
}

.hero:not(.home-hero)::before,
.warm-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(245, 155, 24, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(139, 0, 0, 0.14), transparent 32%);
}

.hero-inner,
.page-inner,
.content-band {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(260px, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
    padding: clamp(36px, 6vw, 72px) 0;
}

.home-hero .hero-inner {
    min-height: calc(100svh - 72px);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--purple);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: 0;
}

h1 {
    color: var(--maroon);
    font-size: clamp(44px, 8vw, 84px);
}

.page-title {
    font-size: clamp(42px, 7vw, 72px);
}

.dark-title {
    color: var(--orange);
}

.subtitle {
    margin: 18px 0 0;
    color: var(--purple);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
}

.lede {
    max-width: 650px;
    margin: 22px 0 0;
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button.secondary {
    color: var(--white);
    background: var(--maroon);
    box-shadow: 0 4px 0 #4e0000;
}

.art-frame {
    position: relative;
    border: 10px solid var(--gold);
    border-radius: 28px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.art-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero .art-frame {
    aspect-ratio: 16 / 9;
}

.content-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    padding: clamp(42px, 6vw, 76px) 0;
}

.content-band.reverse {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
}

.content-band.reverse .text-panel {
    order: 2;
}

.text-panel h2 {
    color: var(--purple);
    font-size: clamp(34px, 5vw, 58px);
}

.theme-dark .text-panel h2 {
    color: var(--orange);
}

.feature-list,
.contact-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list li,
.contact-list li {
    position: relative;
    padding-left: 28px;
    font-size: clamp(18px, 2vw, 22px);
}

.feature-list li::before,
.contact-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #438cff;
}

.theme-dark .feature-list li::before {
    background: var(--green);
}

.contact-list a {
    font-weight: 900;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.contact-actions {
    margin-top: 28px;
}

.page-hero {
    background: #ffc873;
}

.page-hero.dark {
    background: var(--navy);
}

.page-inner {
    min-height: calc(100svh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.95fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    padding: clamp(36px, 6vw, 72px) 0;
}

.page-inner.single {
    grid-template-columns: minmax(0, 1fr);
}

.page-copy {
    position: relative;
    z-index: 1;
}

.page-copy p {
    max-width: 680px;
}

.image-card {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    object-fit: contain;
}

.contact-hero {
    background: var(--white);
}

.contact-hero .page-inner {
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1fr);
}

.contact-hero .image-card {
    box-shadow: none;
}

.flyer-hero {
    min-height: calc(100svh - 72px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.9)),
        linear-gradient(135deg, rgba(245, 155, 24, 0.34), rgba(107, 73, 181, 0.16));
}

.flyer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.72fr);
    gap: clamp(24px, 5vw, 60px);
    align-items: center;
    padding: clamp(36px, 6vw, 72px) 0;
}

.flyer-copy {
    min-width: 0;
}

.event-details {
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 6px solid var(--orange);
    background: var(--white);
    box-shadow: var(--shadow);
}

.event-details p {
    margin: 6px 0;
    font-size: clamp(17px, 2vw, 21px);
}

.flyer-preview {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.flyer-preview:hover,
.flyer-preview:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(31, 42, 68, 0.22);
    outline: 4px solid rgba(245, 155, 24, 0.34);
}

.flyer-preview img {
    width: 100%;
}

.site-footer {
    padding: 28px 16px 34px;
    color: rgba(22, 22, 22, 0.72);
    background: var(--white);
    text-align: center;
    border-top: 1px solid rgba(139, 0, 0, 0.12);
}

.theme-dark .site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #172137;
}

@media (max-width: 820px) {
    .nav {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nav-links a {
        min-height: 40px;
        padding: 9px 10px;
        font-size: 14px;
        text-align: center;
    }

    .hero {
        min-height: auto;
    }

    .home-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 54%, rgba(255, 250, 240, 0.72) 100%),
            url("Index.PNG") center bottom / contain no-repeat,
            var(--white);
    }

    .hero-inner,
    .page-inner,
    .content-band,
    .content-band.reverse,
    .contact-hero .page-inner,
    .flyer-inner {
        grid-template-columns: 1fr;
    }

    .content-band.reverse .text-panel {
        order: 0;
    }

    .hero-inner,
    .page-inner,
    .flyer-inner {
        padding-top: 34px;
    }

    .home-hero .hero-inner {
        min-height: min(760px, calc(100svh - 120px));
        align-items: start;
    }

    .feature-list.two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .nav {
        width: min(100% - 20px, 1120px);
    }

    .brand {
        font-size: 16px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 13px;
        border-radius: 7px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .hero-inner,
    .page-inner,
    .content-band,
    .flyer-inner {
        width: min(100% - 22px, 1120px);
    }

    .art-frame,
    .image-card {
        border-radius: 16px;
    }

    .art-frame {
        border-width: 6px;
    }
}
