/* uberdesigner — a blog article (25 Nov). Air, minimal, built to be read: one centred column of 680 on the page's axis,
   the contents on the left and the facts on the right in equal 240 columns, the cover the width of the page.
   Every space is a step of 8: 8 / 16 / 24 / 40 / 64 / 120. Cards and covers are the blog index's (blog.css, covers.js). */
html body.ds.ar-page main.ar { max-width: none !important; padding: calc(96px + env(safe-area-inset-top)) var(--ds-edge, 32px) 120px !important; color: #0a0a0b; }
.ar { --ink: #0a0a0b; --ink-2: #666767; --ink-3: #a7a8a8; --line: #0a0a0b14; --well: #e8e8e6; --col: 680px; --rail: 240px; }

/* ---------- the head: on the axis ---------- */
.ar__head { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 880px; margin: 0 auto; padding: 64px 0 40px; text-align: center; }
.ar__crumbs { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
html body .ar .ar__crumbs a { color: inherit; text-decoration: none; transition: color .2s; }
.ar__crumbs a:hover { color: var(--ink); }
.ar__crumbs i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.ar__h { margin: 0; font-size: 48px; line-height: 52px; font-weight: 400; letter-spacing: -.04em; text-wrap: balance; }
.ar__h span { color: #a3a3a0; }
.ar__meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ar__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* ---------- the cover: the article's pen drawing, the width of the page ---------- */
.ar__cover { display: block; margin: 0; aspect-ratio: 3 / 1; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px #0000000a, 0 1px 2px #0a0a0b0a, 0 24px 48px -32px #0a0a0b2e; }
.ar__cover.bcv svg { transform: none !important; }
.ar__cover .mk { display: none; }
.ar__cover .lab { display: none; }

/* ---------- the three columns: contents · text · facts ---------- */
/* the page is 1280 wide at most; blocks are 200 apart (head and cover read as one block) */
.ar__cover, .ar__grid, .ar__pro, .ar__more { max-width: 1280px; margin-inline: auto; }
.ar__grid { display: grid; grid-template-columns: var(--rail) minmax(0, var(--col)) var(--rail); justify-content: space-between; column-gap: 40px; align-items: start; margin-top: 200px; }
.ar__toc { position: sticky; top: calc(104px + env(safe-area-inset-top)); width: var(--rail); max-width: 100%; }
.ar__toc { justify-self: start; }

/* contents: a rail that fills as you read, the current section in ink */
.ar__toc p { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ar__toc ol { position: relative; margin: 0; padding: 0; list-style: none; }
.ar__toc ol::before, .ar__toc ol::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; border-radius: 1px; }
.ar__toc ol::before { bottom: 0; background: var(--line); }
.ar__toc ol::after { height: calc(var(--fill, 0) * 1px); background: var(--ink); transition: height .45s cubic-bezier(.32, .72, 0, 1); }
html body.ds .ar .ar__toc a { display: block; padding: 6px 0 6px 16px; font-size: 14px; line-height: 20px; color: var(--ink-3); text-decoration: none; text-wrap: pretty; transition: color .25s; }
html body.ds .ar .ar__toc a:hover { color: var(--ink-2); }
html body.ds .ar .ar__toc a.is-on { color: var(--ink); }

/* ---------- the text ---------- */
.ar__body { min-width: 0; font-size: 18px; line-height: 30px; letter-spacing: -.01em; color: #3c3c3c; }
.ar__body > * { margin: 0; }
.ar__body > * + * { margin-top: 24px; }
.ar__body > p:first-child { font-size: 20px; line-height: 32px; color: var(--ink); }
.ar__body h2 { margin-top: 64px; scroll-margin-top: 104px; font-size: 32px; line-height: 36px; font-weight: 400; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.ar__body h3 { margin-top: 40px; scroll-margin-top: 104px; font-size: 22px; line-height: 28px; font-weight: 400; letter-spacing: -.025em; color: var(--ink); }
.ar__body :is(h2, h3) + * { margin-top: 16px; }
.ar__body strong, .ar__body b { font-weight: 500; color: var(--ink); }
html body.ds .ar .ar__body a:not([class]) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #0a0a0b40; text-underline-offset: 4px; transition: text-decoration-color .2s; }
html body.ds .ar .ar__body a:not([class]):hover { text-decoration-color: var(--ink); }
.ar__body :is(ul, ol) { padding-left: 22px; }
.ar__body ul { list-style: disc outside; } .ar__body ol { list-style: decimal outside; }
.ar__body li { display: list-item; }
.ar__body li + li { margin-top: 8px; }
.ar__body li { padding-left: 6px; }
.ar__body ul li::marker { color: var(--ink-3); }
.ar__body ol li::marker { color: var(--ink-2); font-size: 16px; font-variant-numeric: tabular-nums; }
.ar__body blockquote { padding: 0 0 0 24px; border-left: 2px solid var(--ink); color: var(--ink); }
/* code: words in a grey well, blocks on a black card with their language and a Copy button */
.ar__body :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--well); font: 400 .84em/1 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: 0; color: var(--ink); }
.ar__body .ar__code { position: relative; margin-top: 32px; margin-bottom: 8px; border-radius: 16px; background: #0a0a0b; color: #e8e6e1; box-shadow: 0 1px 2px #0a0a0b14, 0 24px 48px -32px #0a0a0b80; }
.ar__code + * { margin-top: 32px !important; }
.ar__code figcaption { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 0; padding: 0 8px 0 20px; border-bottom: 1px solid #ffffff14; font-size: 14px; line-height: 20px; color: #ffffff80; }
.ar__code figcaption button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #ffffff14; color: #ffffffcc; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.ar__code figcaption button:hover { background: #ffffff29; color: #fff; }
.ar__code figcaption svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar__code { min-width: 0; max-width: 100%; }
.ar__code pre { max-width: 100%; margin: 0; padding: 20px; overflow-x: auto; scrollbar-width: thin; }
.ar__code code { font: 400 14px/24px ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; letter-spacing: 0; tab-size: 2; white-space: pre; }
.ar__code .t-c { color: #8a8a86; } .ar__code .t-k { color: #ff9b6b; } .ar__code .t-s { color: #b8d8a2; } .ar__code .t-p { color: #9ec3ff; }
/* pictures and films: the card's radius, a quiet caption */
.ar__body figure:not(.ar__code) { margin-top: 40px; }
.ar__body figure:not(.ar__code) + * { margin-top: 40px; }
.ar__body figure :is(img, video) { display: block; width: 100%; height: auto; border-radius: 16px; background: #e8e8e6; box-shadow: 0 0 0 1px #0000000a; }
.ar__body figure > video { aspect-ratio: 16 / 10; object-fit: cover; }
.ar__body figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ar__body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.ar__body :is(th, td) { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ar__body th { font-weight: 400; color: var(--ink-2); }
/* questions: white cards, a plus that turns into a black cross */
.ar__body details { padding: 0; border-radius: 16px; background: #fff; box-shadow: var(--air-lift, 0 1px 2px #0a0a0b0a, 0 10px 24px -12px #0a0a0b1f); overflow: hidden; }
.ar__body details + details { margin-top: 8px; }
.ar__body summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 12px 12px 24px; box-sizing: border-box; cursor: pointer; list-style: none; font-size: 18px; line-height: 24px; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.ar__body summary::-webkit-details-marker { display: none; }
.ar__body summary::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--well) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%230a0a0b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .45s cubic-bezier(.32, .72, 0, 1), background-color .25s; }
.ar__body summary:hover::after { background-color: #dededb; }
.ar__body details[open] summary::after { transform: rotate(45deg); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ar__body details > :not(summary) { margin: 0; padding: 0 72px 24px 24px; font-size: 16px; line-height: 26px; color: var(--ink-2); }
.ar__body summary:focus { outline: none; } html.kbd .ar__body summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 16px; }

/* ---------- read next: the index's cards ---------- */
.ar__pro, .ar__more { margin-top: 200px; }
.ar__more-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ar__more-h h2 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 400; letter-spacing: -.035em; }
.ar__all { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; letter-spacing: -.02em; text-decoration: none; box-shadow: var(--air-lift, 0 1px 2px #0a0a0b0a, 0 10px 24px -12px #0a0a0b1f); transition: transform .35s cubic-bezier(.32, .72, 0, 1); }
.ar__all svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ar__all:hover { transform: translateY(-1px); }
.ar__more ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ar__more li { display: flex; min-width: 0; } .ar__more li > .bp { flex: 1; }

/* ---------- arrival ---------- */
.ar__head > *, .ar__cover { animation: ar-rise .8s cubic-bezier(.22, 1, .36, 1) both; }
.ar__head > :nth-child(2) { animation-delay: .05s; } .ar__head > :nth-child(3) { animation-delay: .1s; } .ar__cover { animation-delay: .14s; }
@keyframes ar-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1199px) { .ar__grid { grid-template-columns: minmax(0, 1fr); max-width: var(--col); margin-top: 120px; } .ar__toc { display: none; } .ar__pro, .ar__more { margin-top: 120px; } .ar__more ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .ar__cover { aspect-ratio: 16 / 9; border-radius: 24px; } }
@media (max-width: 699px) {
  .ar__head { padding: 32px 0 24px; } .ar__h { font-size: 32px; line-height: 36px; }
  .ar__cover { aspect-ratio: 16 / 10; }
  .ar__grid { margin-top: 80px; } .ar__pro, .ar__more { margin-top: 80px; }
  .ar__body { font-size: 17px; line-height: 28px; } .ar__body > p:first-child { font-size: 18px; line-height: 30px; }
  .ar__body h2 { margin-top: 48px; font-size: 26px; line-height: 30px; }
  .ar__body details > :not(summary) { padding-right: 24px; }
  .ar__more ol { grid-template-columns: minmax(0, 1fr); } .ar__more-h h2 { font-size: 26px; line-height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .ar__head > *, .ar__cover { animation: none !important; } .ar__toc ol::after { transition: none; } }

/* ---------- the Pro block: black, a sky of stars, the library's covers fanned out, the accent button ---------- */
.ar__pro { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: 400px; padding: 48px; border-radius: 32px; overflow: hidden; box-sizing: border-box; background: radial-gradient(70% 90% at 80% 110%, #3a4352 0%, #12141a 45%, #000 75%); color: #fff; box-shadow: inset 0 0 0 1px #ffffff14, 0 40px 80px -48px #0a0a0bb3; }
.ar__stars { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.ar__pro-t { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 520px; }
.ar__pro-k { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; line-height: 20px; color: #ffffff99; }
.ar__pro-k i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 12px #ff5a1f; }
.ar__pro h2 { margin: 0; font-size: 48px; line-height: 52px; font-weight: 400; letter-spacing: -.04em; color: #fff; }
.ar__pro h2 span { display: block; color: #ffffff66; }
.ar__pro-p { margin: 0; font-size: 16px; line-height: 24px; color: #ffffffb3; }
.ar__pro-p i { font-style: normal; }
html body .ar .ar__go { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; margin-top: 8px; padding: 0 28px; border-radius: 999px; background: #010008; color: #fff; font-size: 16px; letter-spacing: -.02em; text-decoration: none; }
.ar__go > span { position: relative; z-index: 1; }
/* the covers: three of the library's, fanned, opening a little on hover */
.ar__fan { position: relative; height: 304px; }
.ar__fan i { position: absolute; top: 50%; left: 50%; width: 58%; aspect-ratio: 16 / 10; border-radius: 14px; background: center / cover no-repeat #1a1a1c; box-shadow: 0 0 0 1px #ffffff1f, 0 24px 48px -16px #000c; transform: translate(calc(-50% + (var(--k) - 1) * 46%), calc(-50% + (var(--k) - 1) * 6%)) rotate(calc((var(--k) - 1) * 9deg)); transition: transform .9s cubic-bezier(.32, .72, 0, 1); }
.ar__fan i:nth-child(2) { z-index: 1; transform: translate(-50%, -56%); }
@media (hover: hover) { .ar__pro:hover .ar__fan i { transform: translate(calc(-50% + (var(--k) - 1) * 56%), calc(-50% + (var(--k) - 1) * 8%)) rotate(calc((var(--k) - 1) * 12deg)); } .ar__pro:hover .ar__fan i:nth-child(2) { transform: translate(-50%, -60%) scale(1.04); } }
@media (max-width: 899px) { .ar__pro { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 24px; min-height: 0; } .ar__pro h2 { font-size: 32px; line-height: 36px; } .ar__fan { height: 200px; } }

/* ---------- All articles: the pill at the foot of the screen, as Close on a Library case ---------- */
.ar-x svg { transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
@media (hover: hover) { .ar-x:hover svg { transform: translateX(-3px) !important; } }

.ar__code button .is-done { display: none; } .ar__code button.is-done .is-idle { display: none; } .ar__code button.is-done .is-done { display: inline; }

/* ---------- the cover drawn by the pen (article.js): the strokes are led by script, not by the cards' CSS ---------- */
.ar__cover { position: relative; cursor: pointer; }
.ar__cover.is-pen .s, .ar__cover.is-pen :is(.f, .tx, .dsh, .hot) { animation: none !important; }
.ar__cover.is-pen :is(.f, .tx, .dsh) { transition: opacity .35s ease; }
.ar__cover.is-pen .hot { opacity: 0; transform: scale(0); transition: opacity .2s, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.ar__cover.is-pen .hot.on { opacity: 1 !important; transform: scale(1); }
/* the nib: a small black point with a soft halo, riding the line being drawn */
.ar__pen { position: absolute; z-index: 2; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #0a0a0b; box-shadow: 0 0 0 4px #0a0a0b14, 0 0 0 1px #fff inset, 0 6px 14px #0a0a0b40; opacity: 0; pointer-events: none; transition: opacity .3s ease; will-change: transform; }
.ar__pen.is-on { opacity: 1; }
.ar__pen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 34px; background: linear-gradient(#0a0a0b, #0a0a0b00); transform-origin: 50% 0; transform: translate(-50%, -100%) rotate(28deg) translateY(-2px); opacity: .5; }
@media (prefers-reduced-motion: reduce) { .ar__pen { display: none; } }

/* ---------- an article opens out of its card: the card's drawing becomes the cover ---------- */
html.vt-post .ar__cover { view-transition-name: post-cover; }
::view-transition-group(post-cover) { z-index: 2; animation-duration: .6s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(post-cover), ::view-transition-new(post-cover) { height: 100%; object-fit: cover; animation-duration: .6s; }
::view-transition-old(post-cover) { animation-name: ar-vt-out; } ::view-transition-new(post-cover) { animation-name: ar-vt-in; }
@keyframes ar-vt-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ar-vt-in { from { opacity: 0; } to { opacity: 1; } }
html.vt-post .ar__cover { animation: none !important; }
html.vt-post .ar__head > * { animation-delay: calc(.25s + var(--d, 0s)) !important; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(post-cover), ::view-transition-old(post-cover), ::view-transition-new(post-cover) { animation: none !important; } }

/* ---------- the effect itself, live, in the articles about it ---------- */
.ar__body .ar__live { margin-top: 40px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: var(--air-lift, 0 1px 2px #0a0a0b0a, 0 10px 24px -12px #0a0a0b1f); }
.ar__live + * { margin-top: 40px !important; }
.ar__live-m { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0a0a0b; isolation: isolate; }
.ar__live-m > :is(.upx, .gfx, .rfx, .cut, .afx, .tfx) { position: absolute; inset: 0; }
.ar__live-m .tfx__line { font-size: clamp(32px, 5vw, 64px); }
.ar__body .ar__live figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 16px 8px 8px 16px; }
.ar__live-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ar__live-t b { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 24px; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.ar__live-t b i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 0 0 #ff5a1f66; animation: ar-live 2.4s ease-out infinite; }
@keyframes ar-live { 0% { box-shadow: 0 0 0 0 #ff5a1f66; } 70%, 100% { box-shadow: 0 0 0 7px #ff5a1f00; } }
.ar__live-t span { font-size: 14px; line-height: 20px; color: var(--ink-2); }
html body.ds .ar .ar__live-go { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: #0a0a0b; color: #fff; font-size: 16px; letter-spacing: -.02em; text-decoration: none; transition: transform .35s cubic-bezier(.32, .72, 0, 1), background-color .2s; }
.ar__live-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); }
html body.ds .ar .ar__live-go:hover { transform: translateY(-1px); background: #2a2a2a; } .ar__live-go:hover svg { transform: translateX(3px); }
@media (max-width: 599px) { .ar__body .ar__live figcaption { flex-direction: column; align-items: flex-start; } }
