:root {
    color-scheme: light;
    --ink: #171e20;
    --slate: #1b1e20;
    --paper: #f5f3f0;
    --white: #fffdfb;
    --accent: #a85f4d;
    --muted: #5d6467;
    --page-gutter: clamp(1.5rem, 4vw, 4rem);
}

* {
    box-sizing: border-box;
}

.site-page .container,
.site-page .container-fluid,
.site-page .container-sm,
.site-page .container-md,
.site-page .container-lg,
.site-page .container-xl,
.site-page .container-xxl {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #343a3d #0e1113;
    scrollbar-width: thin;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: #0e1113;
}

html::-webkit-scrollbar-thumb {
    background: #343a3d;
    border: 3px solid #0e1113;
    border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
    background: #4a5357;
}

body {
    background: #f3f1ee;
    color: var(--ink);
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    text-rendering: optimizeLegibility;
}

.site-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1,
h2,
h3,
.display-6 {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.045em;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(183, 109, 93, 0.6);
    outline-offset: 4px;
}

.btn {
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    padding: .9rem 1.5rem;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-light {
    box-shadow: 0 10px 20px rgba(23, 30, 34, 0.12);
}

.btn-outline-light {
    border-width: 1.5px;
    background: rgba(255,255,255,0.04);
}

.site-nav {
    background: rgba(14, 17, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-page:not(.home-page) .site-nav {
    background: #0e1113;
}

.site-page:not(.home-page):not(.admin-dashboard-page) .site-nav {
    background: var(--slate);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    margin-bottom: -5rem;
}

.site-page:not(.home-page):not(.admin-dashboard-page) .page-intro {
    padding-top: calc(clamp(2.5rem, 6vw, 4rem) + 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.home-page .home-hero .site-nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.navbar-brand {
    color: var(--white);
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -.04em;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--white);
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    letter-spacing: .11em;
    padding: .65rem .85rem;
    text-transform: uppercase;
    transition: color .2s ease, opacity .2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--white);
}

.site-nav .navbar-toggler {
    background-color: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .85);
}

.site-nav .navbar-toggler:focus {
    box-shadow: none;
}

.site-nav .navbar-toggler:focus-visible {
    outline: 3px solid rgba(183, 109, 93, 0.8);
    outline-offset: 3px;
}

.site-nav .navbar-toggler-icon {
    filter: invert(1);
}

.home-hero {
    background-color: var(--slate);
    background-image: linear-gradient(180deg, rgba(14, 17, 19, .4) 0%, rgba(14, 17, 19, .2) 24%, rgba(14, 17, 19, .06) 52%, rgba(14, 17, 19, 0) 100%), linear-gradient(90deg, rgba(17, 18, 18, 0.78), rgba(17, 18, 18, 0.2)), url("/static/images/TafelPhoto.webp");
    background-position: center top, center 38%, center 38%;
    background-repeat: no-repeat;
    background-size: 100% 240px, cover, cover;
    color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: min(780px, 92vh);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-hero {
        background-position: center top, center top, center top;
        background-size: 100% 240px, cover, calc(100% + 240px) auto;
    }
}

.home-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.12) 100%);
    content: "";
    inset: 0;
    position: absolute;
    pointer-events: none;
}

.home-hero-content {
    margin-bottom: auto;
    margin-top: auto;
    padding-bottom: 6rem;
    padding-top: 5rem;
    position: relative;
    z-index: 1;
}

