/* La Lesbienne — Issue reader
   Pages are images rendered from the print PDF, each with its text behind it for
   screen readers and search.
   - Flow mode (phones, no JS, or "Scroll all pages"): pages stack in one column.
   - Book mode (body.is-book on wide screens): A4 spreads with a 3D page turn. */
@property --bend  { syntax: '<angle>';      inherits: true;  initial-value: 0deg; }
@property --sf    { syntax: '<number>';     inherits: true;  initial-value: 0; }
@property --sb    { syntax: '<number>';     inherits: true;  initial-value: 0; }
@property --fade  { syntax: '<number>';     inherits: true;  initial-value: 1; }
@property --shift { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

:root {
  --ll-red: #FB263D;
  --ll-ink: #181616;
  --ll-paper: #ffffff;
  --ll-sea: #15546b;
  --ll-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ll-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ll-gutter: clamp(1.25rem, 5vw, 5rem);
  --ll-muted: #5a5555;
  --ll-table: #f2f2f2;           /* lalesbienne.com's background */
  --page-ratio: 595 / 841;
  /* paper surface shared by resting pages and the turning page */
  --paper-left:
    linear-gradient(to left, rgba(0,0,0,0.2) 0, rgba(0,0,0,0.07) 2.5%, rgba(0,0,0,0.02) 6%, transparent 10%),
    linear-gradient(to right, rgba(0,0,0,0.05), transparent 2.5%),
    linear-gradient(172deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(0,0,0,0.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .06  .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-right:
    linear-gradient(to right, rgba(0,0,0,0.2) 0, rgba(0,0,0,0.07) 2.5%, rgba(0,0,0,0.02) 6%, transparent 10%),
    linear-gradient(to left, rgba(0,0,0,0.05), transparent 2.5%),
    linear-gradient(188deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(0,0,0,0.035)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1  0 0 0 0 .08  0 0 0 0 .06  .09 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-size: 100% 100%, 100% 100%, 100% 100%, 180px 180px;
  --paper-repeat: no-repeat, no-repeat, no-repeat, repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ll-paper); color: var(--ll-ink);
  font-family: var(--ll-body); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ll-red); }
:focus-visible { outline: 2px solid var(--ll-red); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--ll-gutter); top: -4rem;
  background: var(--ll-ink); color: var(--ll-paper); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

/* ——— Site masthead ——— */
.masthead { padding: 1rem var(--ll-gutter) 0; }
.masthead__inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 2rem; padding-bottom: 0.75rem; border-bottom: 1px solid currentColor;
}
.wordmark-slot { font-family: var(--ll-display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em; color: var(--ll-red); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ll-red); text-decoration: underline; }

/* ——— Reader bar ——— */
.reader__bar {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.9rem var(--ll-gutter);
}
.reader__title { margin: 0; font-family: var(--ll-display); font-weight: 600; font-size: 1.6rem; line-height: 1; flex: 1 1 auto; }
.reader__title span {
  font-family: var(--ll-body); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ll-red); margin-left: 0.5rem; vertical-align: middle;
}
.mode-toggle, .controls__btn, .toc summary, .page-text-toggle {
  appearance: none; border: 1px solid var(--ll-ink); background: var(--ll-paper); color: var(--ll-ink);
  font: inherit; font-size: 0.9rem; padding: 0.4rem 1rem; cursor: pointer; border-radius: 0;
  transition: background-color 0.2s, color 0.2s;
}
.mode-toggle:hover, .controls__btn:hover:not(:disabled), .toc summary:hover, .page-text-toggle:hover { background: var(--ll-ink); color: var(--ll-paper); }
.mode-toggle { display: none; }
.has-book-option .mode-toggle { display: inline-block; }

/* Contents menu */
.toc { position: relative; }
.toc summary { list-style: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "▾"; font-size: 0.75em; transition: transform 0.25s; }
.toc[open] summary::after { transform: rotate(180deg); }
.toc__list {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 30;
  width: min(28rem, calc(100vw - 2.5rem)); max-height: min(70vh, 40rem); overflow: auto;
  margin: 0; padding: 0.5rem 0; list-style: none;
  background: var(--ll-paper); border: 1px solid var(--ll-ink);
  box-shadow: 0 18px 40px -12px rgba(24,22,22,0.35);
}
@media (max-width: 640px) { .toc__list { left: 0; right: auto; } }
.toc__list a { display: block; padding: 0.55rem 1.1rem; text-decoration: none; border-bottom: 1px solid rgba(24,22,22,0.12); }
.toc__list li:last-child a { border-bottom: 0; }
.toc__list a:hover, .toc__list a:focus-visible { background: #faf3f4; }
.toc__list em { display: block; font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ll-red); }
.toc__list span { display: block; font-family: var(--ll-display); font-weight: 600; font-size: 1.15rem; line-height: 1.15; }
.toc__list small { display: block; font-style: italic; color: var(--ll-muted); font-size: 0.85rem; }

