/* Catalog style "depo0" — the album as the Depo Place FAQ: #18171a night under a still green glow, Schibsted Grotesk 900 uppercase, demos as numbered hairline rows with a "+" that turns to "−", the photo floor and huge DEPO letters at the foot. Mirrors /depo0/. */
/*
 * Layout: a thin top line (brand, count), then the tagline set like the FAQ title — huge,
 * uppercase, tight. Below, the FAQ split (5 : 7): the listing title sticks on the left with the
 * toolbar; the demos run on the right as rows 01, 02 … between rgba(255,255,255,.16) hairlines —
 * number, title + excerpt, a small photo that warms up on hover, and the plus sign. The post is a
 * single wide column whose doc headings are numbered the same way. The colophon sits on the home
 * footer: a photo floor in perspective, a grey veil and the DEPO letters behind the text.
 * The light is static (two radial gradients on the body) — no animation, no JS.
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Schibsted+Grotesk:wght@500;700;900&display=swap");

:root {
    --bg: #18171a;
    --bg-2: #201f23;
    --field: #121114;
    --ink: #f2f0ea;
    --soft: #b9b6ae;
    --mute: #9a968e;
    --line: rgb(255 255 255 / 0.16);
    --line-2: rgb(255 255 255 / 0.32);
    --yellow: #ffb500;
    --green: #469a58;
    --green-hi: #7cc58a;
    --spot: 83 245 126;
    --display: "Schibsted Grotesk", "Lato", system-ui, sans-serif;
    --text: "Lato", system-ui, sans-serif;
    --edge: clamp(16px, 3.4vw, 56px);
    --num: 64px;
    --sign: 22px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; color: var(--ink); font: 400 16px/1.6 var(--text);
    background:
        radial-gradient(48vmax 40vmax at 88% 6%, rgb(var(--spot) / 0.17), rgb(var(--spot) / 0.06) 45%, transparent 72%),
        radial-gradient(40vmax 36vmax at 4% 64%, rgb(var(--spot) / 0.09), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.88em/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--yellow); color: var(--bg); }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- page: full bleed, children held to 1520 px ---------- */
.page { position: relative; isolation: isolate; overflow-x: clip; }
.page > :not(.deco) { position: relative; z-index: 2; max-width: 1520px; margin-inline: auto; padding-inline: var(--edge); }

