:root {
    --maroon: #9c1e08;
    --navy: #131d3b;
    --line: #e9e2e0;
    --soft: rgba(19, 29, 59, .06);
    --shadow: 0 12px 32px -14px rgba(19, 29, 59, .28);
    --radius: 1rem
}

* {
    -webkit-tap-highlight-color: transparent
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--navy);
    background: #fff;
    font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
    line-height: 1.7;
    -webkit-text-size-adjust: 100%
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em
}

h1 {
    font-size: clamp(1.6rem, 1rem + 2.8vw, 2.9rem)
}

h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem)
}

h3 {
    font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem)
}

[id] {
    scroll-margin-top: 100px
}

a {
    color: var(--navy);
    text-decoration-color: var(--maroon);
    text-underline-offset: 3px;
    transition: text-decoration-thickness .15s
}

a:hover {
    color: var(--navy);
    text-decoration-thickness: 2px
}

img,
iframe {
    max-width: 100%
}

main {
    min-height: 60vh
}


/* navbar: frosted glass */

.site-nav {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(19, 29, 59, .08);
    padding: .4rem 0
}

.site-nav .nav-link {
    color: var(--navy);
    font-weight: 600;
    padding: .5rem .85rem;
    font-size: .97rem;
    border-radius: 999px;
    transition: background .2s
}

.site-nav .nav-link:hover {
    background: var(--soft);
    color: var(--navy)
}

.site-nav .nav-link.active {
    background: rgba(156, 30, 8, .09);
    color: var(--navy)
}

.navbar-toggler {
    border: 1px solid rgba(19, 29, 59, .25);
    border-radius: .7rem
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(156, 30, 8, .2)
}

.nav-split {
    display: flex;
    align-items: center;
    justify-content: center
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none
}

.sub-menu .dropdown-item {
    color: var(--navy);
    padding: .55rem 1rem;
    white-space: normal;
    border-radius: .6rem
}

.sub-menu .dropdown-item:hover,
.sub-menu .dropdown-item:focus {
    background: var(--soft);
    color: var(--navy)
}

.sub-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    padding: 0;
    border-radius: 50%
}

.sub-toggle::before,
.nav-link.has-caret::after {
    content: "";
    display: inline-block;
    width: .5em;
    height: .5em;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s
}

.sub-toggle::before {
    color: var(--navy);
    position: absolute;
    top: 11px;
    left: 13px
}

.has-sub.open>.sub-menu {
    display: block;
    background: #faf6f5;
    border-radius: .8rem;
    margin: .2rem .5rem .5rem;
    padding: .35rem
}

.has-sub.open>.nav-split .sub-toggle::before {
    transform: rotate(225deg)
}

@media (max-width:991.98px) {
    .site-nav .navbar-collapse {
        padding: .6rem 0 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto
    }
    .site-nav .nav-link {
        font-size: 1.05rem;
        padding: .7rem 1rem
    }
    .sub-menu .dropdown-item {
        padding: .65rem 1rem
    }
}

@media (min-width:992px) {
    .has-sub {
        position: relative
    }
    .sub-toggle {
        display: none
    }
    .nav-split .nav-link::after {
        content: "";
        display: inline-block;
        width: .42em;
        height: .42em;
        margin-left: .45em;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg) translateY(-2px)
    }
    .sub-menu {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 260px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 1rem;
        padding: .5rem;
        box-shadow: var(--shadow);
        text-align: left;
        z-index: 1050
    }
    .has-sub:hover>.sub-menu,
    .has-sub:focus-within>.sub-menu {
        display: block;
        animation: pop .18s ease-out
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(6px)
    }
    to {
        opacity: 1;
        transform: none
    }
}


/* hero */

.hero {
    position: relative;
    background: radial-gradient(70% 90% at 50% 0%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .9)), url(../img/header.jpg) center/cover no-repeat;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 18px 40px -28px rgba(19, 29, 59, .35);
    padding: clamp(3rem, 9vw, 6.5rem) 0;
    text-align: center
}

.hero h1 {
    color: var(--navy);
    max-width: 920px;
    margin: 0 auto 1rem;
    text-wrap: balance
}

