/* Bridgeport United Methodist Church — flowing layout
   Light, open sections joined by curved edges; no boxed cards.
   Type: Literata (display, often italic) + Source Sans 3 (body), larger base size for readability.
   Color: United Methodist brand reds (Pantone 1805 / 1815) and grays, with a soft rose wash. */

:root {
  --red: #af292e;        /* UMC Pantone 1805 */
  --red-deep: #7a2426;   /* UMC Pantone 1815 */
  --ink: #24262c;
  --gray: #575a5d;       /* UMC Pantone 425 */
  --rose: #f9eeee;       /* soft wash */
  --rose-line: #ecd9d9;
  --paper: #ffffff;
  --charcoal: #2a2c31;
  --on-dark: #eceae9;
  --on-dark-muted: #b5b7b4; /* UMC Pantone 421 */
  --max: 1080px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; max-width: 64ch; }
a { color: var(--red-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; position: relative; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { height: 54px; width: auto; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: "Literata", Georgia, serif; font-weight: 600; font-size: 1.18rem; }
.brand-sub { font-family: "Literata", Georgia, serif; font-style: italic; font-size: 0.92rem; color: var(--gray); }

.nav { display: flex; gap: 0.3rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.4rem 0.85rem; border-radius: 999px; }
.nav a:hover { background: var(--rose); color: var(--red-deep); }
.nav a[aria-current="page"] { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: var(--paper); border: 1px solid var(--rose-line); border-radius: 999px; padding: 0.45rem 1rem; font: 600 1rem "Source Sans 3", sans-serif; color: var(--ink); cursor: pointer; }

/* ---------- Welcome band ---------- */
.welcome-band { background: var(--rose); position: relative; z-index: 2; }
.welcome-band .wrap { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.welcome-band .welcome-verse { margin-top: 0.25rem; font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: 0.98rem; color: var(--gray); }
.welcome-band cite { font-style: normal; font-weight: 600; color: var(--red-deep); white-space: nowrap; }
.welcome-band p { margin: 0 auto; max-width: none; text-align: center; font-family: "Literata", Georgia, serif; font-style: italic; font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--red-deep); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 600; font-size: 1.02rem; padding: 0.75rem 1.4rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-soft { border-color: var(--rose-line); color: var(--ink); background: var(--paper); }
.btn-soft:hover { border-color: var(--red); color: var(--red-deep); }

/* ---------- Curved section edges ---------- */
html, body { overflow-x: clip; }
.hero, .page-intro { overflow-x: clip; }
.curve { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-bottom: -1px; }
.curve.from-rose { margin-bottom: 0; margin-top: -1px; }
.curve { overflow: visible; }
.curve path { fill: currentColor; }
.rose-bg { background: var(--rose); }
.to-rose { color: var(--rose); background: var(--paper); }
.from-rose { color: var(--rose); background: var(--paper); transform: scaleY(-1); }
.to-footer { color: var(--charcoal); background: var(--paper); }
.to-footer.on-rose { background: var(--rose); }

/* ---------- Home hero: compact, spread across the page ---------- */
.hero { position: relative; padding-top: clamp(0.75rem, 2.5vw, 1.75rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); isolation: isolate; }
.hero-swoop { position: absolute; z-index: -1; top: -90px; right: -8vw; width: min(52vw, 640px); height: auto; color: var(--rose); pointer-events: none; }
.hero-swoop .s2 { color: #f3dede; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-kicker { font-weight: 600; color: var(--red-deep); margin-bottom: 0.5rem; }
.hero h1 { font-style: italic; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; max-width: 20ch; margin-bottom: 0.8rem; }
.hero-lede { font-size: 1.15rem; color: var(--gray); max-width: 52ch; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }
.hero-side { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); }
.hero-side > * { min-width: 0; }
.worship-info { width: 22.5rem; max-width: 100%; border-left: 3px solid var(--red); padding: 0.4rem 0 0.4rem clamp(1rem, 3vw, 1.5rem); }
.worship-time { font-family: "Literata", Georgia, serif; font-size: clamp(2rem, 4.5vw, 2.6rem); color: var(--red); line-height: 1; margin-bottom: 0.7rem; }
.worship-time small { font-family: "Source Sans 3", sans-serif; font-size: 1.05rem; color: var(--ink); font-weight: 600; display: block; margin-bottom: 0.35rem; }
.worship-where { color: var(--gray); line-height: 1.5; font-style: normal; margin-bottom: 0.7rem; font-size: 1.02rem; }
.worship-where strong { color: var(--ink); }
.hero-note { color: var(--gray); font-size: 0.98rem; margin: 0; }

/* ---------- Inner page heading ---------- */
.page-intro { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(1rem, 3vw, 1.8rem); position: relative; isolation: isolate; }
.page-intro .hero-swoop { top: -140px; width: min(50vw, 560px); }
.page-intro h1 { font-style: italic; font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0; }
.title-link { color: inherit; text-decoration: underline; text-decoration-color: var(--rose-line); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.title-link:hover { color: var(--red-deep); text-decoration-color: var(--red); }
#this-week { scroll-margin-top: 1.5rem; }
.page-intro p { color: var(--gray); margin: 0.6rem 0 0; font-size: 1.15rem; }

/* ---------- Sections ---------- */
.flow { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.flow.flow-tight { padding-top: 1rem; }
.big-link-tight { margin-bottom: 0.3rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }

.motto { font-family: "Literata", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 3.2vw, 1.9rem); color: var(--red-deep); line-height: 1.35; margin: 0.6rem 0 1.2rem; }
.pastor-name { font-family: "Literata", Georgia, serif; font-style: italic; font-size: 1.25rem; color: var(--red-deep); margin-bottom: 0.4rem; }

/* PLEASE acrostic, flowing in one line */
.please-intro { max-width: 52ch; }
.please-verse { font-family: "Literata", Georgia, serif; font-style: italic; color: var(--gray); }
.please-row { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 0.9rem; }
.please-row li { flex: 0 1 auto; text-align: center; }
.please-row .letter { display: block; font-family: "Literata", Georgia, serif; font-style: italic; font-size: clamp(1.7rem, 3.2vw, 2.2rem); color: var(--red-deep); line-height: 1; }
.please-row .word { display: block; margin-top: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); }

/* ---------- Schedules ---------- */
.schedule { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.schedule li { padding: 0.75rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; }
.schedule li + li { border-top: 1px dashed var(--rose-line); }
.schedule .what { font-weight: 600; }
.schedule .when { color: var(--gray); }

.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.newsletter-top { position: relative; z-index: 1; padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.newsletter-top .newsletter h2 { font-size: clamp(1.3rem, 2.8vw, 1.6rem); }
.newsletter h2 { margin: 0; }
.newsletter p { margin: 0.3rem 0 0; color: var(--gray); }

/* Calendars */
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; margin-bottom: 0.9rem; }
.cal-head h2 { margin: 0; }
.cal-head a { font-weight: 600; }
.cal-frame { border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--rose-line); }
.cal-frame iframe { display: block; width: 100%; border: 0; }
.cal-week iframe { height: 420px; }
.cal-month iframe { height: 760px; }
.cal-gap { margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- Missions: alternating, unboxed ---------- */
.missions { display: grid; gap: clamp(2.2rem, 6vw, 4rem); margin-top: 2.2rem; }
.mission { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; }
.mission:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
.mission:nth-child(even) .mission-logo { order: 2; }
.mission-logo { background: var(--paper); border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 1.6rem; box-shadow: 0 0 0 10px var(--rose); max-width: 220px; width: 100%; }
.mission-logo img { max-width: 100%; height: auto; display: block; }
.mission .how { font-family: "Literata", Georgia, serif; font-style: italic; color: var(--red-deep); font-size: 1.12rem; margin-bottom: 0.6rem; }
.mission p { color: var(--gray); }
.mission .more { font-weight: 600; }

/* ---------- Prayer & contact ---------- */
.quote { margin: 1.6rem 0; padding: 0; font-family: "Literata", Georgia, serif; font-style: italic; font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.4; color: var(--red-deep); max-width: 34ch; }
.quote cite { display: block; margin-top: 0.6rem; font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: 1rem; color: var(--gray); }
.big-link { font-family: "Literata", Georgia, serif; font-size: clamp(1.15rem, 2.6vw, 1.45rem); word-break: break-word; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.contact-list .k { display: block; color: var(--gray); font-size: 0.98rem; }
.contact-list .v { font-family: "Literata", Georgia, serif; font-size: 1.3rem; color: var(--ink); word-break: break-word; }
.contact-list a.v { color: var(--red-deep); }
.contact-list address { font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: 1rem; }
.site-footer .wrap.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 1rem; padding-bottom: 1.6rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.7rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: block; margin-bottom: 0.35rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; }
.foot-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.7rem; }
.foot-brand img { height: 58px; width: auto; flex: none; }
.foot-name { font-family: "Literata", Georgia, serif; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.foot-promise { font-family: "Literata", Georgia, serif; font-style: italic; color: var(--on-dark); text-align: center; padding-top: 0.8rem; padding-bottom: 2rem; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .split, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap.cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 80px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0.2rem; background: var(--paper); border-radius: 22px; box-shadow: 0 10px 30px rgba(36,38,44,0.14); padding: 0.6rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 1rem; }
  .mission, .mission:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .please-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.5rem; }
  .mission:nth-child(even) .mission-logo { order: 0; }
  .mission-logo { max-width: 170px; }
  .cal-month iframe { height: 640px; }
  .site-footer .wrap.cols { grid-template-columns: minmax(0, 1fr); }
  .hero-swoop { width: 90vw; right: -30vw; top: -40px; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-logo { height: 46px; }
}
