:root {
    --navy: #062b4d;
    --navy-2: #0b3b68;
    --navy-3: #174f82;
    --gold: #c7912f;
    --gold-deep: #a46d14;
    --gold-soft: #f3e3bc;
    --purple: #6f1d6f;
    --purple-deep: #521354;
    --ink: #102333;
    --muted: #687987;
    --paper: #ffffff;
    --soft: #f6f7f9;
    --line: #e5e7eb;
    --waze: #1a8fa8;
    --shadow:
        0 18px 45px rgba(10, 35, 58, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        "DM Sans",
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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


/* ============================================================
   HEADER
============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background:
        rgba(255, 255, 255, .97);
    border-bottom:
        1px solid rgba(6, 43, 77, .08);
    backdrop-filter:
        blur(16px);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 285px;
    flex-shrink: 0;
}

.brand-logo {
    width: 50px;
    height: 60px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    color: var(--ink);
    font-size: 16px;
    letter-spacing: .015em;
}

.brand-copy small {
    margin-top: 6px;
    color: #e21a24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.primary-nav > a {
    position: relative;
    text-decoration: none;
    color: #1f2d39;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: .2s ease;
}

.primary-nav > a:not(.nav-button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .2s ease;
}

.primary-nav > a:hover::after,
.primary-nav > a.active::after {
    width: 100%;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    color: white !important;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-button.member {
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-deep)
        );
}

.nav-button.admin {
    background:
        linear-gradient(
            135deg,
            var(--navy-2),
            var(--navy)
        );
}

.menu-button {
    display: none;
}


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

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, .10),
            transparent 32%
        ),
        linear-gradient(
            125deg,
            #062b4d 0%,
            #0b3b68 48%,
            #4d1d63 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -130px;
    height: 230px;
    border-radius: 50% 50% 0 0;
    background:
        linear-gradient(
            90deg,
            rgba(166, 109, 20, .75),
            rgba(244, 204, 106, .96),
            rgba(111, 29, 111, .85)
        );
    filter: blur(1px);
    opacity: .70;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
}

.hero-glow-one {
    width: 420px;
    height: 420px;
    right: 8%;
    top: -150px;
    background:
        rgba(240, 187, 82, .24);
}

.hero-glow-two {
    width: 480px;
    height: 480px;
    left: -200px;
    bottom: -230px;
    background:
        rgba(132, 38, 128, .36);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(350px, .72fr);
    align-items: center;
    gap: 70px;
    min-height: 650px;
    padding-top: 70px;
    padding-bottom: 90px;
}

.eyebrow,
.section-kicker,
.feature-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 16px 0 22px;
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size:
        clamp(40px, 4.8vw, 62px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.hero h1 span {
    display: block;
    color: #f3cf74;
}

.hero-lead {
    max-width: 650px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, .84);
    font-size: 17px;
}

.hero-theme {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 30px;
    padding: 13px 18px;
    border:
        1px solid rgba(255, 255, 255, .19);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, .06);
    backdrop-filter:
        blur(12px);
}

.theme-cross {
    color: #f3cf74;
    font-size: 30px;
}

.hero-theme div {
    display: flex;
    flex-direction: column;
}

.hero-theme strong {
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 16px;
}

.hero-theme span:not(.theme-cross) {
    color:
        rgba(255, 255, 255, .72);
    font-size: 13px;
}

.hero-actions,
.direction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    color: white;
    background:
        linear-gradient(
            135deg,
            #d5a847,
            #a86e13
        );
    box-shadow:
        0 12px 26px
        rgba(171, 110, 16, .25);
}

.button-outline {
    color: white;
    border:
        1px solid
        rgba(255, 255, 255, .35);
    background:
        rgba(255, 255, 255, .06);
}

.button-navy {
    color: white;
    background:
        linear-gradient(
            135deg,
            var(--navy-2),
            var(--navy)
        );
}

.button-waze {
    color: white;
    background:
        linear-gradient(
            135deg,
            #28a7be,
            #17798d
        );
}


/* ============================================================
   BULLETIN PDF PREVIEW
============================================================ */

.bulletin-stage {
    position: relative;
    max-width: 390px;
    justify-self: center;
}

.bulletin-cover-link {
    display: block;
    text-decoration: none;
}

.pdf-cover {
    position: relative;
    overflow: hidden;
    background: #eef2f5;
}

.pdf-cover canvas {
    display: block;
    width: 100%;
    height: auto;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    color: var(--muted);
    background: #f3f4f6;
    font-size: 13px;
}

.pdf-cover.loaded .pdf-loading {
    display: none;
}

.pdf-cover-large {
    width: 355px;
    max-width: 100%;
    border: 9px solid white;
    border-radius: 9px;
    box-shadow:
        0 30px 60px
        rgba(0, 0, 0, .30);
    transform:
        rotate(2.4deg);
    transition:
        transform .25s ease;
}

.bulletin-cover-link:hover
.pdf-cover-large {
    transform:
        rotate(0deg)
        translateY(-4px);
}

.anniversary-mark {
    position: absolute;
    z-index: 3;
    right: -58px;
    top: -45px;
    width: 125px;
    height: 125px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 50%;
    color: #59330b;
    background:
        linear-gradient(
            145deg,
            #fff2b4,
            #d79c25
        );
    box-shadow:
        0 16px 36px
        rgba(0, 0, 0, .22);
}

.anniversary-mark span {
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 45px;
    line-height: 1;
}

.anniversary-mark small {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
}

.bulletin-caption {
    position: relative;
    z-index: 4;
    width: 82%;
    margin: -8px auto 0;
    padding: 16px 18px;
    border-radius: 10px;
    color: var(--ink);
    background: white;
    box-shadow: var(--shadow);
}

.bulletin-caption span,
.bulletin-caption small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.bulletin-caption strong {
    display: block;
    margin: 3px 0 1px;
    font-size: 15px;
}

.bulletin-placeholder {
    width: 350px;
    min-height: 420px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 40px;
    text-align: center;
    border:
        1px solid rgba(255, 255, 255, .24);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, .08);
}

.bulletin-placeholder > span {
    color: #f1ca68;
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 94px;
    line-height: 1;
}

.bulletin-placeholder strong {
    font-size: 24px;
}


/* ============================================================
   COMMUNITY STRIP
============================================================ */

.community-strip {
    position: relative;
    z-index: 5;
    color: white;
    background:
        linear-gradient(
            90deg,
            #9d6815,
            #d5a642,
            #9f6d1e
        );
}

.community-grid {
    min-height: 76px;
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    align-items: center;
    gap: 22px;
}

.community-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
}

