/* Catalog style "demo44" — the album as a programme of wide screens: near-black, letterboxed 16:10 frames dimmed until you point at them, huge uppercase Poppins titles, Lato credits, a yellow kicker. Mirrors /demo44/. */
/*
 * Layout: the masthead is a letterboxed title card (black bars top and bottom, "DEPO" huge, the
 * count as credits). The style bar and categories are thin rows between hairlines, like the
 * credits of a programme. Each post is one wide screen: a letterboxed frame on one side (dimmed,
 * lit on hover / focus) and the title set huge on the other; the sides alternate. One post: the
 * screenshot as a letterboxed screen, the doc as a narrow column of credits below.
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;600&display=swap");

:root {
    --bg: #111013;
    --bar: #070708;
    --panel: #1b1a1e;
    --line: rgb(255 255 255 / 0.12);
    --line-2: rgb(255 255 255 / 0.26);
    --ink: #fff;
    --ink-2: rgb(255 255 255 / 0.72);
    --ink-3: rgb(255 255 255 / 0.55);
    --yellow: #ffb500;
    --green: #469a58;
    --green-2: #53b167;
    --spot: #53f57e;
    --head: "Poppins", "Lato", system-ui, sans-serif;
    --text: "Lato", system-ui, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: clip; background: radial-gradient(ellipse 70% 40% at 50% 0%, rgb(83 245 126 / 0.08), transparent 70%), var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.88em/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: rgb(255 181 0 / 0.35); }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: #111; font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }
.deco { display: none; }

.page { max-width: 1440px; margin: 0 auto; padding: 20px clamp(16px, 3vw, 40px) 0; }

/* ── masthead: a letterboxed title card ────────────────────────────────────────────────────── */
.masthead { position: relative; overflow: hidden; border-radius: 6px; background: radial-gradient(ellipse 60% 80% at 75% 40%, rgb(83 245 126 / 0.18), transparent 70%), #0c0c0f; }
.masthead::before, .masthead::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: var(--bar); }
.masthead::before { top: 0; }
.masthead::after { bottom: 0; }
.masthead__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; min-height: clamp(300px, 34vw, 460px); padding: 60px clamp(20px, 5vw, 72px) 54px; }
.brand { grid-column: 1 / -1; align-self: center; display: flex; flex-direction: column; text-decoration: none; }
.brand__name { order: -1; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 11px/1 var(--text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2); }
.brand__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spot); box-shadow: 0 0 12px rgb(83 245 126 / 0.8); }
.brand__mark { font: 600 clamp(80px, 15vw, 220px)/0.8 var(--head); letter-spacing: -0.06em; margin-left: -0.05em; text-transform: uppercase; }
.masthead__tagline { max-width: 46ch; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.masthead__count { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font: 700 10.5px/1.2 var(--text); letter-spacing: 0.2em; text-transform: uppercase; text-align: right; }
.masthead__num { display: block; color: #fff; font: 600 34px/1 var(--head); letter-spacing: -0.02em; }

/* ── style bar + categories: credits rows ──────────────────────────────────────────────────── */
.stylebar { margin-top: 28px; padding: 16px 0; border-block: 1px solid var(--line); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { font: 700 11px/1 var(--text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 9px 14px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.stylebar__copy { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 500 14px/1 var(--head); cursor: pointer; }
.stylebar__copy:hover { background: var(--green-2); }
.stylebar__copy.is-done { background: var(--yellow); color: #111; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; }
.stylebar__item { font: 600 12px/1.8 var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; }
.stylebar__item:hover { color: #fff; }
.stylebar__item.is-active { color: var(--yellow); }
.stylebar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; width: 100%; font-size: 13px; color: var(--ink-2); }
.stylebar__guide, .stylebar__download { color: var(--ink-2); text-underline-offset: 3px; }
.stylebar__guide:hover, .stylebar__download:hover { color: #fff; }

.categories { padding: 14px 0; border-bottom: 1px solid var(--line); }
.categories__list { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: baseline; gap: 7px; min-height: 36px; align-items: center; font: 600 13px/1 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent; }
.categories__link:hover { color: #fff; }
.categories__link.is-active { color: #fff; border-bottom-color: var(--yellow); }
.categories__count { font: 700 10px/1 var(--text); color: var(--ink-3); }

/* ── listing: wide screens ─────────────────────────────────────────────────────────────────── */
.content { padding: clamp(48px, 6vw, 88px) 0 64px; }
.listing__header { margin-bottom: 36px; }
.listing__title { margin: 0; font: 600 clamp(36px, 5vw, 72px)/0.95 var(--head); letter-spacing: -0.045em; text-transform: uppercase; }
.listing__intro { max-width: 62ch; 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: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; font: 700 11px/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; }
.toolbar__opt { min-width: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-align: center; text-decoration: none; }
.toolbar__opt.is-active { border-color: var(--yellow); background: var(--yellow); color: #111; }

.listing { display: grid; gap: clamp(36px, 5vw, 72px); }
.post--card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); }
.post--even .post__media { order: 2; }
.post__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--panel); }
.post__media::before, .post__media::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 5%; background: var(--bar); transition: height 0.6s var(--ease); }
.post__media::before { top: 0; }
.post__media::after { bottom: 0; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(0.62) saturate(0.85); transform: scale(1.03); transition: filter 0.7s ease, transform 1.2s var(--ease); }
.post--card:hover .post__thumb, .post--card:focus-within .post__thumb { filter: none; transform: scale(1); }
.post--card:hover .post__media::before, .post--card:hover .post__media::after { height: 0; }
.post__body { min-width: 0; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; color: var(--ink-3); font: 700 10.5px/1.3 var(--text); letter-spacing: 0.2em; text-transform: uppercase; }
.post__num { color: var(--yellow); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: #fff; }
.post__title { margin: 0 0 14px; font: 600 clamp(34px, 4.2vw, 64px)/0.92 var(--head); letter-spacing: -0.045em; text-transform: uppercase; overflow-wrap: anywhere; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--yellow); }
.post__excerpt { max-width: 52ch; margin: 0 0 20px; color: var(--ink-2); }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: #fff; font: 500 14px/1 var(--head); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: rgb(255 255 255 / 0.55); }
.btn--primary { border-color: var(--green); background: var(--green); }
.btn--primary:hover { border-color: var(--green-2); background: var(--green-2); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pager__link { min-width: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: 600 13px/1.2 var(--head); text-align: center; text-decoration: none; }
.pager__link:hover { border-color: var(--line-2); color: #fff; }
.pager__link.is-active { border-color: var(--yellow); background: var(--yellow); color: #111; }

/* ── one post ──────────────────────────────────────────────────────────────────────────────── */
.post--full { max-width: 1200px; margin: 0 auto; }
.post__header { padding: 8px 0 30px; }
.post--full .post__title { font-size: clamp(44px, 7.5vw, 112px); line-height: 0.86; margin-bottom: 18px; }
.post--full .post__excerpt { max-width: 62ch; font-size: 18px; }
.post__shot { margin: 0 0 48px; }
.post__zoom { position: relative; display: block; max-height: 720px; overflow: hidden; border-radius: 6px; cursor: zoom-in; }
.post__zoom::before, .post__zoom::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 18px; background: var(--bar); }
.post__zoom::before { top: 0; }
.post__zoom::after { bottom: 0; }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 10px; color: var(--ink-3); font: 700 10.5px/1.4 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.post__doc { max-width: 780px; margin: 0 auto; }
.doc { font-size: 17px; color: rgb(255 255 255 / 0.86); }
.doc h2 { display: flex; align-items: center; gap: 14px; margin: 48px 0 14px; font: 700 12px/1 var(--text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow); }
.doc h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.doc h3 { margin: 30px 0 8px; font: 600 21px/1.2 var(--head); color: #fff; }
.doc h4, .doc h5, .doc h6 { margin: 22px 0 6px; font: 600 16px/1.3 var(--head); }
.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(255 255 255 / 0.08); }
.doc pre { margin: 0 0 18px; padding: 18px 20px; overflow-x: auto; border-block: 6px solid var(--bar); background: var(--panel); color: #e8eee9; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--yellow); color: var(--ink-2); }
.doc hr { margin: 30px 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: 14.5px; }
.doc th, .doc td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font: 700 10.5px/1.3 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 16px; max-width: 780px; margin: 30px auto 0; padding: 0; list-style: none; }
.tags__item { font: 600 12px/1.6 var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tags__item::before { content: "# "; color: var(--yellow); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post__nav-link { font: 600 clamp(20px, 2.2vw, 28px)/1.05 var(--head); letter-spacing: -0.02em; text-transform: uppercase; 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: 6px; color: var(--ink-3); font: 700 10.5px/1 var(--text); letter-spacing: 0.2em; }
.post__back { display: inline-block; margin-top: 18px; color: var(--ink-2); }

.notice { padding: 20px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.notice--error { border-color: rgb(239 68 68 / 0.6); color: #fecaca; }

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

.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 6px; background: var(--bar); color: #fff; }
.zoom::backdrop { background: rgb(0 0 0 / 0.88); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: var(--bar); }
.zoom__close { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 500 14px/1 var(--head); cursor: pointer; }
.zoom__scroll { height: calc(94vh - 62px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead__inner { grid-template-columns: 1fr; }
    .masthead__count { text-align: left; }
    .post--card { grid-template-columns: 1fr; }
    .post--even .post__media { order: 0; }
    .post__thumb { filter: brightness(0.85); }
}
@media (max-width: 520px) {
    .page { padding-inline: 16px; }
    .masthead::before, .masthead::after { height: 10px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@media (hover: none) {
    .post__thumb { filter: none; }
}
@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%; }
