/* churchbulletintemplates.com
   Palette (named for the subject):
     Linen          #FAF6EC  page, the color of bulletin paper
     Vestry Ink     #1E1B18  body text (15.9:1 on Linen)
     Ordinary Green #1D4D36  links and buttons, the green of Ordinary Time (9.0:1; white on it 9.7:1)
     Advent Violet  #4A2C66  headings, the bookmark ribbon (10.6:1)
     Pew Oak        #5A4129  secondary text: captions, facts (8.8:1)
     Candle Gold    #B8892B  rules, fold lines, focus ring. Decorative only, never text.
   Type: Source Serif 4 (headings, hymnal-like) + Atkinson Hyperlegible (body, for low vision). */
:root {
  --linen: #FAF6EC;
  --linen-deep: #F1EADB;
  --paper: #FFFFFF;
  --ink: #1E1B18;
  --green: #1D4D36;
  --green-dark: #143826;
  --violet: #4A2C66;
  --oak: #5A4129;
  --gold: #B8892B;
  --rule: #D6C9AA;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--linen); color: var(--ink);
  font: 400 1.3125rem/1.6 var(--sans); /* 21px */
}
img { max-width: 100%; height: auto; display: block; }
p, li, dd, figcaption { overflow-wrap: break-word; }
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--violet); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); margin: 0.2em 0 0.4em; color: var(--ink); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 0.9vw, 1.95rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.2em 0 0.3em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
kbd { font: 700 0.85em var(--sans); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0.05em 0.35em; background: var(--paper); white-space: nowrap; }
code { font: 700 0.9em ui-monospace, Menlo, Consolas, monospace; background: var(--linen-deep); padding: 0.05em 0.3em; border-radius: 3px; }
blockquote { margin: 1em 0 1.2em; padding: 0.6em 1em; border-left: 4px solid var(--gold); background: var(--paper); font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 46rem; } /* about 66 characters at 21px */
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---- Header: a white sheet with a gold double rule, like a bulletin's ornament ---- */
.site-header { background: var(--paper); border-bottom: 4px double var(--gold); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); font: 700 1.35rem/1.1 var(--serif); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 46px; height: 38px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 10px; font-size: 1.05rem; font-weight: 700; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 3px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 24px; border-radius: 8px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--green); line-height: 1.25; text-align: center; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--green); }
.btn-quiet:hover { background: var(--linen-deep); color: var(--green-dark); }
.btn-big { font-size: 1.25rem; min-height: 60px; padding: 12px 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* ---- Hero: the bulletin on the pew, with a ribbon marker ---- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } .hero { padding: 48px 0 56px; } }
.kicker { font: 700 0.95rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--oak); margin: 0; }
.lede { font-size: 1.4rem; line-height: 1.55; }
.hero-sheet { position: relative; max-width: 330px; margin: 0 auto; transform: rotate(2deg); }
.hero-sheet .cover { aspect-ratio: 550 / 850; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 2px 0 var(--rule), 0 14px 30px rgba(30, 27, 24, 0.16); }
.hero-sheet .cover img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.ribbon { position: absolute; top: -12px; left: 26px; width: 30px; height: 112px; background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.12); }
@media (max-width: 899px) { .hero-sheet { max-width: 200px; } .ribbon { height: 80px; left: 18px; width: 22px; } }

/* ---- Bands and sections ---- */
.band { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--violet); border-radius: 6px; padding: 8px 20px 12px; }
.band h2 { margin-top: 0.6em; }
@media (min-width: 700px) { .band { padding: 12px 36px 18px; } }
.section-lede { max-width: 46rem; }
.note { font-size: 1.25rem; color: var(--oak); }

/* ---- Dot leaders: the order-of-worship line, used for lists across the site ---- */
.leaders { list-style: none; padding: 0; margin: 0 0 1.2em; }
.leaders li { display: flex; align-items: baseline; gap: 0; margin: 0; padding: 0.3em 0; }
.leaders li > span:first-child { flex: 0 1 auto; min-width: 0; padding-right: 0.4em; }
.leaders li > span:last-child { flex: 0 1 auto; min-width: 0; max-width: 62%; padding-left: 0.4em; text-align: right; overflow-wrap: anywhere; }
.leaders li::after { content: ""; order: 1; flex: 1 1 2em; min-width: 1.5em; border-bottom: 3px dotted var(--rule); transform: translateY(-0.3em); }
.leaders li > span:last-child { order: 2; }
.dates .when { font-weight: 700; }
@media (max-width: 560px) {
  .download .leaders li { flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--rule); }
  .download .leaders li::after { display: none; }
  .download .leaders li > span:first-child { font-weight: 700; }
  .download .leaders li > span:last-child { padding-left: 0; text-align: left; max-width: none; }
  .dates li { flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--rule); }
  .dates li::after { display: none; }
  .dates li > span:last-child { padding-left: 0; text-align: left; }
}

