/* Catalog style "demo28" — the album as a magazine contents page: warm paper, Instrument Serif + Inter Tight, 2px black rules, numbered entries with dotted leaders and square photo stamps; a post opens as a spread. Mirrors /demo28/. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    --paper: #f2eee6;
    --paper-2: #e8e2d6;
    --paper-3: #ddd5c6;
    --ink: #191714;
    --muted: #6e675c;
    --rule: #191714;
    --hair: rgb(25 23 20 / 0.16);
    --dots: rgb(25 23 20 / 0.42);
    --rust: #b0361f;
    --c1: #b0361f;
    --c2: #2f5d8a;
    --c3: #2f6d4f;
    --c4: #8a4d9c;
    --c5: #9a6a12;
    --c6: #3d4e9e;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --edge: clamp(16px, 2.6vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

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

.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; transform: translateY(-200%); }
.skip:focus { transform: none; }
.deco { display: none; }

/* small uppercase label, used all over */
.stylebar__label, .categories::before, .tagcloud__title, .post__meta, .toolbar, .post__nav-label, .post__caption, .colophon, .masthead__count { font-family: var(--sans); }

/* ── page grid: running head, masthead, then the contents column and the entries ──────────── */
.page {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: clamp(28px, 3.4vw, 56px); max-width: 1480px; margin: 0 auto; padding: 0 var(--edge);
}
.stylebar { grid-column: 1 / -1; grid-row: 1; }
.masthead { grid-column: 1 / -1; grid-row: 2; }
.categories { grid-column: 1; grid-row: 3; }
.tagcloud { grid-column: 1; grid-row: 4; }
.content { grid-column: 2; grid-row: 3 / 6; min-width: 0; }
.colophon { grid-column: 1 / -1; grid-row: 6; }

/* ── style bar: the running head above the masthead ────────────────────────────────────────── */
.stylebar { padding: 14px 0 12px; border-bottom: 1px solid var(--hair); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stylebar__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 9px 0 7px; overflow-x: auto; white-space: nowrap; border-bottom: 1.5px solid var(--rule); color: var(--ink); font-size: 13px; scrollbar-width: thin; }
.stylebar__copy {
    min-height: 40px; padding: 0 20px; border: 1.5px solid var(--rule); border-radius: 0; background: var(--ink); color: var(--paper);
    font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 200ms ease, border-color 200ms ease;
}
.stylebar__copy:hover { background: var(--rust); border-color: var(--rust); }
.stylebar__copy.is-done { background: var(--paper); color: var(--ink); }
.stylebar__copy.is-done::after { content: " ✓"; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 2px 14px; width: 100%; }
.stylebar__item { padding: 4px 0; border-bottom: 1px solid transparent; color: var(--muted); font: 500 13px/1.3 var(--sans); letter-spacing: 0.02em; text-decoration: none; }
.stylebar__item:hover { color: var(--rust); }
.stylebar__item.is-active { border-bottom-color: var(--rust); color: var(--rust); font-weight: 700; }
.stylebar__tools { color: var(--ink); font-size: 12.5px; }
.stylebar__guide { color: var(--rust); }
.upload-form__input, .upload-form__file { border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0; }
.upload-form__submit { min-height: 36px; }

/* ── masthead: the contents page opener ───────────────────────────────────────────────────── */
.masthead { padding: clamp(28px, 4vw, 52px) 0 clamp(22px, 2.6vw, 34px); border-bottom: 2px solid var(--rule); }
.masthead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "issue issue" "brand count" "tag count"; align-items: end; gap: 0 40px; }
.masthead__inner::before {
    content: "DEPO — Demo album — Contents"; grid-area: issue; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--hair);
    font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
}
.brand { grid-area: brand; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3em; text-decoration: none; }
.brand__mark { font: 400 clamp(84px, 13vw, 200px)/0.8 var(--serif); letter-spacing: -0.04em; }
.brand__name { font: italic 400 clamp(34px, 4.6vw, 72px)/0.9 var(--serif); letter-spacing: -0.015em; color: var(--muted); }
.brand:hover .brand__mark { color: var(--rust); }
.masthead__tagline { grid-area: tag; max-width: 46ch; margin: 20px 0 0; font-size: 17px; line-height: 1.5; }
.masthead__count { grid-area: count; margin: 0; padding: 14px 0 0 24px; border-left: 2px solid var(--rule); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-align: left; }
.masthead__num { display: block; margin-bottom: 6px; color: var(--ink); font: 400 clamp(72px, 8vw, 128px)/0.8 var(--serif); letter-spacing: -0.03em; }

