/* ==========================================================================
   Sir Walter Tapper & his Churches
   ========================================================================== */

:root {
    --parchment: #f3ecdd;
    --paper: #fbf8f1;
    --ink: #2a211b;
    --ink-soft: #5b4e43;
    --ink-faint: #8a7b6d;
    --oxblood: #7b2a1f;
    --oxblood-dark: #561a12;
    --gold: #a8843c;
    --gold-light: #d9bf82;
    --rule: #dccfb6;
    --walnut: #2b211a;
    --walnut-2: #3a2d23;
    --cream: #f1e6cc;

    --font-body: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
    --font-display: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;

    --wrap: 76rem;
    --gutter: clamp(1rem, 3vw, 2rem);
    --radius: 3px;
    --shadow: 0 1px 2px rgba(43, 33, 26, .08), 0 4px 14px rgba(43, 33, 26, .08);
}

/* ---- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1.075rem, 1rem + .3vw, 1.2rem);
    line-height: 1.65;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures oldstyle-nums;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--oxblood);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    text-decoration-color: rgba(123, 42, 31, .35);
}
a:hover { color: var(--oxblood-dark); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--paper); color: var(--ink); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Header ------------------------------------------------------------- */

.site-header {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(168, 132, 60, .16), transparent 60%),
        var(--walnut);
    color: var(--cream);
    border-bottom: 3px double var(--gold);
    position: relative;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem .9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(.8rem, 2vw, 1.25rem);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.brand:hover { color: inherit; }

.cameo {
    flex: none;
    width: clamp(64px, 9vw, 92px);
    aspect-ratio: 4 / 5;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, #f4e8cc 0%, #e2cfa4 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px var(--walnut), 0 0 0 5px rgba(217, 191, 130, .45), 0 6px 18px rgba(0, 0, 0, .45);
    display: grid;
    place-items: end center;
}
.cameo img { width: 96%; height: auto; display: block; margin-bottom: -2%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
    letter-spacing: .01em;
    color: #f7edd6;
}
.brand-sub {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, .9rem + 1vw, 1.55rem);
    color: var(--gold-light);
}
.brand-tag {
    margin-top: .45rem;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(241, 230, 204, .7);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(217, 191, 130, .5);
    border-radius: var(--radius);
    padding: .5rem .8rem;
    font: inherit;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { background: var(--walnut-2); border-top: 1px solid rgba(217, 191, 130, .18); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list a {
    display: block;
    padding: .7rem 1rem;
    color: var(--cream);
    text-decoration: none;
    font-size: .92rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nav-list > li:first-child > a { padding-left: 0; }
.nav-list > li > a:hover { color: var(--gold-light); }
.nav-list > li > a[aria-current="page"] { color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold); }

.has-drop > a::after {
    content: ""; display: inline-block; margin-left: .45em; vertical-align: .2em;
    border: 4px solid transparent; border-top-color: currentColor; border-bottom-width: 0;
}
.drop {
    list-style: none; margin: 0; padding: .4rem 0;
    position: absolute; left: 0; top: 100%;
    min-width: 22rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.has-drop:hover > .drop, .has-drop:focus-within > .drop { visibility: visible; opacity: 1; transform: none; }
.drop a {
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    padding: .38rem 1rem;
}
.drop a:hover { background: var(--parchment); color: var(--oxblood); }
.drop-year {
    display: inline-block; min-width: 4.3em;
    color: var(--ink-faint); font-size: .85em; font-variant-numeric: tabular-nums lining-nums;
}

/* ---- Layout ------------------------------------------------------------- */

main.layout {
    flex: 1;
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    padding-block: clamp(1.5rem, 4vw, 3rem) 4rem;
}
main.layout-wide { grid-template-columns: minmax(0, 1fr); }

.content {
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 4vw, 3.25rem) clamp(1.1rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    min-width: 0;
}
.layout-wide .content { max-width: none; }
.page-index .content { background: transparent; border: 0; box-shadow: none; padding: 0; }
.page-index .content > .prose { max-width: none; }

/* ---- Section menu (sidebar) --------------------------------------------- */

.section-nav {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    font-size: 1rem;
    border-top: 3px double var(--gold);
    padding-top: .75rem;
}
.section-nav summary {
    list-style: none;
    cursor: pointer;
    display: flex; flex-direction: column;
    margin-bottom: .6rem;
}
.section-nav summary::-webkit-details-marker { display: none; }
.section-kicker {
    font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.section-name {
    font-family: var(--font-display);
    font-size: 1.45rem; font-weight: 600; line-height: 1.15;
    color: var(--oxblood);
}

.menu { list-style: none; margin: 0; padding: 0; }
.menu .menu { padding-left: .9rem; border-left: 1px solid var(--rule); margin: .1rem 0 .35rem .35rem; }
.menu a {
    display: block;
    padding: .22rem .5rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius);
    line-height: 1.3;
}
.menu a:hover { background: rgba(168, 132, 60, .12); color: var(--oxblood); }
.menu a[aria-current="page"] {
    background: var(--oxblood);
    color: #fff8ec;
}
.menu .group-label {
    display: block;
    margin-top: .7rem;
    padding: .2rem .5rem;
    font-size: .74rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.menu.depth-0 > li.group + li:not(.group) { margin-top: .5rem; }

/* ---- Breadcrumbs & headings --------------------------------------------- */

.breadcrumbs ol {
    list-style: none; margin: 0 0 .9rem; padding: 0;
    display: flex; flex-wrap: wrap; gap: .2rem .5rem;
    font-size: .88rem; color: var(--ink-faint);
}
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--gold); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--oxblood); text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--oxblood-dark);
    text-wrap: balance;
}
h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
    margin: 0 0 .6rem;
    letter-spacing: -.005em;
}
h1::after {
    content: "";
    display: block;
    width: 5.5rem;
    height: 7px;
    margin-top: .8rem;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}
