/* Catalog style "demo54" — DUSK: black ground, Anton capitals, red accents, edge-to-edge four-column poster wall. Mirrors /demo54/. */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;500;700&display=swap");

500;700;900&display=swap");

:root {
    --paper: #eef0eb;
    --card: #f8f9f6;
    --ink: #10251a;
    --muted: #5b6b61;
    --line: #d3d9d0;
    --accent: #0f3d26;
    --accent-ink: #f4f6f1;
    --hot: #f5b301;
    --radius: 14px;
    color-scheme: light;
}

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip:focus { left: 16px; }
.deco { display: none; }

.page { max-width: 1240px; margin: 0 auto; padding: 0 24px; }


.masthead { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.masthead__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px 40px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 0.9; }
.brand__mark { font-size: clamp(56px, 9vw, 112px); font-weight: 900; letter-spacing: -0.04em; color: var(--accent); }
.brand__name { margin-top: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.masthead__tagline { max-width: 34ch; margin: 0; color: var(--muted); font-size: 17px; }
.masthead__count { margin: 0; text-align: right; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; }
.masthead__num { display: block; color: var(--ink); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }


.stylebar { margin: 20px 0 0; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 7px 12px; overflow-x: auto; white-space: nowrap; background: rgb(255 255 255 / 0.08); border-radius: 8px; }
.stylebar__copy { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--hot); color: var(--ink); font: 700 14px/1 Archivo, system-ui, sans-serif; cursor: pointer; }
.stylebar__copy.is-done { background: var(--accent-ink); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 3px 10px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px; font-size: 13px; text-decoration: none; opacity: 0.8; }
.stylebar__item:hover, .stylebar__item.is-active { background: var(--accent-ink); color: var(--accent); opacity: 1; }


.categories { margin: 28px 0 8px; }
.categories__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.categories__link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; text-decoration: none; }
.categories__link:hover { border-color: var(--ink); }
.categories__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.categories__count { font-size: 12px; opacity: 0.6; }


.content { padding: 24px 0 64px; }
.listing__header { margin-bottom: 28px; }
.listing__title { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.listing__intro { max-width: 60ch; margin: 8px 0 0; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 34px; padding: 4px 8px; border-radius: 8px; text-align: center; text-decoration: none; }
.toolbar__opt.is-active { background: var(--ink); color: var(--paper); }

.listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.post--card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.post--card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgb(16 37 26 / 0.45); }
.post__media { display: block; aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.post--card:hover .post__thumb { transform: scale(1.03); }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.post__num { color: var(--accent); font-weight: 700; }
.post__cat { text-decoration: none; }
.post__cat:hover { text-decoration: underline; }
.post__title { margin: 0 0 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__excerpt { margin: 0 0 20px; color: var(--muted); }
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager__link { min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: center; text-decoration: none; }
.pager__link.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }


.post--full { max-width: 980px; margin: 0 auto; }
.post__header { padding: 12px 0 28px; }
.post--full .post__title { font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.post--full .post__excerpt { max-width: 62ch; font-size: 19px; }
.post__shot { margin: 0 0 40px; }
.post__zoom { display: block; max-height: 720px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.doc { font-size: 17px; }
.doc h2 { margin: 44px 0 12px; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.doc h3 { margin: 32px 0 8px; font-size: 20px; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font-size: 17px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; background: #e1e6dd; border-radius: 5px; }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: var(--ink); color: #e8efe9; border-radius: 10px; }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--hot); color: var(--muted); }
.doc hr { margin: 32px 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: 15px; }
.doc th, .doc td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 3px 10px; border-radius: 999px; background: #e1e6dd; font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post__nav-link { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.post__nav-link:hover { border-color: var(--ink); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.notice { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.notice--error { border-color: #c0392b; color: #8e2a1f; }

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


.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 12px; background: #111; color: #fff; }
.zoom::backdrop { background: rgb(8 18 12 / 0.82); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: #111; }
.zoom__close { padding: 8px 16px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 700 14px/1 Archivo, system-ui, sans-serif; cursor: pointer; }
.zoom__scroll { height: calc(94vh - 56px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead__inner { grid-template-columns: 1fr; }
    .masthead__count { text-align: left; }
    .listing { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .page { padding: 0 16px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
}
@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%; }

/* demo54 */
:root { --paper:#0a0908;--card:#15130f;--ink:#efe8dc;--muted:#a79f92;--line:#efe8dc33;--accent:#e8341f;--accent-ink:#0a0908;--hot:#e8341f;--radius:0px; color-scheme:dark; }
body { font-family:Archivo,system-ui,sans-serif; }
.page { max-width:none; padding:0 clamp(14px,2vw,28px); }
.brand__mark { font:400 clamp(100px,24vw,420px)/.9 Anton,sans-serif; letter-spacing:0; color:var(--accent); text-transform:uppercase; }
.listing { grid-template-columns:repeat(4,minmax(0,1fr)); gap:2px; }
.post--card { position:relative; background:var(--card); border:0; border-radius:0; box-shadow:none!important; transform:none!important; }
.post__thumb { filter:grayscale(1) contrast(1.05); transition:filter .35s; }
.post--card:hover .post__thumb { filter:none; transform:none; }
.post__title, .listing__title, .doc h2, .rating__title, .comments__title { font-family:Anton,sans-serif; font-weight:400; letter-spacing:.005em; text-transform:uppercase; }
.post__title { font-size:clamp(28px,2.6vw,42px); line-height:1.02; }
.btn--primary { color:#0a0908; }
.fits__tag, .tagcloud__link { background:var(--card); color:var(--ink); }
.tagcloud__link:hover { background:#2a261f; }
@media (max-width:1100px){ .listing { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .listing { grid-template-columns:1fr; } }
.stylebar { background:var(--card); color:var(--ink); }
.stylebar__copy { background:var(--accent); color:#0a0908; }
.stylebar__item:hover, .stylebar__item.is-active { background:var(--accent); color:#0a0908; }
.doc pre { background:#15130f; color:var(--ink); }
