@font-face {
    font-family: "Cormorant Garamond";
    src: url("/fonts/cbrse/CormorantGaramond-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/filament/filament/inter/inter-latin-wght-normal-NRMW37G5.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #0b1535;
    --navy-soft: #172344;
    --red: #a92f2c;
    --red-dark: #84231f;
    --gold: #a88649;
    --cream: #f8f5ee;
    --cream-deep: #f0ece3;
    --paper: #fcfaf5;
    --ink: #141827;
    --body: #4f5360;
    --line: #d9d3c8;
    --white: #fffefa;
    --display: "Cormorant Garamond", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
    --shell: min(1180px, calc(100% - 48px));
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #d99b30;
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 500;
    line-height: .98;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(252, 250, 245, .96);
    border-bottom: 1px solid rgba(11, 21, 53, .08);
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 26px rgba(11, 21, 53, .08);
}

.header-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand img {
    width: 232px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
    color: var(--navy);
    font-size: 13px;
    font-weight: 650;
}

.site-nav > a:not(.button) {
    position: relative;
}

.site-nav > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease;
}

.site-nav > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.member-link img,
.menu-toggle img,
.text-link img,
.article-card footer img {
    filter: invert(10%) sepia(31%) saturate(1792%) hue-rotate(190deg) brightness(86%) contrast(105%);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    color: var(--white);
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 3px;
    font-weight: 650;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
}

.button-small {
    min-height: 42px;
    padding: 9px 18px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
}

.menu-close-icon {
    display: none;
}

.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    background: var(--cream);
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 43%;
    background: url("/images/editorial/hero-comunhao.webp") center / cover no-repeat;
}

.hero-inner {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-copy {
    z-index: 2;
    width: 54%;
    padding: 72px 7% 72px 0;
    background: var(--cream);
    box-shadow: 54px 0 58px 22px var(--cream);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--navy);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 30px;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
}

.eyebrow.gold {
    color: var(--gold);
}

.eyebrow.red {
    color: var(--red);
}

.hero h1 {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--navy);
    font-size: clamp(58px, 6.25vw, 92px);
    letter-spacing: -.04em;
}

.ornament {
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gold);
}

.ornament span {
    height: 1px;
    flex: 1;
    background: var(--gold);
}

.ornament img {
    width: 15px;
    height: 15px;
    filter: sepia(1) saturate(.7) hue-rotate(2deg);
    opacity: .82;
}

.hero-lede {
    max-width: 490px;
    margin-bottom: 32px;
    color: var(--body);
    font-size: 15px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.text-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 5px;
    color: var(--navy);
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.text-link img {
    transition: transform .2s ease;
}

.text-link:hover img {
    transform: translateX(4px);
}

.section {
    padding-block: 100px;
}

.commissions {
    padding-block: 56px 52px;
    background: var(--paper);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 58px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.section-heading h2,
.library-header h2,
.network-copy h2,
.members-intro h2 {
    margin-bottom: 18px;
    color: var(--navy);
    font-size: clamp(48px, 5vw, 68px);
    letter-spacing: -.025em;
}

.commissions .section-heading {
    margin-bottom: 34px;
}

.commissions .section-heading h2 {
    font-size: clamp(42px, 4.2vw, 58px);
}

.section-heading > p:last-child {
    max-width: 620px;
    margin-inline: auto;
    color: var(--body);
    font-size: 15px;
}

.commission-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.commission-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 34px 0;
    text-align: center;
    border-right: 1px solid var(--line);
}

.commission-card:last-child {
    border-right: 0;
}

.commission-icon {
    margin-bottom: 18px;
    filter: invert(10%) sepia(31%) saturate(1792%) hue-rotate(190deg) brightness(86%) contrast(105%);
}

.gold-rule,
.red-rule {
    width: 36px;
    height: 1px;
    display: block;
    margin-bottom: 16px;
    background: var(--gold);
}

.red-rule {
    background: var(--red);
}

.commission-card h3 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 35px;
}

.commission-card p {
    min-height: 64px;
    margin-bottom: 14px;
    color: var(--body);
    font-size: 13px;
}

.commission-card .text-link {
    margin-top: auto;
}

.history {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    color: var(--white);
    background: #090f21;
}

