/* Catalog style "demo26" — the album as a light maps app: white rounded panels on #eef0f3, Manrope, the style bar as a search pill, categories as a floating dock of coloured squircles with count badges. Mirrors /demo26/. */
/*
 * Layout: the site's dark header strip, then the banner card of /demo26/ (text left, a three-photo
 * mosaic with 22 px corners on the right, slide dots). The style bar is a Google-style search pill
 * (URL inside, blue Copy) over a segmented row of styles. The categories leave the page flow: a
 * frosted dock pinned to the bottom of the screen, one coloured squircle per category with a
 * white count badge and a dot under the open one (macOS-dock lift on hover). The tags are a
 * snap-scrolling chip rail; the posts are white app cards in a three-column grid with the newest
 * as a wide hero card — on phones the list turns into the demo's snap-scrolling carousel.
 * One post = a stack of white panels. No JS: everything is CSS.
 */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --page: #eef0f3;
    --card: #fff;
    --ink: #15161a;
    --muted: #5f6672;
    --soft: #f3f4f6;
    --soft-2: #e7e9ee;
    --line: #e2e5ea;
    --blue: #1a73e8;
    --blue-ink: #1558b0;
    --blue-hover: #1765cc;
    --night: #18171a;
    --sh: 0 1px 2px rgb(0 0 0 / 0.06), 0 18px 40px -26px rgb(0 0 0 / 0.38);
    --sh-float: 0 2px 6px rgb(0 0 0 / 0.14), 0 12px 30px -10px rgb(0 0 0 / 0.26);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --r: 28px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { position: relative; margin: 0; padding-bottom: 132px; overflow-x: clip; background: var(--page); color: var(--ink); font: 500 16px/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.88em/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: #d2e3fc; }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 80; padding: 10px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }
.deco { display: none; }

/* the site's dark header strip */
body::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 64px;
    background: url("/_img/site/logo/logo.png") max(16px, calc((100% - 1240px) / 2)) center / 60px auto no-repeat, var(--night);
}

.page { position: relative; max-width: 1280px; margin: 0 auto; padding: 64px 20px 0; }

