/* Apothecary: the label's ink on old paper, a double frame, an antique face for titles. */
@font-face { font-family: "IM Fell English"; src: url("fonts/IMFellEnglish.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IM Fell English"; font-style: italic; src: url("fonts/IMFellEnglish-Italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/OpenSans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Open Sans"; font-style: italic; src: url("fonts/OpenSans-Italic.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --encre: #49413c;      /* the label's ink */
  --papier: #f4ecdc;
  --filet: #8a7d72;
  --accent: #6b4a2b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --encre: #ece3d2; --papier: #26211d; --filet: #9d8f82; --accent: #d9b58c; color-scheme: dark; }
  .entete img, .pied img { filter: invert(0.92) sepia(0.25); }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  background: var(--papier);
  color: var(--encre);
  font: 1.05rem/1.65 "Open Sans", system-ui, sans-serif;
}
h1, h2, h3, .devise, nav {
  font-family: "IM Fell English", Georgia, serif;
  font-weight: normal;
  line-height: 1.2;
}
h1 { font-size: 2.2rem; text-align: center; margin: 0.2em 0 0.8em; }
h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; letter-spacing: 0.02em; text-align: center; }
h2::after { content: "❦"; display: block; font-size: 1rem; color: var(--filet); margin-top: 0.2em; }
h3 { font-size: 1.25rem; font-style: italic; margin: 1.6em 0 0.4em; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--papier); padding: 0.4rem 0.8rem; }

.entete { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; }
.marque img { width: min(220px, 60vw); height: auto; }
.devise { margin: 0.2rem 0 1rem; font-style: italic; font-size: 1.1rem; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 0; padding: 0.5rem 0; border-block: 1px solid var(--filet); font-size: 1.15rem; }
nav a { text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; }

/* the label's frame: a thick rule and a thin one inside */
.cadre {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem);
  border: 3px double var(--encre);
  outline: 1px solid var(--encre);
  outline-offset: 5px;
}
.cadre > :first-child { margin-top: 0; }
blockquote { margin: 1.2em 0; padding: 0 1.2em; border-left: 1px solid var(--filet); font-style: italic; }
img { max-width: 100%; height: auto; }
figure { margin: 1.5em 0; }
figcaption { font-size: 0.9rem; font-style: italic; text-align: center; }

.pied { max-width: 46rem; margin: 2.5rem auto 0; text-align: center; font-size: 0.9rem; }
.pied img { width: 64px; height: auto; }
