/* Catalog style "demo50" — cream page, tiny uppercase Inter Tight, a photo knocked out of the DEPO masthead, cards set as an asymmetric composition with left / right captions. Mirrors /demo50/. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;800&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=swap");

:root {
    --bg: #FFFDF3;
    --ink: #0D0D0D;
    --muted: #5d5a52;
    --rule: rgba(13, 13, 13, .16);
    --tint: #e9e5d6;
    --lime: #cdd43c;
    --ease: cubic-bezier(.75, 0, 0, 1);
    --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --serif: "Newsreader", Georgia, serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 600 13px/1.15 var(--sans);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.92em/1.4 ui-monospace, "SF Mono", Menlo, monospace; text-transform: none; letter-spacing: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

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

.page { margin: 0 auto; padding: 0 1.35vw; max-width: 1680px; }

/* masthead: DEPO knocked out of a photo, the rest in small caps at the corners */
.masthead { padding: 8px 0 22px; border-bottom: 1px solid var(--ink); }
.masthead__inner { display: grid; grid-template-columns: minmax(0, 40%) 1fr auto; align-items: end; gap: 10px 1.3vw; }
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand__mark {
    display: block;
    margin-top: 26px;
    font: 800 clamp(84px, 13vw, 210px)/0.78 var(--sans);
    letter-spacing: -0.06em;
    color: var(--ink);
    background: url("/_img/photos/crops/photo-01-a.jpg") 50% 40% / cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand__name { order: -1; font-size: 13px; }
.masthead__tagline { max-width: 38ch; margin: 0 0 4px; font-size: 13px; }
.masthead__count { margin: 0 0 4px; text-align: right; font-size: 13px; }
.masthead__num { display: block; font: 600 clamp(40px, 5vw, 76px)/0.85 var(--sans); letter-spacing: -0.05em; }

/* style bar: one thin ruled strip */
.stylebar { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stylebar__label { color: var(--muted); }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 7px 0; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--ink); }
.stylebar__copy { padding: 7px 14px; border: 0; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--sans); text-transform: uppercase; cursor: pointer; }
.stylebar__copy:hover { background: var(--lime); color: var(--ink); }
.stylebar__copy.is-done { background: var(--lime); color: var(--ink); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px 12px; width: 100%; }
.stylebar__item { text-decoration: none; color: var(--muted); }
.stylebar__item:hover, .stylebar__item.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* categories: a row of numbers-like links */
.categories { margin: 14px 0 6px; }
.categories__list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.categories__link { text-decoration: none; }
.categories__link:hover { text-decoration: underline; text-underline-offset: 2px; }
.categories__link.is-active { background: var(--ink); color: var(--bg); padding: 2px 5px; }
.categories__count { color: var(--muted); font-size: 11px; vertical-align: super; }
.categories__link.is-active .categories__count { color: var(--bg); }

/* listing */
.content { padding: 22px 0 70px; }
.listing__header { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 6px 1.3vw; margin-bottom: 26px; }
.listing__title { margin: 0; font: 600 clamp(40px, 6.2vw, 104px)/0.84 var(--sans); letter-spacing: -0.06em; }
.listing__intro { max-width: 46ch; margin: 0; align-self: end; }
.toolbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 10px; }
.toolbar__opt { text-decoration: none; color: var(--muted); }
.toolbar__opt.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* the composition: a large card, then small ones beside it, mirrored every other group */
.listing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 44px 1.3vw; align-items: start; }
.post--card { grid-column: span 3; display: flex; flex-direction: column; min-width: 0; }
.post--card:nth-child(6n + 1) { grid-column: 1 / span 5; grid-row: span 2; }
.post--card:nth-child(6n + 4) { grid-column: 8 / span 5; grid-row: span 2; }
.post--card:nth-child(6n + 2), .post--card:nth-child(6n + 3) { margin-top: 0; }
.post--card:nth-child(6n + 5), .post--card:nth-child(6n + 6) { margin-top: 8vw; }

.post__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint); }
.post--card:nth-child(6n + 1) .post__media, .post--card:nth-child(6n + 4) .post__media { aspect-ratio: 5 / 6; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 1.2s var(--ease), clip-path 1.2s var(--ease); clip-path: inset(0 0 0 0); }
.post--card:hover .post__thumb { transform: scale(1); clip-path: inset(3% 3% 3% 3%); }

