:root {
  --ink: #211E1B;
  --ivory: #F4EEDF;
  --paper: #FBF8EF;
  --evergreen: #0B3028;
  --gold: #B59A63;
  --rule: rgba(33, 30, 27, .2);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --wrap: 80rem;
  --r: 10px;
  /* Washes: soft vertical gradients drawn from the brand colours */
  --wash-cream: linear-gradient(180deg, #F4EEDF 0%, #FBF8EF 42%, #F1E6C8 100%);
  --wash-sage: linear-gradient(180deg, #ECE7D7 0%, #B4BDA3 55%, #3B6252 100%);
  --wash-gold: linear-gradient(180deg, #F3ECD9 0%, #DCCB9C 55%, #B59A63 100%);
  --wash-deep: linear-gradient(180deg, #E4E4D8 0%, #7C9686 50%, #0B3028 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--body); font-size: 1.25rem; line-height: 1.6;
  font-variant-numeric: oldstyle-nums; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.caps { font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; font-variant-numeric: lining-nums; }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(2.125rem, 4vw, 3.5rem); line-height: 1.3; margin: 0; letter-spacing: -.005em; }
.draft, .placeholder-tag { font: 12px/1.5 system-ui, sans-serif; color: #8a5a00; }
.draft { display: block; margin-bottom: .75rem; }
.placeholder-tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: var(--ivory); padding: .5rem .75rem; border: 1px solid #8a5a00; border-radius: 4px; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: #d9d4c8; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Pill button with a round arrow */
.btn {
  display: inline-flex; align-items: center; gap: .875rem; min-height: 3.25rem; padding: .5rem .5rem .5rem 1.5rem;
  background: var(--evergreen); color: var(--ivory); border-radius: 999px; text-decoration: none;
  font-size: 1.0625rem; letter-spacing: .03em; transition: background .25s ease;
}
.btn::after {
  content: "\2192"; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ivory); color: var(--evergreen); font-family: system-ui, sans-serif; font-size: 1rem; transition: transform .25s ease;
}
.btn:hover { background: #164338; }
.btn:hover::after { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold::after { background: var(--ink); color: var(--gold); }
.btn-gold:hover { background: #CAB17B; }

/* ---------- Mock-up bar (not part of the design) ---------- */
.mock { background: var(--ink); color: var(--ivory); font: 14px/1.4 system-ui, sans-serif; }
.mock .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding: .75rem 0; }
.mock strong { color: var(--gold); font-weight: 600; }
.mock button { font: inherit; color: var(--ivory); background: transparent; border: 1px solid rgba(244, 238, 223, .4); border-radius: 4px; padding: .5rem .875rem; cursor: pointer; }
.mock a { color: var(--ivory); }

/* ---------- Header: nav left, name centred, action right ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 238, 223, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .5rem 0; }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.logo { text-decoration: none; display: grid; justify-items: center; line-height: 1.15; }
.logo b { font-family: var(--display); font-weight: 600; font-size: 1.625rem; letter-spacing: .16em; }
.logo span { font-size: .75rem; letter-spacing: .4em; text-transform: uppercase; }
.head-cta { justify-self: end; }
.head-cta .btn { min-height: 2.75rem; font-size: 1rem; padding-left: 1.25rem; }
.head-cta .btn::after { width: 1.875rem; height: 1.875rem; }

/* ---------- Title page: washed panel left, photograph right ---------- */
.title-page { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(46rem, 88vh); }
.hero-copy { background: var(--wash-cream); display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem); }
.hero-copy .caps { color: var(--evergreen); margin-bottom: 1.25rem; }
.title-page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(3.25rem, 6.6vw, 6.25rem); line-height: 1; margin: 0 0 1.75rem; }
.title-page h1 span { display: block; }
.hero-copy p { max-width: 30rem; margin: 0 0 .75rem; }
.hero-copy .gloss { font-style: italic; color: var(--evergreen); margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.hero-photo { position: relative; overflow: hidden; background: #d9d4c8; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }

/* ---------- Ticker between dotted rules ---------- */
.ticker { display: flex; align-items: center; border-top: 1px dotted var(--ink); border-bottom: 1px dotted var(--ink); color: var(--evergreen); }
.ticker-view { flex: 1; min-width: 0; overflow: hidden; padding: 1rem 0; }
.ticker-track { display: flex; width: max-content; }
.ticker-track span { padding-right: 3rem; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--gold); padding: 0 1.25rem; }

/* ---------- Section heads: a small note beside a large statement ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.head .note { margin: .75rem 0 0; font-size: 1.0625rem; line-height: 1.45; max-width: 13rem; color: var(--evergreen); }

/* ---------- The three pillars: tall washed cards holding a page ---------- */
.pillars .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.pillar-card { border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.5rem); min-height: 27rem; display: grid; place-items: center; }
/* Each pillar has its own wash: sage, gold, deep evergreen */
.pillar:nth-child(1) .pillar-card { background: var(--wash-sage); }
.pillar:nth-child(2) .pillar-card { background: var(--wash-gold); }
.pillar:nth-child(3) .pillar-card { background: var(--wash-deep); }
.leaf { background: var(--paper); border-radius: 6px; padding: 1.5rem 1.5rem 1.25rem; width: min(100%, 17.5rem); box-shadow: 0 18px 40px rgba(11, 48, 40, .22); }
.leaf .caps { display: flex; justify-content: space-between; color: var(--evergreen); padding-bottom: .75rem; border-bottom: 1px solid var(--gold); }
.initial { display: block; width: 6.5rem; height: 6.5rem; margin: 1.25rem auto; }
.initial text { font-family: var(--display); font-weight: 600; }
.leaf ul { list-style: none; margin: 0; padding: 0; font-size: 1rem; line-height: 1.4; font-style: italic; color: var(--evergreen); }
.leaf li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.875rem; line-height: 1.3; margin: 1.5rem 0 .5rem; }
.pillar > p { margin: 0; }

/* ---------- Washed panel (catechism, order of worship) ---------- */
.panel { background: var(--wash-cream); border-radius: var(--r); padding: clamp(1.75rem, 5vw, 4.5rem); }
.catechism { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); }
.catechism .caps { color: var(--evergreen); margin-top: .75rem; }
.catechism .q { font-style: italic; margin: 0 0 1.25rem; max-width: 34rem; }
.catechism blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.625rem, 2.9vw, 2.375rem); line-height: 1.32; max-width: 46rem; }

