:root {
  color-scheme: light;
  --ink: #2c2020;
  --muted: #665451;
  --maroon: #431f26;
  --wine: #542630;
  --paper: #fffaf0;
  --white: #fffdf8;
  --sand: #f3e6cf;
  --line: #e3d1b9;
  --gold: #f0cd87;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #a66a19; outline-offset: 4px; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h2 { font-size: clamp(2.35rem, 4.5vw, 3.9rem); letter-spacing: -.045em; }
h3 { font-size: 1.7rem; letter-spacing: -.025em; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 3rem, 1140px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 1rem auto auto 1rem; padding: .5rem .85rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.eyebrow, .resource-type { display: block; color: #805021; text-transform: uppercase; font-weight: 700; font-size: .8rem; letter-spacing: .12em; line-height: 1.4; margin-bottom: .75rem; }

.site-header { background: var(--white); color: var(--maroon); }
.header-inner, .footer-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.identity { display: inline-flex; align-items: center; gap: .68rem; text-decoration: none; flex-shrink: 0; }
.seal { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #9d7556; border-radius: 50%; color: var(--maroon); font: 1.6rem/1 var(--serif); }
.seal i, .cross-mark i { position: relative; width: 2px; height: 22px; background: currentColor; }
.seal i::before, .cross-mark i::before { content: ""; position: absolute; top: 5px; left: -3px; width: 8px; height: 2px; background: currentColor; }
.seal i::after, .cross-mark i::after { content: ""; position: absolute; top: 10px; left: -6px; width: 14px; height: 2px; background: currentColor; }
.seal, .cross-mark { position: relative; }
.seal::after, .cross-mark::after { content: ""; position: absolute; top: 63%; left: calc(50% - 5px); width: 10px; height: 2px; background: currentColor; transform: rotate(19deg); }
.identity strong, .identity small { display: block; }
.identity strong { font: 1.32rem/1.05 var(--serif); }
.identity small { color: var(--muted); font-size: .74rem; margin-top: .17rem; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.75rem, 2.9vw, 2.2rem); }
nav a { text-decoration: none; font-size: .9rem; color: #513a38; font-weight: 600; }
nav a:hover { text-decoration: underline; text-underline-offset: .22em; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.12rem; border: 1px solid transparent; border-radius: 4px; color: var(--white); background: var(--maroon); font-size: .9rem; line-height: 1.4; text-decoration: none; font-weight: 700; text-align: center; }
.button:hover { background: #653540; }
.button-small { padding: .57rem .9rem; }
.button-gold { background: var(--gold); color: #372018; }
.button-gold:hover { background: #ffdfa0; }
.button-outline { color: var(--white); background: transparent; border-color: #d6b5a3; }
.button-outline:hover { background: #ffffff20; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }

[hidden] { display: none !important; }
.schedule-banner { background: #f7e4ba; color: var(--maroon); border-block: 1px solid #d4b77d; }
.schedule-banner .wrap { padding-block: 1rem; }
.schedule-banner h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); letter-spacing: -.025em; }
.schedule-banner time { display: block; margin-top: .25rem; font-weight: 700; }
.schedule-banner p { max-width: 54rem; margin-top: .3rem; overflow-wrap: anywhere; white-space: pre-line; }
.schedule-unavailable { background: var(--paper); border-block: 1px solid var(--line); }
.schedule-unavailable .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding-block: .55rem; color: var(--muted); font-size: .9rem; }
.schedule-unavailable a, .schedule-unavailable button { color: var(--wine, #71303b); font-weight: 650; text-decoration: underline; text-underline-offset: .18em; }
.schedule-unavailable button { appearance: none; background: none; border: 0; margin: 0; padding: .25rem 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.schedule-unavailable button:focus-visible { outline: 3px solid #a66a19; outline-offset: 3px; }
.schedule-unavailable button:disabled { cursor: wait; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #43242a; color: var(--white); }
.hero-photo { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #31151a 0%, #31151aeb 31%, #31151a95 55%, #31151a2b 100%), url("https://images.squarespace-cdn.com/content/v1/6535fe2f7eaa193cf2f5e027/75c938c9-ee65-4088-a855-2587e854ab90/church-exterior.jpeg?format=1500w") center 55%/cover no-repeat; }
.photo-credit { position: absolute; bottom: .75rem; right: 1rem; padding: .18rem .45rem; color: var(--white); background: #31151ad9; border-radius: 3px; font-size: .74rem; }
.hero-inner { display: flex; min-height: 480px; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 4rem 4.25rem; }
.hero-eyebrow, .visit .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(3.6rem, 8vw, 7rem); line-height: .94; letter-spacing: -.06em; }
.hero h1 em { color: #f1ce91; font-weight: 400; }
.hero p { max-width: 35rem; margin-top: 1.35rem; color: #fff1e6; font-size: 1.08rem; }
.visit-strip { background: var(--sand); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-inner > div { padding: 1.02rem 1.3rem 1.02rem 0; }
.strip-inner > div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.strip-inner strong, .strip-inner span { display: block; }
.strip-inner strong { color: var(--maroon); font: 1.12rem/1.3 var(--serif); }
.strip-inner span { color: var(--muted); font-size: .9rem; }

.welcome { padding-block: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.welcome-copy { color: var(--muted); font-size: 1.06rem; }
.signed { margin-top: 1rem; color: var(--ink); font-size: .95rem; font-weight: 700; }
.signed span { color: var(--muted); font-weight: 400; }
.section { padding-block: 4.5rem; }
.section-line { border-top: 1px solid var(--line); }
.classes-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.section-intro { max-width: 33rem; margin-top: .8rem; color: var(--muted); }
.class-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.class-list li { border-top: 1px solid var(--line); }
.class-list a { display: block; padding: .65rem .12rem .68rem; }
.class-register { margin-top: 1rem; }
.class-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.class-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.class-card { padding: 1.25rem; scroll-margin-top: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.class-card:target { outline: 2px solid #9d7556; }
.class-details { margin-top: .65rem; }
.class-details dt { color: var(--muted); font-size: .9rem; font-weight: 700; }
.class-details dd + dt { margin-top: .65rem; }
.class-details dd a + a { display: block; }
.class-materials { margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.class-materials h4 { margin: 0; color: var(--maroon); font: 500 1.25rem/1.2 var(--serif); }
.teacher-section { background: #f8eddb; border-top: 1px solid var(--line); }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.profile-card { background: var(--white); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.profile-photo { display: grid; place-items: center; position: relative; min-height: 10rem; background: #ecd9be; color: var(--maroon); }
.profile-card:nth-child(2) .profile-photo { background: #ebd6d2; }
.profile-card:nth-child(3) .profile-photo { background: #e5dfd1; }
.profile-photo > span { display: grid; place-items: center; width: 4rem; height: 4rem; border: 1px solid #9d7556; border-radius: 50%; font: 1.55rem/1 var(--serif); }
.profile-photo > img { width: min(80%, 7.5rem); height: auto; aspect-ratio: 1; border: 2px solid var(--white); border-radius: 50%; object-fit: none; object-position: 50% 18%; }
.profile-body { padding: 1.3rem; }
.profile-body h3[id] { scroll-margin-top: 1rem; }
.profile-card:has(h3:target) { outline: 2px solid #9d7556; }
.profile-body p { margin-top: .65rem; color: var(--muted); }
.profile-body .profile-role { margin-top: .25rem; color: #71303b; font-size: .9rem; font-weight: 700; }
.profile-more { margin-top: .75rem; }
.profile-more summary { color: #71303b; cursor: pointer; font-weight: 700; }
.profile-more[open] { margin-top: .85rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.profile-email { display: inline-block; margin-top: .75rem; overflow-wrap: anywhere; }
.school-contact { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: .9rem 1.35rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-style: normal; }
.school-contact strong, .school-contact a { display: block; }
.school-contact a { width: fit-content; overflow-wrap: anywhere; }
.text-link { color: #71303b; font-weight: 700; text-underline-offset: .2em; }
.text-link:hover { color: #a24d4b; }

.resources { background: #f2e8da; border-block: 1px solid var(--line); }
.section-heading { max-width: 42rem; margin-bottom: 1.65rem; }
.section-heading p { margin-top: .65rem; color: var(--muted); }
.resource-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr; gap: 1rem; }
.resource-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border-radius: 5px; border: 1px solid var(--line); padding: 1.4rem; background: var(--white); }
.resource-card.featured { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.resource-mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid #c5a67f; border-radius: 50%; font: 1.35rem/1 var(--serif); color: #805021; margin-bottom: .9rem; }
.featured .resource-mark, .featured .resource-type { color: var(--gold); }
.resource-type { font-size: .73rem; margin-bottom: .35rem; }
.resource-card p { margin: .55rem 0 1.15rem; color: var(--muted); }
.resource-card.featured p { color: #f7e5d8; }
.resource-card > a { margin-top: auto; }
.lesson-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-top: 1.25rem; }
.lesson-grid article { border-top: 1px solid #d6bea1; padding-top: .85rem; }
.lesson-grid h3 { font-size: 1.5rem; }
.lesson-grid p { margin: .35rem 0 .55rem; color: var(--muted); }
.lesson-grid a { display: inline-block; margin-right: 1rem; }
.scripture-ref { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.scripture-ref + .scripture-ref { margin-top: .35rem; }

.church-guide { background: var(--white); border-bottom: 1px solid var(--line); }
.church-guide-layout, .altar-layout, .plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.guide-links, .plan-files { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; }
.architecture { margin-top: 2.4rem; padding-top: 1.65rem; border-top: 1px solid var(--line); }
.plan-layout { grid-template-columns: minmax(14rem, .72fr) minmax(0, 1.5fr); }
.plan-intro p, .section-drawing > p { margin-top: .8rem; color: var(--muted); }
.plan-files { margin-top: 1.25rem; }
.plan-sheet { margin: 0; min-width: 0; }
.plan-sheet > a { display: block; }
.plan-sheet img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--white); border-radius: 4px; }
.plan-sheet figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.section-drawing { margin-top: 1.35rem; border-block: 1px solid var(--line); background: #f8f1e5; padding: .85rem 1.1rem; }
.section-drawing summary { color: var(--maroon); cursor: pointer; font-weight: 700; }
.section-drawing summary:focus-visible { outline: 3px solid #a66a19; outline-offset: 4px; }
.section-drawing .plan-sheet { max-width: 54rem; margin: 1rem auto .3rem; }
.section-drawing > p { max-width: 64ch; }
.church-terms dt { color: var(--maroon); font-weight: 700; }
.church-terms dd { color: var(--muted); margin-bottom: .75rem; }
.church-terms dd:last-child { margin-bottom: 0; }
.church-photo { margin: 0; min-width: 0; }
.church-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.church-photo figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.altar-layout { grid-template-columns: minmax(14rem, .55fr) minmax(0, 1.45fr); margin-top: 2.4rem; padding-top: 1.65rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.altar-layout h3 + p { margin-top: .55rem; color: var(--muted); }
.altar-photo { max-width: 19rem; margin-top: 1rem; }
.altar-table { width: 100%; border-collapse: collapse; text-align: left; }
.altar-table caption { color: var(--maroon); text-align: left; font: 1.4rem/1.2 var(--serif); margin-bottom: .6rem; }
.altar-table caption span { display: block; padding-top: .35rem; color: var(--muted); font: .92rem/1.45 var(--sans); }
.altar-table th, .altar-table td { padding: .56rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.altar-table thead { background: var(--sand); }
.altar-table tbody th { width: 47%; font-weight: 650; }
.altar-table tbody td, .altar-table tbody th { vertical-align: middle; }
.furnishing-label { margin-bottom: .4rem; display: block; line-height: 1.3; }
.furnishing-images { display: flex; flex-wrap: wrap; gap: .45rem; }
.furnishing-images > span { width: min(100%, 8.5rem); }
.furnishing-images a { display: block; width: min(100%, 10.5rem); }
.furnishing-images img { display: block; width: 100%; height: 6.6rem; object-fit: contain; background: #f3eee7; border: 1px solid var(--line); border-radius: 3px; }
.furnishing-images a:hover img, .plan-sheet > a:hover img { outline: 2px solid #9d7556; outline-offset: 1px; }
.furnishing-images small { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
.furnishings-help { margin-top: .85rem; color: var(--muted); font-size: .95rem; }
.altar-table td { color: var(--muted); }
.church-reading { margin-top: 1.2rem; color: var(--muted); }
@media (min-width: 880px) and (min-height: 730px) {
  .altar-layout > div { position: sticky; top: 1rem; }
}

.activity-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); }
.event-flyers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.25rem; }
.event-flyers img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 3px 10px #431f2626; }
.event { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.event:last-child { border-bottom: 1px solid var(--line); }
.event time { display: flex; flex-direction: column; align-items: center; align-self: start; color: var(--maroon); background: var(--sand); padding: .35rem .22rem .52rem; border-radius: 4px; }
.event time span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.event time strong { font: 1.55rem/1.05 var(--serif); }
.event h3 { font-size: 1.42rem; }
.event p { margin-top: .25rem; color: var(--muted); }
.event .event-rsvp { display: inline-block; margin-top: .35rem; }

.support-school { background: #f8eddb; border-top: 1px solid var(--line); padding-block: 1.65rem; }
.giving { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.giving h2 { font-size: 1.7rem; letter-spacing: -.025em; }
.giving p { margin-top: .35rem; color: var(--muted); }
.visit { background: var(--maroon); color: var(--white); }
.visit-layout { display: grid; grid-template-columns: 1fr .72fr; gap: 3rem; }
.visit .section-intro { color: #faeada; }
.visit-details { border-left: 1px solid #a48072; padding-left: 1.6rem; }
.visit-details address { font-style: normal; }
.school-time { margin-top: 1rem; color: #faeada; }
.site-footer { background: var(--white); color: var(--maroon); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 1140px); }
  .header-inner { flex-wrap: wrap; gap: .65rem 1rem; padding-block: .72rem; }
  nav { order: 3; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: .5rem; gap: .55rem 1.3rem; }
  .hero-inner { min-height: 425px; padding-block: 3.2rem; }
  .hero-photo { background-position: center, 61% center; }
  .welcome, .classes-layout, .church-guide-layout, .altar-layout, .plan-layout, .activity-layout, .visit-layout { grid-template-columns: 1fr; gap: 1.45rem; }
  .welcome, .section { padding-block: 3rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { display: grid; grid-template-columns: minmax(5.5rem, .4fr) 1fr; }
  .profile-photo { min-height: 9rem; }
  .profile-body { padding: 1rem; }
  .school-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .featured { grid-column: span 2; }
  .visit-details { border-left: 0; border-top: 1px solid #a48072; padding: 1rem 0 0; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: clamp(3.1rem, 13vw, 4.5rem); }
  .hero p { font-size: 1rem; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-inner > div, .strip-inner > div + div { border: 0; padding: .55rem 0; }
  .strip-inner > div + div { border-top: 1px solid var(--line); }
  .strip-inner strong, .strip-inner span { display: inline; }
  .strip-inner span { margin-left: .35rem; }
  .resource-grid, .lesson-grid { grid-template-columns: 1fr; }
  .class-directory, .school-contact { grid-template-columns: 1fr; }
  .featured { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
