/* uberdesigner — Blog index, v2 (25 Nov). The page is Library's: the banner on top (here: the latest article),
   the filter column on the left (Topic, Reading time, then the offers), the grid on the right, the search and the sort
   in the dock at the foot of the screen. Library's own markup and stylesheets carry most of it; this file adds the
   banner's article, the article card and the pen-drawn covers (covers.js). */

/* ---------- the banner: Library's banner (the white Air card with the silver frame, shell.css "Library banner v3"),
   holding the latest article: its title in two tones on the left, its pen drawing redrawn in the frame ---------- */
.how--blog { color: #0a0a0a; text-decoration: none; cursor: pointer; }
/* the banner sits 16 above the filters and the grid: the same step as card to card */
html body.ds .lx .how--blog { margin-bottom: 0 !important; }
.how--blog .how__t { display: flex; flex-direction: column; justify-content: space-between !important; align-items: flex-start; }
.bh__top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.how--blog .how__t { gap: 24px; }
.bh__h { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; margin: 0; font-size: 40px; line-height: 44px; font-weight: 400; letter-spacing: -.035em; text-wrap: pretty; }
.bh__h span { color: #a3a3a0; }
.bh__k { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 20px; color: #6f6f6b; }
.bh__k i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 0 0 #ff5a1f66; animation: bh-pulse 2.4s ease-out infinite; }
@keyframes bh-pulse { 0% { box-shadow: 0 0 0 0 #ff5a1f66; } 70%, 100% { box-shadow: 0 0 0 7px #ff5a1f00; } }
.bh__k b { font-weight: 400; color: #0a0a0a; }
.bh__go { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: #0a0a0a; color: #fff; font-size: 16px; letter-spacing: -.02em; transition: transform .35s cubic-bezier(.32, .72, 0, 1), background-color .2s; }
.bh__go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.32, .72, 0, 1); }
/* the frame: the article's sheet, lifted off the silver like Library's card, drawn again and again by the pen */
.how--blog .how__frame { display: grid; place-items: center; }
.bh__sheet { position: relative; display: block; width: min(64cqw, calc(78cqh * 1.6)); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; transform: rotate(-2deg);
  box-shadow: 0 0 0 1px #0000000a, 0 32px 64px -28px #1b2230a6, 0 8px 20px -12px #1b223040; transition: transform .8s cubic-bezier(.32, .72, 0, 1), opacity .45s ease; }
.bh__sheet.is-wipe { opacity: 0; transform: rotate(-2deg) translateY(8px) scale(.98); }
@media (hover: hover) {
  .how--blog:hover .bh__sheet { transform: rotate(0) scale(1.03); }
  .how--blog:hover .bh__go { transform: translateY(-2px); background: #2a2a2a; }
  .how--blog:hover .bh__go svg { transform: translateX(3px); }
}
.how--blog:active .bh__go { transform: scale(.96); }
html.kbd .how--blog:focus-visible { outline: 2px solid #0a0a0b; outline-offset: 4px; }
/* the text and the frame come up on arrival */
.how--blog .how__t > *, .how--blog .how__frame { animation: bh-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.how--blog .how__t > :nth-child(2) { animation-delay: .08s; } .bh__go { flex: none; } .how--blog .how__frame { animation-delay: .12s; }
@keyframes bh-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1099px) { .bh__h { font-size: 32px; line-height: 36px; } }
@media (max-width: 599px) { .bh__h { font-size: 26px; line-height: 30px; } .bh__sheet { width: min(80cqw, calc(80cqh * 1.6)); } }

/* ---------- the grid: three of the same card, as Library ---------- */
.bl-page .lx #grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; transition: opacity .18s ease; }
.bl-page .lx #grid.is-out { opacity: 0; }
@media (min-width: 1900px) { .bl-page .lx #grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1299px) { .bl-page .lx #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .bl-page .lx #grid { grid-template-columns: minmax(0, 1fr); } }
.bl-page .lx #grid > li { display: flex; min-width: 0; }
.bl-page .lx #grid > li[hidden] { display: none; }
.bl-page .lx #grid > li > .bp { flex: 1; }
.bl-page .lx #grid > li { animation: bl-rise .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(min(var(--k, 0), 11) * 40ms); }
@keyframes bl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.bl-page .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bl-page .lx .empty b { font-weight: 400; letter-spacing: -.03em; }
.bl-page .lx .empty p { font-size: 16px; }
.bl-page .lx .empty .side__clear { height: 40px; margin-top: 8px; padding: 0 20px; border-radius: 999px; background: #0a0a0b !important; color: #fff !important; }

/* ---------- the card ---------- */
.bp { display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: 24px; background: #fff; color: var(--air-ink, #0a0a0b); text-decoration: none;
  box-shadow: var(--air-lift, 0 1px 2px #0a0a0b0a, 0 10px 24px -12px #0a0a0b1f, 0 32px 64px -32px #0a0a0b1f);
  transition: translate .6s var(--air-spring, cubic-bezier(.22, 1, .36, 1)), box-shadow .45s ease; }
.bp[hidden] { display: none; }
.bp__m { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.bp__f { display: block; padding: 16px 16px 0; }
.bp__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 56px; font-size: 20px; line-height: 28px; font-weight: 400; letter-spacing: -.03em; text-wrap: pretty; }
.bp__by { display: block; margin-top: auto; padding: 4px 16px 16px; font-size: 14px; line-height: 20px; color: var(--air-ink-2, #666767); }
@media (hover: hover) {
  .bp:hover { translate: 0 -6px; box-shadow: var(--air-lift-hi, 0 2px 4px #0a0a0b0d, 0 18px 36px -14px #0a0a0b2e, 0 48px 80px -36px #0a0a0b29); }
  .bp:hover .bcv svg { transform: scale(1.04); }
}
.bp:active { translate: 0 -2px; transition-duration: .12s; }
html.kbd .bp:focus-visible { outline: 2px solid #0a0a0b; outline-offset: 3px; }

/* ---------- the cover: a sheet of plotter paper, a pen line, one orange dot ---------- */
.bcv { display: block; background-color: #f1f1ef; background-image: radial-gradient(circle, #0a0a0b14 1px, transparent 1.2px); background-size: 16px 16px; background-position: 8px 8px; }
.bcv svg { display: block; width: 100%; height: 100%; overflow: hidden; transition: transform 1s cubic-bezier(.22, 1, .36, 1); font-family: inherit; }
.bcv .s { fill: none; stroke: #0a0a0b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.bcv .s.l { stroke: #0a0a0b; --o: .32; }
.bcv .s.fillp { fill: #f1f1ef; }
.bcv .dsh { fill: none; stroke: #0a0a0b; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 4 5; opacity: 0; --o: .55; }
.bcv .f { fill: #0a0a0b; opacity: 0; }
.bcv .f.dim { --o: .5; } .bcv .f.chk { --o: .07; }
.bcv .tx { fill: none; stroke: #0a0a0b; stroke-width: 1.7; stroke-linejoin: round; opacity: 0; font-weight: 500; letter-spacing: -.04em; }
.bcv .tx.e1 { --o: .4; } .bcv .tx.e2 { --o: .22; } .bcv .tx.e3 { --o: .1; }
.bcv .hot { fill: #ff5a1f; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bcv .mk { fill: none; stroke: #0a0a0b40; stroke-width: 1; }
.bcv .lab { fill: #0a0a0b73; font-size: 10px; letter-spacing: 0; }
.bcv.is-in .s { animation: bcv-draw 1s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(min(var(--i, 0), 40) * 38ms); }
.bcv.is-in :is(.f, .tx, .dsh) { animation: bcv-fade .6s ease both; animation-delay: calc(min(var(--i, 0), 40) * 38ms); }
.bcv.is-in .hot { animation: bcv-dot .6s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(min(var(--i, 0), 40) * 38ms + .5s); }
@keyframes bcv-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: var(--o, 1); } 100% { stroke-dashoffset: 0; opacity: var(--o, 1); } }
@keyframes bcv-fade { from { opacity: 0; } to { opacity: var(--o, 1); } }
@keyframes bcv-dot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bl__grid .bp, .bcv.is-in .s, .bcv.is-in :is(.f, .tx, .dsh), .bcv.is-in .hot { animation-duration: .01s !important; animation-delay: 0s !important; }
  .bp, .bcv svg { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-page .lx #grid > li, .how--blog .how__t > *, .how--blog .how__frame, .bh__k i { animation: none !important; }
}
