/* Parochia's own website (apps/site, docs/site.md). One stylesheet for every page. */

@font-face { font-family: "Lora"; src: url("/site/fonts/Lora-Variable.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --green: #2e6b3f;
  --green-dark: #1f4a2b;
  --green-soft: #f2f6f3;
  --green-line: #dce6de;
  --on-green: #e6f0e8;
  --on-green-soft: #cfe3d4;
  --ink: #1e2a22;
  --ink-soft: #3d4a41;
  --gold: #8a6a10;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 20px; margin: 0; line-height: 1.3; }
p { margin: 0; }
.soft { color: var(--ink-soft); }
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--green-dark); padding: 8px 14px; border-radius: 6px; z-index: 2; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--green); color: #fff; }
/* A photo behind the green header (<!-- header: photo register -->): each page names its photo */
.top.photo {
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center 35%;
}
.top.photo.register {
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .94) 0%, rgba(31, 74, 43, .86) 45%, rgba(46, 107, 63, .62) 100%), url("/site/register.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .94) 0%, rgba(31, 74, 43, .86) 45%, rgba(46, 107, 63, .62) 100%), image-set(url("/site/register.webp") type("image/webp"), url("/site/register.jpg") type("image/jpeg"));
}
.top.photo.door {
  background-position: center 30%;
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .66) 100%), url("/site/door.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .66) 100%), image-set(url("/site/door.webp") type("image/webp"), url("/site/door.jpg") type("image/jpeg"));
}
.top.photo.pews {
  background-position: center 8%;
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .92) 0%, rgba(31, 74, 43, .74) 48%, rgba(46, 107, 63, .38) 100%), url("/site/pews.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .92) 0%, rgba(31, 74, 43, .74) 48%, rgba(46, 107, 63, .38) 100%), image-set(url("/site/pews.webp") type("image/webp"), url("/site/pews.jpg") type("image/jpeg"));
}
.top.photo.bible {
  background-position: 62% 22%;
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .92) 0%, rgba(31, 74, 43, .74) 48%, rgba(46, 107, 63, .38) 100%), url("/site/bible.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .92) 0%, rgba(31, 74, 43, .74) 48%, rgba(46, 107, 63, .38) 100%), image-set(url("/site/bible.webp") type("image/webp"), url("/site/bible.jpg") type("image/jpeg"));
}
.top.photo.hall {
  background-position: center 45%;
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .66) 100%), url("/site/hall.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .66) 100%), image-set(url("/site/hall.webp") type("image/webp"), url("/site/hall.jpg") type("image/jpeg"));
}
.top.photo .page-head { padding-top: 56px; padding-bottom: 80px; }
.top.photo .page-head p { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.top.photo .hero { padding-top: 72px; padding-bottom: 112px; }
.top.photo .hero p { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.top .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-top: 18px; padding-bottom: 18px; }
.top .logo img { display: block; height: 32px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 16px; }
.top nav a { color: #fff; text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.top nav a.button { background: #fff; color: var(--green-dark); font-weight: 700; padding: 10px 18px; border-radius: 8px; }
.top nav a.button:hover { text-decoration: none; background: var(--on-green); }

.hero { padding-top: 48px; padding-bottom: 84px; display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--on-green-soft); }
.hero h1 { max-width: 820px; }
.hero p { font-size: 21px; color: var(--on-green); max-width: 700px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 8px; }
.btn.light { background: #fff; color: var(--green-dark); }
.btn.light:hover { background: var(--on-green); color: var(--green-dark); }
.btn.line { color: #fff; border: 1.5px solid var(--on-green-soft); font-weight: 600; }
.btn.line:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn.solid { background: var(--green); color: #fff; }
.btn.solid:hover { background: var(--green-dark); color: #fff; }

.page-head { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-head p { color: var(--on-green); font-size: 20px; max-width: 720px; }
.page-head .eyebrow { color: var(--on-green-soft); }

/* Sections */
section { padding: 72px 0 0; }
.intro { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px 40px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.item { display: flex; flex-direction: column; gap: 8px; }
.item svg { width: 32px; height: 32px; }
.item p { color: var(--ink-soft); }
.and { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--green-line); color: var(--ink-soft); }
.panel { background: var(--green-soft); border-radius: 14px; padding: clamp(26px, 4vw, 46px); display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.panel > div { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel .eyebrow { color: var(--gold); }
.panel ul { flex: 1 1 260px; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.panel p { color: var(--ink-soft); }

.band { background: var(--green); color: #fff; margin-top: 72px; padding: 72px 0; }
.band .intro p { color: var(--on-green); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 40px; height: 40px; border-radius: 20px; background: #fff; color: var(--green-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps p { color: var(--on-green); }
.keep { margin-top: 34px; border: 1.5px solid #6fa07d; border-radius: 12px; padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.keep h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.keep p { color: var(--on-green); flex: 1 1 360px; }

.qa h3 { color: var(--green); font-size: 19px; }

/* Text pages: privacy, terms, payments, contact */
.text { padding: 56px 0 24px; }
.text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 40px 0 12px; }
.text h2:first-child { margin-top: 0; }
.text h3 { margin: 24px 0 8px; font-size: 19px; }
.text p, .text ul, .text ol { margin: 0 0 14px; }
.text ul, .text ol { padding-left: 24px; }
.text li { margin: 4px 0; }
.text .updated { color: var(--ink-soft); font-size: 16px; margin-bottom: 28px; }
.text table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font-size: 16px; }
.text th, .text td { text-align: left; vertical-align: top; border-top: 1px solid var(--green-line); padding: 9px 12px 9px 0; }
.text th { font-weight: 700; }
.tablebox { overflow-x: auto; }
.note { background: var(--green-soft); border-radius: 10px; padding: 18px 22px; margin: 0 0 18px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 8px 0 24px; }
.card-list > div { border: 1px solid var(--green-line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 18px; }
dl.details dt { font-weight: 700; }
dl.details dd { margin: 0; }
@media (max-width: 560px) { dl.details { grid-template-columns: 1fr; gap: 2px; } dl.details dd { margin-bottom: 10px; } }

/* Footer */
.cta { background: var(--green-dark); color: #fff; margin-top: 80px; }
/* The open register behind the demo band, on every page, as on the home page's header
   (photo: Bernd Dittrich, Unsplash), a little darker so the contact details stay clear */
.cta {
  background-color: #173a21;
  background-size: cover;
  background-position: center 60%;
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(23, 58, 33, .88) 50%, rgba(31, 74, 43, .74) 100%), url("/site/register.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(23, 58, 33, .88) 50%, rgba(31, 74, 43, .74) 100%), image-set(url("/site/register.webp") type("image/webp"), url("/site/register.jpg") type("image/jpeg"));
}
.cta .wrap { padding-top: 76px; padding-bottom: 76px; }
.cta .wrap { padding-top: 60px; padding-bottom: 60px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 26px; }
.cta .wrap > div:first-child { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta p { color: var(--on-green-soft); }
.cta .reach { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.cta a { color: #fff; }
footer.foot { background: #173a21; color: var(--on-green-soft); font-size: 15px; }
footer.foot .wrap { padding-top: 24px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; }
footer.foot a { color: #fff; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.foot .credit { flex-basis: 100%; font-size: 13px; opacity: .8; }
.card-list h3 { margin: 0; }

/* Feature spotlights on the home page: words on the left, a short list on the right */
.spot { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; padding: 34px 0; border-top: 1px solid var(--green-line); }
.spot:first-of-type { border-top: 0; padding-top: 6px; }
.spot > div { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.spot .eyebrow { color: var(--gold); font-size: 14px; }
.spot h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.25; }
.spot p { color: var(--ink-soft); }
.ticks { flex: 1 1 300px; list-style: none; margin: 0; padding: 18px 22px; background: var(--green-soft); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Green bands with a photo behind them, like the headers */
.band.photo { background-color: var(--green-dark); background-size: cover; background-position: center 60%; }
.band.photo.boxes {
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .7) 100%), url("/site/boxes.jpg");
  background-image: linear-gradient(100deg, rgba(23, 58, 33, .95) 0%, rgba(31, 74, 43, .88) 50%, rgba(46, 107, 63, .7) 100%), image-set(url("/site/boxes.webp") type("image/webp"), url("/site/boxes.jpg") type("image/jpeg"));
}

/* Screenshots beside the features, with numbered notes matching their call-outs */
.spot { align-items: center; }
.spot > div { flex: 1 1 380px; }
.spot .shot { flex: 1.35 1 520px; min-width: 0; margin: 0; }
.spot:nth-of-type(even) { flex-direction: row-reverse; }
.shot a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--green-line); box-shadow: 0 10px 30px rgba(23, 58, 33, .14), 0 2px 6px rgba(23, 58, 33, .08); background: #fff; }
.shot a:hover { box-shadow: 0 14px 36px rgba(23, 58, 33, .2), 0 2px 6px rgba(23, 58, 33, .1); }
.shot img { display: block; width: 100%; height: auto; }
.notes { list-style: none; counter-reset: note; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notes li { counter-increment: note; position: relative; padding-left: 40px; color: var(--ink-soft); min-height: 28px; }
.notes li::before { content: counter(note); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 920px) { .spot:nth-of-type(even) { flex-direction: row; } }

/* The demo form on the contact page (a plain form: the server checks it) */
.demo-form { margin: 18px 0 30px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--green-line); border-radius: 14px; background: var(--green-soft); }
.demo-form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; align-items: start; }
.demo-form .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-form .field.wide { grid-column: 1 / -1; }
.demo-form label { font-weight: 600; font-size: 16px; }
.demo-form .optional, .demo-form .hint { font-weight: 400; color: var(--ink-soft); font-size: 15px; }
.demo-form input, .demo-form select, .demo-form textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid #8a978e; border-radius: 8px; padding: 10px 12px; min-height: 46px; width: 100%; }
.demo-form input, .demo-form select { height: 48px; }
.demo-form textarea { resize: vertical; min-height: 110px; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: 3px solid #f2b705; outline-offset: 1px; border-color: var(--green); }
.demo-form .bad input { border-color: #b3261e; border-width: 2px; }
.demo-form .error { color: #b3261e; font-weight: 600; font-size: 15px; }
.demo-form .problems { background: #fdecea; border: 1.5px solid #b3261e; color: #8c1d18; border-radius: 8px; padding: 10px 14px; font-weight: 600; margin-bottom: 16px; }
.demo-form button { margin-top: 20px; font: inherit; font-weight: 700; border: 0; cursor: pointer; font-size: 18px; }
.demo-form .small { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.demo-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { margin: 18px 0 30px; padding: 22px 26px; border-radius: 14px; background: #d7ebdd; border: 1.5px solid var(--green); }
.sent h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