/* ——— Pages ——— */
.page { position: relative; background: var(--ll-paper); }
.page img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.page__text {
  /* available to screen readers and in-page search; shown on request in flow mode */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: normal;
}
.page__text.is-open {
  position: static; width: auto; height: auto; clip: auto; overflow: visible;
  margin: 1rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(24,22,22,0.2);
  font-size: 1.05rem;
}
.page__text.is-open p { margin: 0 0 0.6em; }

/* ================= Flow mode ================= */
.stage { padding: 0 var(--ll-gutter) 3rem; }
.spread { max-width: 44rem; margin: 0 auto; }
body:not(.is-book) .page { margin: 0 0 2.25rem; }
body:not(.is-book) .page img {
  aspect-ratio: var(--page-ratio); cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 10px 28px -10px rgba(24,22,22,0.3);
}
body:not(.is-book) .page[hidden] { display: block; }
body:not(.is-book) .controls, body:not(.is-book) .controls__hint { display: none; }
.page__meta { display: none; }
body:not(.is-book) .page__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ll-muted); margin-top: 0.7rem;
}
.page-text-toggle { font-size: 0.8rem; padding: 0.25rem 0.75rem; letter-spacing: 0.04em; text-transform: none; }

/* ================= Book mode ================= */
.is-book .reader { background: var(--ll-table); overflow: hidden; }
.is-book .reader__bar { background: var(--ll-table); border-bottom: 1px solid rgba(24,22,22,0.1); }
.is-book .stage {
  padding: 1.5rem var(--ll-gutter) 0.75rem;
  display: flex; justify-content: center;
  perspective: 5200px; perspective-origin: 50% 50%;
}
.is-book .spread {
  /* two A4 pages side by side; fit the viewport's width and height */
  --spread-w: min(1500px, 100%, calc((100svh - 12rem) * 2 * 595 / 841));
  --shadow-l: 0%; --shadow-r: 0%;
  position: relative; width: var(--spread-w); max-width: none; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  transform: translateX(var(--shift)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: --shift 0.95s cubic-bezier(.42,.05,.32,1);
  -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
/* each page casts its own shadow, so nothing shows where there is no page */
.is-book .spread > .page:not([hidden]) {
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 22px 34px -16px rgba(24,22,22,0.4);
}
.stack { display: none; }
.is-book .stack {
  display: block; position: absolute; top: 0.25%; bottom: 0.25%; width: var(--w, 0px);
  background: repeating-linear-gradient(to right, #f4f0ea 0 1px, #cdc5bb 1px 2px);
  pointer-events: none;
}
.is-book .stack[hidden] { display: none; }
.is-book .stack--l { right: 100%; }
.is-book .stack--r { left: 100%; }

.is-book .page { aspect-ratio: var(--page-ratio); overflow: hidden; grid-row: 1; }
.is-book .spread.can-next > .page[data-side="right"], .is-book .spread.can-prev > .page[data-side="left"], .is-single .spread > .page[data-side] { cursor: pointer; }
.is-book .page[hidden] { display: none; }
.is-book .page[data-side="left"] { grid-column: 1; }
.is-book .page[data-side="right"] { grid-column: 2; }
/* paper: spine shading, light on the outer edge, soft light from above, grain */
.is-book .page[data-side]::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.is-book .page[data-side="left"]::after  { background-image: var(--paper-left);  background-size: var(--paper-size); background-repeat: var(--paper-repeat); }
.is-book .page[data-side="right"]::after { background-image: var(--paper-right); background-size: var(--paper-size); background-repeat: var(--paper-repeat); }

/* turnable outer edge + lifting corner */
.edge { display: none; }
.is-book .spread.can-next > .page[data-side="right"] .edge,
.is-book .spread.can-prev > .page[data-side="left"] .edge {
  display: block; position: absolute; top: 0; bottom: 0; width: 16%; cursor: pointer; z-index: 2;
}
.is-book .page[data-side="right"] .edge { right: 0; }
.is-book .page[data-side="left"] .edge { left: 0; }
.is-book .spread > .page[data-side]::before {
  content: ""; position: absolute; bottom: 0; z-index: 3; width: 0; height: 0; pointer-events: none;
  transition: width 0.35s cubic-bezier(.2,.7,.2,1), height 0.35s cubic-bezier(.2,.7,.2,1);
}
.is-book .spread > .page[data-side="right"]::before {
  right: 0; background: linear-gradient(315deg, var(--ll-table) 0 48%, rgba(0,0,0,0.22) 49%, #efebe6 51%, #fbfaf8 75%);
  box-shadow: -3px -3px 8px -4px rgba(0,0,0,0.25);
}
.is-book .spread > .page[data-side="left"]::before {
  left: 0; background: linear-gradient(45deg, var(--ll-table) 0 48%, rgba(0,0,0,0.22) 49%, #efebe6 51%, #fbfaf8 75%);
  box-shadow: 3px -3px 8px -4px rgba(0,0,0,0.25);
}
.is-book .spread.can-next:not(.is-flipping) > .page[data-side="right"]:hover::before,
.is-book .spread.can-prev:not(.is-flipping) > .page[data-side="left"]:hover::before { width: 10%; height: calc(10% * 595 / 841); }
@media (hover: none) { .is-book .spread > .page[data-side]:hover::before { width: 0 !important; height: 0 !important; } }

/* ——— the turning leaf: a chain of hinged strips that bends like paper ——— */
.leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; z-index: 5; pointer-events: none; will-change: transform; }
.leaf--next { left: 50%; transform-origin: left center; }
.leaf--prev { left: 0; transform-origin: right center; }
.strip { position: absolute; top: 0; height: 100%; transform-style: preserve-3d; }
.leaf--next .strip { left: 100%; transform-origin: left center; transform: rotateY(var(--bend)); }
.leaf--prev .strip { right: 100%; transform-origin: right center; transform: rotateY(var(--bend)); }
.leaf--next .strip--root { left: 0; transform: none; }
.leaf--prev .strip--root { right: 0; transform: none; }
.slice {
  position: absolute; top: 0; height: 100%; overflow: hidden;
  opacity: var(--fade, 1);            /* fade on the flat strips, never on the 3D page */
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* front and back sit a hair apart, each towards its own side, so neither shows through the other */
.leaf--next .slice { left: 0; }
.leaf--prev .slice { right: 0; }
.slice--front { transform: translateZ(0.5px); }
.slice--back  { transform: rotateY(180deg) translateZ(0.5px); }
.slice img { position: absolute; top: 0; max-width: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.slice__paper { position: absolute; inset: 0; pointer-events: none; background-repeat: var(--paper-repeat); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.slice__paper--left { background-image: var(--paper-left); }
.slice__paper--right { background-image: var(--paper-right); }
.slice__shade { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf--next .slice--front .slice__shade { opacity: var(--sf); background-image: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.08) 35%, rgba(255,255,255,0.18) 80%, rgba(0,0,0,0.1)); }
.leaf--next .slice--back .slice__shade  { opacity: var(--sb); background-image: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0.08) 40%, transparent); }
.leaf--prev .slice--front .slice__shade { opacity: var(--sf); background-image: linear-gradient(to left, rgba(0,0,0,0.35), rgba(0,0,0,0.08) 35%, rgba(255,255,255,0.18) 80%, rgba(0,0,0,0.1)); }
.leaf--prev .slice--back .slice__shade  { opacity: var(--sb); background-image: linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.08) 40%, transparent); }

.leaf-shadow {
  position: absolute; top: 0; width: 50%; height: 100%; pointer-events: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 22px 34px -16px rgba(24,22,22,0.4);
}
.leaf-shadow--next { left: 50%; transform-origin: left center; }
.leaf-shadow--prev { left: 0; transform-origin: right center; }
.cast { position: absolute; top: 0; width: 50%; height: 100%; z-index: 4; opacity: 0; pointer-events: none; transform: translateZ(0.5px); }
.cast--next { left: 50%; background: linear-gradient(to right, rgba(0,0,0,0.42), rgba(0,0,0,0.12) 35%, transparent 75%); }
.cast--prev { left: 0; background: linear-gradient(to left, rgba(0,0,0,0.42), rgba(0,0,0,0.12) 35%, transparent 75%); }

.controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 0.5rem var(--ll-gutter) 0.5rem; }
.controls__count { margin: 0; min-width: 11em; text-align: center; font-size: 0.95rem; letter-spacing: 0.06em; }
.controls__btn:disabled { opacity: 0.35; cursor: default; }
.controls__hint { margin: 0 0 1.25rem; text-align: center; font-style: italic; font-size: 0.88rem; color: var(--ll-muted); padding: 0 var(--ll-gutter); }

/* ——— Zoom (read a page up close) ——— */
.zoom {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20, 18, 18, 0.94); color: var(--ll-paper);
}
.zoom::backdrop { background: rgba(20, 18, 18, 0.6); }
.zoom[open] { display: flex; flex-direction: column; }
.zoom__bar {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 0.75rem var(--ll-gutter); border-bottom: 1px solid rgba(255,255,255,0.15);
}
.zoom__label { margin: 0; min-width: 9em; text-align: center; letter-spacing: 0.08em; font-size: 0.95rem; }
.zoom__btn {
  appearance: none; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.5);
  font: inherit; font-size: 0.95rem; padding: 0.35rem 0.9rem; cursor: pointer; border-radius: 0;
}
.zoom__btn:hover { background: var(--ll-paper); color: var(--ll-ink); }
.zoom__btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: inherit; }
.zoom__close { position: absolute; right: var(--ll-gutter); }
.zoom__scroll { flex: 1; overflow: auto; padding: 1.5rem var(--ll-gutter) 3rem; overscroll-behavior: contain; }
.zoom__scroll img { width: min(100%, 1100px); margin: 0 auto; background: var(--ll-paper); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
@media (max-width: 640px) {
  .zoom__close { position: static; }
  .zoom__scroll { padding: 0.75rem 0 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-book .spread.enter { animation: book-in 1.1s cubic-bezier(.2,.75,.2,1) both; }
  @keyframes book-in {
    from { opacity: 0; transform: translateX(var(--shift)) translateY(40px) rotateX(24deg) scale(0.94); }
    to   { opacity: 1; transform: translateX(var(--shift)) rotateX(0deg) rotateY(0deg); }
  }
  body:not(.is-book) .page.pre-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.75,.2,1); }
  body:not(.is-book) .page.pre-reveal.is-in { opacity: 1; transform: none; }
  .zoom[open] .zoom__scroll img { animation: zoom-in 0.35s cubic-bezier(.2,.75,.2,1); }
  @keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
}


