/* fbcgj.org — Western Slope Faith Journal — feuille "journal-ledger".
   Système propre au site (préfixe fj-) : journal dominical imprimé du Western
   Slope. Papier crème grès, encre profonde, ocre canyon, vert pinon, laiton.
   Aucune ressource externe : serif système pour le texte, mono système pour
   les mentions de registre. */

:root {
  --fj-ink: #2a2419;
  --fj-ink-soft: #5c5344;
  --fj-cream: #f4eee0;
  --fj-paper: #fbf7ec;
  --fj-ochre: #a8551f;
  --fj-green: #3d5a45;
  --fj-brass: #a3873f;
  --fj-rule: #d8cdb2;
  --fj-rule-dark: #b9ad8e;
  --fj-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --fj-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--fj-cream);
  color: var(--fj-ink);
  font-family: var(--fj-serif);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fj-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fj-ochre); }

::selection { background: var(--fj-brass); color: var(--fj-paper); }

/* ---------- enveloppe ---------- */

.fj-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px 0;
}

.fj-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--fj-ink); color: var(--fj-paper);
  padding: 8px 14px; font-family: var(--fj-mono); font-size: 13px;
}
.fj-skip:focus { left: 12px; top: 12px; z-index: 30; }

/* ---------- masthead ---------- */

.fj-masthead { padding: 26px 0 0; text-align: center; }

.fj-masthead .fj-double {
  border-top: 3px solid var(--fj-ink);
  border-bottom: 1px solid var(--fj-ink);
  height: 3px; margin: 0 0 18px;
}

.fj-kicker {
  font-family: var(--fj-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
  margin: 0 0 10px;
}

.fj-kicker .fj-brassmark { color: var(--fj-brass); }

.fj-title {
  font-family: var(--fj-serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
}
.fj-title a { color: inherit; text-decoration: none; }

.fj-tagline {
  font-style: italic;
  color: var(--fj-ink-soft);
  font-size: 15.5px;
  margin: 10px auto 0;
  max-width: 60ch;
}

.fj-nav {
  margin: 20px 0 0;
  border-top: 1px solid var(--fj-ink);
  border-bottom: 1px solid var(--fj-rule-dark);
  padding: 9px 0;
}

.fj-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  max-width: 760px;
}

.fj-nav a {
  font-family: var(--fj-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fj-ink);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.fj-nav a:hover { color: var(--fj-ochre); border-bottom-color: var(--fj-brass); }
.fj-nav a[aria-current="page"] { color: var(--fj-ochre); border-bottom-color: var(--fj-ochre); }

/* ---------- filet de tête des pages intérieures ---------- */

.fj-headbar { padding: 18px 0 0; }
.fj-headbar .fj-double {
  border-top: 3px solid var(--fj-ink);
  border-bottom: 1px solid var(--fj-ink);
  height: 3px;
}
.fj-headbar .fj-runhead {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 8px 0 10px;
  border-bottom: 1px solid var(--fj-rule-dark);
  font-family: var(--fj-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fj-ink-soft);
}
.fj-runhead a { color: inherit; text-decoration: none; }
.fj-runhead a:hover { color: var(--fj-ochre); }

/* ---------- accueil : héros et sommaire ---------- */

.fj-lead { padding: 30px 0 8px; }

.fj-hero { margin: 0; }

.fj-hero .fj-hero-frame {
  border: 1px solid var(--fj-rule-dark);
  padding: 10px;
  background: var(--fj-paper);
}

.fj-hero img { width: 100%; }

.fj-hero figcaption,
.fj-figure figcaption {
  font-family: var(--fj-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--fj-ink-soft);
  padding: 9px 2px 0;
  border-top: 1px solid var(--fj-rule);
  margin-top: 9px;
}

.fj-hero figcaption { border-top: none; margin-top: 0; }

.fj-colophon-intro {
  font-size: 19px;
  line-height: 1.6;
  max-width: 66ch;
  margin: 26px 0 0;
}

.fj-colophon-intro::first-letter {
  font-size: 3.1em;
  line-height: 0.82;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--fj-ochre);
  font-weight: 700;
}

/* ---------- chapitres (sections de cartes) ---------- */

.fj-chapter { padding: 34px 0 6px; }

.fj-chapter-head {
  border-top: 1px solid var(--fj-ink);
  border-bottom: 1px solid var(--fj-rule-dark);
  padding: 10px 0 9px;
  margin: 0 0 22px;
}

.fj-chapter-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0.02em;
}

.fj-chapter-head h2 a { color: inherit; text-decoration: none; }
.fj-chapter-head h2 a:hover { color: var(--fj-ochre); }

