/* Catalog style "demo4" — DEPO brand, improved: banner hero with the headline on the right and three fanned covers, categories as a sticky Lazurski role switcher, posts in a staggered two-column grid like the "People of DEPO" prints. Mirrors /demo4/. */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600&display=swap");

@font-face {
    font-family: "Lazurski";
    src: url("/_fonts/LazurskiBold.woff2") format("woff2"), url("/_fonts/LazurskiBold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #18171a;
    --surface: #222125;
    --surface-3: #2e2d32;
    --text: #ffffff;
    --muted: #a8a8b0;
    --yellow: #ffb500;
    --green: #469a58;
    --green-btn: #2f7a40;
    --line: #333238;
    --serif: "Lazurski", "Playfair Display", Georgia, serif;
    --font: "Lato", system-ui, sans-serif;
    --head: "Poppins", "Lato", sans-serif;
    --edge: clamp(16px, 4vw, 64px);
    --hero-h: clamp(520px, 72vh, 760px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.86em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

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

/* Page grid: hero and style bar full width, then a sticky aside (categories) beside the main column. */
.page {
    position: relative; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 88px); max-width: none; margin: 0; padding: 0; overflow-x: clip;
}
.masthead, .stylebar, .colophon { grid-column: 1 / -1; }
.categories { grid-column: 1; padding-left: var(--edge); }
.content { grid-column: 2; padding-right: var(--edge); }

/* ── masthead: the hero (photo left, headline on the right) ────────────── */
.masthead {
    position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
    min-height: var(--hero-h); padding: 64px var(--edge);
    background:
        linear-gradient(90deg, rgb(12 14 12 / 0) 30%, rgb(12 14 12 / 0.74) 60%, rgb(12 14 12 / 0.88)),
        linear-gradient(to bottom, transparent 70%, var(--bg)),
        url("/_img/site/media/c217eb6b8ce0cfde7dbbd4d7b7c4f37dbac2fdc2.png") 38% 50% / cover no-repeat;
}
.masthead__inner { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 560px; }
.brand { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.brand__mark { font: 700 clamp(64px, 8vw, 120px)/0.92 var(--serif); color: var(--yellow); letter-spacing: -0.01em; }
.brand__name { font: 600 16px/1 var(--head); color: #fff; }
.masthead__tagline { max-width: 40ch; margin: 0; font: 400 clamp(17px, 1.3vw, 20px)/1.55 var(--font); color: #fff; }
.masthead__count { margin: 0; color: var(--muted); font-size: 15px; }
.masthead__num { margin-right: 6px; font: 700 28px/1 var(--serif); color: var(--yellow); }
.masthead__inner > * { animation: d4-rise 800ms cubic-bezier(.2, .7, .2, 1) both; }
.masthead__tagline { animation-delay: 110ms; }
.masthead__count { animation-delay: 220ms; }
@keyframes d4-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Three covers fanned at the hero's bottom-right edge. */
.deco { position: absolute; z-index: 2; top: calc(var(--hero-h) - clamp(110px, 10vw, 160px) - 40px); width: clamp(88px, 8vw, 128px); aspect-ratio: 4 / 5; border-radius: 4px; background: center / cover no-repeat var(--surface); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.8); pointer-events: none; animation: d4-fan 900ms cubic-bezier(.2, .7, .2, 1) both; }
.deco--1 { right: calc(var(--edge) + clamp(130px, 12vw, 190px)); background-image: url("/_img/photos/photo-02.jpg"); transform: rotate(-6deg) translateY(10px); animation-delay: 400ms; }
.deco--2 { right: calc(var(--edge) + clamp(66px, 6vw, 96px)); background-image: url("/_img/photos/photo-05.jpg"); transform: translateY(-4px); animation-delay: 520ms; z-index: 3; }
.deco--3 { right: var(--edge); background-image: url("/_img/photos/photo-12.jpg"); transform: rotate(6deg) translateY(-18px); animation-delay: 640ms; }
@keyframes d4-fan { from { opacity: 0; } to { opacity: 1; } }

/* ── style bar: filter chips like the cover wall's magazine filter ─────── */
.stylebar { padding: 0 var(--edge); margin: 8px 0 clamp(48px, 6vw, 88px); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.stylebar__label { font: 700 22px/1 var(--serif); color: var(--yellow); }
.stylebar__value { flex: 1 1 300px; min-width: 0; padding: 10px 16px; overflow-x: auto; white-space: nowrap; border-radius: 999px; background: var(--surface); color: #f1f1f3; }
.stylebar__copy { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green-btn); color: #fff; font: 600 15px/1 var(--head); cursor: pointer; transition: background 200ms ease, transform 150ms ease; }
.stylebar__copy:hover { background: #276836; }
.stylebar__copy:active { transform: scale(0.97); }
.stylebar__copy.is-done { background: var(--yellow); color: #18171a; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.stylebar__item { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text); font: 500 13px/1 var(--head); text-decoration: none; transition: background 200ms ease; }
.stylebar__item:hover { background: var(--surface-3); }
.stylebar__item.is-active { background: var(--yellow); color: #18171a; }

/* ── categories: the role switcher, sticky in the aside ────────────────── */
.categories { position: sticky; top: 24px; align-self: start; margin: 0; }
.categories::before { content: "Who you are on DEPO"; display: block; margin-bottom: 18px; font: 700 15px/1.3 var(--serif); color: var(--muted); }
.categories__list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; padding: 0; list-style: none; }
.categories__link { position: relative; display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 0; font: 700 clamp(20px, 1.7vw, 26px)/1.15 var(--serif); color: #8f8f97; white-space: nowrap; text-decoration: none; transition: color 200ms ease; }
.categories__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 300ms cubic-bezier(.2, .7, .2, 1); }
.categories__link:hover { color: #fff; }
.categories__link.is-active { color: var(--yellow); }
.categories__link.is-active::after { transform: scaleX(1); }
.categories__count { font: 500 13px/1 var(--head); color: var(--muted); }

/* ── listing ────────────────────────────────────────────────────────────── */
.content { padding-bottom: clamp(72px, 9vw, 140px); min-width: 0; }
.listing__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 32px; margin-bottom: 40px; }
.listing__title { margin: 0; font: 700 clamp(36px, 4.2vw, 64px)/1.02 var(--serif); color: var(--yellow); }
.listing__intro { grid-column: 1 / -1; grid-row: 2; max-width: 52ch; margin: 0; color: var(--muted); font-size: 17px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 36px; height: 32px; border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); font: 500 13px/1 var(--head); }
.toolbar__opt.is-active { background: var(--yellow); color: #18171a; }

/* Staggered prints: every second post drops, like the people grid. */
.listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(20px, 2.4vw, 36px); padding-bottom: 72px; }
.post--even { transform: translateY(72px); }
.post--card { display: flex; flex-direction: column; }
.post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.post--card:hover .post__thumb { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; padding-top: 18px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 8px; color: var(--muted); font: 500 13px/1.4 var(--head); }
.post__num { color: var(--yellow); }
.post__cat { text-decoration: none; color: #fff; }
.post__cat:hover { text-decoration: underline; }
.post__title { margin: 0 0 10px; font: 700 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); color: #fff; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--yellow); }
.post__excerpt { margin: 0 0 18px; color: #d6d6da; font-size: 16px; line-height: 1.55; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--text); font: 600 15px/1.2 var(--font); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgb(255 255 255 / 0.4); transition: text-decoration-color 200ms ease; }
.btn:hover { text-decoration-color: currentColor; }
.btn--primary { padding: 0 24px; border-radius: 999px; background: var(--green-btn); font-family: var(--head); text-decoration: none; transition: background 200ms ease, transform 150ms ease; }
.btn--primary:hover { background: #276836; }
.btn--primary:active { transform: scale(0.97); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); text-decoration: none; font: 500 14px/1 var(--head); }
.pager__link:hover { background: var(--surface-3); }
.pager__link.is-active { background: var(--yellow); color: #18171a; }

/* ── one post ───────────────────────────────────────────────────────────── */
.post--full { max-width: 900px; }
.post__header { padding: 0 0 36px; }
.post--full .post__title { margin: 0 0 18px; font-size: clamp(44px, 5.6vw, 92px); line-height: 0.95; color: var(--yellow); }
.post--full .post__excerpt { max-width: 56ch; font-size: clamp(17px, 1.3vw, 20px); color: #fff; }
.post--full .post__actions { margin-top: 8px; }
.post__shot { margin: 0 0 48px; }
.post__zoom { display: block; max-height: 680px; overflow: hidden; border-radius: 4px; background: var(--surface); cursor: zoom-in; }
.post__zoom img { width: 100%; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { margin-top: 10px; color: var(--muted); font-size: 13px; }

/* The doc as "What DEPO stands on": serif white heads, light body. */
.doc { font-size: 17px; line-height: 1.65; color: #d6d6da; }
.doc h2 { margin: 56px 0 14px; font: 700 clamp(28px, 3vw, 44px)/1.05 var(--serif); color: #fff; }
.doc > :first-child { margin-top: 0; }
.doc h3 { margin: 32px 0 8px; font: 600 20px/1.2 var(--head); color: #fff; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font: 600 16px/1.3 var(--head); color: #fff; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; max-width: 68ch; }
.doc ul { padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.doc strong { color: #fff; }
.doc a { color: var(--yellow); text-underline-offset: 4px; }
.doc code { padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: #f1f1f3; }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border-radius: 6px; background: #111013; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 20px; padding: 4px 0 4px 22px; border-left: 3px solid var(--yellow); color: #fff; font-size: 18px; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 20px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font: 700 15px/1.2 var(--serif); color: var(--yellow); border-bottom: 2px solid var(--green); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 14px; border-radius: 999px; background: var(--surface); font: 500 13px/1.2 var(--head); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post__nav-link { font: 700 clamp(20px, 2vw, 28px)/1.15 var(--serif); text-decoration: none; }
.post__nav-link:hover { color: var(--yellow); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 4px; font: 500 13px/1.2 var(--head); color: var(--muted); }

.notice { padding: 24px; border-radius: 6px; background: var(--surface); }
.notice p { margin: 0; }
.notice a { color: var(--yellow); }
.notice--error { box-shadow: inset 4px 0 0 #e5675a; color: #ffb3aa; }

/* Colophon: the closing green band. */
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: clamp(56px, 7vw, 96px) var(--edge) 40px; background: var(--green); color: #fff; font-size: 14px; }
.colophon::before { content: "Your next cover starts here"; width: 100%; max-width: 18ch; font: 700 clamp(32px, 4.4vw, 64px)/1 var(--serif); }
.colophon p { margin: 0; }
.colophon code { color: #fff; }
.colophon a { font-weight: 700; }
.colophon :focus-visible { outline-color: #fff; }

/* ── screenshot dialog ──────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 8px; background: var(--bg); color: #fff; }
.zoom::backdrop { background: rgb(12 14 12 / 0.86); }
.zoom__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px; background: var(--bg); }
.zoom__close { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--yellow); color: #18171a; font: 600 14px/1 var(--head); cursor: pointer; }
.zoom__scroll { height: calc(94vh - 60px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 991px) {
    .page { grid-template-columns: minmax(0, 1fr); }
    .categories, .content { grid-column: 1; padding: 0 var(--edge); }
    .categories { position: static; margin-bottom: 40px; }
    .categories::before { margin-bottom: 8px; }
    .categories__list { flex-direction: row; flex-wrap: nowrap; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge); }
    .categories__link { flex: none; white-space: nowrap; font-size: 24px; }
    .masthead { grid-template-columns: minmax(0, 1fr); align-items: end; background-position: 38% 50%, 0 0, 30% 30%; }
    .masthead { background: linear-gradient(to bottom, rgb(12 14 12 / 0.1) 20%, rgb(12 14 12 / 0.8) 70%, var(--bg)), url("/_img/site/media/c217eb6b8ce0cfde7dbbd4d7b7c4f37dbac2fdc2.png") 30% 30% / cover no-repeat; }
    .masthead__inner { grid-column: 1; }
    .deco { display: none; }
    .listing__header { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .listing { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
    .post--even { transform: none; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.doc p, .doc li, .doc blockquote, .post__excerpt { overflow-wrap: break-word; }

/* 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%; }
