/* Catalog style "demo29" — Relax: near-black, five huge blurred colour fields drifting and breathing behind frosted glass, one quiet centred column, Cormorant light italics and airy Jost. Mirrors /demo29/. */
/*
 * Layout: everything in one centred column with a lot of air — a whispered masthead (DEPO, a large
 * light italic "Demo album"), the style bar and the sections as soft frosted pills, then the posts
 * as tall frosted glass panels, one under another, the screenshot softly rounded above the words.
 * The background is the demo itself in CSS only: body::before / ::after and the three .deco spans
 * are colour fields (azure, amethyst, night violet, amber, blue haze) blurred by 110 px, mixed with
 * `screen`, each drifting on its own 70–110 s loop and breathing its opacity; a fine SVG noise veil
 * sits over them. Reduced motion: the fields stay still.
 */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap");

:root {
    --night: #060709;
    --glass: rgb(255 255 255 / 0.045);
    --glass-2: rgb(255 255 255 / 0.08);
    --edge: rgb(255 255 255 / 0.1);
    --edge-2: rgb(255 255 255 / 0.2);
    --ink: #eef0f6;
    --soft: rgb(238 240 246 / 0.74);
    --mute: rgb(238 240 246 / 0.6);
    --azure: #4cc9f0;
    --lilac: #b79cff;
    --amber: #f4a261;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", system-ui, sans-serif;
    --r: 28px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--ink); font: 300 17px/1.75 var(--sans); letter-spacing: 0.01em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.86em/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 4px; border-radius: 10px; }
::selection { background: rgb(123 44 191 / 0.6); color: #fff; }

/* ---------- the nebula: five fields, blurred, drifting, breathing ---------- */
body::before, body::after, .deco {
    content: ""; position: fixed; z-index: 0; display: block; pointer-events: none; border-radius: 50%;
    filter: blur(110px); mix-blend-mode: screen; will-change: transform, opacity;
}
body::before { width: 62vmax; height: 44vmax; left: -12vmax; top: -10vmax; background: rgb(0 150 199 / 0.42); animation: rx-drift-a 86s ease-in-out infinite alternate, rx-breathe 23s ease-in-out infinite; }
body::after { width: 56vmax; height: 40vmax; right: -14vmax; bottom: -12vmax; background: rgb(123 44 191 / 0.4); animation: rx-drift-b 104s ease-in-out infinite alternate, rx-breathe 29s ease-in-out -8s infinite; }
.deco--1 { width: 46vmax; height: 34vmax; left: 30vw; top: 30vh; background: rgb(72 12 168 / 0.42); animation: rx-drift-c 74s ease-in-out infinite alternate, rx-breathe 19s ease-in-out -4s infinite; }
.deco--2 { width: 34vmax; height: 26vmax; left: 6vw; bottom: 4vh; background: rgb(232 93 4 / 0.22); animation: rx-drift-b 96s ease-in-out -30s infinite alternate-reverse, rx-breathe 31s ease-in-out -12s infinite; }
.deco--3 { width: 40vmax; height: 30vmax; right: 4vw; top: 6vh; background: rgb(76 201 240 / 0.3); animation: rx-drift-a 110s ease-in-out -50s infinite alternate-reverse, rx-breathe 27s ease-in-out -17s infinite; }
@keyframes rx-drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 14vh) scale(1.25); } 100% { transform: translate(6vw, 32vh) scale(0.9); } }
@keyframes rx-drift-b { 0% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-20vw, -12vh) scale(0.85); } 100% { transform: translate(-8vw, -30vh) scale(1.3); } }
@keyframes rx-drift-c { 0% { transform: translate(0, 0) scale(0.9); } 50% { transform: translate(-16vw, 18vh) scale(1.3); } 100% { transform: translate(14vw, -14vh) scale(1); } }
@keyframes rx-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* the noise veil against banding (an inline SVG fractal noise, 5 %) */
.page::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.97' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; padding: 10px 20px; border-radius: 50px; background: var(--ink); color: var(--night); font-weight: 500; text-decoration: none; }
.skip:focus { left: 16px; }

