/* Catalog style "demo43" — the album as feature + rail: Cormorant Garamond on the dark DEPO ground, champagne accents; the newest demo is a large feature card and the rest run sideways in a two-row rail. Mirrors /demo43/. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Hanken+Grotesk:wght@400;600;700&display=swap");

:root {
    --bg: #18171a;
    --card: #1f1e22;
    --card-2: #26252a;
    --ink: #f4efe8;
    --soft: rgb(244 239 232 / 0.72);
    --faint: rgb(244 239 232 / 0.5);
    --rule: rgb(244 239 232 / 0.14);
    --gold: #d9c49c;
    --green: #d9c49c;
    --serif: "Cormorant Garamond", Garamond, Georgia, serif;
    --sans: "Hanken Grotesk", system-ui, sans-serif;
    --radius: 22px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    background:
        radial-gradient(circle 46vmax at 82% 8%, rgb(83 245 126 / 0.1), transparent 70%),
        radial-gradient(circle 40vmax at 8% 70%, rgb(217 196 156 / 0.06), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
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(--green); outline-offset: 3px; }

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

.page { max-width: 1320px; margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 48px); }

/* small caps labels */
.brand__name, .masthead__count, .stylebar__label, .post__meta, .categories__link, .toolbar, .post__nav-label, .listing__intro, .post__caption, .doc th {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}
.listing__intro { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; }

/* masthead */
.masthead { padding: clamp(40px, 6vw, 88px) 0 32px; border-bottom: 1px solid var(--rule); }
.masthead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand__mark { font: 500 clamp(72px, 12vw, 180px)/0.82 var(--serif); letter-spacing: -0.02em; }
.brand__name { margin-top: 16px; color: var(--green); }
.masthead__tagline { grid-column: 1; max-width: 40ch; margin: 0; color: var(--soft); font: italic 400 clamp(19px, 1.7vw, 24px)/1.35 var(--serif); }
.masthead__count { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; color: var(--faint); text-align: right; }
.masthead__num { display: block; color: var(--ink); font: 400 clamp(56px, 6vw, 88px)/1 var(--serif); letter-spacing: 0; text-transform: none; }

/* style bar */
.stylebar { margin: 24px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stylebar__label { color: var(--faint); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 8px 12px; overflow-x: auto; white-space: nowrap; border-radius: 10px; background: rgb(255 255 255 / 0.05); color: var(--ink); }
.stylebar__copy { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 13px/1 var(--sans); letter-spacing: 0.06em; cursor: pointer; }
.stylebar__copy.is-done { background: var(--green); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 4px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); font-size: 13px; text-decoration: none; }
.stylebar__item:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--soft); }
.stylebar__item.is-active { background: var(--gold); color: #1a1714; box-shadow: none; }
.stylebar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; width: 100%; padding-top: 6px; font-size: 14px; }
.stylebar__guide, .stylebar__download { color: var(--soft); text-underline-offset: 3px; }
.stylebar__guide:hover, .stylebar__download:hover { color: var(--ink); }

/* categories */
.categories { margin: 32px 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: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); text-decoration: none; font-size: 11px; }
.categories__link:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--soft); }
.categories__link.is-active { background: var(--gold); color: #1a1714; box-shadow: none; }
.categories__count { opacity: 0.6; }

/* listing head */
.content { padding: 32px 0 96px; }
.listing__header { margin-bottom: 40px; }
.listing__title { margin: 0; font: 500 clamp(40px, 5.4vw, 84px)/0.95 var(--serif); letter-spacing: -0.02em; }
.listing__intro { max-width: 60ch; margin: 12px 0 0; color: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 11px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 6px; }
.toolbar__opt { min-width: 34px; padding: 5px 9px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--soft); }
.toolbar__opt.is-active { background: var(--ink); color: var(--bg); }

/* the rail: the newest demo is the feature, the rest run sideways in two rows */
.listing {
    display: grid;
    grid-auto-flow: column dense;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: clamp(220px, 21vw, 290px);
    gap: 28px 18px;
    margin: 0 calc(-1 * clamp(16px, 3.4vw, 48px));
    padding: 4px clamp(16px, 3.4vw, 48px) 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: clamp(16px, 3.4vw, 48px);
    scrollbar-width: thin;
    scrollbar-color: rgb(217 196 156 / 0.5) rgb(255 255 255 / 0.06);
}
.post--card { display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; }
.post--card:first-child {
    grid-row: span 2;
    grid-column: span 2;
    padding: 18px;
    border-radius: var(--radius);
    background: rgb(31 30 34 / 0.9);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}
