:root {
    --blue: #8bb7c4;
    --red: #c7381d;
    --ink: #272524;
    --muted: #6e6c69;
    --line: #e2e2df;
    --serif: 'Cinzel', Georgia, serif;
    --sans: 'Open Sans', Arial, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #266071;
    outline-offset: 6px
}

button {
    color: inherit
}

a {
    color: inherit
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 12px;
    background: white;
    transform: translateY(-160%)
}

.skip-link:focus {
    transform: translateY(0)
}

.header {
    height: clamp(100px, 9.2vw, 150px);
    padding: 12px 4.4% 12px 6.2%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: block;
    width: clamp(220px, 20vw, 330px)
}

.brand img {
    display: block;
    width: 100%;
    height: auto
}

.contact-link {
    border: 0;
    background: none;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 15px;
    min-height: 44px;
    padding: 10px 0
}

.hero {
    position: relative
}

.hero-photo {
    position: relative;
    aspect-ratio: 2880/930;
    overflow: hidden;
    background: var(--blue)
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.hero h1 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #fff;
    font: 700 clamp(26px, 3.2vw, 64px)/1.25 var(--serif);
    text-shadow: 0 2px 12px rgb(0 0 0 / .55)
}

.ribbon {
    height: 45px;
    background: linear-gradient(to bottom, var(--blue) 0 33.333%, #fff 33.333% 66.666%, var(--red) 66.666%)
}

.tickets {
    padding: 26px 24px 52px
}

.tickets>h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 600;
    color: #70706e;
    text-align: center;
    margin: 0 0 32px
}

.ticket-panel {
    max-width: 1140px;
    min-height: 354px;
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 2px;
    display: grid;
    place-items: center
}

.ticket-placeholder {
    text-align: center;
    padding: 36px 24px;
    max-width: 640px
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #527582
}

.eyebrow span {
    margin: 0 12px
}

.ticket-placeholder h3 {
    font: 500 clamp(21px, 2vw, 28px)/1.5 var(--serif);
    margin: 14px 0 8px
}

.ticket-placeholder p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8
}

.ticket-placeholder .availability {
    font-size: 13px;
    margin: 18px auto 22px;
    max-width: 390px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--ink);
    color: white;
    border: 1px solid var(--ink);
    padding: 13px 22px;
    min-height: 46px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s
}

.button:hover {
    background: #435e66;
    border-color: #435e66
}

.footer {
    background: var(--blue);
    padding: 26px 2.2% 0;
    color: white;
    text-align: center
}

.crest {
    width: 190px;
    margin: 0 auto
}

.crest img {
    display: block;
    width: 100%;
    height: auto
}

.motto {
    font: 700 clamp(16px, 1.5vw, 23px)/1.4 var(--serif);
    margin: 25px 12px 34px
}

.footer-bottom {
    border-top: 1px solid #65919e;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    gap: 20px;
    font-size: 14px;
    font-weight: 600
}

.footer-bottom p {
    margin: 0
}

.footer-bottom nav {
    display: flex;
    align-items: center;
    gap: 12px
}

.footer-bottom button {
    border: 0;
    background: none;
    padding: 10px 0;
    color: white;
    font-size: 14px;
    font-weight: 600
}

.footer-bottom button:hover,
.contact-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px
}

dialog {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 30px;
    max-width: 560px;
    width: calc(100% - 32px);
    color: var(--ink)
}

dialog::backdrop {
    background: rgb(20 30 34 / .55);
    backdrop-filter: blur(3px)
}

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

.close {
    border: 0;
    background: transparent;
    font-size: 30px;
    min-width: 44px;
    min-height: 44px
}

dialog h2 {
    font: 500 27px var(--serif);
    margin: 16px 0
}

dialog p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted)
}

dialog form {
    margin-top: 24px
}

.ticket-panel.has-pretix {
    display: block;
    padding: 24px;
    min-width: 0
}

.has-pretix pretix-widget {
    display: block;
    width: 100%;
    min-width: 0
}

.ticket-external {
    padding: 16px;
    text-align: center;
    font-size: 13px
}

.ticket-external a {
    text-underline-offset: 4px
}

@media(min-width:1700px) {
    .ticket-panel {
        max-width: 76%;
        min-height: 24vw
    }

    .tickets {
        padding-bottom: 3.5vw
    }
}

@media(max-width:600px) {
    .header {
        height: 100px;
        padding: 15px 20px;
        gap: 12px
    }

    .brand {
        width: 211px;
        max-width: 68%
    }

    .contact-link {
        font-size: 12px
    }

    .hero {
        background: #f5f7f7
    }

    .hero-photo {
        aspect-ratio: 4/3
    }

    .hero-photo img {
        object-position: 48% center
    }

    .hero h1 {
        inset: auto 0 0;
        padding: 60px 24px 28px;
        font: 600 clamp(25px, 7vw, 36px)/1.3 var(--serif);
        background: linear-gradient(transparent, rgb(0 0 0 / .55))
    }

    .ribbon {
        height: 24px
    }

    .tickets {
        padding: 29px 20px 36px
    }

    .tickets>h2 {
        font-size: 29px;
        margin-bottom: 23px
    }

    .ticket-panel {
        min-height: 340px
    }

    .ticket-placeholder {
        padding: 30px 18px
    }

    .ticket-placeholder h3 {
        font-size: 22px;
        line-height: 1.5;
        max-width: 270px;
        margin: 15px auto 10px
    }

    .ticket-placeholder .availability {
        font-size: 13px;
        margin: 18px auto 24px
    }

    .button {
        width: 100%;
        gap: 16px
    }

    .footer {
        padding: 28px 20px 0
    }

    .crest {
        width: 139px
    }

    .motto {
        font-size: 15px;
        line-height: 1.65;
        margin: 22px 0 27px
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 14px;
        padding: 20px 0 26px;
        min-height: 120px;
        font-size: 11px
    }

    .footer-bottom nav {
        gap: 15px
    }

    .footer-bottom button {
        font-size: 12px
    }

    dialog {
        padding: 22px
    }

    .ticket-panel.has-pretix {
        padding: 12px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}