/* ---------- Visit: photograph, statement, and questions that open ---------- */
.visit .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.visit .photo { min-height: 34rem; }
.visit .photo img { position: absolute; inset: 0; object-position: 50% 30%; }
.visit-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.visit-copy .first { margin: 1.5rem 0 2rem; color: var(--evergreen); font-style: italic; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 3.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: system-ui, sans-serif; font-size: 1.375rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 1.25rem; max-width: 34rem; color: #3d3934; font-size: 1.125rem; }

/* ---------- History: the photograph rises out of the page ---------- */
.history { padding: 0; }
.vista { position: relative; min-height: 54rem; overflow: hidden; }
.vista > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.09); /* crops the film border on the placeholder scan */ }
.vista::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--ivory) 0%, rgba(244, 238, 223, .96) 16%, rgba(244, 238, 223, .55) 34%, rgba(244, 238, 223, 0) 52%, rgba(11, 48, 40, .28) 100%); }
.vista .wrap { position: relative; z-index: 2; padding-top: clamp(3.5rem, 8vw, 7rem); display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.vista .statement { max-width: 28rem; }
.vista .sub { margin: 1rem 0 0; max-width: 28rem; font-size: 1.125rem; }
.vista .placeholder-tag { top: auto; bottom: 1rem; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { position: absolute; z-index: 2; }
.dates li:nth-child(1) { left: 6%; top: 50%; }
.dates li:nth-child(2) { right: 8%; top: 40%; }
.dates li:nth-child(3) { left: 38%; bottom: 9%; }
.date-card { background: rgba(251, 248, 239, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--r); padding: 1.125rem 1.5rem 1.25rem; min-width: 13rem; box-shadow: 0 16px 36px rgba(11, 48, 40, .3); }
.date-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 2.75rem; line-height: 1.3; font-variant-numeric: lining-nums; }
.date-card span { display: block; font-style: italic; font-size: 1.0625rem; line-height: 1.4; color: var(--evergreen); }
.reading { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem; }
.reading p { margin: 0 0 1.5rem; }
.reading .initial { float: left; width: 5.25rem; height: 5.25rem; margin: .3rem .9rem .2rem 0; }

/* ---------- Order of worship ---------- */
.expect { padding-top: 0; }
.liturgy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.liturgy .caps { color: var(--evergreen); display: block; margin-bottom: 1.5rem; }
.order { list-style: none; margin: 0; padding: 0; }
.order button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: .3rem 0; color: var(--ink); opacity: .58;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.875rem, 3.5vw, 3rem); line-height: 1.3; transition: opacity .45s ease;
}
.order button:hover { opacity: .8; }
.order button.on { opacity: 1; }
.order button.on::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: 1rem; background: var(--gold); vertical-align: middle; }
.liturgy-side { display: grid; grid-template-rows: minmax(15rem, 1fr) auto; gap: clamp(1rem, 2vw, 1.5rem); }
.stack { position: relative; min-height: 15rem; }
.stack img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.stack img.on { opacity: 1; }
.moment { background: var(--evergreen); color: var(--ivory); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); min-height: 13rem; display: flex; flex-direction: column; justify-content: flex-end; }
.moment b { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.3; }
.moment span { max-width: 24rem; font-size: 1.125rem; }

