/*
 * encyclopedie · truffeshallucinogenes.com
 * 1. Concept: a French practical encyclopaedia (Larousse-style reference book): cloth cover, table of contents, book pages.
 * 2. Type: EB Garamond (French old-style, real small caps, italics) for text and titles; Inria Sans for labels, tables and legends.
 * 3. Palette: paper #f4eedf, ink #1b1715, Larousse red #9b1c20, cloth #7a1519, sepia #5c5249, rule #cfc3a8.
 * 4. Layout signature: home is an open book (cloth cover with stamped title and engraved plate | "Table des matières"
 *    with roman numerals, dotted leaders and folios); articles are book pages with running head, chapter opener,
 *    drop cap, chapter contents in the left margin and numbered source notes in the right margin.
 * 5. Finishing detail: products shown as numbered plates ("Pl. 1") in a ruled frame, like illustrations in a reference work.
 */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/garamond-400-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/garamond-400-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/garamond-italic-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/garamond-italic-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inria Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inria-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inria Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inria-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inria Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inria-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inria Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inria-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4eedf;
  --paper-2: #ebe2cc;
  --card: #fbf8ef;
  --ink: #1b1715;
  --sepia: #5c5249;
  --red: #9b1c20;
  --cloth: #7a1519;
  --cream: #f1e6c8;
  --rule: #cfc3a8;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inria Sans", "Gill Sans", "Trebuchet MS", sans-serif;
  --measure: 36rem;
  --margin: 13.5rem;
  --gap: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.58 var(--serif);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  counter-reset: plate;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
strong { font-weight: 600; }
.sc, .cover-series, .contents-brand, .runhead, .opener-no, .margin-label, .notes h2, .folio { font-variant-caps: all-small-caps; letter-spacing: .08em; }

