:root {
    --black: #171717;
    --gray: #666666;
    --light-gray: #f6f5f2;
    --border: #dedbd6;
    --accent: #721c2c;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    /*
     * Keep anchored sections below the sticky navigation bar.
     */
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

h1,
h2,
h3,
.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
           NAVIGATION
        ========================= */

body > header {
    position: sticky;
    top: 0;

    /*
     * Keep the navigation above every scrolling page section.
     */
    isolation: isolate;
    z-index: 9999;

    /*
     * Fully opaque so scrolling page content cannot
     * show through the navigation bar.
     */
    background: var(--white);

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-logo {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
}


/*
 * Solid navigation paint layer.
 *
 * The header itself can participate in a stacking context created elsewhere
 * on the page. This pseudo-element guarantees an opaque white layer beneath
 * the navigation links but above all scrolling page content.
 */
body > header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--white);
}

.nav {
    position: relative;
    z-index: 1;
}

/* =========================
           HERO VIDEO
        ========================= */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    cursor: pointer;

    background:
        linear-gradient(rgba(0, 0, 0, 0.46),
            rgba(0, 0, 0, 0.46)),
        url("./images/chorus-poster.jpg") center center / cover no-repeat;
}

.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /* Temporarily blur the performers */
    filter: blur(18px);

    /* Prevent blurred edges from showing */
    transform: scale(1.06);

    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.08);

    z-index: 1;

    transition: opacity 0.8s ease;

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(900px, calc(100% - 40px));

    text-align: center;
    color: white;

    opacity: 1;
    transform: translateY(0);

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