/* ---------- one quiet column ---------- */
.page { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.page > :not(.deco) { position: relative; z-index: 1; }

.masthead { padding: 72px 0 36px; text-align: center; }
.masthead__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.brand__mark { font: 400 12px/1 var(--sans); letter-spacing: 0.6em; padding-left: 0.6em; color: var(--mute); text-transform: uppercase; }
.brand__name { font: italic 300 clamp(48px, 9vw, 92px)/1 var(--serif); letter-spacing: -0.01em; background: linear-gradient(100deg, #cfeaff, #e9dcff 45%, #ffe2c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand:hover .brand__name { filter: brightness(1.12); }
.masthead__tagline { max-width: 44ch; margin: 0; color: var(--soft); font-size: 16px; }
.masthead__count { margin: 6px 0 0; color: var(--mute); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.masthead__num { color: var(--ink); font-weight: 500; }

/* style bar: a frosted panel */
.stylebar { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.stylebar__label { flex: 1; color: var(--mute); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.stylebar__copy { order: 1; height: 34px; padding: 0 18px; border: 1px solid var(--edge-2); border-radius: 50px; background: rgb(255 255 255 / 0.92); color: var(--night); font: 500 13px/1 var(--sans); letter-spacing: 0.06em; cursor: pointer; transition: background 0.6s ease, color 0.6s ease; }
.stylebar__copy:hover { background: #fff; }
.stylebar__copy.is-done { background: transparent; color: var(--ink); }
.stylebar__value { order: 2; flex: 1 1 100%; min-width: 0; padding: 10px 14px; overflow-x: auto; white-space: nowrap; border-radius: 14px; background: rgb(0 0 0 / 0.35); color: #d9ecff; font-size: 13px; scrollbar-width: thin; }
.stylebar__list { order: 3; display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin-top: 4px; }
.stylebar__item { padding: 4px 12px; border-radius: 50px; color: var(--mute); font-size: 14px; text-decoration: none; transition: background 0.6s ease, color 0.6s ease; }
.stylebar__item:hover { background: var(--glass-2); color: var(--ink); }
.stylebar__item.is-active { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: 0 0 24px -6px rgb(183 156 255 / 0.7); }
.stylebar__item--uploaded { font-style: italic; }
.stylebar__tools { order: 4; display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--edge); font-size: 14px; }
.stylebar__guide, .stylebar__download, .stylebar__upload-toggle { color: var(--soft); text-decoration: none; cursor: pointer; transition: color 0.6s ease; overflow-wrap: anywhere; }
.stylebar__guide:hover, .stylebar__download:hover, .stylebar__upload-toggle:hover { color: #fff; }
.stylebar__guide { color: var(--azure); }
.stylebar__upload { width: 100%; }
.stylebar__upload-toggle { list-style: none; color: var(--lilac); }
.stylebar__upload-toggle::-webkit-details-marker { display: none; }
.stylebar__upload-toggle::before { content: "+ "; }
.stylebar__upload[open] .stylebar__upload-toggle::before { content: "− "; }
.upload-form { display: grid; gap: 8px; margin-top: 12px; }
.upload-form__label { color: var(--mute); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.upload-form__input, .upload-form__file { width: 100%; min-width: 0; padding: 10px 14px; border: 1px solid var(--edge-2); border-radius: 14px; background: rgb(0 0 0 / 0.35); color: var(--ink); font: inherit; font-size: 15px; }
.upload-form__input:focus, .upload-form__file:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgb(76 201 240 / 0.18); }
.upload-form__submit { justify-self: start; }
.upload-form__note { color: var(--mute); font-size: 13px; line-height: 1.5; }
.stylebar__flash { order: 5; width: 100%; margin: 6px 0 0; }

/* sections: soft pills, centred */
.categories { margin: 0 0 12px; }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 8px 6px 18px; border: 1px solid var(--edge); border-radius: 50px; background: var(--glass); color: var(--soft); font-size: 15px; text-decoration: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease; }
.categories__link:hover { color: #fff; border-color: var(--edge-2); }
.categories__link.is-active { color: #fff; background: rgb(255 255 255 / 0.12); border-color: rgb(183 156 255 / 0.5); }
.categories__count { min-width: 28px; padding: 1px 8px; border-radius: 50px; background: rgb(255 255 255 / 0.08); color: var(--mute); font-size: 12px; text-align: center; }

/* ---------- the list: tall frosted panels, one per post ---------- */
.content { padding: 30px 0 80px; }
.listing__header { margin: 18px 0 30px; text-align: center; }
.listing__title { margin: 0; font: italic 300 clamp(38px, 6vw, 60px)/1.05 var(--serif); }
.listing__intro { max-width: 52ch; margin: 12px auto 0; color: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px; margin-top: 22px; color: var(--mute); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__range { color: var(--ink); }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 50px; color: var(--soft); text-decoration: none; transition: background 0.6s ease; }
.toolbar__opt:hover { background: var(--glass-2); color: #fff; }
.toolbar__opt.is-active { background: rgb(255 255 255 / 0.9); color: var(--night); font-weight: 500; }

.listing { display: grid; gap: 40px; }
.post--card { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--edge); border-radius: calc(var(--r) + 8px); background: var(--glass); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px); transition: border-color 1.2s ease, background 1.2s ease, box-shadow 1.2s ease; }
.post--card:hover { border-color: var(--edge-2); background: rgb(255 255 255 / 0.07); box-shadow: 0 30px 80px -40px rgb(123 44 191 / 0.6); }
.post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: rgb(0 0 0 / 0.4); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.92; transition: transform 2.4s ease, opacity 1.2s ease; }
.post--card:hover .post__thumb { transform: scale(1.025); opacity: 1; }
.post__body { padding: 26px 26px 18px; text-align: center; }
.post__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 12px; color: var(--mute); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.post__num { color: var(--lilac); }
.post__cat { color: var(--azure); text-decoration: none; }
.post__cat:hover { text-decoration: underline; text-underline-offset: 4px; }
.post__title { margin: 0 0 12px; font: 300 clamp(30px, 4vw, 42px)/1.1 var(--serif); }
.post__title a { text-decoration: none; transition: color 0.6s ease; }
.post__title a:hover { color: #d9ecff; }
.post__excerpt { max-width: 56ch; margin: 0 auto 22px; color: var(--soft); }
.post__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border: 1px solid var(--edge-2); border-radius: 50px; background: transparent; color: var(--ink); font: 400 14px/1 var(--sans); letter-spacing: 0.08em; text-decoration: none; cursor: pointer; transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease; }
.btn:hover { background: var(--glass-2); border-color: rgb(255 255 255 / 0.4); }
.btn--primary { border-color: transparent; background: linear-gradient(100deg, rgb(76 201 240 / 0.9), rgb(183 156 255 / 0.9)); color: #0b0c14; font-weight: 500; }
.btn--primary:hover { background: linear-gradient(100deg, #7fdcf7, #cbb8ff); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 50px; }
.pager__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 50px; background: var(--glass); color: var(--soft); text-decoration: none; }
.pager__link:hover { color: #fff; border-color: var(--edge-2); }
.pager__link.is-active { background: rgb(255 255 255 / 0.9); color: var(--night); }

/* ---------- one post ---------- */
.post--full .post__header { padding: 10px 0 34px; text-align: center; }
.post--full .post__title { margin: 10px 0 16px; font: italic 300 clamp(44px, 8vw, 84px)/1 var(--serif); }
.post--full .post__excerpt { max-width: 56ch; margin: 0 auto 26px; font-size: 18px; }
.post__shot { margin: 0 0 54px; padding: 12px; border: 1px solid var(--edge); border-radius: calc(var(--r) + 8px); background: var(--glass); }
.post__zoom { display: block; max-height: 640px; overflow: hidden; border-radius: var(--r); cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { padding: 12px 8px 2px; color: var(--mute); font-size: 14px; text-align: center; }

.doc { color: rgb(238 240 246 / 0.86); }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 56px 0 14px; color: #fff; font: italic 300 36px/1.15 var(--serif); text-align: center; }
.doc h2::after { content: ""; display: block; width: 40px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--lilac), transparent); }
.doc h3 { margin: 34px 0 8px; font: 500 24px/1.3 var(--serif); color: #fff; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font-weight: 500; color: #fff; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc li::marker { color: var(--lilac); }
.doc strong { color: #fff; font-weight: 500; }
.doc a { color: var(--azure); text-underline-offset: 4px; }
.doc a:hover { color: #9be3f9; }
.doc code { padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.08); color: #ffd9b8; }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 18px; background: rgb(0 0 0 / 0.4); }
.doc pre code { padding: 0; background: none; color: #e6e9f2; }
.doc blockquote { margin: 0 0 20px; padding: 18px 24px; border: 1px solid var(--edge); border-radius: 22px; background: rgb(123 44 191 / 0.1); font: italic 400 20px/1.5 var(--serif); color: #fff; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px auto; width: 60px; border: 0; border-top: 1px solid var(--edge-2); }
.doc img { border-radius: 18px; }
.doc-table { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 20px; background: var(--glass); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { padding: 12px 16px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--mute); font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 14px; border: 1px solid var(--edge); border-radius: 50px; color: var(--soft); font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.post__nav-link { padding: 20px 24px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--glass); font: 300 24px/1.2 var(--serif); text-decoration: none; transition: border-color 0.6s ease; }
.post__nav-link:hover { border-color: var(--edge-2); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--mute); font: 400 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }
.post__nav-link--newer .post__nav-label::before { content: "← "; }
.post__nav-link--older .post__nav-label::after { content: " →"; }
.post__back { display: inline-block; margin-top: 18px; color: var(--soft); }

.notice { padding: 18px 22px; border: 1px solid var(--edge-2); border-radius: 20px; background: rgb(255 255 255 / 0.06); }
.notice p { margin: 0; }
.notice a { color: var(--azure); }
.notice--ok { border-color: rgb(76 201 240 / 0.5); }
.notice--error { border-color: rgb(255 120 120 / 0.6); color: #ffd6d6; }

.colophon { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 0 60px; color: var(--mute); font-size: 14px; text-align: center; }
.colophon p { margin: 0; }
.colophon__text code { color: var(--lilac); }
.colophon__links a { color: var(--soft); text-underline-offset: 4px; }
.colophon__links a:hover { color: #fff; }

.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--edge-2); border-radius: var(--r); background: #0b0c10; color: var(--ink); overflow: hidden; }
.zoom::backdrop { background: rgb(6 7 9 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom__bar { display: flex; justify-content: flex-end; height: 60px; padding: 12px 16px; border-bottom: 1px solid var(--edge); }
.zoom__close { height: 36px; padding: 0 22px; border: 1px solid var(--edge-2); border-radius: 50px; background: transparent; color: var(--ink); font: 400 14px/1 var(--sans); letter-spacing: 0.08em; cursor: pointer; }
.zoom__close:hover { background: var(--glass-2); }
.zoom__scroll { height: calc(94vh - 60px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .page { padding: 0 16px; }
    .masthead { padding: 48px 0 26px; }
    .brand__mark { letter-spacing: 0.4em; }
    .stylebar { padding: 16px; border-radius: 22px; }
    .listing { gap: 26px; }
    .post--card { padding: 10px; border-radius: 26px; }
    .post__media { border-radius: 18px; }
    .post__body { padding: 20px 12px 12px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .doc h2 { font-size: 30px; }
    body::before, body::after, .deco { filter: blur(80px); }
}

@media (prefers-reduced-motion: reduce) {
    body::before, body::after, .deco { animation: none; opacity: 0.8; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.doc p, .doc li, .doc blockquote, .doc td, .doc th, .comment__body { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
.doc td, .doc th { overflow-wrap: break-word; }