.home-hero-content h1 {
    font-family: "Cormorant Garamond", "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: .9;
    margin: .25rem 0 1.5rem;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.eyebrow {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .17em;
    margin-bottom: .8rem;
    text-transform: uppercase;
}

.home-hero .eyebrow {
    color: rgba(255, 255, 255, .82);
}

.hero-subtitle {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    max-width: 34rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.45;
    font-weight: 500;
}

.hero-scroll-link {
    bottom: 1.5rem;
    color: rgba(255, 255, 255, .9);
    font-size: .75rem;
    letter-spacing: .08em;
    position: absolute;
    right: max(1.5rem, calc((100vw - 1320px) / 2));
    text-decoration: none;
    text-transform: uppercase;
    opacity: .9;
}

.hero-scroll-link span {
    margin-left: .5rem;
}

.section-padding {
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    padding-top: clamp(3.5rem, 7vw, 6rem);
}

.content-narrow {
    max-width: 980px;
}

.praise-section {
    background: var(--paper);
}

.praise-section .eyebrow,
.discography-section .eyebrow,
.page-intro .eyebrow,
.recording-card .eyebrow,
.empty-state .eyebrow,
.contact-card .eyebrow {
    color: var(--accent);
}

.praise-primary {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: clamp(1rem, 3vw, 3rem) 0;
}

.praise-primary blockquote {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3.6vw, 2.7rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 1.2rem 0;
    max-width: 58rem;
    text-wrap: balance;
}

.praise-support {
    background-color: var(--slate);
    background-image: linear-gradient(180deg, rgba(18, 20, 21, .2), rgba(18, 20, 21, .82)), url("/static/images/af-messiah.webp");
    background-position: center, 42.5% 15%;
    background-size: cover, 120% auto;
    border-radius: 1rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    min-height: 22rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.praise-support .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.praise-support blockquote {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.35;
    margin: auto 0 1.25rem;
    text-wrap: balance;
}

.quote-credit {
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .04em;
    margin-bottom: 0;
}

.praise-support .quote-credit {
    color: rgba(255, 255, 255, .7);
}

.discography-section {
    background: var(--paper);
}

.upcoming-section {
    background: rgba(240, 235, 228, 0.7);
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.1rem;
}

.section-heading h2,
.home-contact h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin-bottom: 0;
}

.text-link {
    color: var(--ink);
    display: inline-block;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration-thickness: 1px;
    text-underline-offset: .25rem;
    transition: opacity .2s ease, transform .2s ease;
}

.text-link:hover {
    opacity: .82;
    transform: translateX(2px);
}

.text-link span {
    margin-left: .25rem;
}

.recording-card {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(31, 42, 45, 0.06);
    border-top: 3px solid var(--slate);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.1rem);
    border-radius: 1rem;
}

.recording-card-featured {
    background: rgba(234, 225, 217, 0.9);
    border-color: var(--accent);
}

.recording-artwork {
    aspect-ratio: 1;
    border-radius: .6rem;
    margin-bottom: 1.5rem;
    object-fit: cover;
    width: 100%;
}

.recording-card h2,
.recording-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.recording-card p:not(.eyebrow):not(.recording-note) {
    color: #555b5b;
    line-height: 1.7;
}

.recording-card .text-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.2rem;
}