/* ---------- Footer: columns, then the name at full width ---------- */
footer { background: var(--evergreen); color: var(--ivory); padding: clamp(3rem, 7vw, 5.5rem) 0 2rem; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.foot .foot-h { margin: 0 0 1rem; font-family: var(--body); font-weight: 400; color: var(--gold); }
.foot p { margin: 0 0 .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot .three { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.3; margin-bottom: 1rem; }
.foot .verse { font-style: italic; opacity: .85; }
.credits { margin-top: 3rem; font: 12px/1.6 system-ui, sans-serif; opacity: .75; }

/* ---------- Motion (off unless the head script adds .motion) ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.motion .date-card { animation: drift 7s ease-in-out infinite alternate; }
html.motion .dates li:nth-child(2) .date-card { animation-delay: -2.3s; }
html.motion .dates li:nth-child(3) .date-card { animation-delay: -4.6s; }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
html.motion .ticker-track { animation: slide 48s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Opening */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 100; background: var(--ivory); transition: opacity .5s ease; }
.intro.leaving { opacity: 0; }
.intro-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); padding: 1.5rem; transition: opacity .4s ease; }
.intro.expanded .intro-stage { opacity: 0; }
.intro-words { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 5.5rem); line-height: 1.02; }
.intro-words span { display: block; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.intro-words span.on { opacity: 1; transform: none; }
.intro-slot { width: clamp(9rem, 17vw, 14rem); aspect-ratio: 4 / 5; flex: none; }
.intro-frame { position: absolute; overflow: hidden; border-radius: var(--r); background: #d9d4c8; transition: left .85s cubic-bezier(.7, 0, .2, 1), top .85s cubic-bezier(.7, 0, .2, 1), width .85s cubic-bezier(.7, 0, .2, 1), height .85s cubic-bezier(.7, 0, .2, 1), border-radius .85s ease; }
.intro.expanded .intro-frame { border-radius: 0; }
.intro-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.intro-frame img.on { opacity: 1; }
.intro-frame::after { content: ""; position: absolute; inset: 0; background: rgba(11, 48, 40, .62); opacity: 0; transition: opacity .6s ease; }
.intro.expanded .intro-frame::after { opacity: 1; }
.intro-name { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: var(--ivory); opacity: 0; transition: opacity .45s ease .2s; pointer-events: none; }
.intro.expanded .intro-name { opacity: 1; }
.intro-name b { font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: .16em; line-height: 1.3; }
.intro-name span { font-size: clamp(.8125rem, 1.4vw, 1.0625rem); letter-spacing: .46em; text-transform: uppercase; }
.intro-skip { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 2; font: 14px/1.4 system-ui, sans-serif; background: var(--ivory); color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: .625rem 1.125rem; cursor: pointer; }
html.intro-done .hero-copy > *, html.intro-done .hero-photo { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.intro-done .hero-copy > :nth-child(2) { animation-delay: .08s; }
html.intro-done .hero-copy > :nth-child(3) { animation-delay: .16s; }
html.intro-done .hero-copy > :nth-child(4) { animation-delay: .22s; }
html.intro-done .hero-copy > :nth-child(5) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 62rem) {
  .site-head .wrap { grid-template-columns: 1fr auto; }
  .site-head .logo { grid-row: 1; grid-column: 1; justify-items: start; }
  .head-cta { grid-row: 1; grid-column: 2; }
  .nav { grid-column: 1 / -1; }
  .title-page { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; }
  .head, .catechism, .visit .wrap, .liturgy { grid-template-columns: 1fr; }
  .head .note { max-width: none; margin: 0; }
  .pillars .cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar-card { min-height: 22rem; }
  .visit .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .vista { min-height: 0; padding-bottom: 1.5rem; }
  .dates { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; width: min(var(--wrap), 100% - 3rem); margin: 14rem auto 3.5rem; }
  .dates li { position: static; }
  .date-card { min-width: 0; padding: .875rem 1rem 1rem; animation: none !important; }
  .date-card b { font-size: 2rem; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .dates { grid-template-columns: 1fr; margin-top: 10rem; }
  .intro-stage { flex-direction: column; }
  .head-cta .btn { padding-left: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ================= Inner pages ================= */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ivory); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
button.btn { border: 0; cursor: pointer; font-family: var(--body); }

/* Page top: the title page at a smaller scale */
.title-page.inner { min-height: min(31rem, 62vh); }
.title-page.inner h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); line-height: 1.1; font-weight: 500; }
.title-page.inner .hero-copy p:last-child { margin-bottom: 0; }

/* A note beside a column of reading */
.prose p { margin: 0 0 1.5rem; max-width: 34rem; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.875rem; line-height: 1.3; margin: 2.5rem 0 .75rem; }
.prose h3:first-child { margin-top: 0; }
.prose .initial { float: left; width: 5.25rem; height: 5.25rem; margin: .3rem .9rem .2rem 0; }
.tight { padding-top: 0; }

/* Fact cards */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin: 0; }
.fact { background: var(--paper); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); }
.fact dt { color: var(--evergreen); padding-bottom: .75rem; border-bottom: 1px solid var(--gold); }
.fact dd { margin: 1rem 0 0; }
.fact dd b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.875rem; line-height: 1.3; }