.community-icon {
    font-size: 27px;
}


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

.section {
    padding: 90px 0;
}

.section-soft {
    background: var(--soft);
}

.section-title {
    margin:
        8px 0 20px;
    color: var(--navy);
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size:
        clamp(29px, 3.3vw, 41px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.section-intro {
    font-size: 18px;
    color: #405363;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-top: 10px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
}

.text-link span {
    color: var(--gold-deep);
}

.about-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, .70fr);
    gap: 90px;
    align-items: center;
}

.milestone-card {
    padding: 36px;
    border:
        1px solid #eadfc8;
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            #fffdf8,
            #faf7f0
        );
    box-shadow: var(--shadow);
}

.milestone-year {
    color: var(--navy);
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 56px;
    line-height: 1;
}

.milestone-year.smaller {
    margin-top: 20px;
    font-size: 36px;
}

.milestone-year.gold {
    color: var(--gold-deep);
}

.milestone-line {
    width: 70px;
    height: 2px;
    margin: 14px 0;
    background: var(--gold);
}

.milestone-copy strong {
    color: var(--navy);
    font-size: 17px;
}

.milestone-copy p {
    margin: 5px 0 0;
    color: var(--muted);
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 35px;
}

.desktop-link {
    margin-bottom: 12px;
}

.mobile-link {
    display: none;
}