/* ---------- Home: the open book ---------- */
.spread { display: grid; grid-template-columns: 1fr; }
.cover {
  background-color: var(--cloth);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0M-1 1L1 -1M5 7L7 5' stroke='%23000' stroke-opacity='.13' stroke-width='.6'/%3E%3Cpath d='M0 0L6 6' stroke='%23fff' stroke-opacity='.05' stroke-width='.6'/%3E%3C/svg%3E");
  color: var(--cream);
  padding: 1.25rem;
}
.cover-frame {
  border: 1px solid rgba(241, 230, 200, .55);
  outline: 3px double rgba(27, 23, 21, .55);
  outline-offset: 5px;
  padding: 2rem 1.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem;
  height: 100%;
}
.cover-series { margin: 0; font-family: var(--sans); font-size: .82rem; letter-spacing: .24em; }
.cover h1 {
  margin: 0; font-weight: 500; font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.02;
  font-variant-caps: small-caps; letter-spacing: .02em; color: var(--cream); text-wrap: balance;
}
.cover-sub { margin: 0; font-style: italic; font-size: 1.15rem; color: #e6d7b2; }
.cover-plate {
  margin: .6rem 0; background: var(--paper); padding: .6rem; border: 1px solid var(--ink);
  box-shadow: 0 0 0 4px var(--cloth), 0 0 0 5px rgba(241, 230, 200, .45);
  width: min(100%, 20rem);
}
.cover-plate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 45%; border: 1px solid #b9ab8b; }
.cover-imprint { margin: auto 0 0; display: flex; align-items: center; gap: .6rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.cover-imprint img { width: 2.1rem; height: 2.1rem; background: var(--paper); border-radius: 50%; padding: .15rem; }

.contents { background: var(--paper); padding: 2.5rem 1.25rem 2rem; }
.contents-inner { max-width: 34rem; margin: 0 auto; }
.contents-brand { margin: 0 0 .2rem; text-align: center; color: var(--sepia); font-size: 1rem; }
.contents-title {
  margin: 0 0 1.6rem; text-align: center; font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-variant-caps: small-caps; letter-spacing: .04em; line-height: 1.1;
}
.contents-title::after { content: ""; display: block; width: 4rem; height: 0; border-top: 1px solid var(--red); margin: .9rem auto 0; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc-item a {
  display: flex; align-items: baseline; gap: .5rem; padding: .7rem 0; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.toc-item:first-child a { border-top: 1px solid var(--ink); }
.toc-item:last-child a { border-bottom: 1px solid var(--ink); }
.toc-num { flex: 0 0 2.4rem; color: var(--red); font-size: 1.05rem; letter-spacing: .04em; }
.is-annex .toc-num { flex-basis: auto; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; padding-right: .3rem; }
.toc-text { display: flex; flex-direction: column; min-width: 0; flex: 0 1 auto; }
.toc-title { font-size: 1.28rem; line-height: 1.2; font-variant-caps: small-caps; letter-spacing: .03em; }
.is-annex .toc-title, .is-foreword .toc-title { font-variant-caps: normal; font-style: italic; letter-spacing: 0; font-size: 1.15rem; }
.toc-desc { font-size: .95rem; line-height: 1.35; color: var(--sepia); font-style: italic; margin-top: .15rem; }
.toc-leader { flex: 1 1 1.5rem; border-bottom: 2px dotted #a89a7c; transform: translateY(-.3em); min-width: 1rem; }
.toc-page { flex: 0 0 auto; font-variant-numeric: oldstyle-nums tabular-nums; min-width: 1.6rem; text-align: right; }
.toc-item a:hover .toc-title { color: var(--red); }
.toc-item a:hover .toc-leader { border-color: var(--red); }
.contents-note { margin: 1.4rem 0 0; font-size: 1rem; font-style: italic; color: var(--sepia); text-align: center; }

.leaf { border-top: 1px solid var(--rule); background: var(--card); }
.leaf-inner { max-width: calc(var(--measure) + 2.5rem); margin: 0 auto; padding: 2.2rem 1.25rem 2rem; }
.runhead-inline { display: flex; justify-content: space-between; margin: 0 0 2.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--ink); font-size: .95rem; color: var(--sepia); font-variant-caps: all-small-caps; letter-spacing: .08em; }
.foreword-title { margin: 0 0 1.2rem; font-weight: 500; font-size: 2rem; font-variant-caps: small-caps; letter-spacing: .03em; text-align: center; }
.foreword .text > p:first-child::first-letter,
.has-dropcap > p:first-child::first-letter {
  float: left; font-size: 4.15em; line-height: .78; padding: .07em .09em 0 0; color: var(--red); font-weight: 500;
}
.foreword .text > p:first-child::first-line,
.has-dropcap > p:first-child::first-line { font-variant-caps: small-caps; letter-spacing: .03em; }

/* ---------- Running head (article pages) ---------- */
.runhead { background: var(--paper); border-bottom: 1px solid var(--ink); font-size: 1rem; position: relative; }
.runhead-row { max-width: 76rem; margin: 0 auto; padding: .55rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.12rem; letter-spacing: .06em; }
.brand img { width: 2rem; height: 2rem; }
.runhead-chapter { display: none; margin: 0 auto; font-style: italic; font-variant-caps: normal; letter-spacing: 0; color: var(--sepia); }
.runhead-nav { display: none; }
.menu { margin-left: auto; }
.menu summary { cursor: pointer; list-style: none; white-space: nowrap; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu ol { position: absolute; right: 1.25rem; left: 1.25rem; top: 100%; z-index: 5; list-style: none; margin: 0; padding: .4rem 1rem; background: var(--card); border: 1px solid var(--ink); font-variant-caps: normal; letter-spacing: 0; }
.menu li a { display: flex; gap: .8rem; padding: .55rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.menu li:last-child a { border-bottom: 0; }
.menu li a span { color: var(--red); min-width: 2rem; }
.menu a[aria-current] { color: var(--red); }

/* ---------- Book page ---------- */
.sheet { max-width: calc(var(--measure) + 2.5rem); margin: 0 auto; padding: 2.4rem 1.25rem 2rem; }
.opener { text-align: left; margin-bottom: 2rem; }
.opener-no { margin: 0 0 .5rem; color: var(--red); font-size: 1.1rem; }
.opener-no::after { content: ""; display: block; width: 3rem; border-top: 1px solid var(--red); margin-top: .5rem; }
.opener h1 { margin: 0; font-weight: 500; font-size: clamp(1.95rem, 6vw, 2.9rem); line-height: 1.08; letter-spacing: -.003em; text-wrap: balance; }
.opener-lede { margin: 1rem 0 0; font-size: 1.22rem; line-height: 1.45; font-style: italic; color: var(--sepia); }
.opener-date { margin: 1rem 0 0; font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sepia); }

.margin-toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: .8rem 0 .9rem; margin-bottom: 2rem; }
.margin-label { margin: 0 0 .4rem; font-size: .98rem; color: var(--red); }
.margin-toc ol { list-style: none; margin: 0; padding: 0; }
.margin-toc li a { display: flex; gap: .55rem; padding: .22rem 0; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.3; }
.margin-toc li a span { font-family: var(--sans); font-size: .72rem; color: var(--red); min-width: 1rem; padding-top: .28rem; }
.margin-toc li a:hover { color: var(--red); }

/* text */
.text { hyphens: auto; -webkit-hyphens: auto; }
.text > * { max-width: 100%; }
.text p { margin: 0 0 1em; }
.text h2 { margin: 2.3rem 0 .8rem; font-weight: 500; font-size: 1.62rem; line-height: 1.18; hyphens: manual; scroll-margin-top: 1rem; }
.text h2::before { content: "§"; color: var(--red); margin-right: .4rem; font-weight: 400; }
.text h3 { margin: 1.7rem 0 .5rem; font-weight: 400; font-style: italic; font-size: 1.28rem; line-height: 1.25; }
.text ul, .text ol { margin: 0 0 1.1em; padding-left: 1.3rem; }
.text li { margin: 0 0 .4em; padding-left: .2rem; }
.text ul li::marker { color: var(--red); }
.text ol li::marker { color: var(--red); font-family: var(--sans); font-size: .85em; }
.text blockquote { margin: 1.4rem 0; padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--red); font-style: italic; color: var(--sepia); }
.text hr { border: 0; text-align: center; margin: 2rem 0; }
.text hr::after { content: "* * *"; color: var(--red); letter-spacing: .6em; }
.text figure { margin: 1.6rem 0; }
.text figure img[src*="mascot"] { width: 11rem; background: var(--card); border: 1px solid var(--rule); border-radius: 50%; padding: .6rem; }
.text code { font-family: var(--sans); font-size: .9em; }

/* tables: book tables with heavy top and bottom rules */
.table { margin: 1.4rem 0 1.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .86rem; line-height: 1.4; font-variant-numeric: lining-nums; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.table th { text-align: left; font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .55rem .6rem .45rem 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.table td { padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; min-width: 7rem; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-family: var(--serif); font-size: 1.02rem; min-width: 8rem; }

/* notes */
.fn { font-family: var(--sans); font-size: .62em; line-height: 0; vertical-align: super; margin-left: .08em; }
.fn a { text-decoration: none; padding: 0 .1em; }
.sidenote { display: none; }
.notes { margin-top: 2.6rem; padding-top: .8rem; border-top: 1px solid var(--ink); }
.notes h2 { margin: 0 0 .6rem; font-weight: 500; font-size: 1.15rem; color: var(--red); }
.notes ol { margin: 0; padding-left: 1.5rem; font-size: 1rem; line-height: 1.4; }
.notes li { margin-bottom: .45rem; }
.notes li::marker { font-family: var(--sans); font-size: .8em; color: var(--red); }
.notes-host { font-family: var(--sans); font-size: .75rem; color: var(--sepia); letter-spacing: .04em; }
.notes li:target { background: var(--paper-2); }

/* products as numbered plates */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.product-feature { margin: 1.5rem 0 2rem; }
.plate { counter-increment: plate; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--ink); padding: .45rem; }
.plate-frame { display: block; border: 1px solid var(--rule); background: #fff; }
.plate-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.plate-legend { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .15rem .1rem; }
.plate-no::before { content: "Pl. " counter(plate); font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.plate-name { font-size: 1.02rem; line-height: 1.25; font-variant-caps: small-caps; letter-spacing: .02em; }
.plate-meta { font-family: var(--sans); font-size: .78rem; color: var(--sepia); }
.plate-price { color: var(--ink); font-weight: 700; margin-right: .3rem; }
.plate:hover { border-color: var(--red); }
.plate:hover .plate-name { color: var(--red); }
.plate.is-single { flex-direction: row; align-items: center; gap: .9rem; max-width: 28rem; }
.plate.is-single .plate-frame { flex: 0 0 7.5rem; }
.plate.is-single .plate-name { font-size: 1.12rem; }

/* turning the page */
.turn { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 2.6rem; }
.turn a { display: flex; flex-direction: column; padding: .8rem 1rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 1.2rem; line-height: 1.25; background: var(--card); }
.turn a span { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .2rem; }
.turn-next { text-align: right; }
.turn a:hover { background: var(--ink); color: var(--paper); }
.turn a:hover span { color: var(--cream); }
.folio { margin: 2rem 0 0; display: flex; align-items: center; justify-content: center; gap: .9rem; font-size: 1.05rem; color: var(--sepia); }
.folio::before, .folio::after { content: ""; width: 2.5rem; border-top: 1px solid var(--rule); }

/* ---------- Colophon ---------- */
.colophon { background: var(--ink); color: #e9e0cc; font-size: 1rem; }
.colophon a { color: #f3d9a4; }
.colophon a:hover { color: #fff; }
.colophon-inner { max-width: 76rem; margin: 0 auto; padding: 2.4rem 1.25rem 2rem; display: grid; gap: 1.4rem; }
.colophon-publisher { display: flex; align-items: center; gap: 1rem; }
.colophon-publisher img { width: 4.6rem; height: 4.6rem; flex: 0 0 auto; background: var(--paper); border-radius: 50%; padding: .2rem; }
.colophon-publisher p { margin: 0; font-size: 1.1rem; }
.colophon-publisher strong { font-weight: 600; color: #fff; }
.colophon-disclaimer { margin: 0; font-style: italic; line-height: 1.5; color: #d8ccb1; max-width: 40rem; }
.colophon-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-family: var(--sans); font-size: .82rem; }
.colophon-langs { display: flex; gap: 1rem; font-family: var(--sans); font-size: .82rem; }
.colophon-set { margin: 0; padding-top: 1rem; border-top: 1px solid #4a423b; font-size: .9rem; color: #b8ab90; font-variant-caps: all-small-caps; letter-spacing: .08em; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products:has(> .plate:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 30rem; }
  .turn { grid-template-columns: 1fr 1fr; }
  .turn-prev:only-child { grid-column: 1; }
  .cover { padding: 2rem; }
  .cover-frame { padding: 2.6rem 2rem 1.8rem; }
  .contents { padding: 3rem 2rem; }
}
@media (min-width: 760px) {
  .runhead-chapter { display: block; }
  .colophon-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .colophon-nav, .colophon-set, .colophon-langs { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; }
  .cover { padding: 2.4rem; border-right: 6px solid var(--ink); }
  .cover-plate { width: min(100%, 21rem); }
  .cover-plate img { aspect-ratio: auto; max-height: 50vh; height: 50vh; width: 100%; object-fit: cover; }
  .contents { display: flex; align-items: center; padding: 3.5rem 3.5rem; box-shadow: inset 18px 0 22px -18px rgba(27, 23, 21, .35); }
  .contents-inner { width: 100%; }
  .menu { display: none; }
  .runhead-nav { display: flex; gap: .15rem; }
  .runhead-nav a { font-family: var(--serif); font-size: 1rem; letter-spacing: .04em; min-width: 2.1rem; text-align: center; padding: .25rem .3rem; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
  .runhead-nav a:hover { border-color: var(--rule); color: var(--red); }
  .runhead-nav a[aria-current] { border-color: var(--red); color: var(--red); }
}
@media (min-width: 1180px) {
  .sheet {
    max-width: none;
    display: grid;
    grid-template-columns: var(--margin) minmax(0, var(--measure)) var(--margin);
    column-gap: var(--gap);
    justify-content: center;
    padding-top: 3.2rem;
  }
  .opener { grid-column: 2 / 4; grid-row: 1; }
  .opener h1, .opener-lede { max-width: var(--measure); }
  .margin-toc { grid-column: 1; grid-row: 2 / span 3; align-self: start; position: sticky; top: 1.5rem; border-bottom: 0; margin: .35rem 0 0; max-height: calc(100vh - 3rem); overflow: auto; }
  .text, .notes, .turn, .folio { grid-column: 2; }
  .text { grid-row: 2; }
  .notes { grid-row: 3; }
  .turn { grid-row: 4; }
  .folio { grid-row: 5; }
  .sidenote {
    display: block; float: right; clear: right; width: var(--margin);
    margin: .25rem calc(-1 * (var(--margin) + var(--gap))) .8rem 0;
    font: italic .88rem/1.35 var(--serif); color: var(--sepia); text-indent: 0; hyphens: none;
    border-top: 1px solid var(--rule); padding-top: .3rem;
  }
  .text li .sidenote { margin-right: calc(-1 * (var(--margin) + var(--gap)) - 1.5rem); }
  .sidenote-n { font: normal .7rem var(--sans); color: var(--red); margin-right: .15rem; }
  .sidenote-host { font: normal .72rem var(--sans); letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .runhead, .colophon-nav, .turn, .menu { display: none; }
  body { background: #fff; }
}