/* A pair of sayings */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.pair > div { border-radius: var(--r); padding: clamp(1.75rem, 4vw, 3rem); min-height: 19rem; display: flex; flex-direction: column; justify-content: flex-end; }
/* Both sayings carry the same weight, so both cards are the same */
.pair > div { background: var(--evergreen); color: var(--ivory); }
.pair small { color: var(--gold); }
.pair b { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.3; }
.pair span { max-width: 26rem; margin-top: .5rem; }
.pair small { margin-top: 1rem; font-size: 1rem; font-style: italic; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: .5rem; }
.field input, .field textarea { width: 100%; padding: .875rem 1rem; border: 1px solid rgba(33, 30, 27, .5); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #8a1f11; border-width: 2px; }
.error { display: block; min-height: 1.5rem; margin-top: .375rem; color: #8a1f11; font-size: 1.0625rem; }
.form-status { margin: 1.25rem 0 0; font-style: italic; color: var(--evergreen); min-height: 2rem; }

@media (max-width: 62rem) {
  .facts, .pair, .contact-grid { grid-template-columns: 1fr; }
  .pair > div { min-height: 14rem; }
}

/* The ticker stops while a pointer rests on it or a link inside it has focus */
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }

/* The church's own marks */
.logo img { width: clamp(11rem, 17vw, 14.5rem); height: auto; }
.intro-name img { height: min(52vh, 28rem); width: auto; }

/* Footer: the church's own crest and lettering */
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.25rem; border-top: 1px solid rgba(244, 238, 223, .25); font-size: 1.0625rem; }
.foot-base span:last-child { color: var(--gold); letter-spacing: .04em; }
.credits { margin-top: 1.5rem; }