/* ============================================================
   BULLETIN FEATURE
============================================================ */

.bulletin-feature-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 24px;
}

.bulletin-feature-card,
.vicar-feature-card {
    min-height: 450px;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow:
        0 12px 30px
        rgba(7, 40, 69, .07);
}

.bulletin-feature-card {
    display: grid;
    grid-template-columns:
        42% 58%;
}

.pdf-page-card {
    height: 100%;
    min-height: 450px;
    background:
        #e6e7ea;
}

.pdf-page-card canvas {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.feature-copy {
    align-self: center;
    padding: 36px;
}

.feature-copy h3,
.vicar-copy h3 {
    margin: 8px 0;
    color: var(--navy);
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 24px;
    line-height: 1.22;
}

.feature-date {
    color: var(--muted);
    font-size: 13px;
}

.feature-copy p,
.vicar-copy p {
    color: #536472;
}

.vicar-feature-card {
    display: grid;
    grid-template-columns:
        1.05fr .95fr;
}

.vicar-copy {
    align-self: center;
    padding: 36px;
}

.scripture-line {
    padding-left: 16px;
    border-left:
        3px solid var(--gold);
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-style: italic;
}

.scripture-line span {
    display: block;
    margin-top: 7px;
    font-family:
        "DM Sans",
        Arial,
        sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    color: var(--gold-deep);
}

.pdf-page-two {
    height: 100%;
    min-height: 450px;
}

.empty-bulletin {
    padding: 50px;
    text-align: center;
    color: var(--muted);
    border-radius: 18px;
    background: white;
}


/* ============================================================
   QUICK LINKS
============================================================ */

.quick-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 18px;
}

.quick-card {
    position: relative;
    min-height: 245px;
    padding: 30px;
    overflow: hidden;
    text-decoration: none;
    border:
        1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(
            150deg,
            #ffffff,
            #f8fafb
        );
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.quick-card:hover {
    transform:
        translateY(-6px);
    border-color:
        #dbc48f;
    box-shadow: var(--shadow);
}

.quick-symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    color: white;
    background:
        linear-gradient(
            135deg,
            #d4a542,
            #a66d13
        );
    font-size: 20px;
}

.quick-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size: 19px;
}

.quick-card p {
    min-height: 54px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.quick-card > span {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}


/* ============================================================
   SCRIPTURE BANNER
============================================================ */

.scripture-banner {
    padding: 65px 0;
    text-align: center;
    color: white;
    background:
        linear-gradient(
            110deg,
            rgba(5, 38, 67, .98),
            rgba(16, 81, 128, .90)
        );
}

.scripture-heading {
    margin: 0 0 16px;
    font-family:
        "Libre Baskerville",
        Georgia,
        serif;
    font-size:
        clamp(20px, 2.7vw, 30px);
    font-style: italic;
}

.scripture-heading span {
    padding: 0 12px;
    color: #f2c867;
}

.scripture-banner blockquote {
    max-width: 820px;
    margin: 0 auto 8px;
    color:
        rgba(255, 255, 255, .78);
    font-size: 16px;
    font-style: italic;
}

.scripture-banner cite {
    color: #f0bf51;
    font-style: normal;
}


/* ============================================================
   CONTACT
============================================================ */

.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns:
        1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.contact-address {
    max-width: 570px;
    margin-bottom: 26px;
    color: #536472;
    font-size: 17px;
}

.contact-panel {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);
    overflow: hidden;
    border:
        1px solid #e3e8ec;
    border-radius: 20px;
    background: #f8fafb;
}

.contact-panel > div {
    min-height: 130px;
    padding: 25px;
    border-right:
        1px solid #e3e8ec;
    border-bottom:
        1px solid #e3e8ec;
}

.contact-panel > div:nth-child(2n) {
    border-right: 0;
}

