/* Quotes as handwritten slips of paper on a desk, lit like the books, from the upper right */
/* Alegreya, a book face drawn with a broad pen (SIL Open Font License, fonts/OFL-Alegreya.txt) */
@font-face { font-family: "Alegreya Note"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-400-normal.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: "Alegreya Note"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Note"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-400-italic.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: "Alegreya Note"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.clippings .voice { padding: 24px 26px 20px 34px; border-radius: 1px;
  background: #F9F6EE 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 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1px rgba(90,75,50,.06), -1px 2px 2px rgba(21,23,30,.06), -12px 16px 26px -12px rgba(21,23,30,.26); }
.clippings .voice .label { display: none; }
.clippings .voice blockquote { font-family: "Alegreya Note", Georgia, serif; font-style: normal; font-weight: 400; font-size: 17px; line-height: 1.5;
  color: #2b2e3f; text-indent: 0; padding-left: .2em; transform: rotate(-.6deg); transform-origin: 0 0; }
.clippings .voice .w { display: inline-block; }
.clippings .voice blockquote i, .clippings .voice blockquote em { font-style: italic; }
.clippings .voice cite i, .clippings .voice cite em { font-style: normal; }
.clippings .voice cite { display: block; text-align: right; font-family: "Alegreya Note", Georgia, serif; font-style: italic; font-weight: 400; font-size: 14.5px; line-height: 1.4;
  color: #6b6450; padding: 0 .4em 0 2.5em; margin-top: 10px; transform: rotate(-.5deg); }
.clippings .voice cite::before { content: none; }
/* the quotation marks: a large opening mark hung in the slip's margin, a closing mark a little larger than the text, both in brass */
.clippings .voice blockquote { position: relative; }
.clippings .voice blockquote::before { content: "\201C"; position: absolute; left: -.42em; top: -.2em; font-size: 3em; line-height: 1;
  color: var(--brass); opacity: .8; transform: rotate(-3deg); }
.clippings .voice blockquote::after { content: "\201D"; color: var(--brass); }
.clippings .voice blockquote.closed::after { content: none; }
.clippings .voice .qclose { display: inline-block; font-size: 2.1em; line-height: 0; vertical-align: -.14em; margin-left: .05em; color: var(--brass); opacity: .8; transform: rotate(-3deg); }
@media (min-width: 900px) { .clippings .voice blockquote { font-size: 18px; } .clippings .voice cite { font-size: 15px; } .clippings .voice { padding: 26px 30px 22px 40px; } }
@media (max-width: 699px) { .clippings .voice { padding: 20px 20px 16px 30px; } }

.clippings .held .voices { padding-top: 8px; margin-bottom: 40px; }
.clippings .held .voice { align-self: start; opacity: 1; transition: none; will-change: transform; }
.clippings .held .voice > * { transition: opacity .35s ease; }
.clippings .held .voice.under > * { opacity: .4; }
.clippings .held .voice.ahead { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .clippings .held .voice:not(.on) { visibility: hidden; } }

/* a short phone screen: the slips' text a little smaller, so the stack fits with the book and title */
@media (max-width: 899px) {
  .clippings .tight .voice { padding: 16px 16px 13px 26px; }
  .clippings .tight .voice blockquote { font-size: 15.5px; line-height: 1.42; }
  .clippings .tight .voice cite { font-size: 13px; margin-top: 7px; }
}