.history > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-inner {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.history-copy {
    width: 55%;
    padding: 64px 60px 64px 0;
}

.history-copy h2 {
    margin-bottom: 24px;
    color: #efe1c6;
    font-size: clamp(44px, 4.5vw, 62px);
    letter-spacing: -.02em;
}

.history-copy > p:not(.eyebrow) {
    max-width: 560px;
    margin-bottom: 28px;
    color: rgba(255, 254, 250, .82);
    font-size: 15px;
}

.text-link.light {
    color: var(--white);
}

.text-link.light img {
    filter: invert(100%);
}

.network {
    padding-block: 56px 64px;
    background: var(--paper);
}

.network-layout {
    display: grid;
    grid-template-columns: .82fr 1.45fr;
    align-items: start;
    gap: 56px;
}

.network-copy > p:not(.eyebrow) {
    max-width: 380px;
    margin-bottom: 26px;
    color: var(--body);
    font-size: 15px;
}

.red-link {
    color: var(--red-dark);
}

.red-link img,
.resource-card .text-link img {
    filter: invert(21%) sepia(64%) saturate(1640%) hue-rotate(338deg) brightness(88%) contrast(92%);
}

.network-map {
    position: relative;
}

.network-map > img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
}

.network-map > p {
    position: absolute;
    right: 0;
    bottom: 18px;
    max-width: 190px;
    margin: 0;
    color: var(--body);
    font-size: 11px;
    letter-spacing: .06em;
    text-align: right;
    text-transform: uppercase;
}

.network-map strong {
    display: block;
    color: var(--red);
    font-family: var(--display);
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
}

.church-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 42px;
    border-top: 1px solid var(--line);
}

.church-strip article {
    display: flex;
    gap: 14px;
    padding: 26px 24px 0;
    border-right: 1px solid var(--line);
}

.church-strip article:last-child {
    border-right: 0;
}

.church-strip img {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    filter: grayscale(1);
    opacity: .52;
}

.church-strip h3 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.05;
}

.church-strip p {
    margin: 0;
    color: #747884;
    font-size: 11px;
}

.library {
    background: var(--white);
    border-top: 1px solid var(--line);
}

.library-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 45px;
}

.library-header h2 {
    margin: 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.article-card {
    min-width: 0;
    padding: 0 22px 14px;
    border-right: 1px solid var(--line);
}

.article-card:first-child {
    padding-left: 0;
}

.article-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.article-card > a:first-child {
    display: block;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 3 / 1.8;
}

.article-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.article-card:hover > a img {
    transform: scale(1.025);
}

.category {
    margin-bottom: 10px;
    color: var(--red);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.article-card h3 {
    margin-bottom: 15px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.03;
}

.article-card h3 a:hover {
    color: var(--red-dark);
}

.article-card > p:not(.category) {
    min-height: 56px;
    color: var(--body);
    font-size: 12px;
}

.article-card footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    color: #555965;
    font-size: 10px;
    line-height: 1.65;
}

.members {
    background: var(--cream);
    border-top: 1px solid rgba(11, 21, 53, .05);
}

.members-layout {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    gap: 26px;
}

.members-intro {
    padding-right: 28px;
}

.members-intro h2 {
    font-size: clamp(45px, 4vw, 58px);
}

.members-intro > p:not(.eyebrow) {
    margin-bottom: 25px;
    color: var(--body);
    font-size: 13px;
}

.resource-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 3 / 1.8;
}

.resource-image > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-image > span {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(11, 21, 53, .12);
}

.resource-image span img {
    filter: invert(21%) sepia(64%) saturate(1640%) hue-rotate(338deg) brightness(88%) contrast(92%);
}

.resource-card h3 {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.1;
}

.resource-card > p {
    min-height: 54px;
    color: var(--body);
    font-size: 12px;
}

.site-footer {
    color: rgba(255, 254, 250, .74);
    background: var(--navy);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr repeat(3, 1fr);
    gap: 64px;
    padding-block: 72px 54px;
}

.footer-brand img {
    width: 140px;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 280px;
    font-family: var(--display);
    font-size: 22px;
    line-height: 1.2;
}

.footer-main h2 {
    margin-bottom: 18px;
    color: var(--white);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-main > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
}

.footer-main a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (min-width: 821px) and (max-width: 1180px) {
    .header-inner {
        gap: 18px;
    }

    .brand img {
        width: 175px;
    }

    .site-nav {
        gap: clamp(8px, 1.15vw, 14px);
        font-size: 11px;
    }

    .site-nav .button-small {
        min-height: 38px;
        padding-inline: 12px;
    }

    .member-link {
        gap: 5px;
    }

    .member-link img {
        width: 17px;
    }
}

