/* Catalog style "demo12" — through the lens: deep green dark, a photo inside the DEPO letters, every demo seen through a round aperture. Mirrors /demo12/. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap");

:root {
    --ground: #0b1a12;
    --field: #10261a;
    --moss: #173823;
    --green: #469a58;
    --ink: #eef0ea;
    --soft: #b8c3b9;
    --yellow: #ffb500;
    --dark: #14130f;
    --font: "Archivo", "Lato", system-ui, sans-serif;
    --edge: clamp(16px, 3.4vw, 56px);
    --ease: cubic-bezier(.2, .7, .1, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.5 var(--font); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.84em/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

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

.page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--edge); }

/* ── masthead: the word is a window onto the banner photograph ─────────────────────────────── */
.masthead { padding: clamp(48px, 8vw, 120px) 0 clamp(28px, 4vw, 56px); text-align: center; }
.masthead__inner { display: flex; flex-direction: column; align-items: center; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand__mark {
    display: block; padding: 0 0.04em;
    font: 900 clamp(96px, 23vw, 360px)/0.82 var(--font); font-stretch: 125%; letter-spacing: -0.04em;
    color: var(--moss);
    background: url("/_img/site/media/c217eb6b8ce0cfde7dbbd4d7b7c4f37dbac2fdc2.png") 62% 38% / cover no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand__name { margin-top: clamp(14px, 2vw, 24px); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.masthead__tagline { max-width: 34ch; margin: 18px auto 0; color: var(--soft); font-size: clamp(17px, 1.3vw, 19px); }
.masthead__count { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font-size: 15px; }
.masthead__num {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    border: 2px solid var(--yellow); color: var(--ink); font-size: 18px; font-weight: 800; font-stretch: 112%;
}

/* ── style bar: the f-stop strip ───────────────────────────────────────────────────────────── */
.stylebar { margin: 0 auto; max-width: 980px; }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 10px 10px 10px 22px; border-radius: 34px; background: var(--field); border: 1px solid var(--moss); }
.stylebar__label { color: var(--soft); font-size: 15px; font-weight: 600; }
.stylebar__value { flex: 1 1 260px; min-width: 0; padding: 12px 18px; overflow-x: auto; white-space: nowrap; border-radius: 999px; background: var(--ground); color: var(--ink); }
.stylebar__copy {
    min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--dark);
    font: 700 16px/1 var(--font); font-stretch: 105%; cursor: pointer; transition: background 220ms ease, transform 160ms ease;
}
.stylebar__copy:hover { background: var(--ink); }
.stylebar__copy:active { transform: scale(0.96); }
.stylebar__copy.is-done { background: var(--green); color: #fff; }
.stylebar__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; padding: 4px 0 2px; }
.stylebar__item { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--soft); font-size: 14px; text-decoration: none; transition: background 200ms ease, color 200ms ease; }
.stylebar__item:hover { color: var(--ink); background: var(--moss); }
.stylebar__item.is-active { background: var(--ink); color: var(--ground); font-weight: 700; }

/* ── categories: the role pills of the demo ────────────────────────────────────────────────── */
.categories { margin: clamp(36px, 5vw, 64px) 0 0; }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.categories__link {
    display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
    border: 1px solid rgb(238 240 234 / 0.28); font-size: 16px; font-weight: 600; text-decoration: none;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.categories__link:hover { border-color: var(--ink); }
.categories__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.categories__count { font-size: 13px; font-weight: 800; color: var(--yellow); }
.categories__link.is-active .categories__count { color: var(--moss); }

/* ── listing: a grid of apertures ──────────────────────────────────────────────────────────── */
.content { padding: clamp(40px, 6vw, 88px) 0 96px; }
.listing__header { margin-bottom: clamp(40px, 6vw, 80px); text-align: center; }
.listing__title { margin: 0; font: 800 clamp(42px, 6.2vw, 108px)/0.92 var(--font); font-stretch: 112%; letter-spacing: -0.035em; text-wrap: balance; }
.listing__intro { max-width: 40ch; margin: 16px auto 0; color: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 32px; margin-top: 24px; color: var(--soft); font-size: 15px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--moss); font-weight: 700; text-decoration: none; }
.toolbar__opt:hover { border-color: var(--ink); color: var(--ink); }
.toolbar__opt.is-active { border: 2px solid var(--yellow); color: var(--ink); }

.listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 88px) clamp(24px, 4vw, 72px); }
.post--card { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.post__media {
    position: relative; display: block; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%;
    background: var(--field); isolation: isolate;
}
/* the lens ring */
.post__media::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgb(238 240 234 / 0.22); transition: inset 500ms var(--ease), border-color 300ms ease; pointer-events: none; }
.post__thumb {
    width: 100%; height: 100%; object-fit: cover; object-position: 30% top; border-radius: 50%;
    clip-path: circle(42% at 50% 50%); transform: scale(1.12);
    transition: clip-path 700ms var(--ease), transform 900ms var(--ease);
}
.post--card:hover .post__thumb, .post--card:focus-within .post__thumb { clip-path: circle(50% at 50% 50%); transform: scale(1); }
.post--card:hover .post__media::after, .post--card:focus-within .post__media::after { inset: -16px; border-color: var(--yellow); }
.post__body { display: flex; flex: 1; flex-direction: column; align-items: center; width: 100%; padding-top: 30px; }
.post__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0 0 10px; color: var(--soft); font-size: 14px; }
.post__num { color: var(--yellow); font-weight: 800; font-stretch: 112%; }
.post__cat { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.post__cat:hover { color: var(--ink); }
.post__title { margin: 0 0 10px; font: 800 clamp(28px, 2.4vw, 40px)/0.98 var(--font); font-stretch: 112%; letter-spacing: -0.03em; text-wrap: balance; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--yellow); }
.post__excerpt { max-width: 34ch; margin: 0 0 22px; color: var(--soft); font-size: 16px; }
.post__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin: auto 0 0; }
.btn {
    display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1.2 var(--font);
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--yellow);
    transition: color 200ms ease, text-underline-offset 200ms ease, background 220ms ease;
}
.btn:hover { color: var(--yellow); text-underline-offset: 10px; }
.btn--primary { justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--yellow); color: var(--dark); text-decoration: none; font-stretch: 105%; }
.btn--primary:hover { background: var(--ink); color: var(--dark); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 88px; }
.pager__link { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--moss); font-weight: 800; font-stretch: 112%; text-decoration: none; transition: border-color 200ms ease; }
.pager__link:hover { border-color: var(--ink); }
.pager__link.is-active { border: 2px solid var(--yellow); background: var(--field); }
.pager__link--prev, .pager__link--next { width: auto; padding: 0 22px; border-radius: 999px; font-weight: 700; }

/* ── one post: the shot opens like an iris ────────────────────────────────────────────────── */
.post--full { max-width: 1120px; margin: 0 auto; }
.post__header { padding-bottom: clamp(40px, 5vw, 64px); text-align: center; }
.post--full .post__meta { margin-bottom: 18px; }
.post--full .post__title { font-size: clamp(52px, 8vw, 140px); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 22px; }
.post--full .post__excerpt { max-width: 46ch; margin: 0 auto 30px; font-size: clamp(18px, 1.4vw, 20px); }
.post__shot { margin: 0 0 clamp(56px, 7vw, 96px); }
.post__zoom {
    display: block; max-height: 820px; overflow: hidden; cursor: zoom-in; background: var(--field);
    border-radius: 40px; outline: 1px solid rgb(238 240 234 / 0.22); outline-offset: 12px;
}
.post__zoom:hover { outline-color: var(--yellow); }
.post__zoom:focus-visible { outline: 3px solid var(--yellow); }
.post__zoom img { width: 100%; transition: transform 900ms var(--ease); }
.post__zoom:hover img { transform: scale(1.02); }
.post__caption { margin-top: 14px; color: var(--soft); font-size: 15px; text-align: center; }

