/* Catalog style "demo45" — the album as a night issue in motion: Instrument Serif, one DEPO yellow, a giant counter, and the list as one sideways row of spreads. Mirrors /demo45/. */
/*
 * Layout: the masthead is the pinned-scene head of the demo — "DEPO." huge on the left, the number
 * of demos as the big yellow counter on the right, ticks under it. The style bar is a thin glass
 * strip. On wide screens the list is a single horizontal row (scroll-snap, inside the page width;
 * the page itself never scrolls sideways) of tall spreads: screenshot on top, a big serif title,
 * a yellow number; on narrow screens it falls back to a column. A post reads like a magazine
 * feature: numbered sections ("01 —") with a hairline, the screenshot framed edge to edge.
 */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Lato:wght@400;700&family=Poppins:wght@500&display=swap");

:root {
    --bg: #121114;
    --bg-2: #1b1a1e;
    --white: #f4f2ee;
    --muted: #a8a49c;
    --hair: rgb(244 242 238 / 0.14);
    --yellow: #ffb500;
    --glass: rgb(30 29 34 / 0.7);
    --serif: "Instrument Serif", Georgia, serif;
    --label: "Poppins", system-ui, sans-serif;
    --body: "Lato", system-ui, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; overflow-x: hidden; color: var(--white); font: 400 16px/1.6 var(--body);
    background: radial-gradient(60% 50% at 85% 10%, rgb(70 154 88 / 0.14), transparent 70%), radial-gradient(50% 40% at 0% 90%, rgb(70 154 88 / 0.1), transparent 70%), var(--bg);
    background-attachment: fixed;
}
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(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--bg); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--bg); font: 500 14px/1.2 var(--label); text-decoration: none; }
.skip:focus { left: 16px; }
.deco { display: none; }
.page { max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 4.5vw, 72px); }

/* masthead: the pinned head */
.masthead { padding: 48px 0 26px; border-bottom: 1px solid var(--hair); }
.masthead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand count" "tagline count"; align-items: end; gap: 14px 40px; }
.brand { grid-area: brand; display: flex; flex-direction: column-reverse; gap: 14px; text-decoration: none; }
.brand__mark { font: 400 clamp(96px, 16vw, 240px)/0.8 var(--serif); letter-spacing: -0.035em; }
.brand__mark::after { content: "."; color: var(--yellow); }
.brand__name { font: 500 12px/1 var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.brand__name::before { content: "01 "; color: var(--yellow); }
.masthead__tagline { grid-area: tagline; max-width: 50ch; margin: 0; color: var(--muted); font-size: 17px; }
.masthead__count { grid-area: count; display: grid; justify-items: end; margin: 0; font: 400 italic 24px/1 var(--serif); color: var(--white); }
.masthead__num { font: 400 normal clamp(90px, 12vw, 180px)/0.78 var(--serif); color: var(--yellow); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.masthead__count::after { content: ""; width: 130px; height: 3px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--yellow) 0 30%, var(--hair) 30%); }

/* style bar: a glass strip */
.stylebar { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 10px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { font: 500 11px/1 var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 8px 12px; overflow-x: auto; white-space: nowrap; border-radius: 6px; background: rgb(0 0 0 / 0.35); }
.stylebar__copy { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--bg); font: 500 14px/1 var(--label); cursor: pointer; }
.stylebar__copy:hover { background: #ffc633; }
.stylebar__copy.is-done { background: var(--white); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 3px 10px; border: 1px solid var(--hair); border-radius: 999px; font: 500 12px/1.5 var(--label); text-decoration: none; color: var(--muted); }
.stylebar__item:hover { border-color: var(--white); color: var(--white); }
.stylebar__item.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.stylebar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; width: 100%; font-size: 14px; }
.stylebar__tools a, .stylebar__upload-toggle { color: var(--yellow); cursor: pointer; }

/* categories: the index line of the banner */
.categories { margin: 30px 0 6px; }
.categories__list { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.categories__link { display: inline-flex; align-items: baseline; gap: 8px; padding: 14px 22px 10px 0; font: 400 24px/1 var(--serif); text-decoration: none; color: var(--muted); }
.categories__link:hover { color: var(--white); }
.categories__link.is-active { color: var(--white); box-shadow: inset 0 2px 0 var(--yellow); }
.categories__count { font: 500 11px/1 var(--label); color: var(--yellow); }

/* list: one sideways row of spreads */
.content { padding: 30px 0 80px; }
.listing__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 30px; margin-bottom: 30px; }
.listing__title { margin: 0; font: 400 clamp(52px, 6vw, 96px)/0.88 var(--serif); letter-spacing: -0.02em; }
.listing__intro { grid-column: 1; max-width: 60ch; margin: 0; color: var(--muted); }
.toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--muted); font: 500 12px/1.4 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 34px; padding: 5px 9px; border-radius: 999px; text-align: center; text-decoration: none; }
.toolbar__opt.is-active { background: var(--yellow); color: var(--bg); }

