/* Other writings (articles, chapters, book reviews): open, without rules, each piece a note of thin paper lying a little
   askew, the notes just overlapping. With the script they drop onto the page one by one as you scroll. A piece with an
   abstract is a sheet folded in half, the fold along its foot: its details are on the outside, the abstract written across
   the inside. "abstract" lifts the front leaf and lays it down below the fold, over the notes beneath; "close" folds it back.
   Without the script, the plain list as before. */
.slips { border-top: 0; overflow-x: clip; }
.slips .list { max-width: 38rem !important; padding: 4px 0 8px; }
@media (min-width: 900px) {
  #articles.slips { padding-bottom: 40px; }
  #chapters.slips { padding-top: 40px; padding-bottom: 40px; }
  #reviews.slips { padding-top: 40px; }
}
.slips .item { --pl: 24px; --pr: 28px; --yc: 56px; --gap: 12px; --paper: #FDFBF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .3  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --flat: 0 0 0 .5px rgba(21,23,30,.05), 0 1px 4px rgba(21,23,30,.08), 0 0 14px rgba(21,23,30,.05), -9px 12px 22px -8px rgba(21,23,30,.14);
  position: relative; grid-template-columns: var(--yc) minmax(0, 1fr); gap: 0 var(--gap); margin: 0 0 -7px; padding: 22px var(--pr) 22px var(--pl);
  border-top: 0; border-radius: 1px; transform-origin: 50% 60%; background: var(--paper); box-shadow: var(--flat); }
.slips .item:first-child { padding-top: 22px; }
.slips .item .year { font-family: "Alegreya Note", Georgia, serif; font-style: italic; font-size: 16px; padding-top: 3px; }
.slips .item h3 { font-family: "Alegreya Note", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.3; margin: 0 0 5px; color: var(--ink); }
.slips .item .meta { font-family: "Alegreya Note", Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.4; }
.slips .item .meta em { font-style: normal; }
.slips .abs { padding: 0; border: 0; background: none; cursor: pointer; color: var(--brass); font-family: "Alegreya Note", Georgia, serif; font-style: italic; font-size: 15.5px; }
.slips .item.sheet:hover .abs { text-decoration: underline; }
.slips .sheet .inner:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* a folded note: the sheet's inside (the back leaf, under the front), and the front leaf hinged at the fold */
.slips .item.sheet { display: block; padding: 0; perspective: 2000px; }
.slips .sheet .front { position: absolute; inset: 2px 0 0; transform-origin: 50% 100%; transform-style: preserve-3d; z-index: 1; }
/* a folded sheet doesn't lie quite flat: the front leaf rises a hair at its open top edge, just short of the back leaf's,
   and casts the faintest shadow on it */
.slips .sheet:not(.open):not(.moving) .front .outer { box-shadow: 0 -1px 2px rgba(21,23,30,.07), -1px 0 1px rgba(21,23,30,.03); }
.slips .sheet .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); border-radius: 1px; }
.slips .item.sheet { cursor: pointer; }
.slips .sheet .outer { display: grid; grid-template-columns: var(--yc) minmax(0, 1fr); gap: 0 var(--gap); align-content: center; padding: 22px var(--pr) 24px var(--pl); }
.slips .sheet .outer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; pointer-events: none;   /* the fold rounds away from the light */
  background: linear-gradient(to bottom, rgba(90,75,50,0), rgba(90,75,50,.045) 70%, rgba(255,255,255,.5) 100%); }
