/* Catalog style "demo32" — the album as a sticker sheet: dotted paper, every card a die-cut sticker (thick white edge, soft shadow, a little tilt), Unbounded + Onest, ink chat panels, DEPO lime. Mirrors /demo32/. */
/*
 * Layout: masthead = the demo's hero ("DEPO" with the word on a lime block, the count as a sticker
 * badge); the style panel = the dark chat composer (URL as the message, Copy as the lime send
 * button, styles as quick chips); categories as filter chips; the posts as a loose sheet of
 * stickers — thumbnails die-cut in white with alternating tilt, a lime number badge, peel-up hover;
 * the pager is a row of round chips. One post: the screenshot as a big sticker on the mat, the doc
 * on a card, nav as two chat bubbles.
 */
@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400..800&family=Unbounded:wght@500..900&display=swap");

:root {
    --paper: #f3efe6;
    --paper-2: #e9e3d6;
    --card: #fbf9f4;
    --ink: #15201a;
    --ink-2: #4b5750;
    --ink-3: #6f7a73;
    --green: #1d5a37;
    --lime: #53f57e;
    --chat: #121a15;
    --line: rgb(21 32 26 / 0.12);
    --display: "Unbounded", "Arial Black", sans-serif;
    --text: "Onest", system-ui, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--text);
    background-image: radial-gradient(rgb(21 32 26 / 0.09) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
code { font: 600 0.86em/1.45 var(--mono); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: var(--ink); }

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

/* ── masthead = the hero ── */
.masthead { padding: clamp(28px, 5vw, 64px) 0 18px; }
.masthead__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 16px 36px; }
.brand { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { font: 900 clamp(64px, 11vw, 150px)/0.84 var(--display); letter-spacing: -0.06em; }
.brand__mark::after { content: ""; display: inline-block; width: 0.18em; height: 0.18em; margin-left: 0.04em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0.03em var(--ink); }
.brand__name { align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: var(--lime); font: 800 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-3deg); }
.masthead__tagline { max-width: 40ch; margin: 0 0 6px; color: var(--ink-2); font-size: 17px; }
.masthead__count { display: grid; place-items: center; width: 132px; height: 132px; margin: 0; border-radius: 50%; background: var(--ink); color: #a9b8ae; font: 700 11px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
    box-shadow: 0 0 0 8px #fff, 0 18px 30px -12px rgb(21 32 26 / 0.45); transform: rotate(8deg); }
.masthead__num { display: block; color: var(--lime); font: 900 46px/1 var(--display); letter-spacing: -0.04em; }

/* ── style panel = the chat composer ── */
.stylebar { margin: 18px 0 0; padding: 16px; border-radius: 26px; color: #e9efe9;
    background: radial-gradient(circle at 92% 0%, rgb(83 245 126 / 0.16), transparent 40%), var(--chat); box-shadow: 0 30px 60px -36px rgb(10 30 18 / 0.7); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stylebar__label { padding: 6px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); font: 800 10.5px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 11px 16px; overflow-x: auto; white-space: nowrap; border-radius: 999px; background: #1d2822; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
.stylebar__copy { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font: 800 13px/1 var(--display); cursor: pointer; transition: transform .15s; }
.stylebar__copy:hover { transform: scale(1.05); }
.stylebar__copy.is-done { background: #fff; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.stylebar__item { padding: 5px 11px; border-radius: 12px; background: rgb(255 255 255 / 0.06); color: #cfe0d4; font: 500 13px/1.4 var(--text); text-decoration: none; transition: background .15s, transform .15s; }
.stylebar__item:hover { background: rgb(255 255 255 / 0.14); transform: translateY(-2px); }
.stylebar__item.is-active { background: var(--lime); color: var(--ink); font-weight: 700; }
.stylebar__tools { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; font-size: 13.5px; }
.stylebar a { color: #b9f7c9; }

/* ── categories = filter chips ── */
.categories { margin: 26px 0 4px; }
.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; padding: 10px 16px; border-radius: 999px; color: var(--ink); font: 600 15px/1 var(--text); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s, background .15s; }
.categories__link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.categories__link.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.categories__count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgb(21 32 26 / 0.08); font: 800 10.5px/1 var(--display); }
.categories__link.is-active .categories__count { background: var(--lime); color: var(--ink); }

/* ── listing = the sticker sheet ── */
.content { padding: 30px 0 72px; }
.listing__header { margin-bottom: 26px; }
.listing__title { margin: 0; font: 800 clamp(34px, 5vw, 66px)/1 var(--display); letter-spacing: -0.045em; }
.listing__intro { max-width: 64ch; margin: 12px 0 0; color: var(--ink-2); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; color: var(--ink); text-decoration: none; font-weight: 600; }
.toolbar__opt:hover { background: #fff; }
.toolbar__opt.is-active { background: var(--ink); color: #fff; }

.listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 44px 34px; }
.post--card { position: relative; display: flex; flex-direction: column; }
.post__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: #fff; border: 9px solid #fff;
    box-shadow: 0 1px 0 rgb(21 32 26 / 0.06), 0 22px 34px -22px rgb(21 32 26 / 0.55); transition: transform .45s cubic-bezier(.2, .8, .25, 1.35), box-shadow .45s; }
.post--odd .post__media { transform: rotate(-1.6deg); }
.post--even .post__media { transform: rotate(1.4deg); }
.post--card:hover .post__media { transform: translateY(-8px) rotate(-3deg) scale(1.02); box-shadow: 0 34px 44px -26px rgb(21 32 26 / 0.6); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }
.post--card .post__num { position: absolute; top: -12px; right: 10px; z-index: 2; display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 10px; border-radius: 99px;
    background: var(--lime); color: var(--ink); font: 800 13px/1 var(--display); box-shadow: 0 0 0 4px var(--paper); transform: rotate(6deg); }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 18px 6px 0; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; color: var(--ink-3); font-size: 13.5px; }
.post__cat { padding: 3px 9px; border-radius: 6px; background: rgb(21 32 26 / 0.07); color: var(--ink-2); font: 700 10.5px/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.post__cat:hover { background: var(--ink); color: var(--lime); }
.post__title { margin: 0 0 8px; font: 800 23px/1.15 var(--display); letter-spacing: -0.03em; }
.post__title a { color: var(--ink); text-decoration: none; }
.post__title a:hover { background: var(--lime); }
.post__excerpt { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; color: var(--ink); font: 650 14px/1 var(--text); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn--primary:hover { background: var(--green); color: #fff; box-shadow: 0 8px 18px -8px rgb(29 90 55 / 0.7); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
.pager__link { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; color: var(--ink); font: 800 14px/1 var(--display); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.pager__link:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pager__link.is-active { background: var(--lime); box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgb(21 32 26 / 0.5); }

/* ── one post ── */
.post--full { max-width: 1060px; margin: 0 auto; }
.post__header { padding: 8px 0 30px; }
.post--full .post__num { display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--lime); color: var(--ink); font: 800 12px/1 var(--display); }
.post--full .post__title { font: 900 clamp(42px, 7vw, 92px)/0.98 var(--display); letter-spacing: -0.05em; }
.post--full .post__excerpt { max-width: 60ch; color: var(--ink-2); font-size: 18px; }
.post__shot { margin: 0 0 48px; }
.post__zoom { display: block; max-height: 720px; overflow: hidden; border: 12px solid #fff; border-radius: 30px; cursor: zoom-in; transform: rotate(-0.6deg);
    box-shadow: 0 40px 60px -40px rgb(21 32 26 / 0.65); transition: transform .4s cubic-bezier(.2, .8, .25, 1.3); }
.post__zoom:hover { transform: rotate(0) translateY(-4px); }
.post__zoom img { width: 100%; }
.post__caption { margin: 14px 6px 0; color: var(--ink-3); font-size: 13.5px; }
.post__doc { padding: clamp(22px, 4vw, 44px); border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.doc { font-size: 16.5px; }
.doc h2 { display: flex; align-items: center; gap: 12px; margin: 44px 0 14px; font: 800 26px/1.15 var(--display); letter-spacing: -0.035em; }
.doc h2:first-child { margin-top: 0; }
.doc h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--line); flex: 0 0 auto; }
.doc h3 { margin: 30px 0 8px; font: 800 18px var(--display); letter-spacing: -0.02em; }
.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 strong { color: var(--ink); }
.doc code { padding: 1px 6px; border-radius: 6px; background: rgb(21 32 26 / 0.07); }
.doc pre { margin: 0 0 18px; padding: 18px 20px; overflow-x: auto; border-radius: 18px; background: var(--chat); color: #cfe8d6; }
.doc pre code { padding: 0; background: none; color: inherit; font-weight: 400; }
.doc blockquote { margin: 0 0 18px; padding: 12px 18px; border-radius: 18px 18px 18px 6px; background: var(--chat); color: #e9efe9; }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 18px; overflow-x: auto; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.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 { font: 800 11px/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; }
.tags__item::before { content: "#"; color: var(--green); font-weight: 700; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 52px; }
.post__nav-link { padding: 18px 22px; border-radius: 22px 22px 22px 6px; background: var(--chat); color: #fff; font: 800 19px/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; transition: transform .2s; }
.post__nav-link--older { grid-column: 2; text-align: right; border-radius: 22px 22px 6px 22px; background: var(--lime); color: var(--ink); }
.post__nav-link:hover { transform: translateY(-3px); }
.post__nav-label { display: block; margin-bottom: 6px; opacity: .7; font: 600 12px var(--text); letter-spacing: 0.06em; text-transform: uppercase; }
.post__back { color: var(--green); }

.notice { padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.notice--error { box-shadow: inset 0 0 0 2px #e8432a; color: #9c2a14; }

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

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 10px solid #fff; border-radius: 28px; background: var(--paper); color: var(--ink); }
.zoom::backdrop { background: rgb(21 32 26 / 0.6); backdrop-filter: blur(6px); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: var(--paper); }
.zoom__close { padding: 11px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 800 13px/1 var(--display); cursor: pointer; }
.zoom__close:hover { background: var(--green); }
.zoom__scroll { height: calc(94vh - 82px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead__inner { grid-template-columns: 1fr auto; }
    .masthead__tagline { grid-column: 1 / -1; grid-row: 2; }
    .masthead__count { width: 104px; height: 104px; }
    .masthead__num { font-size: 36px; }
}
@media (max-width: 520px) {
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .listing { gap: 36px; }
}
@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%; }