/* ── categories: the contents column ──────────────────────────────────────────────────────── */
.categories { margin: 0; padding: 22px 0 0; counter-reset: cat -1; }
.categories::before { content: "Index"; display: block; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font: 400 40px/1 var(--serif); }
.categories__list { margin: 0; padding: 0; list-style: none; }
.categories__item { counter-increment: cat; --c: var(--c1); }
.categories__item:nth-child(6n+2) { --c: var(--c1); }
.categories__item:nth-child(6n+3) { --c: var(--c2); }
.categories__item:nth-child(6n+4) { --c: var(--c3); }
.categories__item:nth-child(6n+5) { --c: var(--c4); }
.categories__item:nth-child(6n) { --c: var(--c5); }
.categories__item:nth-child(6n+1) { --c: var(--c6); }
.categories__link { display: flex; align-items: baseline; gap: 12px; min-height: 46px; padding: 10px 0; border-bottom: 1px solid var(--hair); font: 400 22px/1.1 var(--serif); text-decoration: none; }
.categories__link::before { content: counter(cat, decimal-leading-zero); flex: none; width: 22px; color: var(--c); font: 600 12px/1 var(--sans); }
.categories__link::after { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 1px dotted var(--dots); transform: translateY(-4px); }
.categories__count { order: 2; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.categories__link:hover { font-style: italic; }
.categories__link:hover::before { transform: translateX(0); }
.categories__item:first-child .categories__link { padding: 12px 0; border-bottom-color: var(--rule); font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.categories__item:first-child .categories__link::before { content: "—"; color: var(--ink); }
.categories__link.is-active { box-shadow: inset 3px 0 0 var(--c); padding-left: 10px; font-style: italic; }
.categories__item:first-child .categories__link.is-active { color: var(--rust); font-style: normal; box-shadow: none; padding-left: 0; }

/* ── listing ───────────────────────────────────────────────────────────────────────────────── */
.content { padding: 22px 0 clamp(64px, 7vw, 120px); }
.listing__header { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.listing__title { margin: 0; font: 400 clamp(48px, 6vw, 92px)/0.88 var(--serif); letter-spacing: -0.03em; }
.listing__intro { max-width: 56ch; margin: 12px 0 0; font: italic 400 22px/1.3 var(--serif); color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 0; }
.toolbar__label { margin-right: 10px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 40px; height: 34px; border: 1.5px solid var(--rule); margin-left: -1.5px; color: var(--ink); text-decoration: none; letter-spacing: 0.04em; }
.toolbar__opt:hover { background: var(--paper-2); }
.toolbar__opt.is-active { background: var(--ink); color: var(--paper); }

/* each post: one contents entry — a square stamp, the title running into dotted leaders, the number */
.listing { margin: 0; counter-reset: entry; }
.post--card {
    --c: var(--c1); counter-increment: entry;
    position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 28px; padding: 24px 0; border-bottom: 1px solid var(--hair);
}
.post--card:nth-child(6n+2) { --c: var(--c2); }
.post--card:nth-child(6n+3) { --c: var(--c3); }
.post--card:nth-child(6n+4) { --c: var(--c4); }
.post--card:nth-child(6n+5) { --c: var(--c5); }
.post--card:nth-child(6n) { --c: var(--c6); }
.post__media {
    position: relative; display: block; width: 128px; height: 128px; padding: 4px; background: #fbf9f4; align-self: start; margin-top: 4px;
    box-shadow: 0 8px 16px -8px rgb(25 23 20 / 0.55); transition: transform 300ms var(--ease);
}
.post__media::after {
    content: counter(entry, decimal-leading-zero); position: absolute; left: -7px; top: -9px; padding: 3px 5px; background: var(--c); color: #fff; font: 700 11px/1 var(--sans);
}
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: sepia(0.12) contrast(1.02); }
.post--card:hover .post__media { transform: scale(1.06) rotate(-3deg); }
.post__body {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas:
        "title title title num"
        "cat date . ."
        "stats stats stats stats"
        "fits fits fits fits"
        "excerpt excerpt excerpt ."
        "actions actions actions actions";
    align-items: baseline; column-gap: 0; min-width: 0;
}
.post--card .post__meta { display: contents; }
.post__num { grid-area: num; padding-left: 12px; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; white-space: nowrap; }
.post--card .post__cat { grid-area: cat; margin: 10px 18px 0 0; }
.post--card .post__date { grid-area: date; margin-top: 10px; }
.post__cat, .post__date { color: var(--muted); font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.post__cat { color: var(--c); text-decoration: none; }
.post__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__title { grid-area: title; display: flex; align-items: baseline; min-width: 0; margin: 0; font: 400 clamp(30px, 3vw, 46px)/1 var(--serif); letter-spacing: -0.02em; }
.post--card .post__title::after { content: ""; flex: 1; min-width: 24px; margin-left: 14px; border-bottom: 1.5px dotted var(--dots); transform: translateY(-6px); }
.post__title a { text-decoration: none; transition: transform 200ms var(--ease); }
.post--card .post__title a:hover { color: var(--rust); font-style: italic; }
.post__stats { grid-area: stats; }
.post__fits { grid-area: fits; }
.post__excerpt { grid-area: excerpt; max-width: 62ch; margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: #3d3831; }
.post__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 16px 0 0; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink);
    font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer;
}
.btn:hover { color: var(--rust); }
.btn--primary { padding: 0 18px; border: 1.5px solid var(--rule); background: var(--ink); color: var(--paper); text-decoration: none; transition: background 200ms ease, border-color 200ms ease; }
.btn--primary:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

.pager { display: flex; flex-wrap: wrap; align-items: center; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--rule); }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1.5px solid var(--rule); margin-left: -1.5px; font: 400 22px/1 var(--serif); text-decoration: none; }
.pager__link:first-child { margin-left: 0; }
.pager__link:hover { background: var(--paper-2); }
.pager__link.is-active { background: var(--ink); color: var(--paper); }
.pager__link--prev, .pager__link--next { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }

/* ── one post: the spread ─────────────────────────────────────────────────────────────────── */
.catalog--post .categories { grid-column: 1 / -1; grid-row: 3; padding-top: 0; }
.catalog--post .categories::before { display: none; }
.catalog--post .categories__list { display: flex; flex-wrap: wrap; gap: 0 26px; border-bottom: 1px solid var(--rule); }
.catalog--post .categories__link { min-height: 44px; padding: 12px 0; border-bottom: 0; font-size: 19px; }
.catalog--post .categories__link::after { display: none; }
.catalog--post .categories__count { color: var(--muted); }
.catalog--post .categories__item:first-child .categories__link { padding: 12px 0; }
.catalog--post .categories__link.is-active { padding-left: 0; box-shadow: inset 0 -3px 0 var(--c); }
.catalog--post .content { grid-column: 1 / -1; grid-row: 4 / 6; padding-top: clamp(28px, 3.4vw, 48px); }

.post--full { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); }
.post--full > * { grid-column: 1; min-width: 0; }
.post--full .post__shot { grid-row: 1; }
/* the right page: the title, standfirst and actions stay open beside the whole left page */
.post--full .post__header { grid-column: 2; grid-row: 1 / span 9; align-self: start; position: sticky; top: 24px; }
.post--full .post__nav { grid-column: 1 / -1; }
.post--full.guide > * { grid-column: 1 / -1; }
.post--full.guide .post__header { grid-row: auto; position: static; }
.post__header { padding: 0 0 24px; }
.post--full .post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.post--full .post__num { grid-area: auto; padding: 4px 7px; background: var(--rust); color: #fff; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.post--full .post__cat { color: var(--ink); }
.post--full .post__title { display: block; font-size: clamp(56px, 7vw, 116px); line-height: 0.86; letter-spacing: -0.035em; }
.post--full .post__excerpt { max-width: 40ch; margin-top: 20px; font: italic 400 clamp(21px, 1.8vw, 26px)/1.3 var(--serif); color: var(--ink); }
.post--full .post__actions { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--rule); }
.post__shot { margin: 0 0 clamp(40px, 5vw, 64px); }
.post__zoom { position: relative; display: block; max-height: 780px; overflow: hidden; padding: 6px; background: #fbf9f4; box-shadow: 0 18px 36px -18px rgb(25 23 20 / 0.55); cursor: zoom-in; }
.post__zoom::before { content: "Fig. 1"; position: absolute; z-index: 1; left: 0; bottom: 0; padding: 8px 12px; background: var(--rust); color: #fff; font: 600 11.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.post__zoom img { width: 100%; transition: transform 700ms var(--ease); }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { margin-top: 12px; color: var(--muted); font: italic 400 17px/1.3 var(--serif); }

.post__doc { max-width: 760px; }
.post--full .post__doc { justify-self: start; padding-top: 22px; border-top: 2px solid var(--rule); }
.doc { font-size: 17px; line-height: 1.65; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 52px 0 14px; padding-top: 12px; border-top: 1px solid var(--rule); font: 400 clamp(34px, 3.4vw, 50px)/0.95 var(--serif); letter-spacing: -0.02em; }
.doc > h2:first-child { border-top: 0; padding-top: 0; }
.doc h3 { margin: 32px 0 8px; font: italic 400 26px/1.1 var(--serif); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 8px; font: 600 12px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.doc p, .doc ul, .doc ol { max-width: 66ch; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--rust); font-weight: 600; }
.doc a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc code { padding: 1px 5px; background: var(--paper-2); }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border: 1.5px solid var(--rule); background: #fbf9f4; color: var(--ink); }
.doc pre code { padding: 0; background: none; }
.doc blockquote { margin: 0 0 20px; padding: 6px 0 6px 22px; border-left: 2px solid var(--rust); font: italic 400 24px/1.3 var(--serif); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px 0; border: 0; border-top: 2px solid var(--rule); }
.doc-table { margin: 0 0 20px; overflow-x: auto; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { border-bottom: 1px solid var(--rule); font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.doc td:first-child { font: 400 19px/1.2 var(--serif); white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 36px 0 0; padding: 0; list-style: none; max-width: 760px; }
.tags__item { color: var(--muted); font: 600 12px/2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.tags__item + .tags__item::before { content: "/"; margin-right: 8px; color: var(--dots); }

.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.post__nav-link { padding: 18px 0; font: 400 clamp(26px, 2.6vw, 38px)/1 var(--serif); text-decoration: none; }
.post__nav-link:hover { color: var(--rust); font-style: italic; }
.post__nav-link--older { grid-column: 2; padding-left: 20px; border-left: 1px solid var(--rule); text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; }

.notice { padding: 16px 0 16px 18px; border-left: 3px solid var(--rule); background: var(--paper-2); font: italic 400 21px/1.35 var(--serif); }
.notice p { margin: 0; }
.notice a { color: var(--rust); }
.notice--error { border-left-color: var(--rust); color: #8a2a17; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; padding: 18px 0 40px; border-top: 2px solid var(--rule); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.colophon p { margin: 0; }
.colophon a { color: var(--ink); text-underline-offset: 3px; }
.colophon a:hover { color: var(--rust); }

/* ── screenshot dialog ─────────────────────────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; overflow: hidden; border: 2px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); }
.zoom::backdrop { background: rgb(25 23 20 / 0.78); }
.zoom__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px; border-bottom: 2px solid var(--rule); background: var(--paper); }
.zoom__close { min-height: 40px; padding: 0 18px; border: 1.5px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); font: 600 12px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.zoom__close:hover { background: var(--ink); color: var(--paper); }
.zoom__scroll { height: calc(94vh - 64px); overflow: auto; }
.zoom__img { width: 100%; }

/* ── responsive ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .post--full .post__shot, .post--full .post__header { grid-column: 1 / -1; grid-row: auto; position: static; }
    .post--full .post__header { order: -1; }
    .post--full { display: flex; flex-direction: column; }
}
@media (max-width: 900px) {
    .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .stylebar, .masthead, .categories, .tagcloud, .content, .colophon, .catalog--post .categories, .catalog--post .content { grid-column: 1; grid-row: auto; }
    .masthead__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "issue" "brand" "tag" "count"; }
    .masthead__count { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
    .masthead__num { margin: 0; font-size: 64px; }
}
@media (max-width: 600px) {
    .post--card { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; padding: 20px 0; }
    .post__media { width: 84px; height: 84px; padding: 3px; }
    .post__title { font-size: 28px; }
    .post--card .post__title::after { display: none; }
    .post__body { grid-template-areas: "num num num num" "title title title title" "cat date . ." "stats stats stats stats" "fits fits fits fits" "excerpt excerpt excerpt excerpt" "actions actions actions actions"; }
    .post__num { padding: 0 0 6px; color: var(--muted); font-size: 11.5px; }
    .post__excerpt { font-size: 14.5px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); text-align: left; }
    .catalog--post .categories__list { gap: 0 18px; }
    .stylebar__copy { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* long words and URLs in the doc and comments wrap instead of widening the page */
.doc p, .doc li, .doc blockquote, .doc td, .doc th, .comment__body, .post__excerpt { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
.doc td:first-child { overflow-wrap: normal; }
