.bf-preview-dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: min(75vh, 42rem);
  padding: 0;
  overflow: visible;
  border: 0;
  border-left: 0.22rem solid #173f32;
  background: #fbf8f1;
  color: #18221d;
  box-shadow: 0 1.5rem 5rem rgb(24 34 29 / 35%);
}

.bf-preview-dialog::backdrop {
  background: rgb(17 24 20 / 62%);
  backdrop-filter: blur(0.18rem);
}

.bf-preview-dialog-inner {
  position: relative;
  max-height: min(75vh, 42rem);
  padding: 2rem 3.5rem 2rem 2rem;
  overflow: auto;
}

.bf-preview-dialog-label {
  margin: 0 0 0.8rem;
  color: #c84f35;
  font: 800 0.72rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bf-preview-dialog-content {
  font-size: 1.08rem;
  line-height: 1.7;
}

.bf-preview-dialog-content p:last-child {
  margin-bottom: 0;
}

.bf-preview-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgb(24 34 29 / 20%);
  background: transparent;
  color: #18221d;
  cursor: pointer;
  font: 400 1.4rem/1 system-ui, sans-serif;
  place-items: center;
}

.bf-preview-dialog-close:hover,
.bf-preview-dialog-close:focus-visible {
  background: #dce4d8;
}

.bf-noteref,
.bf-noteref:link,
.bf-noteref:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  width: max-content;
  height: 1.15rem;
  box-sizing: border-box;
  margin: 0 0.15rem;
  padding: 0 0.26rem;
  border: 0;
  border-radius: 9999px;
  background-color: #922f26;
  color: #ffffff;
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  text-indent: 0;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: super;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.bf-noteref sup {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-indent: 0;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  pointer-events: none;
}

.bf-noteref:hover,
.bf-noteref:focus-visible {
  background-color: #922f26;
  color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 0.28rem rgb(146 47 38 / 18%);
  transform: scale(1.08);
  text-decoration: none;
}

.bf-popovers .bf-footnotes {
  display: none;
}

:root[data-theme="dark"] .bf-preview-dialog {
  border-left-color: #9aae9a;
  background: #18221d;
  color: #f4f0e7;
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 55%);
}

:root[data-theme="dark"] .bf-preview-dialog-label {
  color: #e4775f;
}

:root[data-theme="dark"] .bf-preview-dialog-close {
  border-color: rgb(244 240 231 / 22%);
  color: #f4f0e7;
}

:root[data-theme="dark"] .bf-preview-dialog-close:hover,
:root[data-theme="dark"] .bf-preview-dialog-close:focus-visible {
  background: #26372f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .bf-preview-dialog {
    border-left-color: #9aae9a;
    background: #18221d;
    color: #f4f0e7;
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 55%);
  }

  :root:not([data-theme]) .bf-preview-dialog-label {
    color: #e4775f;
  }

  :root:not([data-theme]) .bf-preview-dialog-close {
    border-color: rgb(244 240 231 / 22%);
    color: #f4f0e7;
  }

  :root:not([data-theme]) .bf-preview-dialog-close:hover,
  :root:not([data-theme]) .bf-preview-dialog-close:focus-visible {
    background: #26372f;
  }
}

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  max-width: 46rem;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2.5rem 2rem 5rem !important;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #2b1712;
  background-color: #fffaf0;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

*,
.figcenter,
.texte600,
div[style*="width"],
table,
img {
  max-width: 100% !important;
}

div[style*="width"],
.texte600 {
  width: auto !important;
}

.figcenter {
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

img {
  height: auto !important;
  max-width: 100% !important;
}

table {
  width: 100% !important;
  border-collapse: collapse;
}

[class*="margin1"],
[class*="margin2"],
.marginleft1,
.marginleft2,
.marginleft3,
.background1,
.background2 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

p {
  line-height: 1.75;
  margin-top: 0.85em;
  margin-bottom: 0.85em;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

h1 {
  font-size: clamp(1.4rem, 4.5vw, 1.8em);
  letter-spacing: 0.05em;
  word-spacing: 0.1em;
  line-height: 1.35;
  margin: 1.5em auto 0.5em !important;
}

h2 {
  font-size: clamp(1.15rem, 3.5vw, 1.35em);
  letter-spacing: 0.05em;
  word-spacing: 0.08em;
  line-height: 1.35;
  margin: 1.5em auto 1em !important;
}

.h2line1,
.h2line2 {
  letter-spacing: 0.05em;
  word-spacing: 0.08em;
}

@media (max-width: 680px) {
  body {
    padding: 1.25rem 1rem 3rem !important;
    font-size: 1.02rem;
    line-height: 1.68;
  }

  p {
    text-align: left !important;
    text-indent: 1em !important;
    line-height: 1.68;
  }

  .poem {
    padding-left: 0.5rem;
  }

  .poem span {
    display: block;
  }

  .bf-preview-dialog {
    width: calc(100% - 1.5rem);
    max-height: 85vh;
    border-left-width: 0.28rem;
  }

  .bf-preview-dialog-inner {
    padding: 1.5rem 2.6rem 1.5rem 1.25rem;
    max-height: 85vh;
  }

  .bf-preview-dialog-content {
    font-size: 1rem;
    line-height: 1.62;
  }
}

:root[data-theme="dark"] body {
  background-color: #171412 !important;
  color: #f4ede3 !important;
}

:root[data-theme="dark"] a:link {
  color: #b5c7a3 !important;
}

:root[data-theme="dark"] a:visited {
  color: #8c9270 !important;
}

:root[data-theme="dark"] hr.full,
:root[data-theme="dark"] hr.small,
:root[data-theme="dark"] hr.small2,
:root[data-theme="dark"] hr.double {
  border-color: rgb(244 237 227 / 16%) !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-color: #171412 !important;
    color: #f4ede3 !important;
  }

  :root:not([data-theme="light"]) a:link {
    color: #b5c7a3 !important;
  }

  :root:not([data-theme="light"]) a:visited {
    color: #8c9270 !important;
  }

  :root:not([data-theme="light"]) hr.full,
  :root:not([data-theme="light"]) hr.small,
  :root:not([data-theme="light"]) hr.small2,
  :root:not([data-theme="light"]) hr.double {
    border-color: rgb(244 237 227 / 16%) !important;
  }
}
