:root {
  color-scheme: light;
  --paper: #fdf9fa;
  --ink: #321922;
  --muted: #66515a;
  --brand: #a52335;
  --brand-hover: #841825;
  --burgundy: #4b1121;
  --rose: #f8dce3;
  --blush: #f8e9ed;
  --line: #e7d2d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
:is(.hero, .page-hero, .site-footer) a:focus-visible { outline-color: white; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); letter-spacing: -.045em; }
h3 { font-size: 1.55rem; }
.wrap { width: min(100% - 3rem, 71rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .7rem 1rem; transform: translateY(-200%); background: white; }
.skip:focus { transform: none; }
[id] { scroll-margin-top: 1.25rem; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 5.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; font: 700 1.05rem/1.08 var(--serif); text-decoration: none; }
.brand img { flex-shrink: 0; border-radius: 50%; }
.brand small { display: block; margin-top: .45rem; font: .8rem/1.2 var(--sans); }
.main-nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 2.5vw, 2.1rem); font-size: .9rem; font-weight: 650; }
.main-nav a, .site-footer a { text-decoration: none; }
.main-nav a:hover, .main-nav [aria-current], .site-footer nav a:hover { text-decoration: underline; }

.hero {
  --hero-shade: linear-gradient(90deg, #3e0e1d 0%, #471020f2 27%, #47102073 64%, #4710201f);
  color: white;
  background: var(--hero-shade), url("parma-landscape.svg?v=logo") center 58% / cover, var(--burgundy);
}
.hero, .page-hero { position: relative; }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  top: clamp(2.5rem, 8vw, 6rem);
  right: 20%;
  width: clamp(6rem, 16vw, 13rem);
  aspect-ratio: 1;
  border: 2px solid #f8dce3;
  border-radius: 50%;
  background: var(--burgundy) url("bbf-hero-logo.jpg") center / cover;
  box-shadow: 0 .4rem 1.4rem #3e0e1d80;
  pointer-events: none;
}
.hero-inner, .page-hero .wrap { position: relative; }
.page-hero::before { right: 13%; }
.hero-inner { padding-block: clamp(5.5rem, 10vw, 9.25rem) clamp(5.75rem, 10vw, 9.5rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; color: var(--brand); font-size: .76rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 1.65rem; height: 1px; background: currentColor; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--rose); }
h1 { font-size: clamp(3.25rem, 8vw, 7.2rem); letter-spacing: -.065em; line-height: .94; }
.hero-copy { max-width: 34ch; margin-top: 1.65rem; color: var(--blush); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 2.9rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .45rem; background: var(--brand); color: white; font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.button:hover { background: var(--brand-hover); }
.button-light { background: var(--rose); color: var(--burgundy); }
.button-light:hover { background: white; }
.button-outline { border-color: #ffffffb3; background: #4b1121bf; }

.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.visit-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.visit-wrap { max-width: 44rem; }
.visit-heading { margin-bottom: 1.75rem; text-align: center; }
.visit-heading .eyebrow { justify-content: center; }
.visit-location { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2.5rem; }
.section h2 + p, address, .page-hero h1 + p { margin-top: 1rem; }
.section h2 + p, address { color: var(--muted); }
address { font-style: normal; }
.visit-map:not([hidden]) { display: block; width: 100%; border: 1px solid var(--line); border-radius: .8rem; background: var(--blush); }
.text-link { display: inline-block; margin-top: .95rem; color: var(--brand-hover); font-weight: 700; }
.schedule { overflow: hidden; margin: 0; padding: 0; list-style: none; background: white; border: 1px solid var(--line); border-radius: .8rem; }
.schedule li { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; align-items: center; gap: .24rem .75rem; padding: 1.05rem clamp(.9rem, 3vw, 1.65rem); }
.schedule li + li { border-top: 1px solid var(--line); }
.day { color: var(--brand); font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.schedule .day { grid-column: 1 / -1; }
.pastors h3 { margin-top: .24rem; }
.schedule time { font-size: clamp(.86rem, 2.5vw, 1.02rem); font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; }
.visit-note p { margin-top: .55rem; color: var(--muted); }
.visit-note a, .bylaws p a { color: var(--brand-hover); }
.about-band { background: var(--blush); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.band-inner .button { flex-shrink: 0; }
.pastors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.pastors article { padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.pastors a, .phone-reveal { margin-top: .6rem; color: var(--brand-hover); font: 650 .92rem/1.5 var(--sans); }
.pastors a { display: inline-block; }
.phone-reveal { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .4rem; background: white; text-align: left; cursor: pointer; }
.phone-reveal:hover { background: var(--blush); }
.contact-form:not([hidden]) { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: .8rem; background: white; }
.contact-form label { display: block; margin-bottom: .3rem; font-weight: 650; }
.contact-form input:not([hidden]), .contact-form textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #b69aa5; border-radius: .4rem; background: white; color: var(--ink); font: inherit; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.contact-form textarea { display: block; min-height: 7rem; resize: vertical; }
.contact-form .button { justify-self: start; font-family: inherit; cursor: pointer; }
.contact-note { color: var(--muted); font-size: .85rem; }
.facebook-feed-frame { position: relative; max-width: 500px; }
.facebook-feed:not([hidden]) { display: block; width: 100%; border: 0; border-radius: .8rem; background: white; }
/* Match the avatar in Facebook's small header and leave its link clickable. */
.facebook-feed-frame:has(.facebook-feed[src])::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 54px;
  height: 54px;
  background: white url("bbf-mark.webp") center / 50px 50px no-repeat;
  pointer-events: none;
}
.site-footer { background: var(--burgundy); color: white; }
.footer-inner { padding-block: 1.75rem; }
.copyright-bar { margin: 0; padding: .65rem 1rem; border-top: 1px solid #ffffff24; background: #35101b; color: var(--blush); font-size: .85rem; text-align: center; }

.page-hero { padding-block: clamp(3.75rem, 8vw, 6.75rem); background: linear-gradient(90deg, #3e0e1d 0%, #471020ed 43%, #47102070), url("parma-landscape.svg?v=logo") right 56% / cover, var(--burgundy); color: white; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.page-hero h1 + p { max-width: 47ch; color: var(--blush); }
.jump-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.reading-width { max-width: 51rem; }
.beliefs { margin: 1.65rem 0 0; padding: 0; list-style: none; counter-reset: belief; }
.beliefs li { position: relative; padding-left: 3.05rem; border-top: 1px solid var(--line); counter-increment: belief; }
.beliefs li::before { content: counter(belief, decimal-leading-zero); position: absolute; top: 1rem; left: 0; color: var(--brand); font-weight: 750; }
.disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-block: .95rem; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { color: var(--brand-hover); }
.disclosure > summary::after { content: ""; flex: 0 0 1rem; height: 1rem; color: var(--brand); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.disclosure[open] > summary::after { background-size: 100% 2px, 0 0; }
.disclosure-body { padding-bottom: 1.2rem; }
.disclosure-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.disclosure-actions button { min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid #b69aa5; border-radius: .45rem; background: white; color: var(--brand-hover); font: 650 .9rem/1.4 var(--sans); cursor: pointer; }
.disclosure-actions button:hover { background: var(--blush); }
.references, .revision { color: var(--muted); font-size: .86rem; }
.references { margin-top: .55rem; }
.revision { margin-top: .7rem; }
.bylaws { border-top: 1px solid var(--line); }
.bylaws-contents { margin-block: 1.6rem 2rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--blush); }
.bylaws-contents ol { columns: 2 16rem; column-gap: 2rem; margin: .75rem 0 0; padding-inline-start: 2.2rem; }
.bylaws-contents li { break-inside: avoid; padding-block: .2rem; }
.bylaws-contents a { color: var(--brand-hover); }
.bylaws-article { border-top: 1px solid var(--line); }
.bylaws-article h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.bylaws-article h4 { margin: 1.05rem 0 .35rem; font-size: .95rem; }
.bylaws-article h4:first-child { margin-top: 0; }
.bylaws-article :is(ol, ul) { margin: .55rem 0 0; padding-inline-start: 1.5rem; }
.bylaws-article li + li { margin-top: .45rem; }

@media (max-width: 720px) {
  .wrap { width: min(100% - 2rem, 71rem); }
  .header-inner { flex-wrap: wrap; gap: .65rem; padding-block: .75rem; }
  .main-nav { column-gap: .9rem; }
  .main-nav .nav-button { min-height: 2.3rem; padding: .35rem .6rem; }
  .visit-layout, .visit-location { grid-template-columns: minmax(0, 1fr); }
  .hero { background-position: 62% 58%; }
  .band-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 375px) {
  .pastors { grid-template-columns: 1fr; }
  .schedule h3 { font-size: 1.3rem; }
}

@media (max-width: 520px) {
  .hero { --hero-shade: linear-gradient(90deg, #3e0e1d 0%, #471020b8 66%, #471020a6); }
  .hero::before, .page-hero::before { top: 1rem; right: 1rem; width: 4.25rem; }
  .page-hero { padding-top: 5.5rem; }
}
