/* Catalog style "demo48" — the album as one rail: dark DEPO product UI, Poppins + Lato, demos in a horizontal snap row with a thin progress line. Mirrors /demo48/ (Connect · Spotlight: the card under the pointer lifts, the rest of the row steps back); based on the demo41 style. */
/*
 * Layout: a rounded glass banner card (brand, tagline, count) like the banner of /demo48/; the
 * style bar is a second, quieter card with the URL in a field and a green Copy pill; categories
 * are pills with count chips. The list is the demo's rail: a section head (title + count chip +
 * range) and one horizontal row of cards that bleeds to the window edge, snap-scrolling, with a
 * thin scrollbar styled as the rail's progress line. On a post the page is a single column of
 * cards. No JS: the rail is plain CSS overflow + scroll-snap.
 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Lato:wght@400;700&display=swap");

:root {
    --bg: #18171a;
    --card: rgb(255 255 255 / 0.045);
    --card-2: rgb(255 255 255 / 0.08);
    --ink: #fff;
    --soft: rgb(255 255 255 / 0.7);
    --faint: rgb(255 255 255 / 0.5);
    --line: rgb(255 255 255 / 0.1);
    --line-2: rgb(255 255 255 / 0.2);
    --green: #469a58;
    --green-hi: #53b167;
    --yellow: #ffb500;
    --head: "Poppins", system-ui, sans-serif;
    --text: "Lato", system-ui, sans-serif;
    --r: 14px;
    --max: 1320px;
    --gut: clamp(16px, 4vw, 48px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; overflow-x: clip;
    background: radial-gradient(48vmax 40vmax at 78% 8%, rgb(83 245 126 / 0.12), transparent 70%), radial-gradient(40vmax 36vmax at 12% 70%, rgb(83 245 126 / 0.07), transparent 70%), var(--bg);
    background-attachment: fixed;
    color: var(--ink); font: 400 16px/1.6 var(--text);
}
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(--green-hi); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 20; padding: 10px 18px; border-radius: 999px; background: var(--green); color: #fff; font: 500 14px/1 var(--head); text-decoration: none; }
.skip:focus { left: 16px; }
.deco { display: none; }

.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* banner card */
.masthead { position: relative; overflow: hidden; margin-top: clamp(16px, 3vw, 32px); padding: clamp(28px, 4vw, 52px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(120deg, rgb(24 23 26 / 0.9), rgb(24 23 26 / 0.5)); }
.masthead::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 34%; background: linear-gradient(90deg, rgb(24 23 26 / 0.9), transparent 45%), url("/_img/photos/photo-16.jpg") center 25% / cover no-repeat; }
.masthead__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px; max-width: 62%; }
.brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.brand__mark { order: 2; font: 600 clamp(48px, 7vw, 88px)/0.95 var(--head); letter-spacing: -0.03em; }
.brand__name { order: 1; display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.brand__name::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.masthead__tagline { max-width: 38ch; margin: 0; color: var(--soft); font-size: 17px; }
.masthead__count { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--faint); font-size: 14px; }
.masthead__num { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 700 14px/1 var(--text); }

/* style bar */
.stylebar { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.stylebar__label { font: 500 14px/1 var(--head); color: var(--soft); }
.stylebar__value { flex: 1 1 300px; min-width: 0; padding: 10px 14px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; background: rgb(0 0 0 / 0.25); }
.stylebar__copy { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 500 14px/1 var(--head); cursor: pointer; }
.stylebar__copy:hover { background: var(--green-hi); }
.stylebar__copy.is-done { background: var(--yellow); color: var(--bg); }
.stylebar__list { display: flex; gap: 6px; width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.stylebar__item { flex: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-size: 13px; text-decoration: none; }
.stylebar__item:hover { border-color: var(--line-2); color: var(--ink); }
.stylebar__item.is-active { border-color: var(--green); background: var(--green); color: #fff; }

/* categories */
.categories { margin: 28px 0 0; }
.categories__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 16px; border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--head); color: var(--soft); text-decoration: none; }
.categories__link:hover { border-color: var(--line-2); color: var(--ink); }
.categories__link.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.categories__count { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--card-2); font: 700 12px/1 var(--text); }
.categories__link.is-active .categories__count { background: rgb(0 0 0 / 0.1); }