/* ---------- masthead = the banner card with the photo mosaic ---------- */
.masthead {
    position: relative; min-height: 320px; margin-top: 20px; padding: 44px calc(54% + 24px) 52px 48px; overflow: hidden;
    background: var(--card); border-radius: var(--r); box-shadow: var(--sh);
}
.masthead::before, .masthead::after, .masthead__inner::after {
    content: ""; position: absolute; top: 6px; border-radius: 22px; background: #d9dce2 center 22% / cover no-repeat;
}
.masthead::before { left: 46%; width: calc(30% - 6px); bottom: 6px; background-image: url("/_img/photos/photo-16.jpg"); }
.masthead::after { left: 76%; right: 6px; height: calc(50% - 9px); background-image: url("/_img/photos/photo-18.jpg"); }
.masthead__inner::after { top: auto; bottom: 6px; left: 76%; right: 6px; height: calc(50% - 9px); background-image: url("/_img/photos/photo-19.jpg"); }
.masthead__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.masthead__inner::before {
    content: ""; position: absolute; left: 48px; bottom: 22px; width: 36px; height: 8px;
    background: linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 28px, #c9cdd4 28px);
    border-radius: 4px; clip-path: inset(0 0 0 0 round 4px);
}
.brand { display: flex; flex-direction: column-reverse; gap: 12px; text-decoration: none; }
.brand__name { color: var(--blue-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.brand__mark { font-size: clamp(54px, 6.4vw, 88px); font-weight: 800; line-height: 0.9; letter-spacing: -0.055em; }
.masthead__tagline { max-width: 40ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.masthead__count { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 7px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.masthead__num { font-weight: 800; }

/* ---------- style bar = the search pill + a segmented row ---------- */
.stylebar { margin-top: 18px; }
.stylebar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 10px; }
.stylebar__inner::before { content: ""; grid-area: 1 / 1 / 2 / -1; align-self: stretch; margin: -6px -8px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-float); }
.stylebar__label, .stylebar__value, .stylebar__copy { grid-row: 1; position: relative; }
.stylebar__label { grid-column: 1; display: inline-flex; align-items: center; gap: 10px; padding-left: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.stylebar__label::before { content: ""; width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 5px 5px 0 -3.5px currentColor; }
.stylebar__value { grid-column: 2; min-width: 0; padding: 8px 4px; overflow-x: auto; white-space: nowrap; color: var(--ink); font-size: 14px; scrollbar-width: thin; }
.stylebar__copy { grid-column: 3; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 700 14px/1 var(--font); cursor: pointer; transition: background 0.15s; }
.stylebar__copy:hover { background: var(--blue-hover); }
.stylebar__copy.is-done { background: #188038; }
.stylebar__copy.is-done::before { content: "✓ "; }
.stylebar__list {
    grid-column: 1 / -1; display: flex; gap: 2px; max-width: 100%; margin-top: 8px; padding: 4px; overflow-x: auto; justify-self: start;
    border-radius: 999px; background: var(--card); box-shadow: var(--sh-float); scroll-snap-type: x proximity; scrollbar-width: thin;
}
.stylebar__item { flex: none; padding: 9px 13px; border-radius: 999px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-decoration: none; scroll-snap-align: start; white-space: nowrap; }
.stylebar__item:hover { color: var(--ink); background: var(--soft); }
.stylebar__item.is-active { background: var(--ink); color: #fff; }
.stylebar__item--uploaded { font-style: italic; }
.stylebar__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 0 6px; font-size: 13.5px; font-weight: 600; }
.stylebar__guide, .stylebar__download, .stylebar__upload-toggle { color: var(--muted); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.stylebar__guide:hover, .stylebar__download:hover, .stylebar__upload-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stylebar__guide { color: var(--blue-ink); font-weight: 800; }
.stylebar__upload-toggle { display: inline-flex; align-items: center; gap: 6px; list-style: none; color: var(--ink); }
.stylebar__upload-toggle::-webkit-details-marker { display: none; }
.stylebar__upload-toggle::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; }
.stylebar__upload[open] { flex-basis: 100%; }
.stylebar__upload[open] .stylebar__upload-toggle::before { content: "−"; }
.upload-form { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; max-width: 560px; margin-top: 10px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--sh); }
.upload-form__label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.upload-form__input, .upload-form__file { width: 100%; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--ink); font: 600 14px/1.3 var(--font); }
.upload-form__input:focus, .upload-form__file:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(26 115 232 / 0.22); background: #fff; }
.upload-form__submit, .upload-form__note { grid-column: 1 / -1; }
.upload-form__submit { justify-self: start; cursor: pointer; }
.upload-form__note { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.stylebar__flash { grid-column: 1 / -1; margin: 0; }

/* ---------- categories = the floating dock ---------- */
.categories {
    position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px);
    padding: 12px 12px 8px; border-radius: 26px; background: rgb(255 255 255 / 0.84);
    -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 0 0 1px rgb(0 0 0 / 0.05), 0 22px 44px -18px rgb(0 0 0 / 0.45);
    overflow-x: auto; scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.categories__list { display: flex; align-items: flex-end; gap: 4px; width: max-content; margin: 0; padding: 0; list-style: none; }
.categories__link {
    --c: #4a4f59; --code: "··";
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; padding: 4px 2px 10px; border-radius: 16px;
    color: var(--ink); font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none;
}
.categories__link::before {
    content: var(--code); display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--c); color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: -0.02em; box-shadow: inset 0 -10px 18px -10px rgb(0 0 0 / 0.35), 0 6px 12px -6px var(--c);
    transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.2s;
}
.categories__item:nth-child(1) .categories__link { --c: var(--ink); --code: "All"; }
.categories__item:nth-child(1) .categories__link::before { font-size: 13px; }
.categories__item:nth-child(2) .categories__link { --c: #2f7d4f; --code: "ED"; }
.categories__item:nth-child(3) .categories__link { --c: #c2366b; --code: "3D"; }
.categories__item:nth-child(4) .categories__link { --c: #b8541a; --code: "GA"; }
.categories__item:nth-child(5) .categories__link { --c: #7c4fd0; --code: "CA"; }
.categories__item:nth-child(6) .categories__link { --c: #1a73e8; --code: "MA"; }
.categories__item:nth-child(7) .categories__link { --c: #c43b4f; --code: "DE"; }
.categories__link:hover::before { transform: translateY(-6px) scale(1.08); }
.categories__count {
    position: absolute; top: -4px; right: 6px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--ink);
    font-size: 11px; font-weight: 800; line-height: 20px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.28);
}
.categories__link.is-active::before { transform: translateY(-3px); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c), 0 8px 16px -6px var(--c); }
.categories__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.categories__link:focus-visible { outline-offset: 0; }

/* ---------- list ---------- */
.content { padding: 30px 0 48px; }
.listing__header { margin-bottom: 22px; }
.listing__title { margin: 0; font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.04; letter-spacing: -0.04em; }
.listing__intro { max-width: 62ch; margin: 8px 0 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; }
.toolbar p { margin: 0; }
.toolbar__range { padding: 9px 14px; border-radius: 999px; background: var(--soft-2); font-weight: 800; }
.toolbar__view { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-float); }
.toolbar__label { padding: 0 10px; color: var(--muted); font-weight: 700; }
.toolbar__opt { display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 12px; border-radius: 999px; color: var(--muted); font-weight: 800; text-decoration: none; }
.toolbar__opt:hover { background: var(--soft); color: var(--ink); }
.toolbar__opt.is-active { background: var(--ink); color: #fff; }

.listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post--card {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; background: var(--card); border-radius: 24px; box-shadow: var(--sh);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post--card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--blue), 0 22px 40px -22px rgb(0 0 0 / 0.42); }
.post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 17px; background: var(--soft-2); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.post--card:hover .post__thumb { transform: scale(1.03); }
.post__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px 10px 8px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.post--card .post__num {
    position: absolute; top: 18px; left: 18px; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink);
    font-size: 12px; font-weight: 800; box-shadow: 0 1px 4px rgb(0 0 0 / 0.28);
}
.post__cat { color: var(--blue-ink); font-weight: 800; text-decoration: none; }
.post__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__title { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--blue-ink); }
.post__excerpt { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }

/* the newest post: a wide hero card */
.listing > .post--card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; border-radius: var(--r); }
.listing > .post--card:first-child .post__media { border-radius: 22px; }
.listing > .post--card:first-child .post__body { justify-content: center; padding: 28px 36px; }
.listing > .post--card:first-child .post__title { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.035em; line-height: 1.08; }
.listing > .post--card:first-child .post__excerpt { font-size: 16px; }
.listing > .post--card:first-child .post__actions { margin-top: 4px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--soft); color: var(--ink); font: 800 13.5px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s;
}
.btn:hover { background: var(--soft-2); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; width: fit-content; max-width: 100%; margin: 36px auto 0; padding: 4px; border-radius: 26px; background: var(--card); box-shadow: var(--sh-float); }
.pager__link { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.pager__link:hover { background: var(--soft); color: var(--ink); }
.pager__link.is-active { background: var(--ink); color: #fff; }

/* ---------- one post = a stack of white panels ---------- */
.post--full { max-width: 920px; margin: 0 auto; }
.post__header { padding: 36px 44px 34px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.post--full .post__meta { margin-bottom: 14px; }
.post--full .post__num { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 800; }
.post--full .post__title { margin: 0 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.045em; }
.post--full .post__excerpt { max-width: 60ch; margin-bottom: 22px; font-size: 17px; }
.post__shot { margin: 16px 0 0; padding: 8px 8px 4px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); }
.post__zoom { display: block; max-height: 640px; overflow: hidden; border-radius: 22px; background: var(--soft-2); cursor: zoom-in; }
.post__zoom img { width: 100%; transition: opacity 0.2s; }
.post__zoom:hover img { opacity: 0.92; }
.post__caption { padding: 10px 14px 8px; color: var(--muted); font-size: 13px; font-weight: 600; }

.doc { margin-top: 16px; padding: 40px 44px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); color: #2b2e35; font-size: 16.5px; line-height: 1.7; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 42px 0 12px; color: var(--ink); font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.doc h2::before { content: ""; display: inline-block; width: 12px; height: 12px; margin: 0 12px 0.14em 0; border-radius: 4px; background: var(--blue); vertical-align: middle; }
.doc h3 { margin: 30px 0 8px; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.doc h4, .doc h5, .doc h6 { margin: 22px 0 6px; color: var(--ink); font-size: 16px; font-weight: 800; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li::marker { color: var(--blue); }
.doc strong { color: var(--ink); font-weight: 800; }
.doc a { color: var(--blue-ink); font-weight: 700; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc code { padding: 2px 7px; border-radius: 7px; background: var(--soft); color: #b3261e; }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: var(--ink); border-radius: 16px; color: #eceff4; }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: #e8f0fe; color: #1f3b66; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.doc img { border-radius: 16px; }
.doc-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--soft); color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12.5px; font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post__nav-link { padding: 18px 22px; border-radius: 22px; background: var(--card); box-shadow: var(--sh); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; text-decoration: none; transition: box-shadow 0.2s; }
.post__nav-link:hover { box-shadow: 0 0 0 2px var(--blue), var(--sh); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.post__nav-link--newer .post__nav-label::before { content: "← "; }
.post__nav-link--older .post__nav-label::after { content: " →"; }

/* notices */
.notice { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-float); font-weight: 600; }
.notice::before { content: "i"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; }
.notice p { margin: 0; }
.notice a { color: var(--blue-ink); }
.notice--ok::before { content: "✓"; background: #188038; }
.notice--error { color: #8c1d18; }
.notice--error::before { content: "!"; background: #c5221f; }

/* colophon = the dark site footer */
.colophon {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: 24px; padding: 36px 0 40px;
    background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax -200px); color: #a1a1aa; font-size: 14px;
}
.colophon::before { content: ""; flex: none; width: 170px; height: 38px; background: url("/_img/site/logo/logo-depo-place.svg") left center / contain no-repeat; }
.colophon p { margin: 0; }
.colophon__text { flex: 1; }
.colophon__text code { color: #8ab4f8; }
.colophon__links a { color: #e8eaed; text-underline-offset: 3px; }
.colophon__links a:hover { color: #fff; }
.colophon :focus-visible { outline-color: #8ab4f8; }
body:has(.colophon) { padding-bottom: 0; }
.colophon { padding-bottom: 140px; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5); }
.zoom::backdrop { background: rgb(21 22 26 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom__bar { display: flex; justify-content: flex-end; height: 60px; padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.zoom__close { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 800 13.5px/1 var(--font); cursor: pointer; }
.zoom__close:hover { background: #000; }
.zoom__scroll { height: calc(94vh - 60px); overflow: auto; background: var(--soft); }
.zoom__img { width: 100%; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
    .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .masthead { min-height: 0; padding: 0 0 50px; }
    .masthead::before { position: relative; inset: auto; display: block; width: auto; height: 200px; margin: 6px 6px 0; background-image: url("/_img/photos/photo-16.jpg"); background-position: center 18%; }
    .masthead::after, .masthead__inner::after { display: none; }
    .masthead__inner { padding: 24px 24px 0; }
    .masthead__inner::before { left: 24px; }
    .post__header { padding: 26px 24px; }
    .doc { padding: 28px 24px; }
}
@media (max-width: 700px) {
    /* the list becomes the demo's snap-scrolling carousel */
    .listing {
        display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
        scrollbar-width: thin; scrollbar-color: #c3c7ce transparent;
    }
    .post--card, .listing > .post--card:first-child { display: flex; flex: 0 0 min(84%, 340px); scroll-snap-align: start; border-radius: 24px; }
    .listing > .post--card:first-child .post__body { padding: 14px 10px 8px; }
    .listing > .post--card:first-child .post__title { font-size: 22px; }
    .listing > .post--card:first-child .post__excerpt { font-size: 14.5px; }
    .post--card:hover { transform: none; }
    .toolbar__label { display: none; }
    .stylebar__inner { grid-template-columns: auto minmax(0, 1fr); }
    .stylebar__label { grid-row: 1; }
    .stylebar__value { grid-column: 2; }
    .stylebar__copy { grid-row: 2; grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
    .stylebar__inner::before { grid-area: 1 / 1 / 2 / -1; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
}
@media (max-width: 520px) {
    .page { padding-left: 16px; padding-right: 16px; }
    body::before { background-size: 50px auto; }
    .masthead { border-radius: 24px; }
    .masthead__tagline { font-size: 15px; }
    .stylebar__label span, .stylebar__label { font-size: 0; gap: 0; padding-left: 12px; }
    .stylebar__label::before { font-size: 13px; }
    .categories { padding: 10px 8px 6px; border-radius: 22px; }
    .categories__link { width: 64px; font-size: 10px; }
    .categories__link::before { width: 44px; height: 44px; border-radius: 13px; font-size: 13px; }
    .categories__count { right: 2px; }
    .post--full .post__excerpt { font-size: 16px; }
    .doc { padding: 24px 18px; font-size: 16px; }
    .doc h2 { font-size: 23px; }
    .post__header { padding: 22px 18px; }
    .btn { padding: 0 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
    .post--card:hover, .categories__link:hover::before { transform: none; }
    .post--card:hover .post__thumb { transform: none; }
    .listing { scroll-behavior: auto; }
}

/* 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%; }
.doc td, .doc th { overflow-wrap: break-word; }
