/* Catalog style "demo2" — the DEPO brand home: green-fringe banner with the eye logo, gold Lazurski capitals, green glows on #18171a, posts as alternating zig-zag spreads. Mirrors /demo2/. */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&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;
}
@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: #18171a;
    --surface: #222125;
    --surface-2: #2b2a2f;
    --ink: #ffffff;
    --grey: #a3a3a8;
    --gold: #ffb500;
    --green: #469a58;
    --green-deep: #2d6e3b;
    --line: #34333a;
    --serif: "Lazurski", "Playfair Display", Georgia, serif;
    --sans: "Lato", system-ui, sans-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(--sans); }
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(--gold); outline-offset: 3px; }

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

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

/* The site's animated background: soft green ellipses drifting behind everything. */
.deco { display: block; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(100px); opacity: 0.22; }
.deco--1 { width: 46vw; height: 36vw; left: -14vw; top: 820px; background: var(--green); animation: d2-drift 26s ease-in-out infinite alternate; }
.deco--2 { width: 38vw; height: 30vw; right: -12vw; top: 1700px; background: #1f5a2c; animation: d2-drift 32s ease-in-out infinite alternate-reverse; }
.deco--3 { width: 30vw; height: 24vw; left: 36vw; top: 2800px; background: #3d7a3a; opacity: 0.2; animation: d2-drift 38s ease-in-out infinite alternate; }
@keyframes d2-drift { to { transform: translate(8vw, -10vh) scale(1.15); } }

/* ── masthead: the banner ───────────────────────────────────────────────── */
.masthead {
    position: relative; display: grid; place-items: center; min-height: clamp(460px, 70vh, 760px); padding: 64px 16px 96px;
    background:
        linear-gradient(to bottom, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.15) 35%, rgb(0 0 0 / 0.6) 80%, var(--bg)),
        radial-gradient(ellipse 60% 55% at 50% 50%, rgb(0 0 0 / 0.5), transparent 75%),
        url("/_img/site/media/c217eb6b8ce0cfde7dbbd4d7b7c4f37dbac2fdc2.png") center 30% / cover no-repeat;
    text-align: center;
}
.masthead__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.4vw, 30px); max-width: 820px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; }
.brand::before { content: ""; width: clamp(150px, 16vw, 230px); aspect-ratio: 220 / 70; background: url("/_img/site/logo/logo.png") center / contain no-repeat; filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.5)); }
.brand__mark { font: 700 clamp(44px, 6vw, 84px)/1 var(--serif); color: var(--gold); letter-spacing: 0.12em; text-shadow: 0 2px 24px rgb(0 0 0 / 0.5); }
.brand__name { font: 700 13px/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: #fff; }
.masthead__tagline { max-width: 52ch; margin: 0; font: 400 clamp(16px, 1.45vw, 21px)/1.6 var(--sans); color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / 0.65); }
.masthead__count { margin: 0; font: 400 15px/1.2 var(--sans); color: #e6e6e8; }
.masthead__num { color: var(--gold); font: 700 26px/1 var(--serif); margin-right: 6px; }
.masthead__inner > * { animation: d2-rise 800ms cubic-bezier(.2, .7, .2, 1) both; }
.masthead__tagline { animation-delay: 120ms; }
.masthead__count { animation-delay: 240ms; }
@keyframes d2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── style bar: a panel pulled up over the banner's edge ───────────────── */
.stylebar { position: relative; z-index: 1; max-width: 1100px; margin: -48px auto 0; padding: 0 16px; }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgb(34 33 37 / 0.92); }
.stylebar__label { font: 700 15px/1 var(--serif); color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 8px 12px; overflow-x: auto; white-space: nowrap; border-radius: 8px; background: var(--bg); color: #f2f2f3; }
.stylebar__copy { min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--green-deep); color: #fff; font: 700 15px/1 var(--sans); cursor: pointer; transition: background 200ms ease; }
.stylebar__copy:hover { background: #255d31; }
.stylebar__copy.is-done { background: var(--gold); color: #18171a; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 3px 10px; border-radius: 999px; color: var(--grey); font-size: 13px; text-decoration: none; }
.stylebar__item:hover { color: #fff; background: var(--surface-2); }
.stylebar__item.is-active { background: var(--gold); color: #18171a; font-weight: 700; }

/* ── categories: the Client Map — gold capitals around the centre ──────── */
.categories { margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 16px; max-width: 1100px; }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(20px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0; font: 700 clamp(15px, 1.4vw, 20px)/1.2 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 3px solid transparent; }
.categories__link:hover { color: #fff; }
.categories__link.is-active { border-bottom-color: var(--green); color: #fff; }
.categories__count { font: 400 13px/1 var(--sans); color: var(--grey); letter-spacing: 0; }

/* ── listing ────────────────────────────────────────────────────────────── */
.content { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) 16px 0; }
.listing__header { margin-bottom: clamp(36px, 5vw, 64px); text-align: center; }
.listing__title { margin: 0; font: 700 clamp(26px, 3.4vw, 46px)/1.15 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.listing__title::before, .listing__title::after { content: "—"; margin: 0 0.4em; color: var(--green); }
.listing__intro { max-width: 60ch; margin: 12px auto 0; color: var(--grey); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 18px; color: var(--grey); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 34px; padding: 4px 8px; border-radius: 6px; text-align: center; text-decoration: none; color: #fff; }
.toolbar__opt:hover { background: var(--surface-2); }
.toolbar__opt.is-active { background: var(--gold); color: #18171a; font-weight: 700; }

/* Zig-zag: picture and text swap sides on every other post. */
.listing { display: grid; gap: clamp(48px, 7vw, 110px); }
.post--card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.post--even .post__media { order: 2; }
.post__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--surface); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 900ms cubic-bezier(.2, .7, .2, 1); }
.post--card:hover .post__thumb { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 12px; color: var(--grey); font-size: 14px; }
.post__num { color: var(--green); font-weight: 900; letter-spacing: 0.06em; }
.post__cat { color: #fff; text-decoration: none; }
.post__cat:hover { text-decoration: underline; }
.post__title { margin: 0 0 14px; font: 700 clamp(30px, 3.4vw, 46px)/1.05 var(--serif); color: var(--gold); }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.post__excerpt { margin: 0 0 24px; color: var(--grey); font-size: 16px; line-height: 1.65; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font: 700 15px/1 var(--sans); text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 6px; }
.btn:hover { text-decoration-color: var(--gold); color: var(--gold); }
.btn--primary { padding: 0 26px; border-radius: 999px; background: var(--green-deep); text-decoration: none; transition: background 200ms ease; }
.btn--primary:hover { background: #255d31; color: #fff; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(56px, 6vw, 88px); }
.pager__link { min-width: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700; }
.pager__link:hover { border-color: var(--gold); color: var(--gold); }
.pager__link.is-active { background: var(--gold); border-color: var(--gold); color: #18171a; }

/* ── one post ───────────────────────────────────────────────────────────── */
.post--full { max-width: 1100px; margin: 0 auto; }
.post__header { display: flex; flex-direction: column; align-items: center; padding: 0 0 clamp(32px, 4vw, 52px); text-align: center; }
.post--full .post__meta { justify-content: center; }
.post--full .post__title { margin: 0 0 18px; font-size: clamp(40px, 6vw, 80px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.02; }
.post--full .post__excerpt { max-width: 64ch; font-size: 18px; color: #d0d0d4; }
.post--full .post__actions { justify-content: center; }
.post__shot { margin: 0 0 clamp(48px, 6vw, 80px); }
.post__zoom { display: block; max-height: 720px; overflow: hidden; border-radius: 12px; background: var(--surface); cursor: zoom-in; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9); }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 12px; color: var(--grey); font-size: 13px; text-align: center; }

/* The doc reads like the "speed of your vision" values: gold serif heads, grey text. */
.doc { max-width: 780px; margin: 0 auto; color: #c9c9cd; font-size: 17px; line-height: 1.7; }
.doc h2 { margin: 56px 0 14px; font: 700 clamp(28px, 3vw, 40px)/1.1 var(--serif); color: var(--gold); }
.doc > :first-child { margin-top: 0; }
.doc h3 { margin: 32px 0 8px; font: 700 20px/1.25 var(--serif); color: #fff; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font: 700 16px/1.3 var(--sans); color: #fff; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green); }
.doc strong { color: #fff; }
.doc a { color: var(--gold); text-underline-offset: 4px; }
.doc code { padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: #f1f1f3; }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border-left: 3px solid var(--green); border-radius: 8px; background: #111013; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 20px; padding: 18px 22px; border-radius: 10px; background: var(--surface); border-left: 3px solid var(--gold); color: #e4e4e7; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 20px; overflow-x: auto; border-radius: 10px; background: var(--surface); }
.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 { font: 700 14px/1.2 var(--serif); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border: 1px solid var(--green); border-radius: 999px; color: #dfe9e1; font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post__nav-link { padding: 20px 22px; border-radius: 12px; background: var(--surface); font: 700 22px/1.2 var(--serif); color: var(--gold); text-decoration: none; transition: background 200ms ease; }
.post__nav-link:hover { background: var(--surface-2); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 6px; font: 700 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }

.notice { max-width: 720px; margin: 0 auto; padding: 24px 28px; border-radius: 12px; background: var(--surface); text-align: center; }
.notice p { margin: 0; }
.notice a { color: var(--gold); }
.notice--error { border-left: 3px solid #e5675a; color: #ffb3aa; }

/* Colophon: the site footer's dark band with the gold DEPO mark. */
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(72px, 9vw, 120px); padding: 32px clamp(16px, 4vw, 64px) 40px; background: #111013; color: var(--grey); font-size: 13px; }
.colophon::before { content: "DEPO"; width: 100%; font: 700 40px/1 var(--serif); color: var(--gold); }
.colophon p { margin: 0; }
.colophon a { color: #fff; }

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

@media (max-width: 860px) {
    .post--card { grid-template-columns: minmax(0, 1fr); }
    .post--even .post__media { order: 0; }
    .listing__title::before, .listing__title::after { display: none; }
}
@media (max-width: 520px) {
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .stylebar { margin-top: -32px; }
}
@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%; }
