/* =========================================================
   PARISH HISTORY
   ========================================================= */

.parish-history-page {
    padding:
        72px 0 96px;

    background:
        linear-gradient(
            180deg,
            #f5f8f6 0,
            #ffffff 480px
        );
}

.parish-history-shell {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;
}

.parish-history-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #49705f;

    font-size: 10px;
    font-weight: 820;

    letter-spacing: .14em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.parish-history-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(250px, .65fr);

    gap: 64px;

    align-items: center;

    margin-bottom: 32px;
}

.parish-history-hero-copy {
    max-width: 820px;
}

.parish-history-hero h1 {
    margin: 0;

    color: #14231c;

    font-size:
        clamp(
            40px,
            5.5vw,
            70px
        );

    font-weight: 760;
    line-height: 1.01;

    letter-spacing: -.06em;
}

.parish-history-hero p {
    max-width: 760px;

    margin:
        24px 0 0;

    color: #68766f;

    font-size: 17px;
    line-height: 1.78;
}

.parish-history-hero-mark {
    position: relative;

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

    min-height: 250px;

    padding:
        30px;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #1b503b,
            #123326
        );

    box-shadow:
        0 30px 62px rgba(21, 54, 42, .17);
}

.parish-history-hero-mark::before,
.parish-history-hero-mark::after {
    content: "";

    position: absolute;

    border:
        1px solid rgba(255, 255, 255, .07);

    border-radius: 50%;
}

.parish-history-hero-mark::before {
    width: 210px;
    height: 210px;
}

.parish-history-hero-mark::after {
    width: 150px;
    height: 150px;
}

.parish-history-hero-mark strong,
.parish-history-hero-mark span,
.parish-history-hero-mark small {
    position: relative;
    z-index: 1;

    display: block;
}

.parish-history-hero-mark strong {
    color: #ffffff;

    font-size: 55px;
    font-weight: 760;

    letter-spacing: -.06em;
}

.parish-history-hero-mark span {
    margin-top: 2px;

    color: #d9e7e0;

    font-size: 15px;
    font-weight: 710;
}

.parish-history-hero-mark small {
    margin-top: 8px;

    color: #a9c1b5;

    font-size: 9px;
    font-weight: 720;

    letter-spacing: .09em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   OPENING
   --------------------------------------------------------- */

.parish-history-opening {
    display: grid;
    grid-template-columns:
        86px
        minmax(0, 1fr);

    overflow: hidden;

    margin-bottom: 20px;

    border:
        1px solid #dfe6e2;

    border-radius: 19px;

    background: #ffffff;

    box-shadow:
        0 15px 34px rgba(20, 33, 28, .035);
}

.parish-history-opening-number {
    display: flex;
    justify-content: center;

    padding-top: 30px;

    border-right:
        1px solid #e5eae7;

    background: #f2f6f4;

    color: #7f9389;

    font-size: 12px;
    font-weight: 830;

    letter-spacing: .10em;
}

.parish-history-opening-copy {
    max-width: 930px;

    padding:
        31px 34px;
}

.parish-history-opening-copy h2 {
    margin:
        0 0 15px;

    color: #20372c;

    font-size:
        clamp(
            27px,
            3.4vw,
            39px
        );

    font-weight: 735;

    letter-spacing: -.04em;
}

.parish-history-opening-copy > p {
    margin: 0;

    color: #56685f;

    font-size: 15px;
    line-height: 1.82;
}

.parish-history-date-note {
    display: grid;
    grid-template-columns:
        130px
        minmax(0, 1fr);

    gap: 22px;

    align-items: center;

    margin-top: 22px;

    padding:
        17px 19px;

    border:
        1px solid #e1e7e4;

    border-radius: 13px;

    background: #f9fbfa;
}

.parish-history-date-note span {
    color: #315d49;

    font-size: 18px;
    font-weight: 770;
}

.parish-history-date-note p {
    margin: 0;

    color: #718078;

    font-size: 12px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */

.parish-history-jump-nav {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    overflow: hidden;

    margin-bottom: 20px;

    border:
        1px solid #dce5e0;

    border-radius: 16px;

    background: #ffffff;
}

.parish-history-jump-nav a {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-height: 78px;

    padding:
        16px 18px;

    border-right:
        1px solid #e3e9e6;
    border-bottom:
        1px solid #e3e9e6;

    color: #39594c;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.parish-history-jump-nav a:nth-child(3n) {
    border-right: 0;
}

.parish-history-jump-nav a:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.parish-history-jump-nav a:hover {
    background: #f0f6f3;
    color: #174b38;
}

.parish-history-jump-nav span {
    color: #849a90;

    font-size: 9px;
    font-weight: 820;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   CHAPTERS
   --------------------------------------------------------- */

.parish-history-chapter {
    margin-top: 18px;

    padding:
        37px 40px 41px;

    border:
        1px solid #dfe7e3;

    border-radius: 21px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fafcfb
        );

    box-shadow:
        0 18px 42px rgba(20, 33, 28, .035);

    scroll-margin-top: 122px;
}

.parish-history-chapter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 29px;
    padding-bottom: 27px;

    border-bottom:
        1px solid #e2e9e5;
}

.parish-history-chapter-number {
    display: inline-block;

    margin-right: 10px;

    color: #8c9f95;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .10em;
}

.parish-history-chapter-header
.parish-history-eyebrow {
    display: inline-block;

    margin: 0;
}

.parish-history-chapter-header h2 {
    margin:
        9px 0 0;

    color: #1b3026;

    font-size:
        clamp(
            28px,
            3.6vw,
            43px
        );

    font-weight: 740;
    line-height: 1.08;

    letter-spacing: -.045em;
}

.parish-history-period {
    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding:
        8px 13px;

    border:
        1px solid #dbe6e0;

    border-radius: 999px;

    background: #eff5f2;

    color: #3f6856;

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

    white-space: nowrap;
}

.parish-history-period--accent {
    background: #e6f2ec;
    color: #1f6849;
}


/* ---------------------------------------------------------
   COLUMNS / PROSE
   --------------------------------------------------------- */

.parish-history-columns {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(250px, .65fr);

    gap: 46px;
}

.parish-history-prose {
    max-width: 790px;
}

.parish-history-prose p,
.parish-history-event-copy p,
.parish-history-restoration-copy p,
.parish-history-building-main p {
    margin:
        0 0 20px;

    color: #5d6e66;

    font-size: 15px;
    line-height: 1.86;
}

.parish-history-side-note {
    align-self: start;

    padding:
        23px 24px;

    border:
        1px solid #dfe7e3;

    border-radius: 16px;

    background: #f6f9f7;
}

.parish-history-side-note strong {
    display: block;

    color: #315646;

    font-size: 20px;
    font-weight: 720;

    letter-spacing: -.025em;
}

.parish-history-side-note p {
    margin:
        10px 0 17px;

    color: #708078;

    font-size: 12px;
    line-height: 1.7;
}

.parish-history-side-note a,
.parish-history-inline-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: #2b624a;

    font-size: 12px;
    font-weight: 740;

    text-decoration: none;
}