/* ---- Template cards: paper sheets; folded ones show their fold ---- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards { gap: 32px; } .card-img { height: 300px; } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px 6px; margin: 0; display: flex; flex-direction: column; }
.card h3 { margin: 0.7em 0 0.15em; font-size: 1.35rem; }
.card .facts { font-size: 1.25rem; color: var(--oak); margin-bottom: 0.4em; }
.card p { font-size: 1.25rem; }
.card-img { display: flex; align-items: center; justify-content: center; position: relative; height: 230px; background: var(--linen-deep); border-radius: 4px; padding: 12px; }
.card-img img { max-height: 100%; width: auto; border: 1px solid var(--rule); background: #fff; box-shadow: 0 4px 10px rgba(30, 27, 24, 0.12); }
.sheet-fold::after, .sheet-cut::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; border-left: 2px dashed var(--gold); }
.sheet-fold::before, .sheet-cut::before { position: absolute; top: -2px; left: 50%; transform: translate(-50%, -50%); z-index: 1;
  font: 700 0.8rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--oak); background: var(--paper); border: 1px solid var(--rule); border-radius: 99px; padding: 4px 8px; }
.sheet-fold::before { content: "fold"; }
.sheet-cut::before { content: "cut"; }

/* ---- Template page ---- */
.crumb { font-size: 1.25rem; margin: 22px 0 6px; color: var(--oak); }
.download { background: var(--paper); border: 2px solid var(--green); border-radius: 8px; padding: 18px 20px 4px; margin: 1.4em 0 0.5em; }
.download-what { font-size: 1.25rem; }
.download .leaders { font-size: 1.25rem; }
.previews { display: grid; gap: 28px; }
.preview { margin: 0; }
.sheet { position: relative; background: #fff; border: 1px solid var(--rule); box-shadow: 0 6px 18px rgba(30, 27, 24, 0.12); }
.sheet.sheet-fold::after, .sheet.sheet-cut::after { top: 0; bottom: 0; }
.sheet.sheet-fold::before, .sheet.sheet-cut::before { top: 0; }
.preview figcaption { font-size: 1.25rem; color: var(--oak); margin-top: 10px; }
.related { padding-left: 1.2em; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.8em; }

/* ---- Guides ---- */
.checked { font-size: 1.25rem; color: var(--oak); }
.toc { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 4px 20px 2px; margin: 1em 0 1.6em; }
.toc-h { font-size: 1.15rem; margin: 0.8em 0 0.3em; color: var(--oak); font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; }
.toc .leaders { font-size: 1.25rem; }
.sources { border-top: 4px double var(--gold); margin-top: 2.4em; }
.sources li { font-size: 1.25rem; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-top: 1px solid var(--rule); padding-top: 4px; }
.guide-list h3 { margin-top: 0.6em; }
.big-mail { font-size: 1.4rem; }

/* ---- Footer ---- */
.site-footer { margin-top: 64px; background: var(--linen-deep); border-top: 4px double var(--gold); padding: 28px 0 24px; font-size: 1.2rem; }
.site-footer h2 { font-size: 1.2rem; margin: 0.6em 0 0.4em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.foot-cols { display: grid; gap: 8px 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: 1fr 1.4fr 0.9fr; } }
.foot-note { color: var(--oak); }
.copyright { color: var(--oak); margin-top: 1em; }
.print-url { display: none; }

/* ---- Print: black on white, large type, no chrome, the page's address at the end ---- */
@media print {
  @page { margin: 0.6in; }
  body { background: #fff; color: #000; font-size: 13pt; line-height: 1.45; }
  .site-header, .skip, .nav, .actions, .hero-sheet, .download .btn, .toc, .crumb, .foot-cols, .copyright, .card-img, ins.adsbygoogle { display: none !important; }
  .site-footer { background: none; border: 0; margin: 0; padding: 0; }
  .print-url { display: block; font-size: 10pt; border-top: 1px solid #000; padding-top: 6pt; margin-top: 18pt; }
  h1, h2, h3, .kicker, .facts, .note, .checked, figcaption { color: #000 !important; }
  a { color: #000; }
  .prose a[href^="http"]::after, .sources a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .band, .card, .download, .sheet, blockquote { box-shadow: none; border-color: #999; }
  .preview, .card, h2, h3 { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  .wrap, .narrow { max-width: none; padding: 0; }
}
