﻿:root {
    --maroon: #6f1730;
    --maroon-dark: #46101f;
    --maroon-bright: #8f2442;
    --cream: #f7f0e3;
    --paper: #fffdf8;
    --ink: #2e2625;
    --muted: #6e615d;
    --gold: #b99a5e;
    --blue: #344b78;
    --line: rgba(111, 23, 48, 0.22);
    --shadow: 0 12px 36px rgba(48, 23, 26, 0.13);
    --radius: 1rem;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

.keepSimpleMessage {
    margin: 1rem 0 0.5rem;
    text-align: center;
    color: var(--maroon);
    font-size: 1rem;
    font-style: italic;
}

.keepSimpleYear {
    padding: 0.12em 0.4em;
    background: rgba(111, 30, 49, 0.06);
    border: 1px solid rgba(111, 30, 49, 0.18);
    border-radius: 0.35em;
}

.noBreakSpan {
    display: inline-block;
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--cream);
    background-image: url("furley_bg.png");
    background-repeat: repeat;
    background-attachment: fixed;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
}

/* --------------------------------------------------
   Memorial marker modal
-------------------------------------------------- */

.memorialMarkerModal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
}

    .memorialMarkerModal.isOpen {
        display: flex;
    }

.memorialMarkerModalContent {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    padding: 1rem;
    background: white;
    border-radius: 0.8rem;
}

    .memorialMarkerModalContent img {
        display: block;
        max-width: 100%;
        max-height: 80vh;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

.memorialMarkerClose {
    position: absolute;
    top: -0.8rem;
    right: -0.8rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}


/* ---------- General links ---------- */

a {
    color: var(--maroon);
}

    a:hover,
    a:focus-visible {
        color: var(--maroon-bright);
    }


/* ---------- Hero ---------- */

.siteHeader {
    min-height: 690px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    background: linear-gradient( 180deg, rgba(38, 11, 18, 0.34), rgba(38, 11, 18, 0.82) ), url("graphics/monument-mountain-school.jpg") center 47% / cover no-repeat;
    border-bottom: 9px solid var(--maroon);
}

    .siteHeader::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 135px;
        background: linear-gradient( to bottom, transparent, rgba(33, 9, 15, 0.82) );
        pointer-events: none;
    }

.heroContent {
    width: min(92%, 920px);
    position: relative;
    z-index: 1;
    padding: 5rem 1rem 7rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.64);
}

