:root {
  --ink: #1c1c1a;
  --paper: #fdfcf9;
  --rule: #d8d3c5;
  --accent: #7a1f2b;
  --muted: #6b6558;
  --max-w: 42rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  line-height: 1.6;
  font-size: 1.0625rem;
}

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

.dedication-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dedication-figure {
  float: right;
  width: 40%;
  max-width: 250px;
  margin: 1.25rem 0 0.6rem 1.25rem;
}

.dedication-figure img.page-top-image {
  display: block;
  width: 100%;
  height: auto;
}

.dedication-figure figcaption {
  margin: 0.3rem 0 0;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.dedication-figure.centered {
  float: none;
  width: 100%;
  max-width: 250px;
  margin: 1.25rem auto 0.6rem;
}

@media (max-width: 480px) {
  .dedication-figure {
    float: none;
    width: 60%;
    margin: 1.25rem auto 0.6rem;
  }

  .index-hero {
    flex-direction: column;
  }
}

img.page-bottom-image {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  margin: 2.5rem auto 0;
}

.st-michael-prayer {
  max-width: var(--max-w);
  margin: 0.6rem auto 1.5rem;
  padding: 0 1.25rem;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

header.site-header {
  text-align: center;
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

header.site-header .jmj {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 0.35rem;
  text-align: center;
}

header.site-header a.home-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

nav.crumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dotted var(--rule);
}

nav.crumbs a { color: var(--accent); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }
nav.crumbs .spacer { color: var(--muted); }

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 1.75rem 0 1rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
}

h3 { font-size: 1.02rem; }

p { margin: 0 0 1rem; text-align: justify; hyphens: auto; }

body.appendix p:not(.st-michael-prayer) { text-align: left; hyphens: none; }

em { font-style: italic; }
strong { font-weight: 700; }

a { color: var(--accent); }

blockquote {
  margin: 1rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

sup a.footnote-ref, sup a { text-decoration: none; }

.footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: #333;
}

.footnotes ol { padding-left: 1.4rem; }
.footnotes li { margin-bottom: 0.7rem; }
.footnotes li p { text-align: left; margin: 0; }
.footnote-back { margin-left: 0.35rem; }

.return-top {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  font-size: 0.8rem;
  font-style: italic;
  margin: -0.4rem 0 1.4rem;
}

.return-top.split { justify-content: space-between; }

.return-top a { color: var(--muted); }
.return-top a.jump-link { color: var(--accent); font-size: 0.82rem; }

.xref {
  margin: -0.4rem 0 1rem;
}

.jump-link {
  font-size: 0.82rem;
  font-style: normal;
  color: var(--accent);
  text-decoration: none;
}

.jump-link:hover { text-decoration: underline; }

footer.site-footer {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

footer.site-footer a { color: var(--muted); }

.toc-list { list-style: none; padding-left: 0; }
.toc-list li { margin: 0.4rem 0; }
.toc-list .sub { padding-left: 1.2rem; font-size: 0.92rem; }
.toc-list a { text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  p { text-align: left; hyphens: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.index-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.index-hero .dedication-figure.centered {
  width: auto;
  margin: 1.25rem 0 0.6rem;
}

.search-button {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.search-button:hover { opacity: 0.88; }

.crumbs-center {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.crumbs-sep { color: var(--muted); }

#search-form { margin: 0 0 1.25rem; }

#search-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

#search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-status {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  text-align: left;
}

.search-results {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.search-result {
  padding: 0.9rem 0;
  border-bottom: 1px dotted var(--rule);
}

.search-result-context {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
}

.search-result-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
  text-align: left;
}

.search-result-title a { text-decoration: none; }
.search-result-title a:hover { text-decoration: underline; }

.search-result-snippet {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  text-align: left;
}

.search-result-snippet mark {
  background: none;
  color: var(--accent);
  font-weight: 600;
}
