/* Style « Grimoire » (the default): parchment, brown ink, oxblood and gold.
   Cinzel for titles, EB Garamond for the story, Alegreya Sans for the interface.
   Fonts under the SIL Open Font License (polices/*-LICENSE.txt). */

@font-face { font-family: "Cinzel"; src: url("../polices/cinzel-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../polices/cinzel-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../polices/eb-garamond-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../polices/eb-garamond-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../polices/eb-garamond-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../polices/alegreya-sans-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../polices/alegreya-sans-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../polices/alegreya-sans-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --fond: #f1e6cf;
  --surface: #f8f0dc;
  --texte: #2b2118;
  --discret: #75614a;
  --accent: #7a1f1a;
  --accent-texte: #f8f0dc;
  --or: #a67c2e;
  --bord: #d6c39c;
  --lueur: rgb(255 255 255 / 0.25);
  --lecture: "EB Garamond", Garamond, serif;
  --interface: "Alegreya Sans", system-ui, sans-serif;
  --titre: "Cinzel", "EB Garamond", serif;
}

:root[data-mode="sombre"] {
  --fond: #17120d;
  --surface: #221a13;
  --texte: #ecdfc4;
  --discret: #a8936f;
  --accent: #d0805f;
  --accent-texte: #17120d;
  --or: #c9a14f;
  --bord: #3d3022;
  --lueur: transparent;
  --ombre: 0 2px 10px rgb(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root[data-mode="auto"] {
    --fond: #17120d;
    --surface: #221a13;
    --texte: #ecdfc4;
    --discret: #a8936f;
    --accent: #d0805f;
    --accent-texte: #17120d;
    --or: #c9a14f;
    --bord: #3d3022;
    --lueur: transparent;
    --ombre: 0 2px 10px rgb(0 0 0 / 0.5);
  }
}

/* Light falling on the page from above (none in the dark). */
body {
  background-image: radial-gradient(ellipse at top, var(--lueur), transparent 60%);
  background-repeat: no-repeat;
}

.marque {
  font-family: var(--titre);
  letter-spacing: 0.08em;
  color: var(--accent);
}

.titre-livre {
  font-family: var(--lecture);
  font-style: italic;
  font-size: 1rem;
}

.accueil h1 {
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.accueil h1::after {
  content: "❦";
  display: block;
  color: var(--or);
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

/* Cover: a double gold rule, the title in engraved capitals. */
.histoire {
  text-align: center;
  padding: 2rem 1.25rem 1.25rem;
  border: 1px solid var(--or);
  outline: 1px solid var(--or);
  outline-offset: -6px;
}

.histoire h2 {
  font-family: var(--titre);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.bouton-principal {
  font-family: var(--titre);
  letter-spacing: 0.06em;
}

.fiche-stats {
  font-weight: 700;
}

.scene {
  font-size: 1.3rem;
  line-height: 1.6;
}

.scene-numero {
  font-family: var(--titre);
  font-size: 1.4rem;
  color: var(--accent);
}

.scene-numero::before,
.scene-numero::after {
  content: " ✦ ";
  color: var(--or);
  font-size: 0.8rem;
  vertical-align: middle;
}

/* A drop cap on the first paragraph of the scene. */
.scene > p:first-of-type::first-letter {
  font-family: var(--titre);
  float: left;
  font-size: 3.2em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--accent);
}

.journal {
  border-left-color: var(--or);
}

.choix button {
  font-family: var(--lecture);
  font-size: 1.15rem;
}

.choix button::before {
  content: "➳ ";
  color: var(--or);
}

.fiche-complete h2 {
  font-family: var(--titre);
}
