/* ---------- Articles (/articles and /articles/<slug>, homepage/articles/render.py, 22 Oct 2026): a long read on a white
	sheet, phone first. Code Next for text and headings, the site's monospace for code. Product accents only where an
	article is about that product (chips, code, the reading line). ---------- */
.ar-page main { padding-top: clamp(14px, 3.4vh, 44px); }
.ar-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.ar-p-mime, .ar-chip-mime { --accent: #1c1b21; --accent-ink: #1c1b21; --accent-tint: rgb(28 27 33 / .05); }
.ar-p-shotscript, .ar-chip-shotscript { --accent: #ff6b1a; --accent-ink: #c4500f; --accent-tint: rgb(255 107 26 / .08); }
.ar-p-stroke, .ar-chip-stroke { --accent: #d23a7e; --accent-ink: #b52a68; --accent-tint: rgb(210 58 126 / .07); }

/* ---------- chips, the byline line, the Draft tag ---------- */
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; color: var(--accent-ink); font-weight: 800; font-size: 13px; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: translate .6s var(--ease), scale .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease); }
.ar-chip-ico { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: rotate .6s var(--ease), scale .6s var(--ease); }
.ar-chip-img { width: auto; height: 15px; max-width: 18px; }
.ar-chip-mime { background: #fff; outline: 1.5px dashed rgb(28 27 33 / .55); outline-offset: -1.5px; }
.ar-chip-shotscript { background: var(--accent-tint); }
.ar-chip-stroke { background: #1c1b21; color: #fff; }
.ar-chip-stroke .ar-chip-t { background: linear-gradient(transparent 58%, rgb(210 58 126 / .9) 58% 74%, transparent 74%); }
@media (hover: hover) {
	a.ar-chip:hover { translate: 0 -2px; box-shadow: var(--shadow-sm); transition-duration: .35s; }
	a.ar-chip:hover .ar-chip-ico { rotate: -8deg; scale: 1.08; transition-duration: .35s; }
}
a.ar-chip:active { scale: .95; transition-duration: .35s, .4s, .35s, .35s; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.4; }
.ar-by { color: var(--ink); font-weight: 800; }
.ar-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }
.ar-meta time.when { color: inherit; }
.ar-draft { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 850; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 0 0 2px #fff; }

/* ---------- pictures: a blurred placeholder under every web copy; the copy fades in once loaded ---------- */
.ar-pic { position: relative; display: block; overflow: hidden; background: var(--soft); }
.ar-pic img { display: block; width: 100%; height: auto; }
.ar-ph { position: absolute; inset: 0; height: 100% !important; object-fit: cover; filter: blur(14px); scale: 1.08; }
.ar-img { position: relative; }
html.ar-js .ar-pic .ar-img { opacity: 0; transition: opacity .7s var(--ease); }
html.ar-js .ar-pic.in .ar-img { opacity: 1; }

/* ---------- the article: cover, header, the column, figures that break out, the rail at 1400 px ---------- */
.ar-layout { position: relative; }
.ar-sheet { position: relative; overflow: clip; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.ar-head { position: relative; }
.ar-head > .ar-draft { position: absolute; z-index: 2; top: 18px; left: 18px; }
.ar-cover { aspect-ratio: 21 / 10; }
.ar-cover img { height: 100%; object-fit: cover; }
.ar-head-in { display: grid; gap: 16px; justify-items: start; width: min(100% - 2 * var(--ar-pad), 680px); margin: 0 auto; padding-top: clamp(26px, 4vw, 44px); }
.ar-sheet { --ar-pad: clamp(20px, 5vw, 48px); }
.ar-title { margin: 2px 0 0; color: var(--ink); font-weight: 850; font-size: clamp(31px, 4.1vw, 46px); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.ar-prose { display: grid; grid-template-columns: [full-start] minmax(var(--ar-pad), 1fr) [wide-start] minmax(0, 170px) [text-start] min(680px, 100% - 2 * var(--ar-pad)) [text-end] minmax(0, 170px) [wide-end] minmax(var(--ar-pad), 1fr) [full-end];
	padding-block: clamp(22px, 3vw, 34px) 8px; color: var(--ink); font-weight: 400; font-size: 18px; line-height: 1.72; }
.ar-prose > * { grid-column: text; min-width: 0; margin: 0; }
.ar-prose > * + * { margin-top: 1.05em; }
.ar-prose p { overflow-wrap: break-word; }
.ar-prose strong { font-weight: 800; }
.ar-prose em { font-style: normal; font-weight: 600; }
.ar-prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3.5px;
	transition: text-decoration-color .6s var(--ease), color .6s var(--ease); }
@media (hover: hover) { .ar-prose a:hover { text-decoration-color: var(--accent); transition-duration: .35s; } }
.ar-h2 { margin-top: 2em !important; font-weight: 850; font-size: clamp(23px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.005em; scroll-margin-top: 84px; }
.ar-h3 { margin-top: 1.6em !important; font-weight: 800; font-size: 20px; line-height: 1.3; scroll-margin-top: 84px; }
.ar-h2 + *, .ar-h3 + * { margin-top: .6em; }
.ar-prose code, .ar-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ar-prose :not(pre) > code { padding: .08em .36em; border-radius: 6px; background: #f1f1f4; font-size: .84em; overflow-wrap: anywhere; }
.ar-prose kbd, .ar-key { display: inline-flex; align-items: center; gap: 5px; min-width: 1.9em; height: 1.75em; justify-content: center; padding: 0 .55em; border: 1px solid #d6d7de; border-bottom-width: 2.5px; border-radius: 8px; background: #fff;
	color: var(--ink); font-family: var(--font); font-weight: 800; font-size: 13.5px; line-height: 1; white-space: nowrap; vertical-align: .08em; }
.ar-key svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ar-plus { margin: 0 5px; color: var(--muted); font-weight: 700; font-size: 14px; }
.ar-list { padding-left: 1.25em; }
.ar-list li + li { margin-top: .4em; }
.ar-list li::marker { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.ar-rows { display: grid; gap: 2px; padding: 6px; border-radius: 20px; background: #f7f7f9; }
.ar-row { display: grid; grid-template-columns: minmax(118px, 34%) minmax(0, 1fr); align-items: center; gap: 14px; padding: 9px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent-tint) 0%, transparent);
	transition: background-color .6s var(--ease); }
@media (hover: hover) { .ar-row:hover { background: #fff; transition-duration: .35s; } }
.ar-row dt { font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.ar-row dd { margin: 0; font-size: 16px; line-height: 1.5; }
.ar-row-keys dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }

.ar-fig { display: grid; gap: 10px; justify-items: center; margin-block: 1.7em !important; }
.ar-fig-wide { grid-column: wide; }
.ar-fig-small .ar-frame { max-width: 100%; }
.ar-frame { width: 100%; border-radius: 18px; box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .08), 0 6px 22px rgb(var(--shadow-rgb) / .1); }
.ar-fig-small .ar-frame { width: auto; }
.ar-fig-small .ar-img, .ar-fig-small .ar-ph { max-width: 100%; }
.ar-fig figcaption { justify-self: start; max-width: 680px; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.5; }
html.ar-js [data-zoom] .ar-img { cursor: zoom-in; }
[data-zoom] .ar-frame { transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
@media (hover: hover) { html.ar-js [data-zoom] .ar-frame:hover { translate: 0 -2px; box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / .1), 0 16px 40px rgb(var(--shadow-rgb) / .16); transition-duration: .35s; } }
html.ar-js [data-zoom] .ar-frame:active { scale: .99; transition-duration: .35s, .35s, .4s; }
.ar-img:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }

/* code: the editor's white for ShotScript and Mime (Mime's dashed edge), Stroke's ink-on-mist with its slash */
.ar-code { position: relative; overflow-x: auto; padding: 17px 20px; border-radius: 16px; background: #fff; color: #000; font-size: 14.5px; line-height: 1.62; tab-size: 4; -moz-tab-size: 4; white-space: pre; overscroll-behavior-x: contain; }
.ar-code code { font: inherit; }
.ar-code-shotscript { box-shadow: inset 0 0 0 1px #d8dbe6, inset 3px 0 0 var(--accent); }
.ar-code-mime { background: #fff; outline: 1.5px dashed #b9bbc5; outline-offset: -1.5px; }
.ar-code-stroke { background: #f6f5f8; box-shadow: inset 3px 0 0 #d23a7e; color: #26252c; }
.ar-code.ar-plain { color: #26252c; }
.ar-code:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ar-code .tk-kw { color: #a034c8; } .ar-code .tk-str { color: #2e8540; } .ar-code .tk-num { color: #b5600f; } .ar-code .tk-com { color: #76777f; } .ar-code .tk-type { color: #0d7d8f; } .ar-code .tk-fn { color: #c4471a; }
/*tokens*/.ar-code .t-bookmark{color:#804300;font-weight:700}.ar-code .t-bool{color:#0C9B5A;font-weight:700}.ar-code .t-bracket{color:#B48700}.ar-code .t-builtIn{color:#830F07}.ar-code .t-comment{color:#A0A0A0}.ar-code .t-doc{color:#CC2DB5}.ar-code .t-function{color:#001B7A;font-weight:700}.ar-code .t-functionName{color:#367EBD}.ar-code .t-keyword{color:#001B7A;font-weight:700}.ar-code .t-local{color:#34347F;font-weight:700}.ar-code .t-luauKeyword{color:#00816E;font-weight:700}.ar-code .t-method{color:#3E78AA}.ar-code .t-nil{color:#0C9B5A;font-weight:700}.ar-code .t-number{color:#057A9B}.ar-code .t-operator{color:#B4903B}.ar-code .t-property{color:#675A34}.ar-code .t-self{color:#EF8B08;font-weight:700}.ar-code .t-side{color:#E1524A;font-weight:700}.ar-code .t-string{color:#9500FF}.ar-code .t-text{color:#000000}.ar-code .t-todo{color:#D59292}.ar-code .t-type{color:#6D0075}/*/tokens*/

/* the compare slider: two pictures of one size; the second shows right of the line (moved by transform only) */
.ar-cmp { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: ew-resize; }
.ar-cmp .ar-pic { border-radius: 0; }
.ar-cmp-top { position: absolute; inset: 0; overflow: hidden; translate: 50% 0; }
.ar-cmp-in { translate: -50% 0; }
.ar-cmp-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 .5px rgb(16 16 24 / .2), 0 0 10px rgb(16 16 24 / .35); translate: 50cqw 0; pointer-events: none; }
.ar-cmp { container-type: inline-size; }
.ar-cmp-knob { position: absolute; top: 50%; left: 1px; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(255 255 255 / .96); color: var(--ink); pointer-events: auto; cursor: ew-resize;
	box-shadow: 0 1px 4px rgb(16 16 24 / .18), 0 8px 24px rgb(16 16 24 / .24); transition: scale .6s var(--ease), box-shadow .6s var(--ease); }
.ar-cmp-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ar-cmp:hover .ar-cmp-knob { scale: 1.08; box-shadow: 0 2px 6px rgb(16 16 24 / .2), 0 12px 30px rgb(16 16 24 / .3); transition-duration: .35s; } }
.ar-cmp.dragging .ar-cmp-knob { scale: .94; transition-duration: .4s; }
.ar-cmp-knob:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.ar-cmp-label { position: absolute; bottom: 12px; padding: 5px 9px 4px; border-radius: 999px; background: rgb(16 16 24 / .55); color: #fff; font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.ar-cmp-label[data-side="a"] { left: 12px; }
.ar-cmp-label[data-side="b"] { right: 12px; }

/* the lightbox: the picture flies out of its frame (the frame shows empty meanwhile) and back */
.ar-box { position: fixed; inset: 0; z-index: 60; display: none; cursor: zoom-out; }
.ar-box.open { display: block; }
.ar-box::before { content: ""; position: absolute; inset: 0; background: rgb(244 244 244 / .985); opacity: var(--k, 0); }
.ar-box-img { position: absolute; max-width: none; transform-origin: 0 0; border-radius: 14px; background: var(--soft); box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / .12), 0 24px 60px rgb(var(--shadow-rgb) / .22); }
.ar-box:focus { outline: none; }
.ar-lifted .ar-pic > img, .ar-frame.ar-lifted > img { visibility: hidden; }

/* the end: More about, Previous and Next */
.ar-end { display: grid; gap: 22px; width: min(100% - 2 * var(--ar-pad), 680px); margin: 0 auto; padding-block: clamp(26px, 4vw, 40px) clamp(24px, 4vw, 44px); }
.ar-more { justify-content: flex-start; padding-top: clamp(18px, 3vw, 26px); border-top: 1px solid rgb(var(--shadow-rgb) / .08); }
.ar-more .pill { background: var(--paper); box-shadow: none; }
.ar-more .pill-ico { background: #fff; }
.ar-more-img { width: auto; height: 23px; max-width: 28px; }
@media (hover: hover) { .ar-more .pill:hover { background: #fff; box-shadow: var(--shadow-md); } }
.ar-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ar-pager-a { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px; border-radius: 22px; background: var(--paper); color: var(--ink); text-decoration: none;
	transition: translate .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease), scale .6s var(--ease); }
.ar-pager-next { flex-direction: row-reverse; text-align: right; }
.ar-pager-pic { flex: none; width: 92px; aspect-ratio: 16 / 10; border-radius: 14px; }
.ar-pager-pic img { height: 100%; object-fit: cover; }
.ar-pager-text { display: grid; gap: 4px; min-width: 0; }
.ar-pager-k { color: var(--muted); font-weight: 800; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.ar-pager-t { font-weight: 800; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .ar-pager-a:hover { translate: 0 -2px; background: #fff; box-shadow: var(--shadow-md); transition-duration: .35s; } }
.ar-pager-a:active { scale: .98; transition-duration: .35s, .35s, .35s, .4s; }

/* reading progress: a thin line at the very top in the first product's colour */
.ar-progress { position: fixed; z-index: 40; top: 64px; left: 0; right: 0; height: 3px; pointer-events: none; }
.ar-progress span { display: block; height: 100%; background: var(--accent, var(--ink)); transform-origin: 0 50%; scale: 0 1; }

/* the rail: from 1400 px, right of the sheet */
.ar-rail { display: none; }
@media (min-width: 1400px) {
	.ar-layout.ar-has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 214px; gap: 30px; max-width: 1400px; }
	.ar-rail { position: sticky; top: 92px; display: block; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding: 4px 0 4px 16px; }
	.ar-rail ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
	.ar-rail-bar { position: absolute; top: 0; left: 3px; width: 2.5px; height: 0; border-radius: 2px; background: var(--ink); opacity: 0; transition: opacity .6s var(--ease); }
	.ar-rail.on .ar-rail-bar { opacity: 1; }
	.ar-rail-a { display: block; padding: 7px 10px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.35; text-decoration: none;
		transition: color .6s var(--ease), background-color .6s var(--ease), translate .6s var(--ease); }
	.ar-rail-top { color: var(--ink); font-weight: 800; }
	.ar-rail-a.now { color: var(--ink); }
	@media (hover: hover) { .ar-rail-a:hover { color: var(--ink); background: rgb(255 255 255 / .8); translate: 2px 0; transition-duration: .35s; } }
	.ar-rail-a:active { translate: 1px 0; }
}

/* ---------- the list ---------- */
.ar-list-top { display: grid; gap: 18px; justify-items: start; margin-bottom: clamp(18px, 3vw, 28px); }
.ar-list-h { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 850; font-size: clamp(34px, 4.4vw, 48px); line-height: 1; letter-spacing: -.012em; }
.ar-mark { display: grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 30%; background: var(--card); box-shadow: var(--shadow-sm); }
.ar-mark svg { width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-filter { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 5px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 14.5px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm);
	-webkit-tap-highlight-color: transparent; transition: translate .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease), scale .6s var(--ease); }
.ar-filter-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background-color .6s var(--ease), rotate .6s var(--ease); }
.ar-filter-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.ar-filter-img { width: auto; height: 19px; max-width: 23px; }
.ar-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; transition: background-color .6s var(--ease), color .6s var(--ease); }
@media (hover: hover) { .ar-filter:hover { translate: 0 -2px; box-shadow: var(--shadow-md); transition-duration: .35s; } .ar-filter:hover .ar-filter-ico { rotate: -8deg; transition-duration: .35s; } }
.ar-filter:active { scale: .95; transition-duration: .35s, .35s, .35s, .35s, .4s; }
.ar-filter[aria-pressed="true"] { background: var(--ink); color: #fff; transition-duration: .35s; }
.ar-filter[aria-pressed="true"] .ar-filter-ico { background: #fff; color: var(--ink); }
.ar-filter[aria-pressed="true"] .ar-count { background: rgb(255 255 255 / .16); color: #fff; }
.ar-filter:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.ar-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin: 0; padding: 0; list-style: none; }
.ar-card { position: relative; min-width: 0; }
.ar-card[hidden] { display: none; }
.ar-card-a { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: clip; border-radius: 26px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); -webkit-tap-highlight-color: transparent;
	transition: translate .6s var(--ease), box-shadow .6s var(--ease), scale .6s var(--ease); }
.ar-card-cover { position: relative; display: block; }
.ar-card-cover > .ar-draft { position: absolute; z-index: 2; top: 14px; left: 14px; }
.ar-card-pic { aspect-ratio: 16 / 9; }
.ar-card-pic img { height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.ar-card-pic .ar-ph { transition: none; }
.ar-nocover { background: repeating-linear-gradient(-45deg, #f1f1f4 0 10px, #f7f7f9 10px 20px); }
.ar-card-body { display: grid; align-content: start; gap: 10px; padding: 16px 20px 20px; }
.ar-card-body .ar-chip { height: 26px; font-size: 12px; }
.ar-card-body .ar-chip-ico { width: 20px; height: 20px; }
.ar-card-body .ar-chip-img { height: 13px; max-width: 16px; }
.ar-card-t { margin: 0; font-weight: 850; font-size: 20px; line-height: 1.22; text-wrap: balance; }
.ar-card-body .ar-meta { font-size: 13px; }
.ar-card-sum { color: #4d4d57; font-weight: 400; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
	.ar-card-a:hover { translate: 0 -4px; box-shadow: var(--shadow-md); transition-duration: .35s; }
	.ar-card-a:hover .ar-card-pic img { scale: 1.045; transition-duration: .6s; }
	.ar-card-a:hover .ar-chip-ico { rotate: -10deg; scale: 1.1; transition-duration: .35s; }
}
.ar-card-a:active { scale: .985; transition-duration: .35s, .35s, .4s; }
.ar-card-a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.ar-hero { grid-column: 1 / -1; }
.ar-hero .ar-card-a { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: none; }
.ar-hero .ar-card-pic { aspect-ratio: auto; height: 100%; min-height: 340px; }
.ar-hero .ar-card-body { align-content: center; gap: 14px; padding: clamp(22px, 3vw, 40px); }
.ar-hero .ar-card-t { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.12; }
.ar-hero .ar-card-sum { font-size: 16.5px; -webkit-line-clamp: 4; }

.ar-empty { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: clamp(40px, 10vh, 110px) 0 clamp(30px, 8vh, 90px); }
.ar-empty-fish { width: clamp(120px, 16vw, 168px); height: auto; }
.ar-empty-book { width: clamp(118px, 15vw, 160px); height: auto; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ar-book-back path { fill: #fff; }
.ar-book-page path:first-child { fill: #fff; }
.ar-book-lines, .ar-book-page path + path { stroke-width: 1.8; opacity: .55; }
.ar-book-pen { fill: var(--ink); stroke: none; }
.ar-book-page { transform-box: view-box; transform-origin: 60px 50px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
	.ar-cards { grid-template-columns: minmax(0, 1fr); }
	.ar-hero .ar-card-a { grid-template-columns: minmax(0, 1fr); }
	.ar-hero .ar-card-pic { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
	.ar-hero .ar-card-body { padding: 18px 20px 22px; }
	.ar-prose > .ar-fig, .ar-prose > .ar-fig-wide { grid-column: full; }
	.ar-fig .ar-frame { border-radius: 0; box-shadow: none; }
	.ar-fig-small .ar-frame { border-radius: 14px; }
	.ar-fig figcaption { padding-inline: var(--ar-pad); }
	.ar-prose > .ar-code { grid-column: full; border-radius: 0; padding-inline: var(--ar-pad); font-size: 13px; }
	.ar-code-mime { outline: 0; box-shadow: inset 0 1.5px 0 #e3e4ea, inset 0 -1.5px 0 #e3e4ea; }
	.ar-cover { aspect-ratio: 16 / 10; }
	.ar-pager { grid-template-columns: minmax(0, 1fr); }
	.ar-pager-gap { display: none; }
	.ar-pager-next { flex-direction: row; text-align: left; }
	.ar-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 12px; }
	.ar-row-keys { grid-template-columns: minmax(92px, max-content) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
	.ar-wrap { padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
	.ar-sheet { --ar-pad: 20px; border-radius: 24px; }
	.ar-prose { font-size: 17px; line-height: 1.66; }
	.ar-list-top { padding-inline: 8px; }
	.ar-card-a { border-radius: 22px; }
	.ar-more .pill { height: 48px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	html.ar-js .ar-pic .ar-img, .ar-card-pic img { transition: none; }
}