.lede {
    font-size: 1.15em;
    font-style: italic;
    color: var(--ink-soft);
    margin: 0 0 1.5rem;
}
.lede + .lede { margin-top: -1.1rem; }

/* ---- Prose -------------------------------------------------------------- */

.prose { max-width: 44rem; }
.layout-wide .prose { max-width: 48rem; }
.prose > * + * { margin-top: 1.05em; }
:where(.prose p) { margin: 0; hyphens: auto; }
.prose h2 {
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
    margin: 2.2rem 0 0;
}
.prose h2 + * { margin-top: .6rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 0; }
.prose i, .prose em { font-style: italic; }
.prose u { text-decoration-thickness: 1px; text-underline-offset: .15em; }
.prose sup { font-size: .68em; line-height: 0; }
.prose sup.fn-ref { color: var(--oxblood); font-weight: 600; }

.prose .dropcap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3.6em;
    line-height: .8;
    padding: .08em .1em 0 0;
    color: var(--oxblood);
}

.prose .quote,
.prose blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: .2rem 0 .2rem 1.25rem;
    border-left: 3px solid var(--gold-light);
    font-style: italic;
    color: var(--ink-soft);
}

.prose .inscription {
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .92em;
    text-align: center;
    border: 1px solid var(--rule);
    background: var(--parchment);
    padding: 1.2rem 1.4rem;
    color: var(--ink);
}

.prose .footnotes {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.footnotes ol, .footnotes ul { margin: 0; padding: 0; list-style: none; }
.footnotes li { padding-left: 2.2em; text-indent: -2.2em; margin-bottom: .35em; }
.footnotes li > sup:first-child {
    display: inline-block; min-width: 2.2em; text-indent: 0; font-size: .85em; line-height: inherit;
    vertical-align: baseline; color: var(--oxblood); font-weight: 600;
}

.prose hr, .ornament {
    border: 0;
    margin: 2rem auto;
    text-align: center;
    color: var(--gold);
}
.ornament::before { content: "❦"; font-size: 1.3rem; }

/* Two-column lists (e.g. the war memorial names) */
.pairs {
    display: grid;
    grid-template-columns: minmax(8rem, 13rem) 1fr;
    margin: 0;
    border-top: 1px solid var(--rule);
}
.pairs dt, .pairs dd {
    margin: 0;
    padding: .45rem .4rem;
    border-bottom: 1px solid var(--rule);
}
.pairs dt {
    font-variant: small-caps;
    letter-spacing: .03em;
    font-weight: 600;
}
.pairs.numbered { grid-template-columns: 2.5rem 1fr; }
.pairs.numbered dt { font-variant: normal; color: var(--oxblood); }

/* Tables */
.table-wrap { overflow-x: auto; }
.prose table {
    border-collapse: collapse;
    margin-inline: auto;
    min-width: 18rem;
    font-variant-numeric: lining-nums tabular-nums;
}
.prose th, .prose td { padding: .35rem .9rem; border-bottom: 1px solid var(--rule); text-align: left; }
.prose th { font-family: var(--font-display); font-size: 1.1em; border-bottom: 2px solid var(--gold); }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; }