.doc { max-width: 760px; margin: 0 auto; color: #dfe4dd; font-size: 18px; line-height: 1.6; }
.doc h2 { margin: 72px 0 18px; color: var(--ink); font: 800 clamp(34px, 3.6vw, 56px)/0.95 var(--font); font-stretch: 112%; letter-spacing: -0.035em; }
.doc h2:first-child { margin-top: 0; }
.doc h2::before { content: ""; display: block; width: 18px; height: 18px; margin-bottom: 18px; border-radius: 50%; border: 2px solid var(--yellow); }
.doc h3 { margin: 36px 0 10px; color: var(--ink); font-size: 24px; font-weight: 800; font-stretch: 105%; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 8px; color: var(--ink); font-size: 18px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green); }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc a:hover { color: var(--yellow); }
.doc code { padding: 2px 8px; border-radius: 999px; background: var(--moss); color: var(--ink); overflow-wrap: anywhere; }
.doc pre { margin: 0 0 20px; padding: 20px 24px; overflow-x: auto; border-radius: 22px; background: var(--field); border: 1px solid var(--moss); }
.doc pre code { padding: 0; border-radius: 0; background: none; overflow-wrap: normal; }
.doc blockquote { margin: 0 0 22px; padding: 20px 26px; border-radius: 26px; background: var(--field); color: #d3dbd2; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 48px auto; width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--green); }
.doc-table { margin: 0 0 22px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--moss); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 16px; border-bottom: 1px solid var(--moss); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--field); color: var(--soft); font-weight: 700; }
.doc td:first-child { color: var(--ink); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 48px auto 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--moss); color: var(--soft); font-size: 14px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1120px; margin: 72px auto 0; }
.post__nav-link { display: block; padding: 24px 32px; border-radius: 999px; background: var(--field); border: 1px solid var(--moss); font-size: clamp(20px, 2vw, 26px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; text-decoration: none; transition: border-color 200ms ease, background 200ms ease; }
.post__nav-link:hover { border-color: var(--yellow); background: var(--moss); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 4px; color: var(--soft); font-size: 14px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }

.notice { max-width: 760px; margin: 0 auto; padding: 28px 32px; border-radius: 28px; background: var(--field); border: 1px solid var(--moss); text-align: center; font-size: 19px; }
.notice p { margin: 0; }
.notice a { text-decoration-color: var(--yellow); }
.notice--error { border-color: #e0786a; color: #ffd6cf; }

.colophon { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 32px 0 48px; border-top: 1px solid var(--moss); color: var(--soft); font-size: 14px; text-align: center; }
.colophon p { margin: 0; }
.colophon a { text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.colophon code { color: var(--ink); }

/* ── screenshot dialog ───────────────────────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--moss); border-radius: 28px; background: var(--ground); color: var(--ink); overflow: hidden; }
.zoom::backdrop { background: rgb(5 13 9 / 0.88); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px; background: var(--ground); }
.zoom__close { min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--dark); font: 700 16px/1 var(--font); cursor: pointer; }
.zoom__close:hover { background: var(--ink); }
.zoom__scroll { height: calc(94vh - 68px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 1100px) {
    .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .listing { grid-template-columns: minmax(0, 1fr); gap: 64px; }
    .post__media { width: min(86%, 340px); }
    .stylebar__inner { padding: 14px; border-radius: 26px; }
    .stylebar__label { width: 100%; text-align: center; }
    .stylebar__value { flex-basis: 100%; }
    .stylebar__copy { flex: 1 1 100%; }
    .post__zoom { border-radius: 24px; outline-offset: 6px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link { border-radius: 28px; padding: 20px 24px; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .post__thumb { clip-path: none; transform: none; }
}

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