/* listing: section head + one rail */
.content { padding: clamp(36px, 5vw, 64px) 0 72px; }
.listing__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; margin-bottom: 22px; }
.listing__title { margin: 0; font: 600 clamp(24px, 2.4vw, 30px)/1.1 var(--head); }
.listing__intro { grid-column: 1 / -1; max-width: 60ch; margin: 0; color: var(--faint); }
.toolbar { grid-column: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; color: var(--faint); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 34px; padding: 5px 8px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--soft); }
.toolbar__opt:hover { background: var(--card-2); }
.toolbar__opt.is-active { background: var(--ink); color: var(--bg); }

.listing {
    --pad: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 26vw, 360px); gap: 20px;
    margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 26px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.6) rgb(255 255 255 / 0.1);
}
.listing::-webkit-scrollbar { height: 2px; }
.listing::-webkit-scrollbar-track { margin-inline: var(--pad); background: rgb(255 255 255 / 0.1); }
.listing::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 0.6); }
.post--card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.post__media { position: relative; display: block; overflow: hidden; margin-bottom: 14px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.05); }
.post__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.post--card:hover .post__thumb { transform: scale(1.04); }
.post__body { display: flex; flex: 1; flex-direction: column; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; color: var(--faint); font-size: 13px; }
.post__num { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--card-2); color: var(--ink); font-weight: 700; font-size: 12px; }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--ink); }
.post__title { margin: 0 0 6px; font: 500 20px/1.25 var(--head); }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--green-hi); }
.post__excerpt { display: -webkit-box; margin: 0 0 16px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--faint); font-size: 14px; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); font: 500 14px/1 var(--head); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: rgb(255 255 255 / 0.5); }
.btn--primary { border-color: var(--green); background: var(--green); }
.btn--primary:hover { border-color: var(--green-hi); background: var(--green-hi); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager__link { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--soft); }
.pager__link:hover { border-color: var(--line-2); color: var(--ink); }
.pager__link.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* one post */
.post--full { max-width: 980px; margin: 0 auto; }
.post__header { padding: 0 0 28px; }
.post--full .post__title { margin: 14px 0 14px; font: 600 clamp(38px, 5.4vw, 64px)/1.05 var(--head); letter-spacing: -0.02em; }
.post--full .post__excerpt { display: block; max-width: 62ch; color: var(--soft); font-size: 18px; }
.post__shot { margin: 0 0 32px; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.post__zoom { display: block; max-height: 720px; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin: 10px 4px 0; color: var(--faint); font-size: 13px; }
.doc { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--soft); font-size: 16px; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 40px 0 12px; font: 600 24px/1.2 var(--head); color: var(--ink); }
.doc h3 { margin: 28px 0 8px; font: 500 19px/1.25 var(--head); color: var(--ink); }
.doc h4, .doc h5, .doc h6 { margin: 22px 0 6px; font: 500 16px/1.3 var(--head); color: var(--ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--green-hi); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--card-2); color: var(--ink); }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / 0.35); color: var(--ink); }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 16px; border-left: 2px solid var(--green); }
.doc hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 18px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { color: var(--faint); font: 500 13px/1.3 var(--head); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.post__nav-link { padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font: 500 16px/1.3 var(--head); text-decoration: none; }
.post__nav-link:hover { border-color: var(--line-2); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 4px; color: var(--faint); font: 400 13px/1.3 var(--text); }

.notice { padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.notice--ok { border-color: var(--green); }
.notice--error { border-color: #e2725b; color: #f5b8a8; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 24px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.colophon p { margin: 0; }
.colophon a:hover { color: var(--ink); }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #111013; color: var(--ink); }
.zoom::backdrop { background: rgb(10 9 11 / 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: #111013; }
.zoom__close { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 14px/1 var(--head); cursor: pointer; }
.zoom__scroll { height: calc(94vh - 60px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead::after { width: 100%; opacity: 0.28; }
    .masthead__inner { max-width: none; grid-template-columns: 1fr; }
    .listing__header { grid-template-columns: 1fr; }
    .toolbar { grid-column: 1; justify-content: flex-start; }
}
@media (max-width: 520px) {
    .listing { grid-auto-columns: 78vw; gap: 14px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.doc p, .doc li, .doc blockquote, .doc td, .doc th, .comment__body { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }

/* ── demo48: spotlight ──────────────────────────────────────────────────────────────────────── */
.post--card { transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
    .listing:has(.post--card:hover) .post--card:not(:hover) { opacity: 0.42; filter: grayscale(0.5); }
    .post--card:hover { transform: translateY(-4px); }
    .post--card:hover .post__media { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35), 0 22px 40px -18px rgb(0 0 0 / 0.95); }
}
.listing { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); }
@media (max-width: 700px) { .listing { -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) { .post--card { transition: none; } .post--card:hover { transform: none; } }
