/* Catalog style "demo42" — the newsstand at night: Bodoni Moda mastheads on #18171a, a warm lamp light, posts on a two-row shelf that scrolls sideways with gold hairlines and glass name plates. Mirrors /demo42/. */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,500;0,6..96,600;1,6..96,500&family=Lato:wght@300;400;700&display=swap");

:root {
    --bg: #18171a;
    --panel: rgb(18 17 20 / 0.55);
    --ink: #f4efe6;
    --soft: rgb(244 239 230 / 0.66);
    --line: rgb(244 239 230 / 0.13);
    --gold: #ffb500;
    --green: #469a58;
    --serif: "Bodoni Moda", Didot, 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;
    min-height: 100vh;
    background: radial-gradient(60vmax 30vmax at 30% 0%, rgb(255 181 0 / 0.1), transparent 70%), radial-gradient(60vmax 50vmax at 100% 80%, rgb(70 154 88 / 0.14), transparent 70%), var(--bg);
    background-attachment: fixed;
    color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; background: var(--gold); color: var(--bg); }
.skip:focus { left: 16px; }
.deco { display: none; }
.page { max-width: 1520px; margin: 0 auto; padding: 0 clamp(16px, 3.2vw, 48px); }

/* masthead: the shop sign */
.masthead { position: relative; padding: clamp(44px, 6vw, 84px) 0 26px; border-bottom: 1px solid var(--line); }
.masthead::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 200 90 / 0.85), transparent); }
.masthead__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px 40px; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand__mark { font: 500 clamp(64px, 9vw, 132px)/0.86 var(--serif); letter-spacing: -0.02em; }
.brand__name { margin-top: 10px; font: italic 500 clamp(22px, 2.4vw, 32px)/1 var(--serif); color: var(--gold); }
.masthead__tagline { max-width: 40ch; margin: 0 0 6px; color: var(--soft); font-weight: 300; }
.masthead__count { margin: 0; padding: 10px 16px; border: 1px solid rgb(255 181 0 / 0.45); border-radius: 999px; color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-align: center; }
.masthead__num { display: block; font: 500 34px/1 var(--serif); letter-spacing: 0; color: var(--gold); }

/* style bar */
.stylebar { margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 8px 12px; overflow-x: auto; white-space: nowrap; border-left: 2px solid var(--gold); background: rgb(0 0 0 / 0.35); }
.stylebar__copy { padding: 10px 18px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: var(--bg); font: 700 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.stylebar__copy.is-done { background: transparent; color: var(--gold); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--soft); text-decoration: none; }
.stylebar__item:hover, .stylebar__item.is-active { border-color: var(--gold); color: var(--gold); }

/* categories */
.categories { margin: 26px 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: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--soft); }
.categories__link:hover { border-color: var(--soft); color: var(--ink); }
.categories__link.is-active { border-color: var(--gold); color: var(--gold); }
.categories__count { font-weight: 400; opacity: 0.7; }

/* listing: a two-row shelf scrolling sideways */
.content { padding: 28px 0 72px; }
.listing__header { margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.listing__title { margin: 0; font: 500 clamp(44px, 5vw, 80px)/0.92 var(--serif); letter-spacing: -0.02em; }
.listing__intro { max-width: 60ch; margin: 10px 0 0; color: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; color: var(--soft); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { min-width: 32px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; text-align: center; text-decoration: none; }
.toolbar__opt.is-active { border-color: var(--gold); color: var(--gold); }

.listing {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(260px, 24vw, 340px);
    gap: 18px;
    margin-inline: calc(-1 * clamp(16px, 3.2vw, 48px));
    padding: 4px clamp(16px, 3.2vw, 48px) 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(16px, 3.2vw, 48px);
    scrollbar-width: thin;
    scrollbar-color: rgb(255 181 0 / 0.6) rgb(244 239 230 / 0.08);
}
.post--card { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; border-top: 2px solid transparent; }
.post--card:nth-child(4n+1) { border-top-color: var(--gold); }
.post__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222126; box-shadow: 0 24px 40px -26px #000; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(0.88); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease; }
.post--card:hover .post__thumb { transform: scale(1.04); filter: none; }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 14px 0 0; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; color: var(--soft); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.post__num { color: var(--gold); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--ink); }
.post__title { margin: 0 0 6px; font: 500 24px/1.1 var(--serif); }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--gold); }
.post__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn--primary { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.btn--primary:hover { background: transparent; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager__link { min-width: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-align: center; text-decoration: none; font: 500 16px/1 var(--serif); }
.pager__link.is-active { border-color: var(--gold); color: var(--gold); }

/* one post: the window display */
.post--full { max-width: 1040px; margin: 0 auto; }
.post--full .post__title { font-size: clamp(48px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.02em; }
.post__header { padding: 12px 0 30px; }
.post--full .post__excerpt { display: block; max-width: 62ch; font-size: 18px; font-weight: 300; -webkit-line-clamp: none; }
.post__shot { position: relative; margin: 0 0 48px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: radial-gradient(100% 50% at 50% 0%, rgb(255 181 0 / 0.12), transparent 60%), var(--panel); }
.post__zoom { display: block; max-height: 720px; overflow: hidden; cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 12px; font: italic 500 16px/1.3 var(--serif); color: var(--soft); }
.doc { font-size: 17px; }
.doc h2 { margin: 48px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 34px/1.05 var(--serif); }
.doc h3 { margin: 30px 0 8px; font: 500 23px/1.15 var(--serif); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font-size: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li::marker { color: var(--gold); }
.doc a { color: var(--gold); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; border-radius: 3px; background: rgb(255 255 255 / 0.07); }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: rgb(0 0 0 / 0.42); }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--gold); color: var(--soft); }
.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: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: 0.1em; color: var(--soft); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.post__nav-link { padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 4px; background: var(--panel); font: 500 22px/1.15 var(--serif); text-decoration: none; }
.post__nav-link:hover { border-color: var(--gold); }
.post__nav-link--older { grid-column: 2; text-align: right; border-left-color: var(--line); border-right: 2px solid var(--gold); }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--soft); font: 700 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; }

.notice { padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.notice--error { border-color: #e06b5d; color: #ffb3a8; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.colophon p { margin: 0; }

.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #111; color: var(--ink); }
.zoom::backdrop { background: rgb(10 9 12 / 0.88); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: #111; }
.zoom__close { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--gold); color: var(--bg); font: 700 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.zoom__scroll { height: calc(94vh - 58px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .masthead__inner { grid-template-columns: 1fr; }
    .masthead__count { justify-self: start; }
}
@media (max-width: 640px) {
    .listing { grid-auto-flow: row; grid-template-rows: none; grid-auto-columns: auto; grid-template-columns: 1fr; margin-inline: 0; padding: 0; overflow: visible; gap: 30px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@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%; }