.hero .theme {
    color: var(--navy);
    font-weight: 600;
    font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem);
    max-width: 820px;
    margin: 0 auto 1.1rem;
    text-wrap: balance
}

.hero .when {
    display: inline-block;
    font-weight: 700;
    font-size: clamp(1rem, .95rem + .45vw, 1.3rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .4rem 1.2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem
}

.hero .org {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin: 1.75rem 0 0;
    text-align: center
}

.org-logo {
    height: clamp(56px, 12vw, 90px);
    width: auto;
    max-width: 80%;
    object-fit: contain
}

.org-name {
    font-size: clamp(1rem, .95rem + .5vw, 1.25rem)
}

.org-place {
    font-size: .95rem
}

.btn-brand {
    display: inline-block;
    background: linear-gradient(135deg, var(--maroon), #c2300f);
    color: #fff;
    border: 0;
    font-weight: 600;
    padding: .8rem 1.9rem;
    border-radius: 999px;
    box-shadow: 0 12px 24px -10px rgba(156, 30, 8, .6);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--navy), #27356b);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -10px rgba(19, 29, 59, .6)
}


/* sections */

.section {
    padding: clamp(2rem, 5vw, 3.5rem) 0
}

.section-title {
    position: relative;
    padding-bottom: .9rem;
    margin-bottom: 1.6rem
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--maroon), var(--navy))
}

.page-head {
    padding: clamp(2rem, 5vw, 3.2rem) 0 1.4rem;
    background: linear-gradient(180deg, #faf6f5, #fff);
    border-bottom: 1px solid var(--line)
}

.page-head h1 {
    margin: 0
}


/* cards */

.date-card,
.track-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    height: 100%;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s
}

.date-card::before,
.track-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--navy))
}

.date-card:hover,
.track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -16px rgba(19, 29, 59, .35)
}

.date-card .label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    opacity: .75;
    margin-top: .2rem
}

.date-card .value {
    font-size: 1.25rem;
    font-weight: 700
}

.track-card h3 {
    margin-bottom: .8rem
}

ul.marked {
    padding-left: 1.2rem
}

ul.marked li {
    margin-bottom: .4rem
}

ul.marked li::marker {
    color: var(--maroon)
}

.person {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--maroon);
    border-radius: .8rem;
    padding: .85rem 1rem;
    margin-bottom: .9rem;
    transition: box-shadow .2s
}

.person:hover {
    box-shadow: var(--shadow)
}

.person strong {
    display: block;
    color: var(--navy)
}


/* tables */

.table-responsive {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.table {
    --bs-table-color: var(--navy);
    --bs-table-border-color: var(--line);
    --bs-table-bg: transparent;
    margin: 0
}

.table td {
    vertical-align: top;
    padding: .8rem 1rem
}

.table td:first-child {
    font-weight: 600;
    white-space: nowrap
}

.table tr:hover td {
    background: #faf6f5
}

@media (max-width:575.98px) {
    .table td:first-child {
        white-space: normal
    }
    .table {
        font-size: .95rem
    }
}


/* map */

.map-wrap {
    position: relative;
    padding-bottom: min(56%, 420px);
    height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}


/* footer */

.site-footer {
    position: relative;
    background: #faf6f5;
    border-radius: 2rem 2rem 0 0;
    padding: 2.8rem 0 1rem;
    margin-top: 3rem;
    font-size: .98rem
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 90px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: linear-gradient(90deg, var(--maroon), var(--navy))
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: .5rem
}

.footer-head {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: .7rem
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-links li {
    margin-bottom: .3rem
}

.site-footer a {
    color: var(--navy);
    text-decoration: none;
    word-break: break-word
}

.site-footer a:hover {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--maroon);
    text-underline-offset: 4px
}

.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 1.8rem;
    padding-top: 1rem;
    text-align: center;
    font-size: .9rem
}

:focus-visible {
    outline: 3px solid var(--maroon);
    outline-offset: 2px;
    border-radius: .4rem
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    * {
        transition: none!important;
        animation: none!important
    }
}