/* Church website themes. Loaded after style.css on public church pages.
   --brand comes from the church's chosen color; each theme sets type and surfaces around it. */
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Caslon Display'; src: url(/static/fonts/libre-caslon-display-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/static/fonts/public-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

.church { --display: 'Caslon Display', 'Caslon', Georgia, serif; --serif: 'Caslon', Georgia, serif; --sans: 'Public Sans', system-ui, sans-serif;
  --paper: #fdfcfa; --panel: #f3f1ec; --ink: #1d1f24; --muted: #5f6168; --line: #e3dfd6; --on-brand: #fff;
  font-family: var(--sans); background: var(--paper); color: var(--ink); }
.church.t-heritage { --paper: #faf6ef; --panel: #f0e9dc; --line: #e2d8c6; --ink: #2a2118; --muted: #6b5d4d; }
.church.t-fresh { --display: 'Public Sans', system-ui, sans-serif; --serif: 'Public Sans', system-ui, sans-serif; --paper: #ffffff; --panel: #f2f5f8; --line: #e1e6ec; }
.church h1, .church h2, .church h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
.church.t-fresh h1, .church.t-fresh h2 { font-weight: 800; letter-spacing: -.02em; }
.church .prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.church.t-fresh .prose { line-height: 1.65; }

/* header */
.ch-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ch-head .inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.ch-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.ch-brand img { height: 48px; width: auto; }
.ch-brand .nm { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.ch-brand .sub { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 500; }
.ch-nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; font-weight: 500; }
.ch-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.ch-nav a:hover, .ch-nav a.on { border-color: var(--brand); }
.ch-nav .give { background: var(--brand); color: var(--on-brand); padding: 9px 18px; border-radius: 999px; border: 0; }
.ch-nav details { position: relative; }
.ch-nav summary { list-style: none; cursor: pointer; padding: 6px 0; }
.ch-nav summary::-webkit-details-marker { display: none; }
.ch-nav summary::after { content: ' ▾'; font-size: .75em; color: var(--muted); }
.ch-nav .more { position: absolute; right: 0; top: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 210px; box-shadow: 0 12px 30px rgba(20,20,30,.12); display: grid; }
.ch-nav .more a { padding: 8px 12px; border: 0; border-radius: 6px; }
.ch-nav .more a:hover { background: var(--panel); }
.ch-menu { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 900px) {
  .ch-menu { display: block; }
  .ch-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; }
  .ch-nav.open { display: flex; }
  .ch-nav a, .ch-nav summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ch-nav .more { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .ch-nav .give { text-align: center; margin-top: 12px; }
}

/* hero */
.ch-hero { position: relative; color: #fff; min-height: 560px; display: grid; align-items: end; overflow: hidden; background: var(--brand); }
.ch-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ch-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.15) 0%, rgba(10,12,20,.25) 40%, rgba(10,12,20,.78) 100%); }
.ch-hero .pattern { position: absolute; inset: 0; opacity: .9; }
.ch-hero .inner { position: relative; max-width: 1160px; width: 100%; margin: 0 auto; padding: 120px 24px 56px; }
.ch-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; max-width: 14ch; }
.church.t-fresh .ch-hero h1 { font-weight: 800; letter-spacing: -.03em; }
.ch-hero p.tag { font-family: var(--serif); font-size: 1.3rem; max-width: 40ch; margin: 0 0 28px; opacity: .95; }
.ch-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ch-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.ch-btn.solid { background: #fff; color: var(--ink); }
.ch-btn.line { border-color: rgba(255,255,255,.8); color: #fff; }
.ch-btn.brand { background: var(--brand); color: var(--on-brand); }
.ch-btn.ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }

/* service-time strip */
.ch-times { background: var(--ink); color: #fff; }
.ch-times .inner { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.ch-times .t { display: flex; flex-direction: column; }
.ch-times .t b { font-family: var(--serif); font-size: 1.25rem; }
.ch-times .t span { font-size: .85rem; opacity: .75; }
.ch-times .where { margin-left: auto; font-size: .95rem; opacity: .9; }
.ch-times .where a { color: #fff; }

/* sections */
.ch-sec { padding: 88px 0; }
.ch-sec.panel { background: var(--panel); }
.ch-sec .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ch-sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 14px; line-height: 1.12; }
.ch-sec .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 36px; }
.ch-welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.ch-welcome .photo { aspect-ratio: 4/5; border-radius: 4px; background: var(--panel) center/cover; position: relative; }
.ch-welcome .photo.none { display: grid; place-items: center; font-family: var(--display); font-size: 6rem; color: var(--brand); }
.ch-welcome .sig { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 18px; }
.ch-expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.ch-expect > div { padding: 28px 28px 0 0; }
.ch-expect > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.ch-expect h3 { font-size: 1.25rem; margin: 0 0 8px; }
.ch-expect p { margin: 0; color: var(--muted); }
.ch-sermon { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.ch-sermon .meta { color: var(--muted); }
.ch-sermon h3 { font-size: 1.8rem; margin: 6px 0 10px; }
.ch-events { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ch-event { display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ch-event .date { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 8px 0; background: var(--paper); }
.ch-event .date b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.ch-event .date span { font-size: .8rem; color: var(--muted); }
.ch-event h3 { margin: 0 0 4px; font-size: 1.25rem; }
.ch-event p { margin: 0; color: var(--muted); font-size: .95rem; }
.ch-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ch-post { text-decoration: none; color: inherit; }
.ch-post .img { aspect-ratio: 16/10; background: var(--panel) center/cover; border-radius: 4px; margin-bottom: 14px; }
.ch-post h3 { font-size: 1.3rem; margin: 0 0 6px; }
.ch-post p { color: var(--muted); margin: 0; }
.ch-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ch-tools a { background: var(--paper); padding: 28px; text-decoration: none; color: inherit; }
.ch-tools a:hover { background: var(--panel); }
.ch-tools h3 { margin: 0 0 6px; font-size: 1.2rem; }
.ch-tools p { margin: 0; color: var(--muted); font-size: .95rem; }
.ch-ministries .prose ul { columns: 2; gap: 40px; padding-left: 1.1em; }
.ch-cta { background: var(--brand); color: var(--on-brand); text-align: center; }
.ch-cta h2 { color: inherit; }
.ch-cta p { font-size: 1.15rem; opacity: .9; margin: 0 auto 28px; max-width: 50ch; }
.ch-page-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.ch-page-head .inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; }
.ch-page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.church.t-fresh .ch-page-head h1 { font-weight: 800; }

/* footer */
.ch-foot { background: #15171c; color: #c9cbd1; padding: 64px 0 28px; font-size: .95rem; }
.ch-foot .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ch-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.ch-foot h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 12px; font-weight: 700; }
.ch-foot a { color: #fff; }
.ch-foot ul { list-style: none; padding: 0; margin: 0; } .ch-foot li { margin: 6px 0; }
.ch-foot input { background: #22252c; border-color: #3a3e48; color: #fff; }
.ch-foot .legal { border-top: 1px solid #2c2f37; margin-top: 44px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .85rem; color: #8d909a; }
.ch-foot .legal a { color: #b8bbc4; }

@media (max-width: 900px) {
  .ch-welcome, .ch-sermon { grid-template-columns: 1fr; gap: 32px; }
  .ch-welcome .photo { max-width: 360px; }
  .ch-expect { grid-template-columns: 1fr; }
  .ch-expect > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ch-posts { grid-template-columns: 1fr; }
  .ch-tools { grid-template-columns: 1fr 1fr; }
  .ch-foot .cols { grid-template-columns: 1fr 1fr; }
  .ch-hero { min-height: 480px; }
  .ch-sec { padding: 64px 0; }
  .ch-times .where { margin-left: 0; }
}
@media (max-width: 560px) { .ch-tools, .ch-foot .cols { grid-template-columns: 1fr; } .ch-event { grid-template-columns: 64px 1fr; } .ch-event .go { display: none; } }
.church a:focus-visible, .church button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.church main > .wrap, .church main > article.wrap { padding-top: 40px; padding-bottom: 56px; }
.church .card { background: var(--paper); border-color: var(--line); border-radius: 6px; }
.church .btn { background: var(--brand); border-color: var(--brand); border-radius: 999px; }
.church .btn.alt { background: var(--paper); color: var(--ink); border-color: var(--line); }
.church table td, .church table th { border-color: var(--line); }
/* inner pages: content shares the header's left edge */
.church main > .wrap, .church main > article.wrap { max-width: 1160px; padding-left: 24px; padding-right: 24px; }
.church main > .wrap.narrow > *, .church main > article.wrap.narrow > * { max-width: 720px; }
.church main > .wrap.center > * { margin-left: auto; margin-right: auto; }