/* ---------------------------------------------------------
   EVENT
   --------------------------------------------------------- */

.parish-history-event {
    display: grid;
    grid-template-columns:
        150px
        minmax(0, 1fr);

    gap: 36px;

    max-width: 930px;

    align-items: start;
}

.parish-history-event-year {
    display: flex;
    flex-direction: column;

    padding:
        21px 22px;

    border:
        1px solid #dbe5df;

    border-radius: 15px;

    background: #f1f6f3;

    color: #768c81;

    font-size: 10px;
    font-weight: 780;

    letter-spacing: .08em;
}

.parish-history-event-year strong {
    margin-top: 5px;

    color: #285c46;

    font-size: 29px;
    font-weight: 770;

    letter-spacing: -.04em;
}


/* ---------------------------------------------------------
   DARK CHAPTER
   --------------------------------------------------------- */

.parish-history-chapter--dark {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #20362c,
            #2e5141
        );

    color: #ffffff;
}

.parish-history-chapter--dark
.parish-history-chapter-header {
    border-bottom-color:
        rgba(255, 255, 255, .12);
}

.parish-history-chapter--dark
.parish-history-chapter-number,
.parish-history-chapter--dark
.parish-history-eyebrow {
    color: #a9c3b7;
}

.parish-history-chapter--dark
.parish-history-chapter-header h2 {
    color: #ffffff;
}

.parish-history-milestones {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;
}

.parish-history-milestones article {
    min-height: 208px;

    padding:
        21px;

    border:
        1px solid rgba(255, 255, 255, .13);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, .055);
}

.parish-history-milestones article > span {
    display: block;

    margin-bottom: 15px;

    color: #d9e8e1;

    font-size: 22px;
    font-weight: 760;

    letter-spacing: -.025em;
}

.parish-history-milestones h3 {
    margin:
        0 0 9px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 720;
}

.parish-history-milestones p {
    margin: 0;

    color: #cedbd5;

    font-size: 12px;
    line-height: 1.67;
}


/* ---------------------------------------------------------
   RESTORATION
   --------------------------------------------------------- */

.parish-history-restoration {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        190px;

    gap: 46px;

    max-width: 930px;

    align-items: center;
}

.parish-history-restoration-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 185px;

    border:
        1px solid #d7e4dd;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #eaf4ef,
            #f8fbf9
        );
}

.parish-history-restoration-date span {
    color: #1f6849;

    font-size: 56px;
    font-weight: 760;

    line-height: .95;
}

