@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/EBGaramond-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}
/* Compléments EB Garamond pour les chiffres elzéviriens et la translittération. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/complement-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  unicode-range: U+0030-0039, U+0101, U+012B, U+016B, U+02BF, U+1E6D;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/complement-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  unicode-range: U+0030-0039, U+0101, U+012B, U+016B, U+02BF, U+1E6D;
}
:root {
  --brown: #5c4028;
  --paper: #faf6f0;
  --ink: #2a2118;
  --muted: #6b5a48;
  --rule: #c7b8a9;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0 auto;
  max-width: 64rem;
  padding: 0 3rem;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.25rem/1.5 "EB Garamond", serif;
  font-variant-numeric: oldstyle-nums;
  hyphens: auto;
}
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { color: var(--brown); font-weight: 400; line-height: 1.12; }
h1, .feature-title { font-size: 3.25rem; }
h2 { font-size: 2.4rem; }
a { color: var(--brown); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }
.skip { position: absolute; left: .75rem; top: -8rem; background: var(--paper); padding: .3rem .6rem; }
.skip:focus { top: .5rem; z-index: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mark, .caps, .section-label, .cover-foot {
  font-variant-caps: small-caps;
  letter-spacing: .09em;
}
.mark { color: var(--brown); font-variant: small-caps; letter-spacing: .16em; text-decoration: none; }
.masthead { text-align: center; padding: 2.4rem 0 1.55rem; }
.masthead .mark { font-size: 4.5rem; line-height: .95; }
.masthead .rome { font-size: 1.1rem; margin-top: .25rem; color: var(--muted); letter-spacing: .16em; }
.top-nav {
  display: flex; justify-content: center; gap: 2rem; padding: .45rem 0;
  border-block: 1px solid var(--rule); font-size: 1.05rem;
}
.top-nav a, .foot-nav a, .filters a, .book-line a { text-decoration: none; }
.top-nav a:hover, .foot-nav a:hover, .filters a:hover, .book-line a:hover,
.top-nav [aria-current], .filters [aria-current] { text-decoration: underline; }
.inner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 .9rem; border-bottom: 1px solid var(--rule); }
.inner-head .mark { font-size: 2.25rem; line-height: 1; }
.inner-head .top-nav { border: 0; padding: 0; gap: 1.25rem; }
.feature {
  max-width: 49rem; margin: 2.75rem auto; display: grid;
  grid-template-columns: 14rem minmax(0, 1fr); align-items: center; gap: 3.75rem;
}
.feature-cover { justify-self: center; text-decoration: none; }
.feature-copy .section-label { font-size: 1.15rem; color: var(--muted); margin-bottom: .85rem; }
.feature-title a { text-decoration: none; }
.feature-title a:hover { text-decoration: underline; }
.subtitle { font-size: 1.65rem; color: var(--brown); font-style: italic; line-height: 1.2; }
.feature-copy .byline { font-size: 1.06rem; margin-top: .6rem; color: var(--muted); }
.feature-copy .blurb { margin: 1.1rem 0; max-width: 26em; }
.feature-details { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1.45rem; font-size: 1.05rem; }
sup { font-size: .65em; line-height: 0; }
.feature-details time { color: var(--muted); }
.ornament { display: flex; justify-content: center; align-items: center; gap: .6rem; color: var(--brown); line-height: 1; }
.ornament::before, .ornament::after { content: ""; width: 3.8rem; border-top: 1px solid var(--rule); }

/* Toutes les cotes du plat suivent la même unité, y compris sa typographie. */
.pend { --c: #9a5a32; }
.qabus { --c: #4b6574; }
.delivrance { --c: #9e3d38; }
.ave { --c: #8e3530; }
.nautipass { --c: #2f6386; }
.enfants { --c: #4f8f52; }
.cover {
  position: relative; width: 13.97em; height: 21.59em; font-size: 1.2rem;
  background: var(--paper); outline: 1px solid var(--rule); outline-offset: -1px;
  color: var(--ink); text-align: left; line-height: 1.2; hyphens: none;
}
.cover-small { font-size: .94rem; }
.cover-band { position: absolute; inset: 0 0 auto; height: 4.2em; background: var(--c); color: white; }
.cover-origin, .cover-author { position: absolute; left: 10%; right: 8%; }
.cover-origin { top: 17%; font-size: .68em; font-style: italic; color: rgb(255 255 255 / 80%); }
.pend .cover-origin { color: rgb(255 255 255 / 87%); }
.cover-author { bottom: 15%; font-size: .94em; }
.cover-title, .cover-subtitle, .cover-credit { position: absolute; left: 10%; right: 9%; }
.cover-title { top: 30.57%; color: var(--brown); font-size: 1.8em; line-height: 1.04; }
.cover-subtitle { top: 43.08%; font-size: 1.03em; font-style: italic; }
.cover-long .cover-subtitle { top: 51%; }
.cover-credit { top: 54%; font-size: .71em; line-height: 1.35; }
.cover-foot {
  position: absolute; left: 10%; right: 10%; bottom: 4%;
  border-top: 1px solid var(--c); padding-top: .3em;
  display: flex; align-items: baseline; justify-content: space-between; font-size: .69em;
}
.cover-foot .mark { font-size: 1.1em; }
.catalogue { margin: 1.9rem 0 3.5rem; }
.catalogue-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: .65rem 2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--brown);
}
.filters, .foot-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .65em; font-size: 1.05rem; }
.filters span, .foot-nav span { color: var(--muted); }
.book-list { list-style: none; padding: 0; margin: 0; }
.book-list li { padding: .85rem 0 .75rem; border-bottom: 1px solid var(--rule); }
.book-line { display: flex; align-items: baseline; gap: .5em; }
.book-line cite { color: var(--brown); font-size: 1.5rem; line-height: 1.2; }
.leader { flex: 1 1 1em; min-width: .65em; border-bottom: 2px dotted var(--rule); }
.state { font-size: 1.05rem; white-space: nowrap; color: var(--muted); }
.book-meta { display: flex; align-items: baseline; font-size: 1rem; color: var(--muted); }
.book-meta::before { content: ""; width: 1rem; margin-right: .5rem; border-top: 2px solid var(--c); align-self: center; }
.empty { padding: 1.5rem 0; }
.footer { margin: 3.5rem 0 1.4rem; padding: .9rem 0; border-top: 1px solid var(--rule); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .mark { font-size: 1.5rem; }
.foot-nav { gap: .15em 1.2em; }
.book-intro { margin: 2.5rem 0 2rem; text-align: center; }
.book-intro .subtitle { margin-top: .25rem; }
.book-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.plates { display: flex; gap: 1rem; justify-content: center; align-items: flex-start; }
.plates img { display: block; width: 100%; height: auto; }
.plates figure { max-width: 100%; }
.proof { width: 8rem; }
figcaption { font-style: italic; font-size: 1rem; color: var(--muted); margin-top: .4rem; text-align: center; }
.facts { border-top: 1px solid var(--brown); }
.facts div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: .75rem; padding: .27rem 0; border-bottom: 1px solid var(--rule); font-size: 1.08rem; line-height: 1.35; }
.facts dt { color: var(--muted); font-style: italic; }
.reading { max-width: 34em; margin: 2.5rem auto; }
.reading p, .reading ul { margin: .85rem 0; }
.reading h2 { font-size: 1.9rem; margin-top: 1.4rem; }
.reading .ornament { margin: 2.2rem 0; }
.reading .chapter { font-size: 1.1rem; color: var(--muted); margin: .6rem 0 .2rem; }
.extract p { margin-top: .4rem; }
.extract p::first-letter { float: left; font-size: 3.3em; line-height: .81; padding: .075em .09em 0 0; color: var(--brown); }
@supports (initial-letter: 2) {
  .extract p::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0 .08em 0 0; initial-letter: 2; }
}
.prose { margin-block: 3.2rem; }
.prose h1 { font-size: 2.8rem; }
.updated, .form-note { color: var(--muted); font-size: 1.05rem; }
.letter-form { margin-top: 1.75rem; }
.letter-form label { display: block; margin-bottom: .25rem; }
.form-row { display: flex; flex-wrap: wrap; gap: .6rem; }
input, button { border-radius: 0; font: inherit; background: var(--paper); color: var(--ink); }
input { border: 1px solid var(--muted); padding: .3rem .65rem; flex: 1; min-width: 10rem; }
button { border: 1px solid var(--brown); color: var(--brown); padding: .3rem 1rem; cursor: pointer; }
button:hover { text-decoration: underline; }
@media (max-width: 52rem) {
  .book-layout { grid-template-columns: 1fr; }
  .feature { gap: 2rem; }
}
@media (max-width: 40rem) {
  body { padding: 0 1.25rem; font-size: 1.15rem; }
  .masthead { padding: 1.6rem 0 1.2rem; }
  .masthead .mark { font-size: 3.6rem; }
  .inner-head { flex-direction: column; align-items: center; gap: .55rem; padding: 1rem 0 .65rem; }
  .feature { grid-template-columns: 1fr; gap: 1.3rem; margin: 1.5rem 0; }
  .feature-copy { text-align: center; }
  .feature-copy .section-label { margin-bottom: .45rem; }
  h1, .feature-title { font-size: 2.65rem; }
  .cover-small { font-size: .84rem; }
  .feature-details { justify-content: center; }
  .feature-copy .blurb { margin: .8rem auto; }
  .catalogue { margin: 1.45rem 0 2rem; }
  .book-line { gap: .3em; }
  .book-line cite { font-size: 1.25rem; }
  .state { flex: none; font-size: .95rem; hyphens: none; }
  .filters { gap: .12em .3em; }
  .foot-nav { gap: .25em .9em; }
  .book-intro { margin: 1.8rem 0; }
  .book-layout { gap: 1.4rem; }
  .plates { flex-wrap: wrap; }
  .plates.pair .cover { font-size: .94rem; }
  .proof { width: 6.5rem; }
  .facts div { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .reading, .prose { margin-block: 2rem; }
  .footer { margin-top: 2.5rem; }
}