/* ================= A fixed block: the reader always fits its frame ================= */
/* nothing inside scrolls, so the mouse wheel and trackpad scroll the page around it */
html.js-reader, html.js-reader body { height: 100%; overflow: hidden; }
.is-book .reader { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.is-book .reader__bar {
  flex: none; flex-wrap: nowrap; gap: 0.75rem;
  padding: 0.6rem clamp(0.75rem, 3vw, 2rem);
}
.is-book .reader__title { min-width: 0; font-size: 1.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__tools { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.is-book .stage {
  flex: 1; min-height: 0; position: relative;
  container-type: size;              /* the book sizes itself to this box */
  padding: 1.1rem clamp(0.75rem, 3vw, 2rem);
  align-items: center;
}
.is-book .spread { --spread-w: min(1500px, 100cqw, calc(100cqh * 2 * 595 / 841)); }
.is-book .controls { flex: none; gap: 0.9rem; padding: 0.35rem 1rem 0.75rem; }
.is-book .controls__count { min-width: 9em; font-size: 0.9rem; }
.controls__hint { display: none !important; }

/* buttons: soft and clear */
.controls__btn, .toc summary, .zoom-open {
  appearance: none; display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid rgba(24,22,22,0.22); background: var(--ll-paper); color: var(--ll-ink);
  font: inherit; font-size: 0.9rem; line-height: 1; padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.controls__btn:hover:not(:disabled), .toc summary:hover, .zoom-open:hover { background: var(--ll-ink); border-color: var(--ll-ink); color: var(--ll-paper); }
.zoom-open svg { width: 1em; height: 1em; }

/* one page at a time (phones, narrow frames) */
.is-single .spread {
  --spread-w: min(100cqw, calc(100cqh * 595 / 841));
  grid-template-columns: 1fr;
}
.is-single .page[data-side] { grid-column: 1; }
.is-single .leaf, .is-single .leaf-shadow, .is-single .cast { left: 0; width: 100%; }
.is-single .stack { display: none !important; }
.slice--blank { background: #fbfaf7; }
@media (max-width: 699px) {
  .is-book .reader__title span { display: none; }
  .is-book .controls__btn span { display: none; }
  .is-book .controls__btn { padding: 0.55rem 0.8rem; }
}

/* the one-time tip */
.tip {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 8; margin: 0;
  padding: 0.45rem 0.95rem; border-radius: 999px; background: rgba(24,22,22,0.78); color: #fff;
  font-size: 0.85rem; white-space: nowrap; pointer-events: none;
  transition: opacity 0.6s ease;
}
.tip--gone { opacity: 0; }
html:not(.js-reader) .tip { display: none; }

/* ——— Contents: a clean panel ——— */
.toc__list {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 30;
  width: min(46rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 5.5rem); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem;
  margin: 0; padding: 0.9rem 1.25rem; list-style: none;
  background: var(--ll-paper); border: 0; border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 24px 60px -18px rgba(24,22,22,0.45);
}
.toc__list li { border-bottom: 1px solid rgba(24,22,22,0.1); }
.toc__list a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline;
  padding: 0.6rem 0.4rem; border: 0; border-radius: 8px; text-decoration: none;
}
.toc__list a > * { grid-column: 1; }
.toc__list a .toc__pg { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 400; font-size: 0.8rem; color: var(--ll-muted); }
.toc__list a:hover, .toc__list a:focus-visible { background: #f6f1ef; color: inherit; }
.toc__list a[aria-current] { background: #f6f1ef; }
.toc__list a[aria-current] span::after { content: " ·"; color: var(--ll-red); }
.toc__list em { font-size: 0.68rem; letter-spacing: 0.14em; }
.toc__list span { font-size: 1.12rem; }
@media (max-width: 699px) {
  .toc__list { position: fixed; left: 0.75rem; right: 0.75rem; width: auto; top: 3.6rem; grid-template-columns: 1fr; max-height: calc(100vh - 4.5rem); }
}

/* right after a turn, the corner stays down until the mouse moves */
.is-book .spread.just-turned > .page[data-side]::before { width: 0 !important; height: 0 !important; transition: none; }

/* the frame blends into the site: same background all the way to its edges */
html.js-reader, html.js-reader body { background: var(--ll-table); }

/* ——— Title band: the same as the page titles on lalesbienne.com (e.g. "Submissions") ———
   thin #303636 rules above and below, Cormorant Garamond 400, 38.7px, -0.02em */
.is-book .reader__bar {
  background: var(--ll-table);
  border-top: 1px solid #303636; border-bottom: 1px solid #303636;
  padding: 14px clamp(1rem, 4vw, 3.5rem) 19px;   /* + the 1px rules = 15px and 20px, as on the site */
  align-items: center;
}
.is-book .reader__title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600;   /* bold, as asked */
  font-size: clamp(1.75rem, 1rem + 2vw, 2.421rem);   /* 38.7px on desktop, like the site */
  line-height: 1.142; letter-spacing: -0.02em; color: #303636;
}
.is-book .reader__title .reader__sub {
  /* same type as the title: no red capitals */
  font: inherit; letter-spacing: inherit; color: inherit; text-transform: none;
  margin: 0; vertical-align: baseline;
}
@media (max-width: 899px) { .is-book .reader__title .reader__sub { display: none; } }

/* Contents reads down the first column, then down the second (like a printed contents page) */
.toc__list { display: block; columns: 2; column-gap: 1.75rem; }
.toc__list li { break-inside: avoid; -webkit-column-break-inside: avoid; }
@media (max-width: 699px) { .toc__list { columns: 1; } }
/* the panel lines up with the right edge of the title bar, so it never runs off the left side */
.reader__tools { position: relative; }
.is-book .toc { position: static; }
.is-book .toc__list { width: min(46rem, calc(100vw - 2 * clamp(1rem, 4vw, 3.5rem))); }

/* author names in the contents: same font and size, just not italic, normal weight */
.toc__list small { font-style: normal; font-weight: 400; }

/* download: a small round icon button, same look as Contents and Zoom */
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.35rem; height: 2.35rem; border-radius: 999px;
  border: 1px solid rgba(24,22,22,0.22); background: var(--ll-paper); color: var(--ll-ink);
  text-decoration: none; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.dl-btn svg { width: 1.05rem; height: 1.05rem; }
.dl-btn:hover { background: var(--ll-ink); border-color: var(--ll-ink); color: var(--ll-paper); }
.dl-btn:hover svg path:first-child { transform: translateY(1px); transition: transform 0.2s; }

/* space above the title band, as on the site, so the top rule is clearly visible
   instead of sitting on the very edge of the frame */
.is-book .reader { padding-top: 18px; }

/* No title or rules here (the Squarespace page has its own); just the tools, on the right */
.is-book .reader { padding-top: 0; }
.is-book .reader__bar {
  border: 0; justify-content: flex-end;
  padding: 0.8rem clamp(1rem, 4vw, 3.5rem) 0.2rem;
}