.post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #111; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.post--card:first-child .post__media { aspect-ratio: 4 / 3; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease; }
.post--card:hover .post__thumb { transform: scale(1.04); }
.listing:hover .post--card:not(:hover) .post__thumb { filter: brightness(0.7) saturate(0.85); }
.post--card:hover .post__media, .post--card:focus-within .post__media { box-shadow: inset 0 0 0 2px var(--gold); }
.post__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 12px 2px 0; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; color: var(--faint); font-size: 10px; }
.post__num { color: var(--gold); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--ink); text-decoration: underline; }
.post__title { margin: 0 0 6px; font: 500 24px/1.05 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 12px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.post__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.post--card:first-child .post__title { margin-top: 6px; font-size: clamp(40px, 4vw, 64px); line-height: 0.95; }
.post--card:first-child .post__excerpt { -webkit-line-clamp: 4; font: italic 500 clamp(17px, 1.3vw, 21px)/1.4 var(--serif); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); font: 600 12px/1 var(--sans); letter-spacing: 0.04em; text-decoration: none; }
.btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--primary { background: var(--gold); color: #1a1714; box-shadow: none; }
.btn--primary:hover { background: #e9d8b6; box-shadow: none; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pager__link { min-width: 42px; padding: 9px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); text-align: center; text-decoration: none; color: var(--soft); }
.pager__link:hover { color: var(--ink); }
.pager__link.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }

/* one post */
.post--full { max-width: 1040px; margin: 0 auto; }
.post__header { padding: 16px 0 36px; }
.post--full .post__title { margin: 6px 0 16px; font-size: clamp(56px, 8vw, 132px); line-height: 0.9; }
.post--full .post__excerpt { max-width: 56ch; font-size: clamp(19px, 1.6vw, 24px); }
.post__shot { margin: 0 0 48px; }
.post__shot { padding: 14px; border-radius: calc(var(--radius) + 6px); background: rgb(31 30 34 / 0.9); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
.post__zoom { display: block; max-height: 760px; overflow: hidden; border-radius: 14px; background: #111; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9), inset 0 0 0 1px var(--rule); cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { margin-top: 12px; color: var(--faint); font-size: 11px; }
.doc { max-width: 800px; font-size: 17px; color: var(--soft); }
.doc h2 { margin: 56px 0 14px; color: var(--ink); font: 500 clamp(30px, 3vw, 44px)/1.05 var(--serif); letter-spacing: -0.015em; }
.doc h3 { margin: 34px 0 8px; color: var(--ink); font: 500 24px/1.2 var(--serif); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; color: var(--ink); font-size: 17px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--green); text-underline-offset: 3px; }
.doc code { padding: 1px 6px; border-radius: 5px; background: rgb(255 255 255 / 0.07); color: var(--ink); }
.doc pre { margin: 0 0 18px; padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: #0f0e11; color: #e9e4dc; box-shadow: inset 0 0 0 1px var(--rule); }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 18px; padding: 4px 0 4px 20px; border-left: 2px solid var(--gold); font: italic 400 19px/1.5 var(--serif); }
.doc hr { margin: 36px 0; border: 0; border-top: 1px solid var(--rule); }
.doc-table { margin: 0 0 18px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc th { color: var(--faint); font-size: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--soft); font-size: 13px; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.post__nav-link { padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font: 500 24px/1.15 var(--serif); text-decoration: none; }
.post__nav-link:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 6px; color: var(--faint); font: 700 11px/1.2 var(--sans); }

.notice { padding: 20px 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.notice--error { box-shadow: inset 0 0 0 1px #ff6b5a; color: #ffb4a8; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 28px 0 44px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 13px; }
.colophon p { margin: 0; }
.colophon a { color: var(--soft); }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 18px; background: #0f0e11; color: var(--ink); }
.zoom::backdrop { background: rgb(8 8 10 / 0.86); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: #0f0e11; }
.zoom__close { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 700 13px/1 var(--sans); 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 { grid-column: 1; grid-row: auto; text-align: left; }
    .listing { grid-template-rows: auto; grid-auto-columns: 78vw; }
    .post--card:first-child { grid-row: auto; grid-column: auto; padding: 12px; }
    .post--card:first-child .post__title { font-size: 36px; }
}
@media (max-width: 520px) {
    .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%; }
.post--full .post__excerpt { display: block; overflow: visible; -webkit-line-clamp: none; }
