/* St. Bartholomew's, Old Forge & St. Anthony of Padua, Inlet and Raquette Lake
   ---------------------------------------------------------------------------
   Colours, type and proportions carried over from the previous Joomla/Nicepage
   site; the layout is plain CSS grid and flexbox. */

:root {
  --blue:      #478ac9;
  --blue-dark: #3a71a6;
  --grey:      #d9d9d9;
  --grey-dark: #c4c4c4;
  --ink:       #111111;
  --muted:     #444444;
  --rule:      #cccccc;
  --wrap:      1140px;
  --gutter:    30px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.6 "Open Sans", Arial, Helvetica, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.2; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 46px 0; }
.section--tight { padding: 24px 0; }

.page-title {
  font-size: 60px;
  text-align: center;
  text-wrap: balance;
  padding: 40px 0 30px;
}

.section-title { font-size: 48px; text-align: center; margin-bottom: 34px; }
.caption { font-size: 30px; text-align: center; margin-top: 26px; }
.stack { display: grid; gap: 18px; }
.center { text-align: center; }

/* ---------- buttons ---------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  padding: 29px 56px;
  transition: background-color .2s;
}

.btn:hover, .btn:focus-visible { background: var(--blue-dark); color: #fff; }

.btn--grey {
  background: var(--grey);
  color: var(--ink);
  font-size: 24px;
  padding: 35px 56px;
}

.btn--grey:hover, .btn--grey:focus-visible { background: var(--grey-dark); color: var(--ink); }

/* ---------- the two parishes ------------------------------------- */

.parishes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.parish img { width: 100%; }
.parish-detail { font-size: 20px; text-align: center; margin-top: 20px; }
.parish-detail b { display: block; font-weight: 700; margin-bottom: 6px; }
.parish-detail span { display: block; margin-top: 14px; }

/* ---------- photo bands ------------------------------------------- */

.photos { display: grid; gap: 20px; }
.photos--2 { grid-template-columns: 1fr 1fr; }
.photos--3 { grid-template-columns: repeat(3, 1fr); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos--tall img { height: 437px; }
.photos--mid  img { height: 408px; }
.photos--short img { height: 205px; }

/* the weekly bulletin, shown as page scans */
.bulletin-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bulletin-pages img { width: 100%; border: 1px solid var(--rule); }

/* ---------- raffle ------------------------------------------------ */

.raffle { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: center; }
.raffle-ad img { width: 100%; border: 1px solid var(--rule); }
.raffle-call { display: grid; gap: 20px; justify-items: start; }
.raffle-call h3 { font-size: 30px; }
.raffle-call img { width: 220px; }
.raffle-call .note { font-weight: 700; font-size: 16px; }

/* ---------- mass times / prose ------------------------------------ */

.prose { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.prose h3 { font-size: 22px; margin-bottom: 10px; }
.prose .praise { font-style: italic; }

/* ---------- sacraments -------------------------------------------- */

.sacrament-band {
  background: url("../images/sacraments-bg.jpg") 50% 50% / cover no-repeat;
  padding: 70px 0;
}

.sacrament-band .wrap { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.sacrament-band .btn--grey { flex: 1 1 320px; max-width: 420px; }

.link-list { display: grid; gap: 14px; justify-items: center; margin-top: 34px; }

.link-list a {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.link-list a:hover, .link-list a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- parish giving ----------------------------------------- */

.giving-intro { max-width: 70ch; margin: 0 auto 36px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; justify-items: center; }
.qr-grid img { width: 240px; }
.qr-grid p { margin-top: 14px; font-weight: 700; text-align: center; }

/* ---------- contact ------------------------------------------------ */

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.contact h3 { font-size: 22px; margin-bottom: 10px; }
.contact address { font-style: normal; }
.contact dl { margin: 0; display: grid; gap: 6px; }

/* ---------- narrow screens ----------------------------------------- */

@media (max-width: 900px) {
  body { font-size: 17px; }

  .parishes,
  .prose,
  .contact,
  .raffle,
  .qr-grid,
  .bulletin-pages,
  .photos--2,
  .photos--3 { grid-template-columns: 1fr; }

  .page-title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .caption { font-size: 22px; }

  .photos--tall img,
  .photos--mid img,
  .photos--short img { height: 260px; }

  .btn { padding: 22px 34px; }
  .btn--grey { font-size: 20px; padding: 26px 34px; }
  .sacrament-band { padding: 46px 0; }
}

@media (max-width: 575px) {
  :root { --gutter: 20px; }
  .page-title { font-size: 29px; }
  .qr-grid img { width: 200px; }
}