.classLine {
    margin: 0 0 1rem;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(0.82rem, 1.8vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 7.7rem);
    line-height: 0.92;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.fifty {
    display: block;
    margin-top: 0.45em;
    color: #f1d6a0;
    font-size: 0.44em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.heroSubtitle {
    max-width: 760px;
    margin: 1.5rem auto 0;
    font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}


/* ---------- Main navigation ---------- */

.mainNav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(70, 16, 31, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    border-bottom-left-radius: 3px 4px;
    border-bottom-right-radius: 3px 4px;
}

    .mainNav ul {
        max-width: var(--content-width);
        margin: 0 auto;
        padding: 0.7rem 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem 1.2rem;
        list-style: none;
    }

    .mainNav a {
        padding: 0.35rem 0.15rem;
        color: white;
        border-bottom: 2px solid transparent;
        font-family: Arial, sans-serif;
        font-size: 0.94rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-decoration: none;
    }

        .mainNav a:hover,
        .mainNav a:focus-visible {
            color: #f5d9a9;
            border-bottom-color: #f5d9a9;
        }


/* ---------- Main page ---------- */

.smallerFontSize {
    font-size:0.9rem;
}

main {
    width: min(calc(100% - 1rem), var(--content-width));
    margin: 0 auto;
    padding-top:2rem;
    padding-bottom:2rem;
    padding-left:0rem;
    padding-right:0rem;
}

.section {
    scroll-margin-top: 5.3rem;
    margin-top:4.5rem;
    margin-bottom:0;
    margin-left:0;
    margin-right:0;
}

.sectionIntro {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.06rem;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--maroon);
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

h2 {
    margin: 0 0 1rem;
    color: var(--maroon-dark);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 500;
}

h3 {
    margin: 0 0 0.45rem;
    color: var(--maroon-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

p {
    margin: 0.6rem 0 1rem;
}

.placeholder {
    color: #786d68;
    font-style: italic;
}


/* ---------- Printable flyer callout ---------- */

.flyerDownload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding: 1.4rem 1.6rem;
    color: white;
    background: linear-gradient( 135deg, var(--maroon-dark), var(--maroon) );
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .flyerDownload h2 {
        margin-bottom: 0.5rem;
        color: white;
        font-size: clamp(1.7rem, 3vw, 2.4rem);
    }

    .flyerDownload p {
        margin-bottom: 0;
    }

.flyerDownloadButton {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.8rem 1.1rem;
    color: var(--maroon-dark);
    background: white;
    border: 2px solid white;
    border-radius: 0.7rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

    .flyerDownloadButton:hover,
    .flyerDownloadButton:focus-visible {
        color: white;
        background: transparent;
    }


/* ---------- Welcome ---------- */

.welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
    gap: 2.2rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.welcomeArt {
    position: relative;
    min-height: 365px;
}

    .welcomeArt img {
        position: absolute;
        border: 8px solid white;
        box-shadow: var(--shadow);
        border-radius: 0.35rem;
        object-fit: cover;
    }

    .welcomeArt .cover {
        width: 58%;
        height: 330px;
        right: 4%;
        top: 0;
        transform: rotate(3deg);
    }

    .welcomeArt .eagle {
        width: 54%;
        height: 230px;
        left: 1%;
        bottom: 0;
        transform: rotate(-4deg);
    }


/* ---------- General cards ---------- */

.cardGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.card {
    min-height: 100%;
    padding: 1.35rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 7px 21px rgba(48, 23, 26, 0.07);
}

.cardLabel {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--maroon);
    font: 800 0.74rem/1.2 Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Featured band card ---------- */

.bandCard {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.bandCardPhoto img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
}

.bandCardText p:last-child {
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    margin-top: 0.45rem;
    padding: 0.72rem 1rem;
    color: white;
    background: var(--maroon);
    border: 2px solid var(--maroon);
    border-radius: 0.65rem;
    font-family: Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

    .button:hover,
    .button:focus-visible {
        color: var(--maroon-dark);
        background: white;
    }


/* ---------- RSVP ---------- */

.rsvpPanel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.4rem;
    color: white;
    background: linear-gradient( 135deg, var(--maroon-dark), var(--maroon) );
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

    .rsvpPanel h3 {
        color: white;
    }

    .rsvpPanel a {
        color: #ffe0a9;
    }

    .rsvpPanel .button {
        color: var(--maroon-dark);
        background: white;
        border-color: white;
    }

        .rsvpPanel .button:hover,
        .rsvpPanel .button:focus-visible {
            color: white;
            background: transparent;
        }


/* ---------- Who's coming ---------- */

.attendeeList {
    columns: 3 180px;
    column-gap: 2rem;
    margin: 1.25rem 0 0;
    padding: 1.4rem 1.4rem 1.4rem 2.7rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

    .attendeeList li {
        break-inside: avoid;
        margin: 0.2rem 0;
    }


/* ---------- Tell us about you ---------- */

.memories {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    color: white;
    background: var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .memories > img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border: 8px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;
    }

    .memories h2 {
        color: white;
    }

/* ---------- Classmate photo galleries ---------- */

.classmateGalleryTitle {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.classmateGallery {
    columns: 3 240px;
    column-gap: 1rem;
}

    .classmateGallery figure {
        break-inside: avoid;
        margin: 0 0 1rem;
        padding: 0.5rem;
        background: white;
        border: 1px solid var(--line);
        border-radius: 0.6rem;
        box-shadow: 0 4px 14px rgba(48, 23, 26, 0.10);
    }

    .classmateGallery img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0.4rem;
    }

    .classmateGallery figcaption {
        padding: 0.55rem 0.35rem 0.25rem;
        color: var(--muted);
        font-size: 0.9rem;
        line-height: 1.4;
    }


/* ---------- Classmate / Memoriam dropdowns ---------- */

/*
    These intentionally share the SAME styling.
    The content is different, but the dropdown presentation is identical.
*/

.classmateEntry,
.memoriamEntry {
    margin-top: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: 0 7px 21px rgba(48, 23, 26, 0.07);
    overflow: hidden;
}

    .classmateEntry summary,
    .memoriamEntry summary {
        cursor: pointer;
        padding: 0.5rem 1.2rem;
        color: var(--maroon-dark);
        background: rgba(111, 23, 48, 0.06);
    }

.classmateName,
.memoriamName {
    font-size: 1rem;
    vertical-align: middle;
}

.classmateSummary {
    display: block;
    margin-top: 0;
    margin-left: 1.55rem;
    color: var(--muted);
    font-size: 0.92rem;
    font-style: italic;
    font-weight: normal;
}

.memoriamYears {
    padding-left: 0.7rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: normal;
}

.classmateEntryContent,
.memoriamEntryContent {
    padding: 0.5rem 1.4rem;
}

    .classmateEntryContent p:first-child,
    .memoriamEntryContent p:first-child {
        margin-top: 0;
    }

    .classmateEntryContent p:last-child,
    .memoriamEntryContent p:last-child {
        margin-bottom: 0;
    }

    .classmateEntryContent img,
    .memoriamEntryContent img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }

.memoriamEntryContent {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1rem 1.4rem;
}

.memoriamPhoto img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid white;
    border-radius: 0.4rem;
    box-shadow: 0 4px 14px rgba(48, 23, 26, 0.16);
}

.memoriamDetails {
    min-width: 0;
}

.memoriamObituary {
    margin: 0 0 1rem;
}

    .memoriamObituary a {
        font-weight: bold;
    }

.memoriamNotes h4 {
    margin: 0 0 0.4rem;
    color: var(--maroon-dark);
    font-size: 1.05rem;
}

.memoriamNotes p {
    margin: 0.5rem 0;
}

    .memoriamNotes p:last-child {
        margin-bottom: 0;
    }

@media (max-width: 620px) {

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

    .memoriamPhoto {
        max-width: 220px;
        margin: 0 auto;
    }
}


/* ---------- Frequently asked questions ---------- */

.faq details {
    margin: 1rem 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.7rem;
}

.faq summary {
    cursor: pointer;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: var(--maroon-dark);
    font-weight: 700;
}

.faq details[open] summary {
    padding-bottom:0;
    margin-bottom:0;
}

.faq details > p {
    margin: 0;
    padding: 1rem 1.5rem;
    line-height: 1;
}

/* ---------- Footer ---------- */

footer {
    padding: 1.5rem 1rem;
    color: #eee5e2;
    background: linear-gradient( 135deg, var(--maroon-dark), var(--maroon) );
    border-radius: 3px 4px;
    text-align: center;
    font-size: 0.92rem;
}

    footer p {
        margin: 0.35rem 0;
    }


/* ---------- Medium / small screens ---------- */

@media (max-width: 820px) {

    .bandCard {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .bandCardPhoto {
        width: min(260px, 70%);
        margin: 0 auto;
    }
    .siteHeader {
        min-height: 590px;
    }

    .welcome,
    .memories,
    .rsvpPanel {
        grid-template-columns: 1fr;
    }

    .welcomeArt {
        min-height: 330px;
    }

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

    .memories > img {
        max-width: 340px;
        justify-self: center;
    }

    .flyerDownload {
        flex-direction: column;
        align-items: stretch;
    }

    .flyerDownloadButton {
        align-self: center;
    }
}


/* ---------- Phone screens ---------- */

@media (max-width: 520px) {

    .mainNav {
        position: static;
    }

    .section {
        scroll-margin-top: 0.5rem;
    }

    main {
        width: min(calc(100% - 1.15rem), var(--content-width));
    }

    .heroContent {
        padding-top: 3rem;
    }

    .welcomeArt .cover {
        width: 66%;
    }

    .welcomeArt .eagle {
        width: 64%;
    }

    .memories {
        padding: 1.25rem;
    }
}


/* ---------- Reduced motion ---------- */

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

    html {
        scroll-behavior: auto;
    }
}


/* ---------- Printing ---------- */

@media print {

    .mainNav {
        display: none;
    }

    .siteHeader {
        min-height: 0;
        color: black;
        background: white;
        border-bottom: 4px solid var(--maroon);
    }

    .heroContent {
        padding: 1rem;
        text-shadow: none;
    }

    .welcomeArt,
    .memories > img {
        display: none;
    }

    main {
        width: 100%;
        padding: 1rem;
    }

    .card,
    .rsvpPanel,
    .memories {
        box-shadow: none;
    }

    .rsvpPanel,
    .memories {
        color: black;
        background: white;
        border: 1px solid #aaa;
    }

        .rsvpPanel h3,
        .memories h2 {
            color: var(--maroon-dark);
        }
}