.hero-content.hide {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.hero-label {
    margin: 0 0 16px;

    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.92);

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: normal;
    line-height: 0.98;

    color: white;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-text {
    max-width: 700px;

    margin: 28px auto 0;

    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;

    color: rgba(255, 255, 255, 0.95);

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;
    margin-top: 34px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 160px;
    padding: 13px 24px;

    border: 1px solid white;
    border-radius: 3px;

    font-size: 0.95rem;
    font-weight: 600;

    letter-spacing: 0.04em;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.hero-actions a:hover {
    transform: translateY(-2px);
}

.hero-actions .primary {
    background: white;
    color: var(--black);
}

.hero-actions .primary:hover {
    background: #f6f5f2;
}

.hero-actions .secondary {
    background: rgba(0, 0, 0, 0.18);
    color: white;

    backdrop-filter: blur(3px);
}

.hero-actions .secondary:hover {
    background: white;
    color: var(--black);
}

.hero-scroll {
    position: absolute;
    z-index: 3;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.75rem;

    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7);
}

/* =========================
           GENERIC SECTIONS
        ========================= */

section:not(.hero) {
    padding: 88px 0;
}

.eyebrow {
    color: var(--accent);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading {
    margin: 12px 0 20px;

    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.intro {
    max-width: 800px;
    margin: 0 auto;

    text-align: center;
}

.intro p {
    margin: 0;

    color: #4b4b4b;
    font-size: 18px;
}

/* =========================
   UPCOMING PERFORMANCES
========================= */

#performance-list {
    margin-top: 44px;
}


.event {
    display: grid;

    grid-template-columns:
        110px 1fr;

    gap: 28px;

    align-items: center;

    padding: 30px 0;

    border-top:
        1px solid var(--border);
}


.event:last-child {
    border-bottom:
        1px solid var(--border);
}


.event-date {
    text-align: center;
}


.event-date strong {
    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 48px;

    font-weight: normal;
}


.event-date span {
    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.15em;
}


.event h3 {
    margin: 0 0 7px;

    font-size: 28px;
}


.event p {
    margin: 4px 0;

    color: var(--gray);
}


.no-performances {
    margin: 44px 0 0;

    padding: 30px 0;

    color: var(--gray);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

/* =========================
           BUTTON
        ========================= */

.button {
    display: inline-block;

    padding: 13px 19px;

    background: var(--accent);
    color: white;

    text-decoration: none;

    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition: 0.2s ease;
}

.button:hover {
    opacity: 0.88;
}

/* =========================
   CHORUS PHOTO
========================= */

.photo-section {
    /*
     * Equal spacing between the section dividers
     * and the photo/caption area.
     */
    padding: 72px clamp(28px, 6vw, 110px);

    background: #ffffff;

    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);

    text-align: center;
}


.chorus-photo {
    width: 100%;
    max-width: 1200px;

    height: 520px;

    margin: 0 auto;

    background-image:
        url("../images/chorus-poster.jpg");

    background-size: cover;
    background-position: center;

    filter: blur(12px);

    transform: scale(1.01);
}


.photo-caption {
    margin: 14px 0 0;

    color: var(--gray);

    font-size: 12px;

    letter-spacing: 0.08em;
}

/* =========================
           JOIN
        ========================= */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.info-card {
    padding: 42px;

    background: var(--light-gray);
}

.info-card h3 {
    margin-top: 0;

    font-size: 28px;
}

.info-card p {
    color: #555555;
}

/* =========================
   LEADERSHIP GROUPS
========================= */

.leadership-group {
    margin-top: 48px;
}

.leadership-group:first-child {
    margin-top: 36px;
}

.leadership-group-title {
    margin: 0 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;

    font-weight: normal;

    color: var(--accent);
}

.board-grid {
    margin-top: 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.board-member {
    padding-top: 10px;

    border-top: 2px solid var(--black);
}

.board-member h4 {
    display: block;

    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    font-weight: normal;
}

.board-member p {
    display: block;

    margin: 5px 0 0;

    color: var(--accent);

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================
           SUPPORT
        ========================= */

.support {
    text-align: center;

    background: var(--light-gray);
}

.support p {
    max-width: 680px;

    margin: 0 auto 28px;

    color: #555555;
}

/* =========================
           FOOTER
        ========================= */

footer {
    padding: 54px 0 34px;

    text-align: center;
}

.footer-logo {
    width: min(340px, 75vw);

    height: auto;
}

.footer-links {
    margin-top: 24px;

    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a {
    color: #555555;

    text-decoration: none;

    font-size: 12px;
}

.copyright {
    margin-top: 20px;

    color: #888888;

    font-size: 11px;
}

/* =========================
           TABLET / MOBILE
        ========================= */

@media (max-width: 800px) {

    html {
        scroll-padding-top: 80px;
    }

    .nav {
        min-height: 62px;
    }

    .brand {
        font-size: 17px;
    }

    .hero {
        min-height: calc(100svh - 62px);
    }

    section:not(.hero) {
        padding: 68px 0;
    }

    .event {
        grid-template-columns: 80px 1fr;
    }

    .event-action {
        grid-column: 1 / -1;
    }

    .two-column {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .board-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-card {
        padding: 30px;
    }

    .photo-section {
        padding:
            32px 24px;
    }
}

@media (max-width: 700px) {

    .hero-content {
        width:
            min(calc(100% - 30px),
                650px);
    }

    .hero h1 {
        font-size:
            clamp(2.7rem,
                13vw,
                4.5rem);

        line-height: 1;
    }

    .hero-text {
        margin-top: 20px;

        font-size: 1rem;
    }

    .hero-actions {
        margin-top: 26px;
    }

    .hero-actions a {
        width: 100%;

        max-width: 280px;
    }
}

@media (max-width: 500px) {

    .board-grid {
        grid-template-columns: 1fr;
    }

    .brand {
        max-width: 190px;

        line-height: 1.1;
    }

    .photo-section {
        padding:
            24px 16px;
    }
}

/* =========================
           REDUCED MOTION
        ========================= */

@media (prefers-reduced-motion: reduce) {

    .hero-video {
        display: none;
    }

    .hero {
        cursor: default;

        background:
            linear-gradient(rgba(0, 0, 0, 0.46),
                rgba(0, 0, 0, 0.46)),
            url("./images/chorus-poster.jpg") center center / cover no-repeat;
    }

    .hero-actions a,
    .hero-content {
        transition: none;
    }
}

/* =========================
   JOIN PAGE
========================= */

.join-container {
    width: min(820px, calc(100% - 40px));
}

.join-intro {
    padding: 100px 0 70px;
    text-align: center;
}

.join-heading {
    margin: 16px 0 22px;

    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
}

.join-lead {
    max-width: 680px;
    margin: 0 auto;

    color: var(--gray);
    font-size: 1.15rem;
}

.join-requirement {
    display: inline-block;

    margin: 30px auto 0;
    padding: 10px 18px;

    border: 1px solid var(--border);

    font-size: 0.9rem;
    font-weight: 600;
}

.join-application {
    background: var(--light-gray);
}

.form-heading {
    margin-bottom: 44px;
}

.form-heading h2 {
    margin: 12px 0 14px;

    font-size: clamp(2rem, 5vw, 3.25rem);
}

.form-heading p {
    max-width: 650px;
    margin: 0;

    color: var(--gray);
}

.join-form {
    padding: 42px;

    background: var(--white);
    border: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 26px;
}

.form-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #c9c6c1;
    border-radius: 0;

    background: #ffffff;
    color: var(--black);

    font: inherit;
}

.form-field textarea {
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.age-confirmation {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin-top: 30px;
    padding-top: 26px;

    border-top: 1px solid var(--border);
}

.age-confirmation input {
    width: 18px;
    height: 18px;

    margin-top: 2px;
}

.form-submit {
    margin-top: 30px;
}

.form-submit button {
    border: 0;
    cursor: pointer;
}

.form-submit button:disabled,
.button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-status-note {
    margin: 12px 0 0;

    color: var(--gray);
    font-size: 0.82rem;
}

.member-release {
    text-align: center;
}

.member-release p {
    max-width: 650px;

    margin:
        0 auto 30px;

    color: var(--gray);
}

@media (max-width: 700px) {

    .join-intro {
        padding: 70px 0 50px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .join-form {
        padding: 26px 20px;
    }
}

/* =========================
   MEDIA & PHOTOGRAPHY POLICY
========================= */

.media-policy-section {
    position: relative;
    z-index: 0;

    background: var(--white);
}

.media-policy-section .container {
    width: min(820px, calc(100% - 40px));
}


/* Policy heading */

.media-policy-section .section-header {
    margin-bottom: 42px;
}

.media-policy-section .section-header h2 {
    margin: 12px 0 16px;

    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.1;
}

.policy-meta {
    margin: 0;

    color: var(--gray);

    font-size: 0.85rem;
    line-height: 1.7;
}


/* Policy body */

.policy-content {
    color: #444444;

    font-size: 1rem;
    line-height: 1.75;
}

.policy-content>p {
    margin: 0 0 22px;
}

.policy-content h3 {
    margin: 42px 0 12px;

    color: var(--black);

    font-size: 1.45rem;
    line-height: 1.25;
}

.policy-content ul {
    margin: 8px 0 26px;
    padding-left: 24px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content strong {
    color: var(--black);
}


/* Give each policy topic a subtle visual break */

.policy-content h3:not(:first-of-type) {
    padding-top: 8px;
}


/* Media authorization callout */

.media-form-callout {
    margin-top: 54px;
    padding: 38px;

    background: var(--light-gray);

    border-top: 3px solid var(--accent);
}

.media-form-callout h3 {
    margin: 0 0 14px;

    font-size: 1.7rem;
}

.media-form-callout p {
    max-width: 650px;

    margin: 0 0 24px;
}

.media-form-callout .button {
    margin-top: 4px;
}

.media-form-callout .form-instructions {
    margin: 22px 0 0;

    color: var(--gray);

    font-size: 0.88rem;
    line-height: 1.6;
}


/* Improve keyboard accessibility */

.media-form-callout .button:focus-visible {
    outline: 3px solid var(--black);
    outline-offset: 3px;
}


/* =========================
   MEDIA POLICY - MOBILE
========================= */

@media (max-width: 700px) {

    .media-policy-section .section-header {
        margin-bottom: 32px;
    }

    .policy-content {
        font-size: 0.96rem;
    }

    .policy-content h3 {
        margin-top: 34px;

        font-size: 1.3rem;
    }

    .media-form-callout {
        margin-top: 42px;
        padding: 28px 22px;
    }

    .media-form-callout h3 {
        font-size: 1.5rem;
    }

    .media-form-callout .button {
        width: 100%;

        text-align: center;

        line-height: 1.5;
    }

}

/* =========================
   COPY EMAIL NOTIFICATION
========================= */

.copy-notification {
    position: fixed;

    top: 94px;
    left: 50%;

    z-index: 1000;

    padding: 12px 20px;

    background: var(--accent);
    color: var(--white);

    border-radius: 24px;

    font-size: 0.85rem;
    font-weight: 600;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.22);

    opacity: 0;

    transform:
        translateX(-50%) translateY(-8px);

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

    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;

    transform:
        translateX(-50%) translateY(0);
}