.slips .sheet .outer .abs { grid-column: 2; justify-self: start; margin-top: 12px; }
.slips .sheet .inner { transform: rotateX(180deg); }
.slips .sheet .page { position: absolute; left: var(--pl); right: var(--pr); overflow: hidden; }
.slips .sheet .page p { margin: 0; font-family: "Alegreya Note", Georgia, serif; font-size: 16px; line-height: 25px; color: #3A3D47; max-width: none; position: relative; }
.slips .sheet .back { position: absolute; inset: 0; visibility: hidden; }
.slips .sheet.open .back, .slips .sheet.moving .back { visibility: visible; }
.slips .sheet .back::after, .slips .sheet .inner::before { content: ""; position: absolute; left: 0; right: 0; height: 9px; pointer-events: none; }
.slips .sheet .back::after { bottom: 0; background: linear-gradient(to bottom, rgba(90,75,50,0), rgba(90,75,50,.06)); }   /* the crease, */
.slips .sheet .inner::before { top: 0; background: linear-gradient(to top, rgba(90,75,50,0), rgba(90,75,50,.07)); }       /* either side */
.slips .sheet .cast { position: absolute; left: 0; right: 0; top: 100%; height: 100%; transform-origin: 50% 0; pointer-events: none; opacity: 0;
  background: rgba(21,23,30,.5); filter: blur(10px); }
.slips .sheet .outer, .slips .sheet .inner { filter: brightness(var(--lit, 1)); }
.slips .item.open, .slips .item.moving { z-index: 5; }
@media (max-width: 699px) {
  .slips .item { --pl: 16px; --pr: 18px; --yc: 42px; --gap: 10px; padding: 18px var(--pr) 18px var(--pl); margin-bottom: -6px; }
  .slips .item:first-child { padding-top: 18px; }
  .slips .item h3 { font-size: 18.5px; }
  .slips .item .year { font-size: 15px; }
  .slips .sheet .outer { padding-top: 18px; padding-bottom: 20px; }
  .slips .sheet .page p { font-size: 14.5px; line-height: 22px; }
}
/* dog-ears: a corner lifting off the page. Its shadow falls further out, below and to the left (away from the light at the
   upper right), so it shows beyond the paper's edge; the bent corner is a shade darker, or, at the top right, catches the light */
.slips .item.curl::before { content: ""; position: absolute; width: 96px; height: 54px; pointer-events: none; box-shadow: -5px 7px 9px -3px rgba(21,23,30,.17); }
.slips .item.curl-bl::before { left: 0; bottom: 0; clip-path: polygon(-40px -20px, 0 -20px, 0 100%, 100% 100%, 100% calc(100% + 40px), -40px calc(100% + 40px)); }
.slips .item.curl-br::before { right: 0; bottom: 0; clip-path: polygon(-40px 100%, calc(100% + 10px) 100%, calc(100% + 10px) calc(100% + 40px), -40px calc(100% + 40px)); }
.slips .item.curl-tl::before { left: 0; top: 0; clip-path: polygon(-40px -10px, 0 -10px, 0 calc(100% + 40px), -40px calc(100% + 40px)); }
.slips .item.curl-tr::before { content: none; }
.slips .item.curl:not(.sheet)::after, .slips .item.curl.sheet .outer::before { content: ""; position: absolute; width: 74px; height: 44px; pointer-events: none; z-index: 1; }
.slips .item.curl-bl:not(.sheet)::after { left: 0; bottom: 0; background: radial-gradient(ellipse 100% 100% at 0 100%, rgba(90,75,50,.075), rgba(90,75,50,0) 75%); }
.slips .item.curl-br:not(.sheet)::after { right: 0; bottom: 0; background: radial-gradient(ellipse 100% 100% at 100% 100%, rgba(90,75,50,.065), rgba(90,75,50,0) 75%); }
.slips .item.curl-tl:not(.sheet)::after, .slips .item.curl-tl.sheet .outer::before { left: 0; top: 0; background: radial-gradient(ellipse 100% 100% at 0 0, rgba(90,75,50,.07), rgba(90,75,50,0) 75%); }
.slips .item.curl-tr:not(.sheet)::after, .slips .item.curl-tr.sheet .outer::before { right: 0; top: 0; background: radial-gradient(ellipse 100% 100% at 100% 0, rgba(255,255,255,.75), rgba(255,255,255,0) 75%); }
.slips .item.curl.sheet.open .outer::before { content: none; }
@media (prefers-reduced-motion: reduce) { .slips .sheet .cast { display: none; } }