.parish-history-restoration-date strong {
    margin-top: 5px;

    color: #456c5b;

    font-size: 16px;
    font-weight: 720;
}

.parish-history-restoration-date small {
    margin-top: 4px;

    color: #799085;

    font-size: 12px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   BUILDING
   --------------------------------------------------------- */

.parish-history-building {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(320px, .7fr);

    gap: 42px;

    align-items: start;
}

.parish-history-building-facts {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 9px;
}

.parish-history-building-facts > div {
    padding:
        18px;

    border:
        1px solid #dfe7e3;

    border-radius: 14px;

    background: #f8faf9;
}

.parish-history-building-facts small,
.parish-history-building-facts strong {
    display: block;
}

.parish-history-building-facts small {
    margin-bottom: 6px;

    color: #839188;

    font-size: 9px;
    font-weight: 790;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.parish-history-building-facts strong {
    color: #315646;

    font-size: 13px;
    font-weight: 730;
}

.parish-history-heritage {
    max-width: 930px;

    margin-top: 28px;

    padding:
        23px 25px;

    border-left:
        4px solid #49705f;

    border-radius:
        0 14px 14px 0;

    background: #f2f6f4;
}

.parish-history-heritage p {
    margin:
        0 0 10px;

    color: #5e7067;

    font-size: 13px;
    line-height: 1.73;
}

.parish-history-heritage p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   PASTORS
   --------------------------------------------------------- */

.parish-history-pastors {
    margin-top: 18px;

    padding:
        34px 38px 37px;

    border:
        1px solid #dfe7e3;

    border-radius: 20px;

    background: #ffffff;
}

.parish-history-pastors header {
    margin-bottom: 20px;
}

.parish-history-pastors h2 {
    margin: 0;

    color: #20372c;

    font-size:
        clamp(
            25px,
            3vw,
            36px
        );

    font-weight: 730;

    letter-spacing: -.035em;
}

.parish-history-pastors-list {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    overflow: hidden;

    border:
        1px solid #dfe7e3;

    border-radius: 15px;

    background: #ffffff;
}

.parish-history-pastors-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 57px;

    padding:
        13px 17px;

    border-right:
        1px solid #e6ebe8;
    border-bottom:
        1px solid #e6ebe8;
}

.parish-history-pastors-list > div:nth-child(2n) {
    border-right: 0;
}

.parish-history-pastors-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.parish-history-pastors-list strong {
    color: #344f43;

    font-size: 12px;
    font-weight: 720;
}

.parish-history-pastors-list span {
    color: #7b8c84;

    font-size: 11px;
}

.parish-history-pastors-list .is-current {
    background: #edf5f1;
}

.parish-history-pastors-list .is-current strong {
    color: #1d5a42;
}

.parish-history-inline-link {
    margin-top: 18px;
}


/* ---------------------------------------------------------
   JUBILEE
   --------------------------------------------------------- */

.parish-history-jubilee {
    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr);

    gap: 38px;

    align-items: center;

    margin-top: 18px;

    padding:
        36px 39px;

    border-radius: 21px;

    background:
        linear-gradient(
            135deg,
            #173e31,
            #285f4c
        );

    color: #ffffff;

    scroll-margin-top: 122px;
}

.parish-history-jubilee-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 150px;

    border:
        1px solid rgba(255, 255, 255, .14);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, .06);
}

.parish-history-jubilee-year span {
    color: #ffffff;

    font-size: 58px;
    font-weight: 760;

    letter-spacing: -.06em;
}

.parish-history-jubilee-year small {
    margin-top: -3px;

    color: #bdd3c8;

    font-size: 13px;
    font-weight: 700;
}

.parish-history-jubilee
.parish-history-eyebrow {
    color: #a9c9ba;
}

.parish-history-jubilee h2 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            29px,
            3.5vw,
            43px
        );

    font-weight: 730;

    letter-spacing: -.04em;
}

.parish-history-jubilee p {
    max-width: 760px;

    margin:
        13px 0 0;

    color: #d6e3dc;

    font-size: 14px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   TODAY
   --------------------------------------------------------- */

.parish-history-today {
    margin-top: 18px;

    padding:
        35px 38px 38px;

    border:
        1px solid #dfe7e3;

    border-radius: 20px;

    background: #ffffff;
}

.parish-history-today h2 {
    margin: 0;

    color: #20372c;

    font-size:
        clamp(
            26px,
            3.2vw,
            38px
        );

    font-weight: 730;

    letter-spacing: -.035em;
}

.parish-history-today-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-top: 23px;
}

.parish-history-today-grid article {
    min-height: 150px;

    padding:
        20px;

    border:
        1px solid #e0e7e3;

    border-radius: 15px;

    background: #f9fbfa;
}

.parish-history-today-grid article > span {
    display: block;

    margin-bottom: 13px;

    color: #8c9d95;

    font-size: 9px;
    font-weight: 820;

    letter-spacing: .10em;
}

