/* Catalog style "demo1" — near-black photographer's landing: Lazurski line over heavy Poppins, pill buttons with a white circle, posts as an edge-to-edge masonry wall of tiles. Mirrors /demo1/. */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

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

:root {
    --bg: #0b0b0c;
    --bg-2: #151517;
    --ink: #f5f5f4;
    --serif-ink: #c9c9cc;
    --soft: #9a9aa1;
    --pill: #2a2a2d;
    --pill-hover: #343438;
    --line: #26262a;
    --head: "Poppins", "Lato", system-ui, sans-serif;
    --serif: "Lazurski", "Playfair Display", Georgia, serif;
    color-scheme: dark;
}

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

.skip { position: absolute; left: -9999px; top: 10px; z-index: 20; padding: 10px 18px; border-radius: 999px; background: #fff; color: #111; font-weight: 500; }
.skip:focus { left: 16px; }
.deco { display: none; }

.page { max-width: none; margin: 0; padding: 0; overflow-x: clip; }

/* ── masthead: the centred first screen ─────────────────────────────────── */
.masthead { padding: clamp(56px, 9vw, 120px) 16px clamp(28px, 4vw, 48px); text-align: center; }
.masthead__inner { display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; flex-direction: column-reverse; align-items: center; text-decoration: none; }
.brand__name { margin-bottom: clamp(10px, 1.6vw, 22px); font: 400 clamp(22px, 2.6vw, 40px)/1.1 var(--serif); color: var(--serif-ink); letter-spacing: -0.01em; }
.brand__mark { font: 700 clamp(84px, 15vw, 220px)/0.86 var(--head); letter-spacing: -0.06em; color: var(--ink); }
.masthead__tagline { max-width: 46ch; margin: clamp(20px, 2.4vw, 32px) 0 0; font: 300 clamp(15px, 1.3vw, 20px)/1.55 var(--head); color: var(--soft); }
/* The count is the demo's pill button: number in the white circle. */
.masthead__count {
    display: inline-flex; align-items: center; gap: 16px; margin: clamp(26px, 3vw, 40px) 0 0;
    padding: 5px 26px 5px 5px; border-radius: 999px; background: var(--pill); font: 500 16px/1 var(--head);
}
.masthead__num { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; }

.masthead > *, .masthead__inner > * { animation: d1-rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
.masthead__tagline { animation-delay: 90ms; }
.masthead__count { animation-delay: 180ms; }
@keyframes d1-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── style bar: a quiet strip under the hero ────────────────────────────── */
.stylebar { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stylebar__label { font: 400 20px/1 var(--serif); color: var(--serif-ink); }
.stylebar__value { flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 9px 16px; overflow-x: auto; white-space: nowrap; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.stylebar__copy {
    display: inline-flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px; border: 0; border-radius: 999px;
    background: var(--pill); color: #fff; font: 500 15px/1 var(--head); cursor: pointer; transition: background 200ms ease;
}
.stylebar__copy::before { content: "→"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111; font-weight: 700; transition: transform 250ms ease; }
.stylebar__copy:hover { background: var(--pill-hover); }
.stylebar__copy:hover::before { transform: translateX(3px); }
.stylebar__copy.is-done::before { content: "✓"; }
.stylebar__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; width: 100%; }
.stylebar__item { padding: 2px 0; color: var(--soft); font-size: 13px; text-decoration: none; border-bottom: 1px solid transparent; }
.stylebar__item:hover { color: var(--ink); }
.stylebar__item.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ── categories: a centred row of words ─────────────────────────────────── */
.categories { margin: clamp(28px, 4vw, 48px) 0 0; padding: 0 16px; }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(14px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; color: var(--soft); font: 500 clamp(15px, 1.2vw, 18px)/1.3 var(--head); text-decoration: none; border-bottom: 2px solid transparent; transition: color 200ms ease; }
.categories__link:hover { color: var(--ink); }
.categories__link.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.categories__count { font-size: 12px; font-weight: 400; color: var(--soft); }

/* ── listing ────────────────────────────────────────────────────────────── */
.content { padding: clamp(28px, 4vw, 56px) 0 0; }
.listing__header { padding: 0 16px; margin-bottom: clamp(24px, 3vw, 40px); text-align: center; }
.listing__title { margin: 0; font: 400 clamp(28px, 3.2vw, 46px)/1.1 var(--serif); color: var(--serif-ink); letter-spacing: -0.01em; }
.listing__intro { max-width: 52ch; margin: 10px auto 0; color: var(--soft); font-weight: 300; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 18px; color: var(--soft); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.toolbar__label { padding: 0 8px 0 10px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 34px; height: 30px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.toolbar__opt:hover { background: var(--pill); }
.toolbar__opt.is-active { background: #fff; color: #111; font-weight: 600; }

/* The wall: CSS columns, no gaps, tiles of mixed heights like the demo. */
.listing { columns: 3; column-gap: 0; position: relative; }
.post--card { position: relative; display: block; margin: 0; overflow: hidden; break-inside: avoid; background: var(--bg-2); }
.post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.post--card:nth-child(3n + 2) .post__media { aspect-ratio: 1 / 1; }
.post--card:nth-child(5n + 4) .post__media { aspect-ratio: 5 / 4; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1200ms ease, filter 600ms ease; filter: brightness(0.9); }
.post--card:hover .post__thumb { transform: scale(1.03); filter: brightness(1); }
/* Meta and title sit on the photo like the demo's tile captions; excerpt and buttons below it. */
.post--card .post__body { display: block; position: relative; padding: 0 clamp(16px, 2vw, 28px) clamp(18px, 2vw, 28px); }
.post--card .post__meta, .post--card .post__title { position: relative; z-index: 1; }
.post--card .post__meta { margin-top: -96px; }
.post--card .post__title { margin-bottom: 14px; text-shadow: 0 2px 18px rgb(0 0 0 / 0.6); }
.post--card .post__media { position: relative; }
.post--card .post__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, var(--bg-2)); pointer-events: none; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; color: #cfcfd3; font-size: 13px; }
.post__num { color: #fff; font-weight: 600; }
.post__cat { text-decoration: none; }
.post__cat:hover { text-decoration: underline; }
.post__title { margin: 0 0 8px; font: 700 clamp(24px, 2.3vw, 34px)/1.02 var(--head); letter-spacing: -0.035em; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post--card .post__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 16px; color: #d4d4d8; font-weight: 300; font-size: 15px; line-height: 1.5; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 500 15px/1.2 var(--head); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 5px; }
.btn:hover { text-decoration-color: #fff; }
.btn--primary {
    gap: 12px; padding: 4px 20px 4px 4px; border-radius: 999px; background: var(--pill); text-decoration: none;
    transition: background 200ms ease;
}
.btn--primary::before { content: "→"; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; font-weight: 700; transition: transform 250ms ease; }
.btn--primary [aria-hidden="true"] { display: none; }
.btn--primary:hover { background: var(--pill-hover); }
.btn--primary:hover::before { transform: translateX(4px); }


.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 16px 0; }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--pill); text-decoration: none; }
.pager__link:hover { background: var(--pill-hover); }
.pager__link.is-active { background: #fff; color: #111; font-weight: 600; }

/* ── one post ───────────────────────────────────────────────────────────── */
.post--full { max-width: none; }
.post__header { display: flex; flex-direction: column; align-items: center; max-width: 900px; margin: 0 auto; padding: 0 16px clamp(28px, 4vw, 48px); text-align: center; }
.post--full .post__meta { justify-content: center; margin-bottom: 14px; color: var(--soft); font: 400 clamp(18px, 1.8vw, 24px)/1.2 var(--serif); }
.post--full .post__num { color: var(--serif-ink); font-weight: 400; }
.post--full .post__title { margin: 0; font-size: clamp(48px, 8vw, 112px); line-height: 0.96; letter-spacing: -0.05em; }
.post--full .post__excerpt { max-width: 52ch; margin: clamp(18px, 2vw, 28px) 0 0; color: var(--soft); font: 300 clamp(16px, 1.3vw, 20px)/1.55 var(--head); }
.post--full .post__actions { justify-content: center; margin-top: clamp(22px, 3vw, 36px); }
.post__shot { max-width: 1280px; margin: 0 auto clamp(40px, 5vw, 72px); padding: 0 16px; }
.post__zoom { position: relative; display: block; max-height: 760px; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.post__zoom::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.post__zoom img { width: 100%; transition: transform 1200ms ease; }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { margin-top: 10px; color: var(--soft); font-size: 13px; text-align: center; }

.doc { max-width: 760px; margin: 0 auto; padding: 0 16px; color: #dcdce0; font: 300 17px/1.7 var(--head); }
.doc h2 { margin: 56px 0 14px; color: var(--ink); font: 700 clamp(28px, 3vw, 40px)/1.05 var(--head); letter-spacing: -0.04em; }
.doc > :first-child { margin-top: 0; }
.doc h3 { margin: 32px 0 8px; color: var(--ink); font: 600 21px/1.25 var(--head); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; color: var(--ink); font: 600 17px/1.3 var(--head); }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.45); text-underline-offset: 4px; }
.doc a:hover { text-decoration-color: #fff; }
.doc code { padding: 1px 7px; border-radius: 999px; background: var(--pill); color: #f0f0f2; }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.doc pre code { padding: 0; background: none; border-radius: 0; }
.doc blockquote { margin: 0 0 20px; padding: 0 0 0 22px; border-left: 1px solid #55555c; color: var(--serif-ink); font: 400 19px/1.55 var(--serif); }
.doc blockquote p { margin-bottom: 4px; }
.doc hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.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 { color: var(--ink); font-weight: 600; background: var(--bg-2); }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 40px auto 0; padding: 0 16px; list-style: none; }
.tags__item { padding: 6px 14px; border-radius: 999px; background: var(--pill); font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1280px; margin: clamp(48px, 6vw, 80px) auto 0; border-top: 1px solid var(--line); }
.post__nav-link { padding: clamp(24px, 3vw, 40px) 16px; font: 700 clamp(20px, 2.4vw, 32px)/1.1 var(--head); letter-spacing: -0.03em; text-decoration: none; text-align: center; transition: background 200ms ease; }
.post__nav-link:hover { background: var(--bg-2); }
.post__nav-link--newer { border-right: 1px solid var(--line); }
.post__nav-link--older { grid-column: 2; border-right: 0; }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--soft); font: 400 18px/1.2 var(--serif); letter-spacing: 0; }

.notice { max-width: 640px; margin: 0 auto; padding: 32px 24px; text-align: center; color: var(--soft); font: 400 22px/1.4 var(--serif); }
.notice p { margin: 0; }
.notice a { color: var(--ink); text-underline-offset: 4px; }
.notice--error { color: #ff8f8f; }

.colophon { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(56px, 7vw, 96px); padding: 32px 16px 48px; border-top: 1px solid var(--line); background: #18171a; color: var(--soft); font-size: 13px; text-align: center; }
.colophon p { margin: 0; }
.colophon a { color: var(--ink); text-underline-offset: 4px; }

/* ── screenshot dialog ──────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); color: var(--ink); }
.zoom::backdrop { background: rgb(0 0 0 / 0.86); }
.zoom__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px; background: var(--bg); }
.zoom__close { display: inline-flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px; border: 0; border-radius: 999px; background: var(--pill); color: #fff; font: 500 15px/1 var(--head); cursor: pointer; }
.zoom__close::before { content: "×"; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #111; font-size: 20px; }
.zoom__scroll { height: calc(94vh - 56px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 1100px) { .listing { columns: 2; } }
@media (max-width: 620px) {
    .listing { columns: 1; }
    .post--card .post__media, .post--card:nth-child(n) .post__media { aspect-ratio: 4 / 5; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--newer { border-right: 0; border-bottom: 1px solid var(--line); }
    .post__nav-link--older { grid-column: auto; }
    .stylebar__value { flex-basis: 100%; }
}
@media (hover: none) { .post--card:hover .post__thumb { transform: none; } }
@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%; }