.fj-chapter-head .fj-chapnote {
  font-family: var(--fj-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
  margin: 4px 0 0;
}

.fj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.fj-card {
  background: var(--fj-paper);
  border: 1px solid var(--fj-rule);
  border-top: 3px solid var(--fj-rule-dark);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fj-card-link {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.fj-card img {
  width: 100%;
  aspect-ratio: 16 / 9.2;
  object-fit: cover;
  border: 1px solid var(--fj-rule);
}

.fj-card .fj-rubric {
  font-family: var(--fj-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fj-ochre);
  margin: 0;
}

.fj-card h3 {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.28;
}

.fj-card-link:hover h3 { color: var(--fj-green); text-decoration: underline; text-decoration-color: var(--fj-brass); text-underline-offset: 3px; }

.fj-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fj-ink-soft);
}

.fj-card .fj-readmore {
  font-family: var(--fj-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fj-green);
  margin-top: auto;
}

/* signet laiton : détail de marquage sur la carte vedette de chapitre */
.fj-card.fj-featured {
  border-top-color: var(--fj-brass);
  position: relative;
}
.fj-card.fj-featured::before {
  content: "";
  position: absolute;
  top: -3px; left: 18px;
  width: 34px; height: 5px;
  background: var(--fj-brass);
}

/* ---------- article et pages ---------- */

.fj-article { padding: 30px 0 10px; }

.fj-eyebrow {
  font-family: var(--fj-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fj-ochre);
  margin: 0 0 12px;
}

.fj-eyebrow a { color: inherit; text-decoration: none; }
.fj-eyebrow a:hover { color: var(--fj-green); }

.fj-article h1 {
  font-size: clamp(27px, 4.6vw, 38px);
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 14px;
  max-width: 26ch;
}

.fj-standfirst {
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fj-ink-soft);
  max-width: 62ch;
  margin: 0 0 16px;
}

.fj-meta {
  font-family: var(--fj-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
  border-top: 1px solid var(--fj-rule-dark);
  border-bottom: 1px solid var(--fj-rule-dark);
  padding: 8px 0;
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.fj-figure { margin: 0 0 30px; }

.fj-figure .fj-figure-frame {
  border: 1px solid var(--fj-rule-dark);
  padding: 9px;
  background: var(--fj-paper);
}
.fj-figure img { width: 100%; }

.fj-body {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.72;
  border-left: 3px solid var(--fj-brass);
  padding-left: 24px;
}

.fj-body > p:first-child::first-letter {
  font-size: 2.9em;
  line-height: 0.84;
  float: left;
  padding: 5px 9px 0 0;
  color: var(--fj-ochre);
  font-weight: 700;
}

.fj-body h2 {
  font-size: 21.5px;
  line-height: 1.3;
  margin: 34px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--fj-rule);
}

.fj-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.fj-body p { margin: 0 0 16px; }

/* encadré « du même registre » en fin d'article */
.fj-further {
  max-width: 68ch;
  margin: 34px 0 8px;
  background: var(--fj-paper);
  border: 1px solid var(--fj-rule);
  border-left: 3px solid var(--fj-brass);
  padding: 16px 18px 8px;
}

.fj-further h2 {
  font-family: var(--fj-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--fj-ink);
  border: none;
  padding: 0;
}

.fj-further ul { list-style: none; margin: 0; padding: 0; }
.fj-further li { padding: 7px 0; border-top: 1px dotted var(--fj-rule-dark); font-size: 15.5px; }
.fj-further li:first-child { border-top: none; }

/* navigation de registre précédent / suivant */
.fj-neighbours {
  max-width: 68ch;
  margin: 26px 0 6px;
  border-top: 1px solid var(--fj-ink);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
}

.fj-neighbours a { text-decoration: none; }
.fj-neighbours a:hover { text-decoration: underline; }
.fj-neighbours .fj-nb-label {
  display: block;
  font-family: var(--fj-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
  margin-bottom: 3px;
}
.fj-neighbours .fj-nb-next { text-align: right; margin-left: auto; }

/* page contact : adresse de rédaction stylée en registre */
.fj-ledger {
  max-width: 68ch;
  border: 1px solid var(--fj-rule-dark);
  background: var(--fj-paper);
  padding: 18px 20px;
  margin: 0 0 24px;
  font-family: var(--fj-mono);
  font-size: 14px;
  line-height: 1.9;
}
.fj-ledger dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
  float: left;
  clear: left;
  width: 130px;
  padding-top: 3px;
}
.fj-ledger dd { margin: 0 0 6px 148px; }
.fj-ledger dl, .fj-ledger { margin-bottom: 24px; }

/* ---------- 404 ---------- */

.fj-lost { padding: 60px 0 30px; max-width: 60ch; }
.fj-lost h1 { font-size: 30px; margin: 0 0 14px; }
.fj-lost .fj-meta { margin-bottom: 20px; }

/* ---------- pied de page ---------- */

.fj-footer { margin-top: 54px; }

.fj-footer .fj-double {
  border-top: 3px solid var(--fj-ink);
  border-bottom: 1px solid var(--fj-ink);
  height: 3px;
}

.fj-footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 1fr 1fr;
  gap: 26px;
  padding: 24px 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.fj-footer h2 {
  font-family: var(--fj-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--fj-ink);
}

.fj-footer ul { list-style: none; margin: 0; padding: 0; }
.fj-footer li { padding: 2px 0; }

.fj-disclaimer {
  font-style: italic;
  color: var(--fj-ink-soft);
  font-size: 13.5px;
}

.fj-closing {
  border-top: 1px solid var(--fj-rule-dark);
  padding: 10px 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-family: var(--fj-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fj-ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .fj-cards { grid-template-columns: repeat(2, 1fr); }
  .fj-footer-inner { grid-template-columns: 1fr 1fr; }
  .fj-footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .fj-cards { grid-template-columns: 1fr; }
  .fj-body { border-left: none; padding-left: 0; }
  .fj-ledger dt { float: none; width: auto; margin-bottom: 2px; }
  .fj-ledger dd { margin-left: 0; }
  .fj-neighbours { flex-direction: column; }
  .fj-neighbours .fj-nb-next { text-align: left; }
}