@media (max-width: 820px) {
    html {
        scroll-padding-top: 88px;
    }

    .header-inner {
        min-height: 88px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 88px 0 auto;
        max-height: calc(100vh - 88px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        padding: 24px;
        background: var(--paper);
        border-top: 1px solid var(--line);
        box-shadow: 0 22px 40px rgba(11, 21, 53, .15);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav > a {
        padding-block: 14px;
        border-bottom: 1px solid var(--line);
    }

    .site-nav > a::after {
        display: none;
    }

    .site-nav .button {
        margin-top: 14px;
        border-bottom: 1px solid var(--red);
    }

    .menu-toggle[aria-expanded="true"] .menu-open-icon {
        display: none;
    }

    .menu-toggle[aria-expanded="true"] .menu-close-icon {
        display: block;
    }

    .hero,
    .hero-inner {
        min-height: 650px;
    }

    .hero-copy {
        width: 58%;
    }

    .commission-card {
        padding-inline: 20px;
    }

    .network-layout {
        grid-template-columns: .8fr 1.2fr;
        gap: 24px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 42px 0;
    }

    .article-card:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }

    .article-card:nth-child(3) {
        padding-left: 0;
    }

    .members-layout {
        grid-template-columns: repeat(3, 1fr);
    }

    .members-intro {
        grid-column: 1 / -1;
        max-width: 650px;
        margin-bottom: 18px;
    }
}

@media (max-width: 760px) {
    :root {
        --shell: min(100% - 32px, 640px);
    }

    .section {
        padding-block: 72px;
    }

    .brand img {
        width: 196px;
    }

    .hero {
        min-height: auto;
        padding-top: 330px;
    }

    .hero-photo {
        inset: 0 0 auto;
        height: 350px;
        background-position: 65% center;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-copy {
        width: 100%;
        padding: 62px 0 70px;
        box-shadow: 0 -32px 38px 22px var(--cream);
    }

    .hero h1 {
        font-size: clamp(52px, 16vw, 76px);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .hero-actions .text-link {
        align-self: flex-start;
    }

    .commission-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 42px 0;
    }

    .commission-card {
        min-height: 310px;
    }

    .commission-card:nth-child(2) {
        border-right: 0;
    }

    .commission-card:nth-child(3),
    .commission-card:nth-child(4) {
        padding-top: 34px;
        border-top: 1px solid var(--line);
    }

    .history > img {
        opacity: .62;
        object-position: 70% center;
    }

    .history-copy {
        width: 100%;
        padding-right: 0;
    }

    .history-copy > p:not(.eyebrow) {
        max-width: 470px;
    }

    .network-layout {
        grid-template-columns: 1fr;
    }

    .network-copy > p:not(.eyebrow) {
        max-width: 520px;
    }

    .network-map {
        margin-top: 18px;
    }

    .church-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .church-strip article:nth-child(2) {
        border-right: 0;
    }

    .church-strip article:nth-child(3),
    .church-strip article:nth-child(4) {
        margin-top: 22px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
    }

    .library-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .members-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .members-intro {
        grid-column: auto;
    }

    .resource-card > p {
        min-height: auto;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 42px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 78px;
    }

    .brand img {
        width: 174px;
    }

    .site-nav {
        inset: 78px 0 auto;
        max-height: calc(100vh - 78px);
    }

    .hero {
        padding-top: 285px;
    }

    .hero-photo {
        height: 310px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .commission-grid,
    .article-grid,
    .church-strip,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .commission-card {
        min-height: 290px;
        padding: 38px 16px;
        border-top: 1px solid var(--line);
        border-right: 0;
    }

    .commission-card:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .article-card,
    .article-card:first-child,
    .article-card:nth-child(3),
    .article-card:last-child {
        padding: 0 0 38px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .article-card:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .article-card > p:not(.category) {
        min-height: auto;
    }

    .church-strip article,
    .church-strip article:nth-child(3),
    .church-strip article:nth-child(4) {
        margin-top: 0;
        padding: 22px 0;
        border-top: 1px solid var(--line);
        border-right: 0;
    }

    .network-map > p {
        position: static;
        max-width: none;
        margin-top: 10px;
        text-align: left;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
