/* faithoftheages.com : couleurs et titres du livre (palette P2, EB Garamond, D98 et D60) ; texte dans la serif du système */
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root { --ink: #1c1814; --muted: #5e5449; --accent: #a3301f; --gold: #b07d10; --paper: #f4ecd8; --page: #fffdf7; --line: #ddd0b4; }
* { box-sizing: border-box; }
/* 1 rem = le corps du texte, 125 % du réglage du lecteur (20 px par défaut) : grands caractères pour les lecteurs du livre en gros caractères */
html { font-size: 125%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Georgia, "Noto Serif", "Droid Serif", "Times New Roman", serif; }
a { color: var(--accent); text-underline-offset: .15em; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: 34rem; margin: 0 auto; padding: .8rem .8rem 3rem; }
h1, h2, .mark, .book-title, .brand { font-family: "EB Garamond", Georgia, serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: 1.75rem; margin: .2rem 0 .3rem; text-align: center; }
.kick { font-variant-caps: all-small-caps; letter-spacing: .14em; color: var(--accent); font-weight: 700; text-align: center; margin: 0; font-size: .9rem; line-height: 1.35; }
.top { background: var(--page); border-bottom: 1px solid var(--line); }
.brand { display: block; max-width: 34rem; margin: 0 auto; padding: .7rem 1rem; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.brand .dia { margin-right: .5rem; }
.dia { display: inline-block; width: .45em; height: .45em; background: var(--accent); transform: rotate(45deg); vertical-align: .12em; }
.orn { display: flex; align-items: center; gap: .7rem; width: 60%; margin: 1rem auto 1.2rem; }
.orn span { flex: 1; height: 1px; background: var(--accent); }
.sheet, .card { background: var(--page); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -6px; padding: 1.6rem 1rem 1.4rem; margin: .8rem 0 0; }
.book-title { text-align: center; font-weight: 400; font-style: italic; font-size: 1.3rem; margin: 0; }
.lead { font-size: 1.05rem; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.jump a { flex: 1 1 auto; text-align: center; padding: .55rem .9rem; border: 1.5px solid var(--part); color: var(--part); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.contents { margin: 1.2rem 0 0; }
[hidden] { display: none !important; }
h2 { font-family: "EB Garamond", Georgia, serif; font-size: 1.35rem; margin: 1.8rem 0 .4rem; }
h3 { font-family: "EB Garamond", Georgia, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.2; margin: 1.3rem 0 .2rem; }
section { margin-top: 2.2rem; scroll-margin-top: 1rem; }
section h2 { color: var(--part, var(--accent)); font-size: 1.35rem; border-bottom: 2px solid var(--part, var(--accent)); padding-bottom: .2rem; margin: 0 0 .5rem; }
.ico { width: 1.4em; height: 1.4em; flex: none; fill: none; stroke: currentColor; vertical-align: -.3em; }
section h2 .ico { width: 1.1em; height: 1.1em; margin-right: .45rem; vertical-align: -.15em; }
.part { margin-top: 1.6rem; }
.part h3 { color: var(--part); border-bottom: 1px solid var(--part); padding-bottom: .15rem; margin: 0; }
/* une œuvre par ligne : titre (lire dans le lecteur du site), puis lien de téléchargement du PDF */
.books { list-style: none; padding: 0; margin: 0; container-type: inline-size; }
.books li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: .6rem; border-bottom: 1px solid var(--line); }
.books a.r { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .6rem; min-height: 3rem; padding: .65rem .2rem; color: var(--ink); text-decoration: none; }
.books.rare a.r { grid-template-columns: minmax(0, 1fr); }
.books a.r:hover .t, .books a.r:focus-visible .t { text-decoration: underline; }
a.d { font-size: .85em; white-space: nowrap; padding: .65rem .2rem; }
.n { min-width: 1.8em; text-align: right; color: var(--muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.s { color: var(--muted); font-size: .85em; white-space: nowrap; }
/* liste étroite (petit téléphone, texte agrandi) : le lien du PDF passe sous le titre */
@container (max-width: 15em) { .books li { grid-template-columns: minmax(0, 1fr); } .books a.d { padding-top: 0; padding-left: 2.6em; } .books.rare a.d { padding-left: .2rem; } }
.t { overflow-wrap: break-word; hyphens: auto; }
/* très étroit (texte agrandi à 200 % sur un téléphone) : marges réduites pour garder les titres entiers */
@media (max-width: 300px) { .wrap { padding-left: .25rem; padding-right: .25rem; } .sheet, .card { padding-left: .5rem; padding-right: .5rem; } .n { min-width: 0; } .books a.r { column-gap: .4rem; } }
/* page d'accueil du livre (D120) : présentation, image du frontispice, ce que contient l'édition */
.intro { display: flex; flex-direction: column; align-items: center; }
.intro > div { width: 100%; }
.front { display: block; width: 62%; max-width: 15rem; height: auto; border: 1px solid var(--line); margin: .4rem auto 0; }
.cta { text-align: center; margin: 1.2rem 0; }
.feats { list-style: none; padding: 0; margin: .6rem 0 1rem; }
.feats li { display: flex; gap: .9rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.feats .ico { width: 1.6em; height: 1.6em; color: var(--accent); margin-top: .15em; }
.feats h3 { margin: 0 0 .15rem; }
.feats p { margin: 0; color: var(--muted); font-size: .95rem; }
/* page d'accès : étapes, formulaire */
.step { margin-top: 1.6rem; }
.step h2 { margin-top: 0; }
.sub label { display: block; margin: .9rem 0 .25rem; font-weight: 700; font-size: .95rem; }
.sub input { display: block; width: 100%; font: inherit; min-height: 2.8rem; padding: .5rem .7rem; border: 1.5px solid var(--muted); border-radius: 6px; background: #fff; color: var(--ink); }
.sub input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--accent); }
.sub button { display: block; width: 100%; min-height: 3rem; margin-top: 1.4rem; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.sub button:disabled { opacity: .75; cursor: progress; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .85rem; color: var(--muted); }
.skip { margin-top: .9rem; text-align: center; }
.btn.alt { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.wide { display: block; text-align: center; padding-left: .8rem; padding-right: .8rem; }
.btn.sm { padding: .5rem 1rem; font-size: .9rem; margin-top: 0; }
/* bibliothèque : sommaire, plan de lecture, carte, galerie */
.toc { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .5rem; }
.toc a { display: flex; gap: .7rem; align-items: flex-start; height: 100%; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--accent); }
.toc .ico { color: var(--accent); margin-top: .1em; }
.toc span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.toc strong { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 1.1rem; color: var(--ink); line-height: 1.2; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: .8rem 0; }
.plan { list-style: none; padding: 0; margin: 1rem 0; }
.plan label { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; align-items: center; min-height: 3rem; padding: .5rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.plan input { grid-row: span 2; width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--accent); }
.plan .d { font-size: .8rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.plan input:checked ~ span { color: var(--muted); }
.mapfig { max-width: 20rem; margin: 1rem auto; }
.mapfig img, .gal img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.gal { columns: 11rem; column-gap: 1rem; margin: 1rem 0; }
.gal figure { break-inside: avoid; margin: 0 0 1.1rem; }
.gal figcaption { font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: .3rem; }
footer.site { text-align: center; font-size: .8rem; padding: 0 1rem 2rem; }
footer.site a { color: var(--muted); }
small { color: var(--muted); }
.foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .9rem; color: var(--muted); }
.hero { text-align: center; padding: 2.2rem 0 .5rem; }
.dias .dia { margin: 0 .35rem; }
.mark { font-size: 2.3rem; margin: .8rem 0 0; letter-spacing: .01em; }
.mark em { font-weight: 400; font-size: .7em; }
.tag { font-size: 1rem; color: var(--muted); max-width: 22rem; margin: 0 auto; }
.card { margin-top: 1.6rem; text-align: center; }
.card h2 { font-size: 1.6rem; margin: .4rem 0 .8rem; }
.btn { display: inline-block; margin-top: .4rem; padding: .8rem 1.4rem; background: var(--accent); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 700; }
.btn:hover { filter: brightness(1.1); }
.plain { padding-left: 1.2rem; }
.plain li { padding: .3rem 0; }
/* aperçu du livre (D117) : barre fine, lecteur PDF sur tout le reste de l'écran */
body.viewer { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.vbar { display: flex; align-items: baseline; gap: .8rem; padding: .35rem .8rem; background: var(--page); border-bottom: 1px solid var(--line); font-size: .8rem; white-space: nowrap; overflow: hidden; }
.vbar .brand { display: inline; max-width: none; margin: 0; padding: 0; font-size: 1em; }
.vt { color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; }
.vbar .back, .vbar .dl { font-weight: 700; text-decoration: none; }
.vbar .vt { flex: 1; min-width: 0; }
.pdf { flex: 1; display: block; width: 100%; border: 0; }
@media (max-width: 22rem) { .kick { letter-spacing: .08em; } }
@media (min-width: 40rem) { .sheet, .card { padding: 2.4rem 2.6rem 2rem; } h1 { font-size: 2.1rem; } .mark { font-size: 2.9rem; }
  .intro { flex-direction: row; align-items: center; gap: 1.6rem; } .front { order: -1; flex: none; width: 11rem; margin: 0; } .intro .cta { text-align: left; } }
/* lecteur en gros caractères (D122) : barre fixe, texte aligné à gauche, taille --ts (en rem) choisie par le lecteur */
:root { --ts: 1.1; }
body.reading .wrap { padding-top: .4rem; }
.rbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .25rem .6rem; background: var(--page); border-bottom: 1px solid var(--line); font-size: .8rem; }
@media (min-width: 40rem) { .rbar { padding-inline: max(.6rem, calc((100% - 36rem) / 2)); } }  /* calée sur la colonne du texte */
.rbar a { font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 2.4rem; display: inline-flex; align-items: center; }
/* titre placé entre « Books » et les boutons par order ; dans le code, après eux : un nom qui finit par un nombre
   (Psalm 151) ne se lit pas avec « Chapters » comme un décompte. Texte du navigateur très agrandi : le titre s'efface,
   puis les commandes passent à la ligne ; --bh, hauteur réelle de la barre (text.js), règle la marge des ancres */
.rbar .back { order: 0; }
.rbar .vt { order: 1; flex: 1; min-width: 0; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar .chl { order: 2; }
.rbar .sz { order: 3; display: inline-flex; gap: .3rem; }
.rbar .sz[hidden] { display: none; }
.rbar button { font: inherit; font-weight: 700; min-width: 2.4rem; min-height: 2.4rem; padding: 0 .4rem; color: var(--accent); background: transparent; border: 1.5px solid var(--accent); border-radius: 6px; cursor: pointer; }
.rbar button:disabled { opacity: .4; cursor: default; }
.rbar button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.work h1 { margin-top: .3rem; }
.work .kick { color: var(--part); }
.about { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--part); border-bottom: 1px solid var(--line); padding: .5rem 0; margin: .8rem 0 1rem; }
.about p { margin: .35rem 0; }
.about strong { color: var(--ink); }
.signs { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .8rem; margin: .3rem 0; }
.signs dt { white-space: nowrap; color: var(--ink); }
.signs dd { margin: 0; }
.ill { max-width: 24rem; margin: 1rem auto; }
.ill img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.ill figcaption { font-size: .8rem; color: var(--muted); font-style: italic; line-height: 1.4; margin-top: .3rem; text-align: center; }
.chs { margin: 1rem 0; border: 1px solid var(--line); border-radius: 6px; background: var(--page); scroll-margin-top: calc(var(--bh, 2.9rem) + .3rem); }
.chs summary { cursor: pointer; padding: .6rem .8rem; font-family: "EB Garamond", Georgia, serif; font-weight: 700; font-size: 1.1rem; min-height: 2.8rem; }
.chs ol { list-style: none; margin: 0; padding: 0 .6rem .7rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr)); gap: .4rem; }
.chs li a { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.chs li a:hover { border-color: var(--accent); }
.chs li.w2 { grid-column: span 2; }
.chs li.pl { grid-column: 1 / -1; }
.chs li.pl a { justify-content: flex-start; padding: .3rem .6rem; border-color: var(--part); color: var(--part); font-weight: 700; font-size: .85rem; }
.resume { text-align: center; margin: 1rem 0; }
.tx { font-size: calc(var(--ts) * 1rem); line-height: 1.6; margin-top: 1.4rem; overflow-wrap: break-word; }  /* un mot plus large que l'écran se coupe */
.tx p { margin: 0 0 .75em; }
.tx .pv { padding-left: 1.5em; text-indent: -1.5em; margin-bottom: .3em; }
.tx .ch, .tx .pt { scroll-margin-top: calc(var(--bh, 2.9rem) + .3rem); color: var(--part); }
.tx .ch { font-size: 1.15em; margin: 1.6em 0 .5em; padding-bottom: .15em; border-bottom: 1px solid var(--line); }
.tx .pt { font-size: 1.3em; margin: 1.8em 0 .6em; border-bottom: 2px solid var(--part); }
.tx .hn { font-weight: 400; font-style: italic; font-size: .8em; color: var(--muted); }
.tx .ti, .tx .nl { font-style: italic; font-size: .9em; color: var(--muted); }
.tx .sh { text-align: center; font-family: inherit; font-weight: 700; font-size: .9em; line-height: inherit; color: var(--accent); margin: 1.2em 0 .5em; }
.tx .v { font-size: .6em; font-weight: 700; line-height: 0; vertical-align: .55em; color: var(--muted); margin-right: .15em; font-variant-numeric: tabular-nums; }
.nd { font-size: .86em; }
.nw { white-space: nowrap; }
/* mot qui porte un signe : d'un bloc, sauf s'il est plus large que la ligne (téléphone étroit, plus grande taille) */
.tx .nw { display: inline-block; max-width: 100%; white-space: normal; text-indent: 0; }  /* sans le retrait des vers */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ck, .db { -webkit-user-select: none; user-select: none; }
.ck { display: inline-block; width: .22em; height: .3em; vertical-align: .5em; border-top: max(1px, .05em) solid; }
.ck.l { border-left: max(1px, .05em) solid; }
.ck.r { border-right: max(1px, .05em) solid; }
.db > span { margin-left: -.2em; }
.pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin: 2.4rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pn a { padding: .55rem .9rem; border: 1.5px solid var(--accent); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.pn .next { margin-left: auto; }
.all { text-align: center; font-size: .9rem; }
.part h2.ph { font-size: 1.15rem; line-height: 1.2; border-bottom: 1px solid var(--part); padding-bottom: .15rem; margin: 0; }
@media print {
  .rbar, .chs, .resume, .pn, .all, footer.site { display: none; }
  body { background: #fff; }
  .tx { font-size: 12pt; }
  .tx .ch, .tx .pt, .tx .sh { break-after: avoid; }
  .tx p { orphans: 2; widows: 2; }
}