.recording-note {
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-list {
    border-top: 1px solid rgba(31, 42, 45, 0.12);
}

.event-card {
    align-items: center;
    border-bottom: 1px solid rgba(31, 42, 45, 0.12);
    border-radius: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(8rem, .28fr) 1fr auto;
    padding: 1.5rem .5rem;
    transition: background-color .2s ease, transform .2s ease;
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.event-date {
    color: var(--accent);
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.event-date time {
    display: block;
}

.event-date .event-time {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-top: .3rem;
}

.event-details h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    margin-bottom: .35rem;
}

.event-details .eyebrow {
    color: var(--accent);
    margin-bottom: .45rem;
}

.event-details p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 0;
}

.event-link {
    white-space: nowrap;
}

.event-empty {
    background: #eeece6;
    color: var(--muted);
    margin: 0;
    padding: 1.5rem;
}

.home-contact {
    background: linear-gradient(180deg, rgba(18,20,21,0.94) 0%, rgba(17,19,20,1) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.home-contact::before {
    background: radial-gradient(circle at center, rgba(168, 95, 77, 0.2), transparent 38%);
    content: "";
    inset: 0;
    position: absolute;
    pointer-events: none;
}

.home-contact > .container {
    position: relative;
    z-index: 1;
}

.home-contact .eyebrow {
    color: rgba(255, 255, 255, .73);
}

.page-intro {
    background: var(--slate);
    color: var(--white);
    padding: clamp(4rem, 9vw, 7rem) 0;
}

.page-intro h1 {
    font-size: clamp(3rem, 6.5vw, 5.4rem);
    line-height: 1.02;
    margin: 0;
}

.page-intro .eyebrow {
    color: #ddb8a6;
}

.page-lede {
    color: rgba(255, 255, 255, .78);
    font-size: 1.1rem;
    margin: 1.25rem 0 0;
    max-width: 36rem;
}

.about-photo-frame {
    aspect-ratio: 4 / 5;
    max-height: 700px;
    overflow: hidden;
}

.about-photo {
    aspect-ratio: 4 / 5;
    display: block;
    height: auto;
    max-height: 700px;
    object-fit: cover;
    transform: translateY(-20px) scale(1.08);
    transform-origin: center 35%;
    width: 100%;
}

.photo-credit {
    color: var(--muted);
    font-size: .75rem;
    margin: .65rem 0 0;
    text-align: right;
}

.bio-copy {
    font-size: 1rem;
    line-height: 1.85;
}

.bio-lede {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.4;
}

.bio-copy h2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.highlight-list {
    padding-left: 1.2rem;
}

.highlight-list li {
    margin-bottom: .7rem;
    padding-left: .25rem;
}

.highlight-list + .text-link {
    margin-top: .8rem;
}

.events-content,
.media-content,
.contact-content,
.about-content {
    padding-bottom: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(4rem, 8vw, 7rem);
}

.events-content .event-card {
    padding: 2rem .5rem;
}

.empty-state {
    background: var(--white);
    border-left: 4px solid var(--accent);
    margin: 0 auto;
    max-width: 800px;
    padding: clamp(2rem, 6vw, 4rem);
}

.empty-state h2,
.contact-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.empty-state > p:not(.eyebrow),
.contact-card > p:not(.eyebrow) {
    color: #555b5b;
    line-height: 1.75;
    max-width: 42rem;
}

.contact-card {
    background: linear-gradient(180deg, #f2eee9 0%, #eae2d9 100%);
    border: 1px solid rgba(31, 42, 45, 0.04);
    border-radius: 1.2rem;
    box-shadow: none;
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(2rem, 7vw, 4rem);
}

.admin-page {
    padding-bottom: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(3rem, 6vw, 5rem);
}

.admin-page > .contact-card {
    margin: 2rem auto 0;
}

.admin-heading,
.admin-list-heading,
.admin-entry {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.admin-heading h1,
.admin-list-heading h2 {
    margin-bottom: 0;
}

.admin-heading h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.admin-list-section {
    margin-top: clamp(3rem, 6vw, 5rem);
}

.admin-list-heading {
    margin-bottom: 1.25rem;
}

.admin-entry-list {
    border-top: 1px solid rgba(31, 42, 45, 0.12);
}

.admin-entry {
    border-bottom: 1px solid rgba(31, 42, 45, 0.12);
    padding: 1.25rem .5rem;
}

.admin-entry .eyebrow {
    margin-bottom: .4rem;
}

.admin-entry h3 {
    font-size: 1.35rem;
    margin: 0;
}

.admin-entry p:not(.eyebrow) {
    color: var(--muted);
    margin: .35rem 0 0;
}

.admin-form-card {
    max-width: 860px;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form .form-label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, .78);
    border: 1px solid #c9c4ba;
    border-radius: .85rem;
    box-shadow: inset 0 1px 2px rgba(12, 19, 24, 0.02);
    padding: .8rem .9rem;
}

.contact-form .form-control:focus {
    border-color: rgba(183, 109, 93, 0.75);
    box-shadow: 0 0 0 .25rem rgba(183, 109, 93, 0.12);
}

.form-notice {
    border-left: 4px solid;
    margin-top: 1.5rem;
    padding: .9rem 1rem;
}

.form-notice-success {
    background: #e5eee5;
    border-color: #426b4a;
}

.form-notice-error {
    background: #f5e6e2;
    border-color: #9b453a;
}

.site-footer {
    background: #252a2c;
    color: rgba(255, 255, 255, .75);
    font-size: .82rem;
    padding: 1.5rem 0;
}

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

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: .2rem;
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding-top: .75rem;
    }

    .site-nav .navbar-nav {
        align-items: flex-end;
    }

    .site-nav .nav-link {
        text-align: right;
    }

    .home-page .home-hero .site-nav {
        left: auto;
        position: relative;
        top: auto;
    }

}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .home-hero {
        background-image: linear-gradient(180deg, rgba(14, 17, 19, .5) 0%, rgba(14, 17, 19, .3) 24%, rgba(14, 17, 19, .08) 52%, rgba(14, 17, 19, 0) 100%), linear-gradient(90deg, rgba(17, 18, 18, 0.78), rgba(17, 18, 18, 0.2)), url("/static/images/TafelPhoto.webp");
        background-position: center top, center top, 65% top;
        background-size: 100% 320px, cover, auto 110%;
        min-height: 85vh;
    }

    .home-hero-content {
        padding-bottom: 5rem;
        padding-top: 3rem;
        transform: translateY(-37px);
    }

    .home-hero-content h1 {
        font-size: clamp(2.6rem, 9vw, 3.4rem);
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .admin-heading,
    .admin-list-heading,
    .admin-entry {
        align-items: flex-start;
    }

    .admin-entry {
        flex-direction: column;
        gap: .8rem;
    }

    .event-card {
        align-items: start;
        gap: .55rem 1rem;
        grid-template-columns: 1fr auto;
    }

    .event-details {
        display: grid;
        gap: .2rem;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .event-details h3 {
        font-size: 2rem;
        grid-row: 1;
        margin-bottom: .2rem;
    }

    .event-details .eyebrow {
        grid-row: 2;
    }

    .event-meta {
        display: flex;
        grid-row: 3;
    }

    .event-details .eyebrow,
    .event-meta p {
        margin: 0;
    }

    .event-date {
        align-items: baseline;
        display: flex;
        gap: .5rem;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .event-date time {
        display: inline;
    }

    .event-date .event-time {
        margin-top: 0;
    }

    .event-link {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .hero-scroll-link {
        left: 1.5rem;
        right: auto;
    }
}