/* ---- Images & galleries ------------------------------------------------- */

.gallery {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 100%), 1fr));
    gap: 1.1rem;
}
.layout-wide .gallery, .prose .gallery { max-width: none; }

.gallery figure, .feature {
    margin: 0;
}
.gallery a, .feature a {
    display: block;
    position: relative;
    background: #e6dcc7;
    border: 1px solid var(--rule);
    padding: 5px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gallery a:hover, .feature a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(43, 33, 26, .1), 0 10px 24px rgba(43, 33, 26, .16);
}
.gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #d9ccb0;
}
.gallery figcaption, .feature figcaption {
    margin-top: .45rem;
    font-size: .86rem;
    line-height: 1.35;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature { max-width: 30rem; }
.feature img { display: block; width: 100%; }
.feature figcaption { -webkit-line-clamp: unset; font-style: italic; }
.gallery.pair { grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); max-width: 40rem; }

a[data-lightbox] { cursor: zoom-in; }

/* ---- Section index (landing pages) -------------------------------------- */

.section-index {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 3px double var(--rule);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
    gap: 1.25rem;
}
.index-group {
    background: var(--parchment);
    border: 1px solid var(--rule);
    padding: 1rem 1.2rem 1.1rem;
}
.index-group h2 {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
}
.index-group h2 a { color: inherit; text-decoration: none; }
.index-group h2 a:hover { color: var(--oxblood); text-decoration: underline; }
.index-group ul { list-style: none; margin: 0; padding: 0; }
.index-group li { padding: .15rem 0; }
.index-group li a::before { content: "›"; color: var(--gold); margin-right: .45rem; }
.index-group li a { text-decoration: none; }
.index-group li a:hover { text-decoration: underline; }

/* ---- Pager -------------------------------------------------------------- */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}
.pager a {
    display: flex; flex-direction: column;
    padding: .75rem 1rem;
    border: 1px solid var(--rule);
    background: var(--parchment);
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius);
}
.pager a:hover { border-color: var(--gold); color: var(--oxblood); }
.pager-next { grid-column: 2; text-align: right; }
.pager-dir { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.pager-prev .pager-dir::before { content: "← "; }
.pager-next .pager-dir::after { content: " →"; }
.pager-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }

/* ---- Home page ---------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
}
.hero-kicker {
    font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .prose > * + * { margin-top: .9em; }
.hero-figure { margin: 0; }
.hero-figure a { display: block; border: 1px solid var(--rule); padding: 6px; background: #e6dcc7; box-shadow: var(--shadow); }
.hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-figure figcaption { font-size: .86rem; font-style: italic; color: var(--ink-soft); margin-top: .5rem; }

.home-section { margin-top: clamp(2.5rem, 6vw, 4rem); }
.home-section-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
    border-bottom: 3px double var(--rule);
    padding-bottom: .5rem;
    margin-bottom: 1.5rem;
}
.home-section-head h2 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.home-section-head a { font-size: .95rem; }

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--oxblood);
    padding: 1.3rem 1.4rem 1.4rem;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.45rem; }
.feature-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.feature-card .more { margin-top: auto; font-weight: 500; }

/* Church cards (home + churches page) */
.church-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
    gap: 1.25rem;
}
.prose .church-grid { max-width: none; }
.church-card { margin: 0 !important; }
.church-card > a, .church-card.no-page {
    display: flex; flex-direction: column; height: 100%;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.church-card > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(43, 33, 26, .1), 0 12px 28px rgba(43, 33, 26, .18);
}
.church-card img, .church-card .no-image {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-bottom: 3px solid var(--gold);
    background: #d9ccb0;
}
.church-card .no-image {
    display: grid; place-items: center; color: rgba(123, 42, 31, .35);
    background: repeating-linear-gradient(135deg, #e9dfca 0 10px, #e3d7bf 10px 20px);
}
.church-card .no-image svg { width: 3.2rem; height: auto; }
.card-body { display: flex; flex-direction: column; padding: .8rem 1rem 1rem; gap: .1rem; }
.card-years {
    font-size: .8rem; letter-spacing: .14em; color: var(--gold);
    font-variant-numeric: lining-nums; font-weight: 600;
}
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--oxblood-dark); }
.card-place { color: var(--ink-soft); font-style: italic; }
.card-note { margin-top: .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.church-card.no-page { opacity: .85; }

/* Churches page: timeline */
.timeline {
    list-style: none; margin: 2rem 0 0; padding: 0;
    position: relative;
}
.timeline::before {
    content: ""; position: absolute; left: 5.4rem; top: .5rem; bottom: .5rem;
    width: 2px; background: linear-gradient(var(--gold-light), var(--gold), var(--gold-light));
}
.timeline > li {
    display: grid;
    grid-template-columns: 4.6rem 1.6rem minmax(0, 1fr);
    align-items: center;
    gap: .2rem;
    margin: 0 0 1rem;
}
.tl-year {
    text-align: right;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--oxblood);
    font-variant-numeric: lining-nums;
    line-height: 1.1;
}
.tl-dot {
    justify-self: center;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--gold);
    position: relative; z-index: 1;
}
.tl-card {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    background: var(--parchment);
    border: 1px solid var(--rule);
    padding: .6rem;
}
.tl-card .tl-thumb { display: block; border: 1px solid var(--rule); background: #d9ccb0; }
.tl-card .tl-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl-card .no-image { aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(123, 42, 31, .35);
    background: repeating-linear-gradient(135deg, #e9dfca 0 10px, #e3d7bf 10px 20px); }
.tl-card .no-image svg { width: 2.2rem; }
.tl-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }
.tl-name a { text-decoration: none; }
.tl-name a:hover { text-decoration: underline; }
.tl-place { display: block; color: var(--ink-soft); font-style: italic; }
.tl-note { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .2rem; }

/* Sitemap */
.sitemap .menu { font-size: 1.05rem; }
.sitemap .menu .menu { margin-left: .5rem; }
.sitemap > .menu > li > a { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }

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

.site-footer {
    background: var(--walnut);
    color: rgba(241, 230, 204, .78);
    border-top: 3px double var(--gold);
    font-size: .95rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem 2rem;
    padding-block: 2rem 1.5rem;
}
.footer-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--cream); margin: 0 0 .3rem; }
.footer-about p:last-child { margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; justify-content: flex-end; }
.footer-nav a, .site-footer a { color: var(--gold-light); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright {
    grid-column: 1 / -1;
    margin: .5rem 0 0; padding-top: 1rem;
    border-top: 1px solid rgba(217, 191, 130, .2);
    font-size: .85rem; color: rgba(241, 230, 204, .6);
}

/* ---- Lightbox ----------------------------------------------------------- */

.lightbox {
    position: fixed; inset: 0;
    width: 100%; height: 100%; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(20, 15, 11, .94);
    color: var(--cream);
}
.lightbox::backdrop { background: rgba(20, 15, 11, .6); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-stage {
    display: grid; place-items: center;
    padding: 3.5rem 4rem 1rem;
    min-height: 0;
    touch-action: pan-y;
}
.lb-stage img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
    background: #222;
    transition: opacity .2s;
}
.lb-stage img.loading { opacity: .25; }
.lb-bar {
    display: flex; gap: 1rem; align-items: baseline; justify-content: center;
    padding: .6rem 1.5rem 1.2rem;
    text-align: center;
}
.lb-caption { max-width: 50rem; font-style: italic; }
.lb-count { font-size: .85rem; letter-spacing: .1em; color: var(--gold-light); white-space: nowrap; }
.lb-btn {
    position: absolute;
    background: rgba(43, 33, 26, .7);
    color: var(--cream);
    border: 1px solid rgba(217, 191, 130, .4);
    width: 2.9rem; height: 2.9rem; border-radius: 50%;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
}
.lb-btn:hover { background: var(--oxblood); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 45%; }
.lb-next { right: .8rem; top: 45%; }
.lb-full { top: .8rem; left: .8rem; width: auto; border-radius: 999px; padding: 0 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 60rem) {
    main.layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .section-nav {
        position: static; max-height: none;
        background: var(--paper);
        border: 1px solid var(--rule);
        border-top: 3px solid var(--gold);
        padding: .8rem 1rem;
    }
    .section-nav summary { margin: 0; position: relative; padding-right: 2rem; }
    .section-nav summary::after {
        content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
        font-size: 1.5rem; color: var(--gold);
    }
    .section-nav[open] summary::after { content: "−"; }
    .section-nav[open] summary { margin-bottom: .6rem; }
    .section-nav:not([open]) > .menu { display: none; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero-figure { max-width: 26rem; }
}

@media (max-width: 48rem) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; }
    .site-nav.open { display: block; }
    .nav-list { flex-direction: column; padding-block: .4rem; }
    .nav-list > li > a { padding: .65rem 0; border-bottom: 1px solid rgba(217, 191, 130, .12); }
    .nav-list > li > a[aria-current="page"] { box-shadow: none; }
    .has-drop > a::after { display: none; }
    .drop {
        position: static; visibility: visible; opacity: 1; transform: none;
        min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 .4rem .9rem;
    }
    .drop a { color: var(--cream); font-size: .98rem; padding: .35rem 0; }
    .drop a:hover { background: transparent; color: var(--gold-light); }
    .drop-year { color: rgba(241, 230, 204, .5); }

    .brand-tag { display: none; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); }
    .footer-nav ul { justify-content: flex-start; }

    .timeline::before { left: 3.9rem; }
    .timeline > li { grid-template-columns: 3.4rem 1rem minmax(0, 1fr); }
    .tl-year { font-size: .95rem; }
    .tl-card { grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; }
    .tl-name { font-size: 1.12rem; }

    .pairs { grid-template-columns: minmax(0, 1fr); }
    .pairs dt { border-bottom: 0; padding-bottom: 0; }
    .pairs.numbered { grid-template-columns: 2rem minmax(0, 1fr); }
    .pairs.numbered dt { border-bottom: 1px solid var(--rule); padding-bottom: .45rem; }

    .lb-stage { padding: 3.8rem .5rem .5rem; }
    .lb-prev, .lb-next { top: auto; bottom: 1rem; }
    .lb-bar { padding-inline: 3.8rem; }
}