.listing {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%);
    gap: clamp(24px, 3vw, 48px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 0;
    padding-bottom: 22px;
    scrollbar-width: thin; scrollbar-color: var(--yellow) var(--hair);
}
.post--card { display: flex; flex-direction: column; scroll-snap-align: start; }
.post__media { display: block; overflow: hidden; border-radius: 4px; background: var(--bg-2); aspect-ratio: 4 / 5; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.post--card:hover .post__thumb { transform: scale(1.04); }
.post__body { display: flex; flex: 1; flex-direction: column; padding-top: 20px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; color: var(--muted); font: 500 11px/1.3 var(--label); letter-spacing: 0.18em; text-transform: uppercase; }
.post__num { color: var(--yellow); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--white); }
.post--card .post__title { margin: 0 0 12px; font: 400 clamp(34px, 3vw, 46px)/0.95 var(--serif); letter-spacing: -0.015em; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--yellow); }
.post--card .post__excerpt { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 20px; border: 1px solid var(--hair); border-radius: 999px; font: 500 13px/1 var(--label); text-decoration: none; color: var(--white); }
.btn:hover { border-color: var(--white); }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.btn--primary:hover { background: #ffc633; border-color: #ffc633; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager__link { min-width: 44px; padding: 8px 12px; border-bottom: 1px solid var(--hair); text-align: center; text-decoration: none; font: 400 24px/1 var(--serif); color: var(--muted); }
.pager__link:hover { color: var(--white); }
.pager__link.is-active { color: var(--yellow); border-color: var(--yellow); }

/* one post: a feature */
.post--full { max-width: 1100px; margin: 0 auto; }
.post__header { padding: 16px 0 34px; }
.post--full .post__title { margin: 0; font: 400 clamp(60px, 10vw, 150px)/0.85 var(--serif); letter-spacing: -0.03em; }
.post--full .post__title::after { content: "."; color: var(--yellow); }
.post--full .post__excerpt { max-width: 56ch; margin: 22px 0 26px; color: var(--muted); font: 400 italic 24px/1.35 var(--serif); }
.post__shot { margin: 0 0 56px; }
.post__zoom { display: block; max-height: 760px; overflow: hidden; padding: 0; border: 0; border-radius: 4px; background: var(--bg-2); cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 12px; color: var(--muted); font: 500 11px/1.4 var(--label); letter-spacing: 0.14em; text-transform: uppercase; }
.doc { counter-reset: sec; font-size: 17px; }
.doc h2 { counter-increment: sec; margin: 52px 0 14px; padding-top: 16px; border-top: 1px solid var(--hair); font: 400 40px/1 var(--serif); }
.doc h2::before { content: counter(sec, decimal-leading-zero) " — "; color: var(--yellow); }
.doc h3 { margin: 32px 0 8px; font: 400 italic 28px/1.1 var(--serif); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font: 500 12px/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc a { color: var(--yellow); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; border-radius: 4px; background: rgb(244 242 238 / 0.08); }
.doc pre { margin: 0 0 18px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 6px; background: rgb(0 0 0 / 0.35); }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--yellow); font: 400 italic 22px/1.4 var(--serif); color: var(--muted); }
.doc hr { margin: 32px 0; border: 0; border-top: 1px solid var(--hair); }
.doc-table { margin: 0 0 18px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 9px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.doc th { font: 500 11px/1.3 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 34px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border: 1px solid var(--hair); border-radius: 999px; font: 500 12px/1.4 var(--label); color: var(--muted); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; border-top: 1px solid var(--hair); }
.post__nav-link { padding: 20px 0; font: 400 34px/1 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: 8px; font: 500 11px/1.3 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }

.notice { padding: 20px 24px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg-2); }
.notice--error { border-color: #e0715a; color: #f3a491; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0 44px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 13px; }
.colophon p { margin: 0; }
.colophon a { color: var(--yellow); }

.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); color: var(--white); }
.zoom::backdrop { background: rgb(8 8 10 / 0.88); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: var(--bg); }
.zoom__close { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--bg); font: 500 14px/1 var(--label); cursor: pointer; }
.zoom__scroll { height: calc(94vh - 58px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 900px) {
    .masthead__inner { grid-template-columns: 1fr; grid-template-areas: "brand" "tagline" "count"; }
    .masthead__count { justify-items: start; }
    .listing { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow: visible; scroll-snap-type: none; gap: 56px; }
    .post__media { aspect-ratio: 4 / 3; }
    .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%; }