.contact-panel > div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.contact-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.contact-panel strong,
.contact-panel a {
    color: var(--navy);
    text-decoration: none;
}


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

.site-footer {
    color: rgba(255, 255, 255, .78);
    background:
        linear-gradient(
            120deg,
            #061d30,
            #062b4d
        );
}

.footer-grid {
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-top: 55px;
    padding-bottom: 45px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-row img {
    width: 55px;
}

.footer-logo-row > div {
    display: flex;
    flex-direction: column;
}

.footer-logo-row strong {
    color: white;
    font-size: 14px;
}

.footer-logo-row span {
    margin-top: 5px;
    color: #ff4a52;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.footer-brand p {
    max-width: 390px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links strong {
    margin-bottom: 4px;
    color: white;
}

.footer-links a {
    color:
        rgba(255, 255, 255, .70);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 25px;
    border-top:
        1px solid
        rgba(255, 255, 255, .11);
    font-size: 12px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1180px) {

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

    .brand {
        min-width: 0;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .primary-nav {
        position: fixed;
        top: 74px;
        right: 18px;
        left: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px;
        border-radius: 16px;
        background: white;
        box-shadow: var(--shadow);
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav > a {
        padding: 11px 13px;
        white-space: normal;
    }

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

    .nav-button {
        text-align: center;
    }

    .menu-button {
        width: 44px;
        height: 42px;
        display: grid;
        align-content: center;
        gap: 5px;
        padding: 9px;
        border: 0;
        border-radius: 10px;
        background: #f3f5f7;
        cursor: pointer;
    }

    .menu-button span:not(.sr-only) {
        width: 100%;
        height: 2px;
        display: block;
        background: var(--navy);
    }

    .hero-grid {
        grid-template-columns:
            1fr 330px;
        gap: 35px;
    }

    .anniversary-mark {
        right: -20px;
    }

    .bulletin-feature-grid {
        grid-template-columns: 1fr;
    }

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


@media (max-width: 760px) {

    .shell {
        width:
            min(100% - 28px, 1180px);
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .brand-copy small {
        font-size: 9px;
    }

    .brand-logo {
        width: 45px;
        height: 55px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 60px;
        padding-bottom: 90px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-theme {
        text-align: left;
    }

    .hero-actions {
        justify-content: center;
    }

    .bulletin-stage {
        width: min(330px, 88%);
        margin-top: 20px;
    }

    .pdf-cover-large {
        width: 100%;
    }

    .anniversary-mark {
        right: -10px;
        top: -35px;
        width: 98px;
        height: 98px;
    }

    .anniversary-mark span {
        font-size: 35px;
    }

    .community-grid {
        grid-template-columns:
            repeat(2, 1fr);
        padding: 18px 0;
    }

    .community-grid > div {
        justify-content: flex-start;
        font-size: 12px;
    }

    .section {
        padding: 65px 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-heading-row {
        display: block;
    }

    .desktop-link {
        display: none;
    }

    .mobile-link {
        display: inline-flex;
        margin-top: 25px;
    }

    .bulletin-feature-card,
    .vicar-feature-card {
        grid-template-columns: 1fr;
    }

    .pdf-page-card,
    .pdf-page-two {
        min-height: 0;
        max-height: 580px;
    }

    .vicar-copy {
        order: 2;
    }

    .pdf-page-two {
        order: 1;
    }

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

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-panel > div {
        border-right: 0;
        border-bottom:
            1px solid #e3e8ec !important;
    }

    .contact-panel > div:last-child {
        border-bottom: 0 !important;
    }

    .footer-grid {
        grid-template-columns:
            1fr 1fr;
        gap: 35px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 480px) {

    .brand-copy small {
        display: none;
    }

    .brand {
        max-width: 245px;
    }

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

    .hero-theme {
        width: 100%;
    }

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

    .community-grid > div {
        justify-content: center;
    }

    .feature-copy,
    .vicar-copy,
    .milestone-card {
        padding: 26px;
    }

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

}
