/* Catalog style "demo30" — the album as the DEPO UI kit: #18171a night, every card a numbered kit cell (#001 in yellow mono), glow buttons with a drifting green light, segmented tabs, a pill pager. Mirrors /demo30/. */
/*
 * Layout: a slim sticky kit bar (DEPO mark, "UI kit", the count as a glow pill); the style panel as
 * the kit's settings bar; categories as a segmented tab strip; the posts as a dense grid of kit
 * cells — number badge over the thumbnail, mono family line, glow + ghost buttons; the pager is
 * pagination #002 (round pills, the current page glowing). The post page is one wide cell; the
 * doc reads like the kit's editor panel: mono labels, yellow numbers, green section marks.
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600&display=swap");

@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins DEPO"; src: url("/_fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@property --k-x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }

:root {
    --bg: #18171a;
    --cell: rgb(255 255 255 / 0.025);
    --cell-2: rgb(255 255 255 / 0.06);
    --line: rgb(255 255 255 / 0.09);
    --line-2: rgb(255 255 255 / 0.2);
    --ink: #f3f4f1;
    --mute: rgb(255 255 255 / 0.62);
    --green: #53f57e;
    --green-d: #469a58;
    --yellow: #ffb500;
    --text: "Lato", "Lato DEPO", system-ui, sans-serif;
    --head: "Poppins", "Poppins DEPO", system-ui, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --r: 14px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(48vmax 48vmax at 82% 8%, rgb(83 245 126 / 0.14), transparent 70%), radial-gradient(40vmax 40vmax at 6% 92%, rgb(83 245 126 / 0.08), transparent 70%); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.86em/1.45 var(--mono); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-d); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 999px; background: var(--green); color: var(--bg); }
.skip:focus { left: 16px; }
.deco { display: none; }
.page { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ── kit bar (masthead) ── */
.masthead { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * clamp(16px, 3vw, 40px)); padding: 12px clamp(16px, 3vw, 40px); background: rgb(24 23 26 / 0.8); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand__mark { font: 600 26px/1 var(--head); letter-spacing: -0.02em; background: linear-gradient(100deg, #53f57e, #b8f7c9 50%, #9a9a9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name { font: 500 12px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.masthead__tagline { flex: 1 1 260px; margin: 0; color: var(--mute); font-size: 14px; }
.masthead__count { margin: 0; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px; font: 500 12px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
    background: radial-gradient(120% 220% at var(--k-x) 50%, rgb(83 245 126 / 0.34), transparent 62%), #141316; box-shadow: inset 0 0 0 1px rgb(83 245 126 / 0.25); animation: k-drift 8s ease-in-out infinite alternate; }
.masthead__num { font: 600 18px/1 var(--head); color: #fff; letter-spacing: 0; }
@keyframes k-drift { from { --k-x: 5%; } to { --k-x: 95%; } }

/* ── style panel = the kit's settings bar ── */
.stylebar { margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--cell); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { font: 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 7px 12px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; background: #0f0e11; color: #cfe9d6; }
.stylebar__copy { padding: 9px 18px; border: 0; border-radius: 999px; background: var(--green-d); color: #fff; font: 600 13px/1 var(--head); cursor: pointer; }
.stylebar__copy:hover { background: var(--green); color: var(--bg); }
.stylebar__copy.is-done { background: var(--yellow); color: var(--bg); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.stylebar__item { padding: 3px 10px; border-radius: 6px; background: rgb(0 0 0 / 0.3); color: var(--yellow); font: 12px/1.6 var(--mono); text-decoration: none; }
.stylebar__item:hover { background: var(--yellow); color: var(--bg); }
.stylebar__item.is-active { background: var(--green); color: var(--bg); }

/* ── categories = segmented tabs ── */
.categories { margin: 22px 0 6px; }
.categories__list { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--cell); list-style: none; }
.categories__link { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--mute); font: 500 14px/1 var(--head); text-decoration: none; transition: color .25s, background .25s; }
.categories__link:hover { color: #fff; }
.categories__link.is-active { color: #fff; background: radial-gradient(120% 160% at 0% 50%, rgb(83 245 126 / 0.3), transparent 70%), rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(83 245 126 / 0.25); }
.categories__count { font: 11px var(--mono); color: var(--yellow); }

/* ── listing ── */
.content { padding: 30px 0 64px; }
.listing__header { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.listing__title { margin: 0; font: 600 clamp(32px, 5vw, 64px)/1 var(--head); letter-spacing: -0.03em; }
.listing__intro { max-width: 64ch; margin: 10px 0 0; color: var(--mute); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; color: var(--mute); font: 12px var(--mono); }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 30px; padding: 4px 8px; border-radius: 6px; text-align: center; text-decoration: none; background: rgb(0 0 0 / 0.3); color: var(--yellow); }
.toolbar__opt.is-active { background: var(--yellow); color: var(--bg); }

.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.post--card { position: relative; display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cell); transition: border-color .25s, box-shadow .25s; }
.post--card:hover { border-color: rgb(83 245 126 / 0.45); box-shadow: 0 0 40px -10px rgb(83 245 126 / 0.2); }
.post__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: #0f0e11; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s; filter: saturate(.85); }
.post--card:hover .post__thumb { transform: scale(1.04); filter: none; }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 14px 6px 6px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; color: var(--mute); font: 11.5px/1.4 var(--mono); }
.post--card .post__num { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 0.6); color: var(--yellow); font: 600 12px/1.4 var(--mono); }
.post__cat { color: var(--green); text-decoration: none; }
.post__cat:hover { text-decoration: underline; }
.post__title { margin: 0 0 8px; font: 600 22px/1.15 var(--head); letter-spacing: -0.01em; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--green); }
.post__excerpt { margin: 0 0 16px; color: var(--mute); font-size: 14.5px; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; color: var(--green); font: 600 13.5px/1 var(--head); text-decoration: none; box-shadow: inset 0 0 0 1px var(--green); transition: background .3s, color .3s; }
.btn:hover { background: var(--green); color: var(--bg); }
.btn--primary { color: #fff; box-shadow: inset 0 0 0 1px rgb(83 245 126 / 0.25);
    background: radial-gradient(120% 220% at var(--k-x) 50%, rgb(83 245 126 / 0.36), transparent 62%), #141316; animation: k-drift 6s ease-in-out infinite alternate; }
.btn--primary:hover { color: #fff; background-color: #141316; box-shadow: inset 0 0 0 1px rgb(83 245 126 / 0.6), 0 10px 30px -12px var(--green); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; color: var(--ink); font: 500 14px/1 var(--head); text-decoration: none; }
.pager__link:hover { background: var(--cell-2); }
.pager__link--prev, .pager__link--next { box-shadow: inset 0 0 0 1px var(--line-2); }
.pager__link.is-active { background: radial-gradient(120% 160% at 20% 30%, rgb(83 245 126 / 0.55), transparent 70%), #101012; box-shadow: inset 0 0 0 1px rgb(83 245 126 / 0.45), 0 6px 22px -8px var(--green); }

/* ── one post ── */
.post--full { max-width: 1040px; margin: 0 auto; }
.post__header { padding: 8px 0 26px; }
.post--full .post__meta { font-size: 12.5px; }
.post--full .post__num { color: var(--yellow); font: 600 13px var(--mono); }
.post--full .post__title { font: 600 clamp(40px, 6vw, 76px)/1 var(--head); letter-spacing: -0.035em; }
.post--full .post__excerpt { max-width: 62ch; color: var(--mute); font-size: 18px; }
.post__shot { margin: 0 0 40px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--cell); }
.post__zoom { display: block; max-height: 680px; overflow: hidden; border-radius: 10px; cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin: 10px 4px 0; color: var(--mute); font: 12px var(--mono); }
.doc { font-size: 16.5px; }
.doc h2 { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 600 26px/1.15 var(--head); letter-spacing: -0.01em; }
.doc h2::before { content: "§"; color: var(--green); font: 400 15px var(--mono); }
.doc h3 { margin: 30px 0 8px; font: 600 19px var(--head); }
.doc h4, .doc h5, .doc h6 { margin: 22px 0 6px; font-size: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li::marker { color: var(--green); }
.doc a { color: var(--green); text-underline-offset: 3px; }
.doc strong { color: #fff; }
.doc code { padding: 1px 6px; border-radius: 5px; background: rgb(0 0 0 / 0.35); color: var(--yellow); }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #0d0d0f; color: #cfe9d6; }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 18px; padding: 12px 18px; border-left: 2px solid var(--green); border-radius: 0 10px 10px 0; background: var(--cell); color: rgb(255 255 255 / 0.8); }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--cell); color: var(--green); font: 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 3px 10px; border-radius: 6px; background: rgb(0 0 0 / 0.35); color: var(--yellow); font: 12px/1.6 var(--mono); }
.tags__item::before { content: "#"; opacity: .6; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 48px; }
.post__nav-link { position: relative; isolation: isolate; overflow: hidden; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; font: 600 20px/1.2 var(--head); text-decoration: none; transition: border-color .3s; }
.post__nav-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 140% at 0% 50%, rgb(83 245 126 / 0.22), transparent 70%); opacity: 0; transition: opacity .5s; }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-link--older::before { background: radial-gradient(60% 140% at 100% 50%, rgb(83 245 126 / 0.22), transparent 70%); }
.post__nav-link:hover { border-color: rgb(83 245 126 / 0.45); }
.post__nav-link:hover::before { opacity: 1; }
.post__nav-label { display: block; margin-bottom: 4px; color: var(--mute); font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.post__back { color: var(--green); }

.notice { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--cell); }
.notice--error { border-color: #ff6b7a; color: #ffb3bb; }

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

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #0d0d0f; color: #fff; }
.zoom::backdrop { background: rgb(10 10 12 / 0.86); backdrop-filter: blur(6px); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: #0d0d0f; }
.zoom__close { padding: 9px 18px; border: 0; border-radius: 999px; background: var(--green-d); color: #fff; font: 600 13px/1 var(--head); cursor: pointer; }
.zoom__scroll { height: calc(94vh - 58px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead { position: static; }
    .categories__list { border-radius: 18px; }
}
@media (max-width: 520px) {
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
}
@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%; }