/* ---------- Order of worship, pinned while the page scrolls through it ---------- */
/* .pinned is added by the script, so without it the panel is an ordinary block. */
/* The extra scroll length is a block inside the track: a pinned element cannot travel into its parent padding. */
.liturgy-track.pinned::after { content: ""; display: block; height: 240vh; }
.liturgy-track.pinned .liturgy { position: sticky; top: 6.5rem; padding-block: clamp(1.5rem, 5vh, 4.5rem); }
.liturgy-track.pinned .order button { font-size: clamp(1.5rem, min(3.5vw, 5.4vh), 3rem); }
.liturgy-track.pinned .stack { min-height: clamp(9rem, 26vh, 15rem); }
.liturgy-track.pinned .moment { min-height: clamp(8rem, 22vh, 13rem); }
.liturgy-track.pinned .liturgy-side { grid-template-rows: minmax(clamp(9rem, 26vh, 15rem), 1fr) auto; }
.liturgy .caps { margin-bottom: clamp(.75rem, 2.4vh, 1.5rem); }

@media (max-width: 62rem) {
  /* On a phone the six lines become a row of progress bars, so photo and card fit on one screen. */
  .liturgy-track.pinned .liturgy { top: 8rem; gap: 1rem; padding: 1.25rem; }
  .liturgy-track.pinned .order { display: flex; gap: .375rem; }
  .liturgy-track.pinned .order li { flex: 1; }
  .liturgy-track.pinned .order button { position: relative; height: 2.75rem; padding: 0; font-size: 0; opacity: 1; }
  .liturgy-track.pinned .order button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; border-radius: 3px; background: var(--ink); opacity: .22; }
  .liturgy-track.pinned .order button.on::before { opacity: 1; background: var(--evergreen); }
  .liturgy-track.pinned .order button.on::after { content: none; }
  .liturgy-track.pinned .draft { display: none; }
}