.parish-history-today-grid strong {
    display: block;

    color: #315646;

    font-size: 14px;
    font-weight: 730;
}

.parish-history-today-grid p {
    margin:
        8px 0 0;

    color: #708078;

    font-size: 12px;
    line-height: 1.6;
}

.parish-history-today-note {
    max-width: 900px;

    margin:
        23px 0 0;

    color: #66776e;

    font-size: 13px;
    line-height: 1.72;
}


/* ---------------------------------------------------------
   SOURCE NOTE
   --------------------------------------------------------- */

.parish-history-source-note {
    margin-top: 18px;

    padding:
        19px 22px;

    border:
        1px solid #e2e7e4;

    border-radius: 14px;

    background: #f8faf9;
}

.parish-history-source-note p {
    max-width: 900px;

    margin: 0;

    color: #75837b;

    font-size: 11px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   FOOTER CTA
   --------------------------------------------------------- */

.parish-history-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-top: 18px;

    padding:
        33px 35px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #1a2c24,
            #2c493c
        );

    color: #ffffff;

    box-shadow:
        0 24px 52px rgba(23, 42, 34, .15);
}

.parish-history-footer-card
.parish-history-eyebrow {
    color: #a9c3b7;
}

.parish-history-footer-card h2 {
    max-width: 680px;

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            24px,
            3vw,
            34px
        );

    font-weight: 720;

    letter-spacing: -.035em;
}

.parish-history-footer-card p {
    max-width: 650px;

    margin:
        10px 0 0;

    color: #d2ddd7;

    font-size: 14px;
    line-height: 1.7;
}

.parish-history-footer-actions {
    display: flex;

    gap: 9px;

    flex: 0 0 auto;
}

.parish-history-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 47px;

    padding:
        10px 16px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 11px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 720;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color .15s ease,
        transform .15s ease;
}

.parish-history-button:hover {
    background:
        rgba(255, 255, 255, .08);

    transform: translateY(-1px);
}

.parish-history-button--primary {
    background:
        rgba(255, 255, 255, .12);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 980px) {

    .parish-history-hero {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .parish-history-hero-mark {
        min-height: 190px;
    }

    .parish-history-columns,
    .parish-history-building {
        grid-template-columns: 1fr;
    }

    .parish-history-milestones {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .parish-history-today-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .parish-history-footer-card {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 720px) {

    .parish-history-page {
        padding:
            48px 0 72px;
    }

    .parish-history-shell {
        width:
            calc(100% - 28px);
    }

    .parish-history-hero h1 {
        font-size:
            clamp(
                38px,
                12vw,
                50px
            );
    }

    .parish-history-opening {
        grid-template-columns:
            58px
            minmax(0, 1fr);
    }

    .parish-history-opening-copy {
        padding:
            25px 20px;
    }

    .parish-history-date-note {
        grid-template-columns: 1fr;

        gap: 6px;
    }

    .parish-history-jump-nav {
        grid-template-columns: 1fr;
    }

    .parish-history-jump-nav a,
    .parish-history-jump-nav a:nth-child(3n),
    .parish-history-jump-nav a:nth-last-child(-n + 3) {
        border-right: 0;
        border-bottom:
            1px solid #e3e9e6;
    }

    .parish-history-jump-nav a:last-child {
        border-bottom: 0;
    }

    .parish-history-chapter {
        padding:
            27px 20px 30px;
    }

    .parish-history-chapter-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .parish-history-event {
        grid-template-columns: 1fr;
    }

    .parish-history-milestones {
        grid-template-columns: 1fr;
    }

    .parish-history-restoration {
        grid-template-columns: 1fr;
    }

    .parish-history-restoration-date {
        min-height: 150px;
    }

    .parish-history-building-facts {
        grid-template-columns: 1fr;
    }

    .parish-history-pastors {
        padding:
            27px 20px 30px;
    }

    .parish-history-pastors-list {
        grid-template-columns: 1fr;
    }

    .parish-history-pastors-list > div,
    .parish-history-pastors-list > div:nth-child(2n),
    .parish-history-pastors-list > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom:
            1px solid #e6ebe8;
    }

    .parish-history-pastors-list > div:last-child {
        border-bottom: 0;
    }

    .parish-history-jubilee {
        grid-template-columns: 1fr;

        padding:
            28px 22px;
    }

    .parish-history-jubilee-year {
        min-height: 120px;
    }

    .parish-history-today {
        padding:
            27px 20px 30px;
    }

    .parish-history-today-grid {
        grid-template-columns: 1fr;
    }

    .parish-history-footer-card {
        padding:
            27px 22px;
    }

    .parish-history-footer-actions {
        flex-direction: column;

        width: 100%;
    }

    .parish-history-button {
        width: 100%;
    }

}