@media (max-width: 30rem) {
    .pager { grid-template-columns: minmax(0, 1fr); }
    .pager-next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

@media print {
    .site-header, .site-nav, .section-nav, .pager, .site-footer, .breadcrumbs, .section-index { display: none !important; }
    body { background: #fff; }
    main.layout { display: block; padding: 0; }
    .content { border: 0; box-shadow: none; padding: 0; }
    .gallery a, .feature a { box-shadow: none; }
}

/* ---- Church facts, maps and notices -------------------------------------- */

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 2.25rem;
    margin: 0 0 1.5rem;
    padding: .8rem 1.1rem;
    background: var(--parchment);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--gold);
}
.facts div { display: flex; flex-direction: column; }
.facts dt { font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--oxblood-dark); }
.facts dd a { text-decoration: none; }

.map {
    height: clamp(18rem, 45vw, 26rem);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    background: #e6dcc7;
    z-index: 0;
}
.map-all { height: clamp(22rem, 60vw, 34rem); }
.prose .map-credit, .map-credit { margin-top: .35rem; font-size: .8rem; color: var(--ink-faint); }
.map-credit a { color: inherit; }
.prose .map-links { margin-top: .2rem; font-size: .95rem; }
.approx { color: var(--ink-faint); font-style: italic; }
.map-popup-meta { font-size: .85em; color: #5b4e43; margin-top: .2em; }
.leaflet-container { font-family: var(--font-body); font-size: 1rem; }
.leaflet-popup-content a { color: var(--oxblood); font-weight: 600; }

.notice {
    padding: .7rem 1rem;
    border: 1px solid var(--gold);
    background: #fbf1d8;
    color: var(--ink);
}
.card-status, .tl-status { font-size: .82rem; color: var(--ink-faint); margin-top: .15rem; }