/* ---------- Interface-guideline fixes ---------- */
/* Anchors and focused controls stop below the sticky header, not under it. */
html { scroll-padding-top: 7rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1, h2, h3, .statement, .catechism blockquote { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
h2.caps, h3.caps { font-family: var(--body); font-weight: 400; line-height: 1.6; margin-top: 0; }
a, button, summary, input, textarea { touch-action: manipulation; }
a, button, summary { -webkit-tap-highlight-color: rgba(181, 154, 99, .25); }

/* Ticker pause button: only present when the ticker is actually moving */
.ticker-toggle { display: none; flex: none; place-items: center; width: 2.75rem; height: 2.75rem; margin: 0 .75rem 0 .25rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--evergreen); cursor: pointer; }
html.motion .ticker-toggle { display: grid; }
.ticker-toggle svg { box-sizing: content-box; padding: .5rem; border: 1px solid currentColor; border-radius: 50%; fill: currentColor; transition: background .2s ease, color .2s ease; }
.ticker-toggle:hover svg { background: var(--evergreen); color: var(--ivory); }
.ticker-toggle .i-play, .ticker.paused .i-pause { display: none; }
.ticker.paused .i-play { display: inline; }
.ticker.paused .ticker-track { animation-play-state: paused; }

/* ---------- Audit fixes ---------- */
/* Tap targets: every link in the header and footer is at least 44px tall. */
.nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot li { margin-bottom: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* When the browser text size is large, the screen is short in rem terms: stop the header following the page. */
@media (max-height: 34rem) {
  .site-head { position: static; }
  html { scroll-padding-top: 1rem; }
}

/* ---------- Footer, second pass: who we are, where and when, where to go next ---------- */
footer { padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.foot { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.foot-brand { display: block; }
.foot-logo { display: block; width: clamp(13rem, 20vw, 17rem); height: auto; margin: -.5rem 0 1.5rem -.5rem; }
.foot .three { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: .375rem; }
.foot .verse { font-size: 1.0625rem; }
.foot .foot-h { margin-bottom: .75rem; }
.foot p { font-size: 1.125rem; line-height: 1.5; }
.foot li a { text-decoration: none; font-size: 1.125rem; }
.foot li a:hover, .foot li a:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.foot .btn { margin-top: .75rem; }
.foot-base { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: 1rem; }
@media (max-width: 62rem) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 36rem) {
  .foot { grid-template-columns: 1fr; }
}

/* ---------- Footer, third pass: a rounded card that ends in grained hills ---------- */
footer { background: none; color: var(--ink); padding: 0 clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem); }
.foot-card { position: relative; overflow: hidden; border-radius: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--rule); background: linear-gradient(180deg, var(--paper) 0%, #F6EFDB 55%, #F1E6C8 100%); }
.foot-inner { position: relative; z-index: 1; width: min(var(--wrap), 100% - 3rem); margin-inline: auto; padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.foot-card .foot-logo { margin: -.5rem 0 1.25rem -.5rem; }
.foot-card .foot-h { color: var(--evergreen); }
.foot-card .verse { opacity: 1; color: var(--evergreen); }
.foot-card .foot li a:hover, .foot-card .foot li a:focus-visible { text-decoration-color: var(--evergreen); }
.foot-card .foot-base { border-top-color: var(--rule); }
.foot-card .foot-base span:last-child { color: var(--evergreen); }
.foot-card .credits { opacity: 1; color: #55504a; }
.foot-hills { display: block; width: 100%; height: clamp(11rem, 24vw, 21rem); margin-top: clamp(-3rem, -4vw, -1.5rem); }
.fh-grain { mix-blend-mode: soft-light; opacity: .9; }

/* Pillar headings that lead on to Beliefs */
.pillar h3 a { text-decoration: none; display: inline-flex; align-items: baseline; gap: .5rem; min-height: 2.75rem; }
.pillar h3 a::after { content: "\2192"; font-family: system-ui, sans-serif; font-size: 1rem; color: var(--evergreen); transition: transform .25s ease; }
.pillar h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.pillar h3 a:hover::after { transform: translateX(4px); }
/* The two sayings on their own, without commentary */
.sayings { margin-top: clamp(1rem, 2vw, 1.75rem); }
.sayings > div { min-height: clamp(11rem, 20vw, 15rem); }

/* ================= Menu, and the pages added after the first five ================= */
.nav { align-items: center; }
.nav-group { position: relative; }
.nav-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.nav-btn::after { content: ""; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.nav-group[data-current] .nav-btn { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu { display: none; position: absolute; left: -1.25rem; top: calc(100% + .25rem); z-index: 30; min-width: 15rem; margin: 0; padding: .5rem; list-style: none; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 18px 40px rgba(11, 48, 40, .16); }
/* Without the script, focus alone opens the menu; with it, the button state decides, so a second click closes it. */
.nav-btn[aria-expanded="true"] + .menu, .nav-group:not(.js):focus-within .menu { display: block; }
@media (hover: hover) { .nav-group:hover .menu { display: block; } .nav-group:hover .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; } }
.menu a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; border-radius: 6px; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--ivory); text-decoration: none; }
.menu a[aria-current] { text-decoration: none; color: var(--evergreen); box-shadow: inset 2px 0 0 var(--gold); }

.foot-links { columns: 2; column-gap: 1.5rem; }
.onward { margin: calc(-1 * clamp(1rem, 2vw, 2rem)) 0 clamp(2rem, 4vw, 3rem); }

/* Link cards (About) */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.door { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: 17rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r); text-decoration: none; transition: transform .25s ease; }
.door:hover { transform: translateY(-4px); }
.door .caps { display: flex; justify-content: space-between; }
.door .caps::after { content: "\2192"; font-family: system-ui, sans-serif; letter-spacing: 0; }
.door b { font-family: var(--display); font-weight: 500; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.3; }

/* The service, part by part */
.parts { list-style: none; margin: 0; padding: 0; counter-reset: part; border-top: 1px solid var(--rule); }
.parts li { counter-increment: part; display: grid; grid-template-columns: 4rem minmax(0, 2fr) minmax(0, 3fr); gap: .5rem 1.5rem; align-items: baseline; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.parts li::before { content: counter(part, decimal-leading-zero); color: var(--gold); font-variant-numeric: lining-nums; letter-spacing: .1em; }
.parts b { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; }
.parts span { max-width: 34rem; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.person { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; align-items: center; background: var(--paper); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.person .portrait { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--wash-sage); display: grid; place-items: center; }
.person .portrait img { width: 62%; height: auto; opacity: .55; }
.person b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; }
.person .caps { color: var(--evergreen); display: block; margin-bottom: .75rem; }

/* Page not found */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; background: var(--wash-cream); }
.lost h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.1; margin: 1rem 0 1.5rem; }
.lost .actions { justify-content: center; }

@media (max-width: 62rem) {
  .doors, .people { grid-template-columns: 1fr; }
  .parts li { grid-template-columns: 3rem minmax(0, 1fr); }
  .parts span { grid-column: 2; }
  .menu { left: 0; }
}
@media (max-width: 36rem) {
  .person { grid-template-columns: 1fr; }
  .person .portrait { width: 9rem; }
}

.source { font-size: 1rem; font-style: italic; color: #55504a; }
.vista h1.statement { font-weight: 500; }

/* The three About cards share one treatment */
.door { background: var(--wash-cream); color: var(--ink); border: 1px solid var(--rule); min-height: 15rem; }
.door .caps { color: var(--evergreen); padding-bottom: .75rem; border-bottom: 1px solid var(--gold); }
.door:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* Leadership: the pastor's card carries a photograph and a biography */
.people { grid-template-columns: 1fr; }
.person.lead { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.person.lead .portrait { aspect-ratio: 1; background: #d9d4c8; overflow: hidden; }
.person.lead .portrait img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.person.lead p { margin: 1rem 0 0; max-width: 34rem; }
@media (max-width: 62rem) { .person.lead { grid-template-columns: 1fr; } .person.lead .portrait { width: min(17rem, 100%); } }

/* Pillar cards line up: equal card heights, headings and paragraphs on shared rows */
.pillars .cols { grid-template-rows: auto auto auto; }
.pillar { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.pillar-card { min-height: 0; height: 100%; }
@media (max-width: 62rem) { .pillars .cols { grid-template-rows: none; } .pillar { display: block; } .pillar-card { height: auto; min-height: 22rem; } }

/* ---------- Card sets in gradients: every card in a set is a gradient, none solid ---------- */
:root { --wash-sage-soft: linear-gradient(180deg, #ECE7D7 0%, #C7CDB4 58%, #93A892 100%); }
/* About: three doors. Words sit in the light upper part of each wash. */
.door { justify-content: flex-start; gap: 1.25rem; border: 0; min-height: 17rem; }
.door:nth-child(1) { background: var(--wash-sage-soft); }
.door:nth-child(2) { background: var(--wash-gold); }
.door:nth-child(3) { background: var(--wash-deep); }
.door .caps { border-bottom-color: rgba(33, 30, 27, .3); }
/* The two sayings */
.pair > div { justify-content: flex-start; color: var(--ink); }
.pair > div:first-child { background: var(--wash-sage-soft); }
.pair > div:last-child { background: var(--wash-gold); }
.pair small { color: var(--evergreen); }

.after { margin-top: 1.5rem; }

/* Beliefs: reading links, and catechism questions with their answers */
.reads { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 34rem; }
.reads li { border-bottom: 1px solid var(--rule); }
.reads a { display: flex; justify-content: space-between; align-items: center; min-height: 3.25rem; text-decoration: none; }
.reads a::after { content: "97"; font-family: system-ui, sans-serif; color: var(--evergreen); }
.reads a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.pair span { max-width: 30rem; }
.pair:not(.sayings) > div { min-height: 0; padding-bottom: clamp(3rem, 7vw, 6rem); }
.qa { margin: 0; border-top: 1px solid var(--rule); }
.qa > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); padding: clamp(1.75rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--rule); }
.qa dt .caps { display: block; color: var(--evergreen); margin-bottom: .5rem; }
.qa dt i { display: block; font-size: 1.125rem; line-height: 1.45; max-width: 15rem; }
.qa dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.32; max-width: 46rem; text-wrap: balance; }
.qa dd small { display: block; margin-top: 1rem; font-family: var(--body); font-size: 1rem; font-style: italic; color: var(--evergreen); }
@media (max-width: 62rem) { .qa > div { grid-template-columns: 1fr; } .qa dt i { max-width: none; } }

/* About doors with ivory lettering: each wash is deepened so ivory reads from top to bottom */
.door { color: var(--ivory); }
.door:nth-child(1) { background: linear-gradient(180deg, #4A6F5F 0%, #2B5345 100%); }
.door:nth-child(2) { background: linear-gradient(180deg, #7C6839 0%, #54431F 100%); }
.door:nth-child(3) { background: linear-gradient(180deg, #1B4638 0%, #0B3028 100%); }
.door .caps { color: var(--ivory); border-bottom-color: rgba(244, 238, 223, .4); }
.door:hover b { text-decoration-color: var(--ivory); }

/* The two sayings match the About doors: ivory lettering on deepened sage and gold */
.pair > div { color: var(--ivory); }
.pair > div:first-child { background: linear-gradient(180deg, #4A6F5F 0%, #2B5345 100%); }
.pair > div:last-child { background: linear-gradient(180deg, #7C6839 0%, #54431F 100%); }
.pair small { color: var(--ivory); opacity: .9; }

/* A clearer gradient on the ivory-lettered cards: same readable top, a much deeper foot */
:root {
  --deep-sage: linear-gradient(180deg, #4A6F5F 0%, #3A6152 38%, #12392E 100%);
  --deep-gold: linear-gradient(180deg, #7C6839 0%, #6C5A30 38%, #33280F 100%);
  --deep-green: linear-gradient(180deg, #2F5A4C 0%, #1F493C 38%, #061C17 100%);
}
.door:nth-child(1), .pair > div:first-child { background: var(--deep-sage); }
.door:nth-child(2), .pair > div:last-child { background: var(--deep-gold); }
.door:nth-child(3) { background: var(--deep-green); }

/* Light-to-deep gradients with ivory lettering: the pale top is left empty, and the words sit where the colour is deep.
   Stops are fixed lengths, so the words always start below the point where the colour is dark enough to read on. */
:root {
  --fade-sage: linear-gradient(180deg, #ECE7D7 0, #A9B8A2 3.5rem, #4A6F5F 7.25rem, #234A3D 100%);
  --fade-gold: linear-gradient(180deg, #F3ECD9 0, #D6C290 3.5rem, #7C6839 7.25rem, #54431F 100%);
  --fade-green: linear-gradient(180deg, #E4E4D8 0, #8AA194 3.5rem, #1F493C 7.25rem, #0B3028 100%);
}
.door, .pair > div, .pair:not(.sayings) > div { justify-content: flex-start; min-height: 0; padding-top: 8.25rem; }
.door:nth-child(1), .pair > div:first-child { background: var(--fade-sage); }
.door:nth-child(2), .pair > div:last-child { background: var(--fade-gold); }
.door:nth-child(3) { background: var(--fade-green); }
.pair:not(.sayings) > div { padding-bottom: clamp(1.75rem, 4vw, 3rem); }

/* As asked: the original light gradients, unchanged, with white wording at the top of each card */
.door, .pair > div, .pair:not(.sayings) > div { justify-content: flex-start; padding-top: clamp(1.5rem, 3vw, 2.25rem); color: #fff; }
.door { min-height: 17rem; }
.pair:not(.sayings) > div { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.sayings > div { padding-top: clamp(1.75rem, 4vw, 3rem); min-height: clamp(11rem, 20vw, 15rem); }
.door:nth-child(1), .pair > div:first-child { background: var(--wash-sage-soft); }
.door:nth-child(2), .pair > div:last-child { background: var(--wash-gold); }
.door:nth-child(3) { background: var(--wash-deep); }
.door .caps, .pair small { color: #fff; opacity: 1; }
.door .caps { border-bottom-color: rgba(255, 255, 255, .6); }

.form-hint { margin: .5rem 0 0; font-size: 1.0625rem; color: #55504a; }

.soon { display: block; font-style: italic; color: var(--evergreen); font-size: 1.0625rem; }

/* ---------- Opening on phones and tablets ---------- */
/* The page stacks the photograph above the words at these widths, so the opening does too:
   a tall frame of changing pictures, the three words beneath it, then the frame fills the screen. */
@media (max-width: 62rem) {
  .intro-stage { flex-direction: column; align-items: center; gap: clamp(1.25rem, 3.5vh, 2.25rem); }
  .intro-slot { order: -1; width: min(72vw, 22rem, 38vh); }
  .intro-words { min-width: min(72vw, 22rem, 38vh); font-size: clamp(2.5rem, 12vw, 3.75rem); line-height: 1.04; }
  .intro-name img { height: min(44vh, 22rem); }
  .intro-skip { right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); }
}