/* ---------- the home footer under the colophon: floor, veil (deco) and the DEPO letters ---------- */
.deco { display: none; }
.deco--1 {
    display: block; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: clamp(380px, 46vw, 620px);
    overflow: hidden; perspective: 900px; perspective-origin: 50% 0; pointer-events: none;
    --ft: 13vw;
}
.deco--1::before {
    content: ""; position: absolute; top: 0; left: calc(50vw - 5 * var(--ft)); width: calc(10 * var(--ft)); height: calc(3.9 * var(--ft));
    transform-origin: 50% 0; transform: rotateX(58deg);
    background-repeat: no-repeat;
    background-size: calc(var(--ft) - 10px) calc((var(--ft) - 10px) * 1.25);
    background-image:
        url("/_img/photos/photo-01.jpg"), url("/_img/photos/photo-02.jpg"), url("/_img/photos/photo-03.jpg"), url("/_img/photos/photo-04.jpg"), url("/_img/photos/photo-05.jpg"),
        url("/_img/photos/photo-06.jpg"), url("/_img/photos/photo-07.jpg"), url("/_img/photos/photo-08.jpg"), url("/_img/photos/photo-09.jpg"), url("/_img/photos/photo-10.jpg"),
        url("/_img/photos/photo-11.jpg"), url("/_img/photos/photo-12.jpg"), url("/_img/photos/photo-13.jpg"), url("/_img/photos/photo-14.jpg"), url("/_img/photos/photo-15.jpg"),
        url("/_img/photos/photo-16.jpg"), url("/_img/photos/photo-17.jpg"), url("/_img/photos/photo-18.jpg"), url("/_img/photos/photo-19.jpg"), url("/_img/photos/photo-20.jpg"),
        url("/_img/photos/photo-21.jpg"), url("/_img/photos/photo-22.jpg"), url("/_img/photos/photo-23.jpg"), url("/_img/photos/photo-24.jpg"), url("/_img/photos/photo-25.jpg"),
        url("/_img/photos/photo-26.jpg"), url("/_img/photos/photo-27.jpg"), url("/_img/photos/photo-28.jpg"), url("/_img/photos/photo-29.jpg"), url("/_img/photos/photo-30.jpg");
    background-position:
        calc(0 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(1 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(2 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(3 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(4 * var(--ft)) calc(0 * var(--ft) * 1.27),
        calc(5 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(6 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(7 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(8 * var(--ft)) calc(0 * var(--ft) * 1.27), calc(9 * var(--ft)) calc(0 * var(--ft) * 1.27),
        calc(0 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(1 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(2 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(3 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(4 * var(--ft)) calc(1 * var(--ft) * 1.27),
        calc(5 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(6 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(7 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(8 * var(--ft)) calc(1 * var(--ft) * 1.27), calc(9 * var(--ft)) calc(1 * var(--ft) * 1.27),
        calc(0 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(1 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(2 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(3 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(4 * var(--ft)) calc(2 * var(--ft) * 1.27),
        calc(5 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(6 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(7 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(8 * var(--ft)) calc(2 * var(--ft) * 1.27), calc(9 * var(--ft)) calc(2 * var(--ft) * 1.27);
}
.deco--2 {
    display: block; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(380px, 46vw, 620px); pointer-events: none;
    background: linear-gradient(180deg, var(--bg) 0%, rgb(24 23 26 / 0.84) 32%, rgb(24 23 26 / 0.72) 62%, rgb(24 23 26 / 0.94) 100%);
}

/* ---------- masthead ---------- */
.masthead { padding-top: 22px; }
.masthead__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; justify-self: start; text-decoration: none; }
.brand__mark { font: 900 30px/1 var(--display); letter-spacing: -0.04em; }
.brand__name { color: var(--yellow); font: 700 12px/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; }
.brand:hover .brand__mark { color: var(--yellow); }
.masthead__count { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; color: var(--soft); font: 700 12px/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; }
.masthead__num { margin-right: 6px; color: var(--yellow); font: 900 30px/1 var(--display); letter-spacing: -0.03em; }
.masthead__tagline {
    grid-column: 1 / -1; max-width: 20ch; margin: clamp(48px, 7vw, 112px) 0 clamp(36px, 5vw, 72px);
    font: 900 clamp(38px, 5.4vw, 92px)/0.9 var(--display); letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance;
}
.catalog--post .masthead__tagline, .catalog--guide .masthead__tagline {
    max-width: 46ch; margin: 18px 0 22px; color: var(--soft);
    font: 400 15px/1.5 var(--text); letter-spacing: 0; text-transform: none;
}

/* ---------- style bar: one hairline band ---------- */
.stylebar { margin-top: 0; }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.stylebar__label { color: var(--yellow); font: 700 12px/1 var(--text); letter-spacing: 0.24em; text-transform: uppercase; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 9px 14px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--ink); }
.stylebar__copy { min-height: 40px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--bg); font: 900 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.stylebar__copy:hover { background: var(--ink); }
.stylebar__copy.is-done { background: var(--green-hi); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px 16px; width: 100%; }
.stylebar__item { padding: 2px 0; color: var(--soft); font-size: 13px; text-decoration: none; border-bottom: 1px solid transparent; }
.stylebar__item:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.stylebar__item.is-active { color: var(--yellow); border-bottom-color: var(--yellow); font-weight: 700; }

/* ---------- categories: an index line ---------- */
.categories { margin: 0; }
.categories__list { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0; padding: 14px 0; list-style: none; border-bottom: 1px solid var(--line); }
.categories__link { display: inline-flex; align-items: flex-start; gap: 4px; padding: 6px 0; color: var(--soft); font: 700 15px/1.2 var(--display); letter-spacing: -0.005em; text-decoration: none; }
.categories__link:hover { color: var(--ink); }
.categories__link.is-active { color: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow); }
.categories__count { color: var(--mute); font: 700 11px/1 var(--text); letter-spacing: 0.06em; }
.categories__link.is-active .categories__count { color: var(--yellow); }

/* ---------- listing: the FAQ split ---------- */
.content { padding-top: clamp(48px, 7vw, 110px); padding-bottom: clamp(64px, 8vw, 120px); }
.catalog--list .content { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(32px, 6vw, 120px); align-items: start; }
.listing__header { position: sticky; top: 32px; margin: 0; }
.listing__title {
    margin: 0; font: 900 clamp(44px, 6.4vw, 112px)/0.9 var(--display); letter-spacing: -0.035em; text-transform: uppercase;
    text-wrap: balance; overflow-wrap: anywhere;
}
.listing__title::before { content: "The demos"; display: block; margin-bottom: 18px; color: var(--yellow); font: 700 13px/1 var(--text); letter-spacing: 0.24em; }
.listing__intro { max-width: 32ch; margin: 24px 0 0; color: var(--soft); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; }
.toolbar { display: grid; gap: 12px; margin-top: 32px; color: var(--soft); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__range { font: 700 12px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; }
.toolbar__view { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 8px; color: var(--mute); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 40px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.toolbar__opt:hover { border-color: var(--ink); color: var(--ink); }
.toolbar__opt.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }

.listing { counter-reset: row; border-top: 1px solid var(--line); }
.catalog--list .listing, .catalog--list .pager { grid-column: 2; }

/* one row = one FAQ question */
.post--card {
    counter-increment: row; position: relative;
    display: grid; grid-template-columns: var(--num) minmax(0, 1fr) clamp(140px, 13vw, 210px) var(--sign);
    grid-template-areas: "num body media sign"; align-items: start; gap: 0 clamp(14px, 1.6vw, 26px);
    padding: clamp(22px, 2.2vw, 34px) 0; border-bottom: 1px solid var(--line);
}
.post--card::before { content: counter(row, decimal-leading-zero); grid-area: num; padding-top: 0.55em; color: var(--mute); font: 500 14px/1 var(--text); letter-spacing: 0.08em; }
.post--card::after {
    content: ""; grid-area: sign; width: var(--sign); height: var(--sign); margin-top: 6px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: background-size 0.42s var(--ease), color 0.42s var(--ease);
}
.post--card:hover, .post--card:focus-within { color: var(--yellow); }
.post--card:hover::after, .post--card:focus-within::after { background-size: 100% 2px, 2px 0; }
.post--card:hover::before, .post--card:focus-within::before { color: var(--yellow); }

.post__media { grid-area: media; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) brightness(0.8); transition: filter 0.5s var(--ease), transform 0.6s var(--ease); }
.post--card:hover .post__thumb, .post--card:focus-within .post__thumb { filter: none; transform: scale(1.04); }

.post__body { grid-area: body; display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.post__title { order: 1; margin: 0; font: 700 clamp(22px, 1.9vw, 30px)/1.2 var(--display); letter-spacing: -0.01em; }
.post__title a { text-decoration: none; }
.post--card:hover .post__title, .post--card:focus-within .post__title { color: var(--yellow); }
.post__title a:focus-visible { outline-offset: 6px; }
.post__excerpt { order: 2; max-width: 62ch; margin: 12px 0 0; color: var(--soft); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; }
.post__meta { order: 3; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; color: var(--mute); font: 700 11px/1.4 var(--text); letter-spacing: 0.18em; text-transform: uppercase; }
.post__num { color: var(--yellow); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.post__stats { order: 4; }
.post__fits { order: 5; }
.post__actions { order: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 18px 0 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); font: 700 14px/1 var(--text); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--primary { border-color: var(--yellow); background: var(--yellow); color: var(--bg); }
.btn--primary:hover { border-color: var(--ink); background: var(--ink); }
.post--card .post__more { min-height: 0; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); }
.post--card .post__more:hover { background: none; color: var(--yellow); border-bottom-color: var(--yellow); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font: 700 15px/1 var(--display); text-decoration: none; }
.pager__link:hover { border-color: var(--ink); color: var(--ink); }
.pager__link.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.pager__link--prev, .pager__link--next { padding-inline: 20px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.16em; }

/* ---------- one post ---------- */
.post--full { max-width: 1120px; }
.post__header { padding: 0 0 clamp(32px, 4vw, 56px); }
.post--full .post__meta { margin: 0 0 22px; }
.post--full .post__title { font: 900 clamp(44px, 7vw, 120px)/0.9 var(--display); letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.post--full .post__excerpt { max-width: 56ch; margin-top: 28px; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; }
.post--full .post__actions { margin-top: 28px; }
.post__shot { margin: 0 0 clamp(40px, 5vw, 72px); }
.post__zoom { display: block; max-height: 720px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); cursor: zoom-in; }
.post__zoom img { width: 100%; transition: transform 0.6s var(--ease); }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { display: flex; gap: 12px; margin-top: 12px; color: var(--mute); font-size: 13px; }
.post__caption::before { content: "+"; color: var(--yellow); font-weight: 900; }

/* the doc: headings numbered like the FAQ rows */
.doc { counter-reset: q; color: var(--soft); font-size: 17px; line-height: 1.7; }
.doc h2 {
    counter-increment: q; display: grid; grid-template-columns: var(--num) 1fr; align-items: baseline;
    margin: 56px 0 18px; padding-top: 24px; border-top: 1px solid var(--line);
    color: var(--ink); font: 700 clamp(24px, 2.2vw, 34px)/1.15 var(--display); letter-spacing: -0.015em;
}
.doc h2::before { content: counter(q, decimal-leading-zero); color: var(--yellow); font: 500 14px/1 var(--text); letter-spacing: 0.08em; }
.doc h2:first-child { margin-top: 0; }
.doc > :not(.doc-table, pre) { max-width: 860px; }
.doc td:first-child { overflow-wrap: normal; }
.doc td:first-child code { white-space: nowrap; }
.doc h3 { margin: 34px 0 10px; color: var(--ink); font: 700 21px/1.25 var(--display); }
.doc h4, .doc h5, .doc h6 { margin: 26px 0 8px; color: var(--ink); font: 700 13px/1.3 var(--text); letter-spacing: 0.18em; text-transform: uppercase; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li::marker { color: var(--yellow); }
.doc strong { color: var(--ink); }
.doc a { color: var(--yellow); text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc code { padding: 1px 6px; border-radius: 4px; background: rgb(255 255 255 / 0.08); color: var(--ink); }
.doc pre { margin: 0 0 20px; padding: 18px 20px; line-height: 1.55; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: #e6e3dc; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 20px; padding: 6px 0 6px 22px; border-left: 2px solid var(--yellow); color: var(--ink); font-size: 1.08em; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.doc img { border-radius: 6px; }
.doc-table { margin: 0 0 20px; overflow-x: auto; border-top: 1px solid var(--line-2); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--yellow); font: 700 11px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.doc td { color: var(--soft); }

.tags { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 36px 0 0; padding: 0; list-style: none; }
.tags__item { color: var(--soft); font-size: 14px; }
.tags__item::before { content: "+ "; color: var(--yellow); font-weight: 900; }

.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(16px, 3vw, 48px); margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.post__nav-link { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); font: 900 clamp(22px, 2.4vw, 38px)/1.05 var(--display); letter-spacing: -0.025em; text-transform: uppercase; text-decoration: none; }
.post__nav-link:hover { color: var(--yellow); }
.post__nav-link--newer .post__nav-label::before { content: "← "; color: var(--yellow); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-link--older .post__nav-label::after { content: " →"; color: var(--yellow); }
.post__nav-label { display: block; margin-bottom: 10px; color: var(--mute); font: 700 12px/1 var(--text); letter-spacing: 0.24em; }

/* notices */
.notice { padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--yellow); border-radius: 4px; background: rgb(24 23 26 / 0.7); color: var(--ink); }
.notice--error { border-left-color: #ff7a6b; color: #ffb4aa; }
.catalog--list .content > .notice { grid-column: 1 / -1; }

/* ---------- colophon: over the photo floor, the DEPO letters behind ---------- */
.colophon {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px;
    min-height: clamp(380px, 46vw, 620px); padding-top: 32px; padding-bottom: 40px;
    border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; overflow: hidden;
}
.colophon::before {
    content: "DEPO"; position: absolute; z-index: -1; left: 50%; bottom: 0; transform: translate(-50%, 8%);
    color: rgb(242 240 234 / 0.08); font: 900 32vw/0.72 var(--display); letter-spacing: -0.07em; white-space: nowrap; pointer-events: none;
}
.colophon p { margin: 0; text-shadow: 0 1px 14px rgb(0 0 0 / 0.9); }
.colophon__text code { color: var(--yellow); }
.colophon a { color: var(--ink); text-underline-offset: 3px; }
.colophon a:hover { color: var(--yellow); }

/* ---------- screenshot dialog ---------- */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.zoom::backdrop { background: rgb(12 12 14 / 0.86); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.zoom__close { min-height: 40px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--bg); font: 900 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.zoom__scroll { height: calc(94vh - 61px); overflow: auto; }
.zoom__img { width: 100%; }

/* ---------- small screens ---------- */
@media (max-width: 899px) {
    :root { --num: 40px; }
    .catalog--list .content { grid-template-columns: 1fr; }
    .catalog--list .listing, .catalog--list .pager { grid-column: 1; }
    .listing__header { position: static; margin-bottom: 36px; }
    .post--card { grid-template-columns: var(--num) minmax(0, 1fr) var(--sign); grid-template-areas: "num body sign" ". media ."; gap: 0 12px; }
    .post__media { width: min(100%, 360px); margin-top: 18px; }
    .post__thumb { filter: grayscale(0.4) brightness(0.9); }
    .deco--1 { --ft: 26vw; }
}
@media (max-width: 560px) {
    .masthead__inner { grid-template-columns: 1fr; }
    .masthead__count { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 14px; }
    .categories__list { gap: 0 18px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
    .doc h2 { grid-template-columns: 1fr; gap: 10px; }
    .colophon::before { font-size: 38vw; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* long words and URLs in the doc and comments wrap instead of widening the page */
.doc p, .doc li, .doc blockquote, .doc td, .doc th, .comment__body { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