.post__body { display: flex; flex: 1; flex-direction: column; padding-top: 12px; }
.post__meta { display: flex; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; }
.post__cat { text-decoration: none; }
.post__cat:hover { text-decoration: underline; }
.post__date { margin-left: auto; color: var(--muted); }
.post__title { margin: 0 0 8px; font: 600 22px/0.95 var(--sans); letter-spacing: -0.04em; }
.post--card:nth-child(6n + 1) .post__title, .post--card:nth-child(6n + 4) .post__title { font-size: clamp(30px, 3.3vw, 52px); letter-spacing: -0.05em; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post__excerpt { margin: 0 0 14px; font: 400 16px/1.4 var(--serif); letter-spacing: 0; text-transform: none; color: #2b2925; }
.post--card:not(:nth-child(6n + 1)):not(:nth-child(6n + 4)) .post__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post__actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: auto 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 1px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.btn:hover { border-bottom-style: dashed; }
.btn--primary::after { content: " ↗"; }

.pager { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; margin-top: 56px; padding-top: 10px; border-top: 1px solid var(--ink); }
.pager__link { text-decoration: none; color: var(--muted); }
.pager__link:hover { color: var(--ink); }
.pager__link.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* one post: the issue view of the demo — huge title, serif reading text */
.post--full { max-width: 1180px; margin: 0 auto; }
.post__header { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 6px 0 30px; }
.post--full .post__meta { order: -1; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 10px; }
.post--full .post__title { font: 600 clamp(56px, 10vw, 170px)/0.82 var(--sans); letter-spacing: -0.065em; }
.post--full .post__excerpt { max-width: 34ch; margin-left: auto; font: italic 400 clamp(20px, 2vw, 30px)/1.25 var(--serif); }
.post__shot { margin: 0 0 44px; }
.post__zoom { display: block; max-height: 780px; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.post__zoom img { width: 100%; }
.post__caption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }

.doc { max-width: 720px; margin: 0 auto; font: 400 19px/1.6 var(--serif); letter-spacing: 0; text-transform: none; }
.doc h2 { margin: 56px 0 14px; padding-top: 10px; border-top: 1px solid var(--ink); font: 600 13px/1.2 var(--sans); letter-spacing: -0.02em; text-transform: uppercase; }
.doc h3 { margin: 32px 0 8px; font: 600 22px/1.1 var(--sans); letter-spacing: -0.03em; }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; font: 600 16px/1.2 var(--sans); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc code { padding: 1px 5px; background: var(--tint); }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: var(--ink); color: var(--bg); font-size: 14px; }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 18px; padding: 18px 22px; background: var(--lime); font-style: italic; font-size: 1.15em; }
.doc hr { margin: 32px 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: 16px; }
.doc th, .doc td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc th { font: 600 12px/1.2 var(--sans); text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 720px; margin: 32px auto 0; padding: 10px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.tags__item::before { content: "#"; color: var(--muted); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3vw; margin-top: 64px; padding-top: 10px; border-top: 1px solid var(--ink); }
.post__nav-link { font: 600 clamp(22px, 2.6vw, 40px)/0.95 var(--sans); letter-spacing: -0.045em; text-decoration: none; }
.post__nav-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: -0.02em; color: var(--muted); }
.post__back { text-decoration: none; }

.notice { padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font: 400 18px/1.45 var(--serif); text-transform: none; letter-spacing: 0; }
.notice--error { color: #9c1c1c; border-color: #9c1c1c; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 0 30px; border-top: 1px solid var(--ink); }
.colophon p { margin: 0; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.zoom::backdrop { background: rgb(13 13 13 / 0.86); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--ink); }
.zoom__close { padding: 6px 12px; border: 0; background: var(--ink); color: var(--bg); font: 600 13px/1 var(--sans); text-transform: uppercase; cursor: pointer; }
.zoom__scroll { height: calc(94vh - 46px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 900px) {
    .masthead__inner, .listing__header { grid-template-columns: 1fr; }
    .masthead__count { text-align: left; }
    .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
    .post--card, .post--card:nth-child(6n + 1), .post--card:nth-child(6n + 4) { grid-column: span 1; grid-row: auto; }
    .post--card:nth-child(3n + 1) { grid-column: 1 / -1; }
    .post--card:nth-child(6n + 5), .post--card:nth-child(6n + 6) { margin-top: 0; }
    .post__meta { flex-wrap: wrap; }
}
@media (max-width: 520px) {
    .page { padding: 0 14px; }
    .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%; }
