/* Catalog style "demo20" — the album as the live DEPO site: #18171a night, two soft green spots of light fading in and out behind glass tiles, the site header bar, a left control column, Lato / Poppins / Lazurski. Mirrors /demo20/. */
/*
 * Layout: a sticky 70 px site-header bar across the top (logo, "DEPO Demo album", the tagline as
 * a 50 %-white menu line, the count as the green "Join DEPO" pill); below it a two-column shell —
 * a left control column (style panel, sections menu, tag list) and the posts on the right as
 * rounded dark glass tiles, the newest one a wide feature tile. The background is the site's:
 * two green radial spots (42vmax radius, peak ~0.38) on a 16 s fade cycle that jump to new places
 * while invisible — pure CSS, body::before / ::after. The colophon echoes the site footer.
 */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600&display=swap");

@font-face { font-family: "Lazurski"; src: url("/_fonts/LazurskiRegular.woff2") format("woff2"), url("/_fonts/LazurskiRegular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lazurski"; src: url("/_fonts/LazurskiBold.woff2") format("woff2"), url("/_fonts/LazurskiBold.woff") format("woff"); font-weight: 700; font-display: swap; }
/* self-hosted copies of the site's Lato / Poppins (used when Google Fonts is unreachable) */
@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato DEPO"; src: url("/_fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins DEPO"; src: url("/_fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --bg: #18171a;
    --bar: rgb(24 23 26 / 0.86);
    --tile: rgb(38 37 42 / 0.62);
    --tile-solid: #232227;
    --tile-2: rgb(255 255 255 / 0.06);
    --line: rgb(255 255 255 / 0.1);
    --line-2: rgb(255 255 255 / 0.18);
    --ink: #f4f4f2;
    --menu: rgb(255 255 255 / 0.66);
    --mute: rgb(255 255 255 / 0.6);
    --spot: 83 245 126;
    --green: #469a58;
    --green-fill: #37804a;
    --green-text: #63bb75;
    --yellow: #ffb500;
    --text: "Lato", "Lato DEPO", system-ui, sans-serif;
    --head: "Poppins", "Poppins DEPO", system-ui, sans-serif;
    --pill: "Lazurski", Georgia, serif;
    --radius: 20px;
    --hdr: 70px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.88em/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: #fff; }

/* ---------- the site background: two green spots, fade in → glow → fade out, move while dark ---------- */
body::before, body::after {
    content: ""; position: fixed; z-index: 0; top: 0; left: 0; width: 84vmax; height: 84vmax; margin: -42vmax 0 0 -42vmax;
    border-radius: 50%; pointer-events: none; opacity: 0;
    background: radial-gradient(circle closest-side,
        rgb(var(--spot) / 1) 0%, rgb(var(--spot) / 0.78) 18%, rgb(var(--spot) / 0.45) 40%,
        rgb(var(--spot) / 0.18) 62%, rgb(var(--spot) / 0.05) 82%, rgb(var(--spot) / 0) 100%);
    animation: d20-glow-a 16s linear infinite, d20-move-a 48s step-end infinite;
    animation-delay: -4.8s, -4.8s;
    will-change: opacity;
}
body::after {
    animation-name: d20-glow-b, d20-move-b;
    animation-delay: -8.8s, -8.8s;
    translate: 20vw 76vh;
}
/* opacity over one cycle (the live curves: peaks 0.34 and 0.38 around a third of the cycle) */
@keyframes d20-glow-a { 0% { opacity: 0; } 12% { opacity: 0.14; } 34% { opacity: 0.34; } 60% { opacity: 0.2; } 86% { opacity: 0.05; } 100% { opacity: 0; } }
@keyframes d20-glow-b { 0% { opacity: 0; } 14% { opacity: 0.16; } 32% { opacity: 0.38; } 58% { opacity: 0.22; } 85% { opacity: 0.06; } 100% { opacity: 0; } }
/* three places per spot; every jump falls on a cycle boundary, when the spot is invisible */
@keyframes d20-move-a { 0% { translate: 72vw 24vh; } 33.333% { translate: 18vw 70vh; } 66.666% { translate: 80vw 82vh; } }
@keyframes d20-move-b { 0% { translate: 20vw 76vh; } 33.333% { translate: 76vw 30vh; } 66.666% { translate: 26vw 18vh; } }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 30; padding: 10px 18px; border-radius: 50px; background: var(--yellow); color: #18171a; font-weight: 700; text-decoration: none; }
.skip:focus { left: 16px; }
.deco { display: none; }

/* ---------- shell: header bar, then control column + content ---------- */
.page {
    position: relative; z-index: 1; min-height: 100vh; display: grid; column-gap: 40px;
    grid-template-columns: [full-start] minmax(0, 1fr) [side-start] 280px [side-end main-start] minmax(0, 1060px) [main-end] minmax(0, 1fr) [full-end];
    grid-template-rows: auto auto auto auto 1fr auto;
    padding: 0 16px;
}
.masthead { grid-column: full; grid-row: 1; margin: 0 -16px; }
.stylebar { grid-column: side; grid-row: 2; }
.categories { grid-column: side; grid-row: 3; }
.tagcloud { grid-column: side; grid-row: 4; }
.content { grid-column: main; grid-row: 2 / 6; min-width: 0; }
.colophon { grid-column: side-start / main-end; grid-row: 6; }

/* masthead = the site header */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--bar); border-bottom: 1px solid rgb(255 255 255 / 0.04); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.masthead__inner { display: flex; align-items: center; gap: 28px; height: var(--hdr); padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; text-decoration: none; }
.brand::before { content: ""; width: 75px; height: 53px; background: url("/_img/site/logo/logo.png") center / contain no-repeat; }
.brand__mark { font: 600 21px/1 var(--head); letter-spacing: 0.02em; }
.brand__name { padding-left: 12px; border-left: 1px solid var(--line-2); color: var(--menu); font-size: 16px; }
.brand:hover .brand__name { color: #fff; }
.masthead__tagline { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; color: var(--menu); font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.masthead__count {
    display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; margin: 0 0 0 auto; padding: 0 18px; border-radius: 50px;
    background: var(--green-fill); color: #fff; font: 400 14px/1 var(--pill); text-transform: uppercase; white-space: nowrap;
}
.masthead__num { font-weight: 700; color: #fff; }

/* ---------- control column ---------- */
.stylebar, .categories, .tagcloud { margin-top: 28px; }
.stylebar { padding: 18px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stylebar__label { flex: 1; color: var(--yellow); font: 600 13px/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.stylebar__value { order: 2; flex: 1 1 100%; min-width: 0; padding: 9px 12px; overflow-x: auto; white-space: nowrap; background: rgb(0 0 0 / 0.32); border: 1px solid var(--line); border-radius: 10px; color: #e7f3ea; font-size: 12.5px; scrollbar-width: thin; }
.stylebar__copy {
    order: 1; height: 30px; padding: 0 16px; border: 1px solid var(--yellow); border-radius: 50px; background: var(--yellow); color: #18171a;
    font: 400 13px/1 var(--pill); text-transform: uppercase; cursor: pointer; transition: filter 0.2s ease;
}
.stylebar__copy:hover { filter: brightness(1.08); }
.stylebar__copy.is-done { background: transparent; color: var(--yellow); }
.stylebar__list { order: 3; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; width: 100%; margin-top: 4px; }
.stylebar__item { padding: 5px 6px; border-radius: 8px; color: var(--menu); font-size: 13px; text-align: center; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.stylebar__item:hover { background: var(--tile-2); color: #fff; }
.stylebar__item.is-active { background: var(--green-fill); color: #fff; font-weight: 700; }
.stylebar__item--uploaded { font-style: italic; }
.stylebar__tools { order: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.stylebar__guide, .stylebar__download, .stylebar__upload-toggle { color: var(--menu); text-decoration: none; cursor: pointer; transition: color 0.2s ease; overflow-wrap: anywhere; }
.stylebar__guide:hover, .stylebar__download:hover, .stylebar__upload-toggle:hover { color: #fff; }
.stylebar__guide { color: var(--green-text); font-weight: 700; }
.stylebar__download--addon { padding-left: 14px; font-size: 13px; }
.stylebar__upload { width: 100%; }
.stylebar__upload-toggle { display: inline-block; list-style: none; color: var(--yellow); }
.stylebar__upload-toggle::-webkit-details-marker { display: none; }
.stylebar__upload-toggle::before { content: "+ "; }
.stylebar__upload[open] .stylebar__upload-toggle::before { content: "− "; }
.upload-form { display: grid; gap: 6px; margin-top: 10px; }
.upload-form__label { color: var(--mute); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.upload-form__input, .upload-form__file { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: rgb(0 0 0 / 0.3); color: var(--ink); font: inherit; font-size: 14px; }
.upload-form__input:focus, .upload-form__file:focus { border-color: var(--green-text); outline: none; box-shadow: 0 0 0 3px rgb(83 245 126 / 0.22); }
.upload-form__submit { justify-self: start; margin-top: 4px; cursor: pointer; font-family: var(--pill); }
.upload-form__note { color: var(--mute); font-size: 12px; line-height: 1.45; }
.stylebar__flash { order: 5; width: 100%; margin: 6px 0 0; }

/* sections = a vertical site menu */
.categories__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.categories__link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 14px 8px 18px; border-radius: 50px; color: var(--menu); font-size: 17px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.categories__link:hover { color: #fff; background: var(--tile-2); }
.categories__link.is-active { color: var(--green-text); background: rgb(70 154 88 / 0.14); }
.categories__count { min-width: 30px; padding: 2px 8px; border-radius: 50px; background: var(--tile-2); color: var(--mute); font-size: 12px; font-weight: 700; text-align: center; }
.categories__link.is-active .categories__count { background: var(--green-fill); color: #fff; }

/* ---------- list ---------- */
.content { padding: 28px 0 72px; }
.listing__header { margin-bottom: 26px; }
.listing__title { margin: 6px 0 0; font: 600 clamp(34px, 4vw, 52px)/1.08 var(--head); letter-spacing: -0.01em; }
.listing__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--yellow); }
.listing__intro { max-width: 62ch; margin: 12px 0 0; color: var(--mute); font-size: 17px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 8px 8px 20px; background: var(--tile); border: 1px solid var(--line); border-radius: 50px; color: var(--mute); font-size: 14px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.toolbar p { margin: 0; }
.toolbar__range { color: var(--ink); font-weight: 700; }
.toolbar__view { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 50px; color: var(--menu); font-weight: 700; text-decoration: none; }
.toolbar__opt:hover { color: #fff; background: var(--tile-2); }
.toolbar__opt.is-active { background: var(--yellow); color: #18171a; }

.listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post--card {
    display: flex; flex-direction: column; min-width: 0; padding: 10px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.post--card:hover { border-color: rgb(83 245 126 / 0.4); background: rgb(44 46 46 / 0.7); transform: translateY(-2px); }
.post__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px; background: #101012; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.7s ease; }
.post--card:hover .post__thumb { transform: scale(1.03); }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 18px 14px 12px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; color: var(--mute); font-size: 14px; }
.post__num { padding: 2px 10px; border-radius: 50px; background: rgb(255 181 0 / 0.14); color: var(--yellow); font-weight: 700; }
.post__cat { color: var(--green-text); text-decoration: none; }
.post__cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__title { margin: 0 0 10px; font: 600 24px/1.2 var(--head); letter-spacing: -0.005em; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--green-text); }
.post__excerpt { margin: 0 0 20px; color: rgb(255 255 255 / 0.72); }
.post__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; }

/* the newest post on the page: a wide feature tile */
.listing > .post--card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.listing > .post--card:first-child .post__media { aspect-ratio: auto; min-height: 100%; max-height: 440px; }
.listing > .post--card:first-child .post__body { padding: 22px 22px 18px; }
.listing > .post--card:first-child .post__title { font-size: clamp(26px, 2.6vw, 36px); }

/* pills: the site's "Join DEPO" (solid) and "Choose magazine" (outline) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 18px; border: 1px solid var(--green-text);
    border-radius: 50px; background: transparent; color: var(--green-text); font: 400 14px/1 var(--pill); text-transform: uppercase; text-decoration: none; white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.btn:hover { background: rgb(70 154 88 / 0.16); }
.btn--primary { border-color: var(--green-fill); background: var(--green-fill); color: #fff; }
.btn--primary:hover { background: var(--green-fill); filter: brightness(1.12); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 44px; }
.pager__link { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 50px; background: var(--tile); color: var(--menu); font-weight: 700; text-decoration: none; }
.pager__link:hover { color: #fff; border-color: var(--line-2); }
.pager__link.is-active { background: var(--yellow); border-color: var(--yellow); color: #18171a; }
.pager__link--prev, .pager__link--next { font: 400 14px/1 var(--pill); text-transform: uppercase; }

/* ---------- one post (and the guide) ---------- */
.post--full { max-width: 900px; }
.post__header { padding: 4px 0 30px; }
.post--full .post__title { margin: 8px 0 14px; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.015em; }
.post--full .post__excerpt { max-width: 62ch; margin-bottom: 24px; color: rgb(255 255 255 / 0.76); font-size: 19px; }
.post__shot { margin: 0 0 44px; padding: 10px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); }
.post__zoom { display: block; max-height: 680px; overflow: hidden; border-radius: 13px; background: #101012; cursor: zoom-in; }
.post__zoom img { width: 100%; transition: opacity 0.3s ease; }
.post__zoom:hover img { opacity: 0.9; }
.post__caption { padding: 10px 6px 2px; color: var(--mute); font-size: 14px; }

.doc { font-size: 17px; line-height: 1.7; color: rgb(255 255 255 / 0.86); }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 48px 0 14px; color: var(--ink); font: 600 28px/1.2 var(--head); }
.doc h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin: 0 12px 0.15em 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px 4px rgb(83 245 126 / 0.35); vertical-align: middle; }
.doc h3 { margin: 32px 0 8px; color: var(--ink); font: 600 20px/1.3 var(--head); }
.doc h4, .doc h5, .doc h6 { margin: 24px 0 6px; color: var(--ink); font-size: 17px; font-weight: 700; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li::marker { color: var(--green-text); }
.doc strong { color: var(--ink); }
.doc a { color: var(--green-text); text-underline-offset: 3px; }
.doc a:hover { color: #8fe0a0; }
.doc code { padding: 1px 6px; background: rgb(255 255 255 / 0.08); border-radius: 6px; color: #ffd27a; }
.doc pre { margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); border-radius: 14px; color: #e5efe7; }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 18px; padding: 14px 20px; border-left: 3px solid var(--yellow); border-radius: 0 14px 14px 0; background: rgb(255 181 0 / 0.07); color: rgb(255 255 255 / 0.8); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.doc img { border-radius: 12px; }
.doc-table { margin: 0 0 20px; overflow-x: auto; background: var(--tile); border: 1px solid var(--line); border-radius: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--yellow); font: 600 12px/1.3 var(--head); letter-spacing: 0.06em; text-transform: uppercase; background: rgb(0 0 0 / 0.2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 34px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 50px; color: var(--menu); font-size: 13px; }
.tags__item::before { content: "#"; color: var(--green-text); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 52px; }
.post__nav-link { padding: 18px 22px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); font: 600 17px/1.3 var(--head); text-decoration: none; transition: border-color 0.2s ease; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.post__nav-link:hover { border-color: rgb(83 245 126 / 0.45); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 4px; color: var(--yellow); font: 400 13px/1 var(--pill); text-transform: uppercase; }
.post__nav-link--newer .post__nav-label::before { content: "← "; }
.post__nav-link--older .post__nav-label::after { content: " →"; }

/* guide: the post markup without a screenshot */
.catalog--guide .post__num { background: var(--green-fill); color: #fff; }

/* notices */
.notice { padding: 18px 22px; background: var(--tile-solid); border: 1px solid var(--line-2); border-left: 4px solid var(--yellow); border-radius: 14px; }
.notice p { margin: 0; }
.notice a { color: var(--green-text); }
.notice--ok { border-left-color: var(--green-text); }
.notice--error { border-left-color: #ff6b5b; color: #ffd2cc; }

/* colophon = the site footer line */
.colophon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 8px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.colophon::before { content: ""; width: 180px; height: 41px; background: url("/_img/site/logo/logo-depo-place.svg") left center / contain no-repeat; }
.colophon p { margin: 0; }
.colophon__text { flex: 1; }
.colophon__text code { color: var(--yellow); }
.colophon__links a { color: var(--menu); text-underline-offset: 3px; }
.colophon__links a:hover { color: #fff; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); color: var(--ink); overflow: hidden; }
.zoom::backdrop { background: rgb(12 12 14 / 0.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom__bar { display: flex; justify-content: flex-end; height: 58px; padding: 12px 14px; background: var(--bar); border-bottom: 1px solid var(--line); }
.zoom__close { height: 34px; padding: 0 20px; border: 0; border-radius: 50px; background: var(--green-fill); color: #fff; font: 400 14px/1 var(--pill); text-transform: uppercase; cursor: pointer; }
.zoom__close:hover { filter: brightness(1.12); }
.zoom__scroll { height: calc(94vh - 58px); overflow: auto; }
.zoom__img { width: 100%; }

/* ---------- narrower screens: one column, the control column above the posts ---------- */
@media (max-width: 1100px) {
    .page { grid-template-columns: [full-start side-start main-start] minmax(0, 1fr) [full-end side-end main-end]; grid-template-rows: none; padding: 0 20px; }
    .masthead { margin: 0 -20px; }
    .masthead, .stylebar, .categories, .tagcloud, .content, .colophon { grid-column: 1; grid-row: auto; }
    .stylebar__tools { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
    .stylebar__download--addon { padding-left: 0; }
    .upload-form { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .upload-form__submit, .upload-form__note { grid-column: 1 / -1; }
    .categories__list { display: flex; flex-wrap: wrap; gap: 6px; }
    .categories__link { min-height: 40px; padding: 6px 8px 6px 16px; border: 1px solid var(--line); font-size: 15px; }
    .categories, .tagcloud { margin-top: 18px; }
    .masthead__tagline { display: none; }
}
@media (max-width: 760px) {
    .listing { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .listing > .post--card:first-child { display: flex; }
    .listing > .post--card:first-child .post__media { aspect-ratio: 4 / 3; min-height: 0; }
    .listing > .post--card:first-child .post__body { padding: 18px 14px 12px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; }
    .toolbar { border-radius: 18px; padding: 10px 10px 10px 16px; }
}
@media (max-width: 520px) {
    .page { padding: 0 16px; }
    .masthead { margin: 0 -16px; }
    .masthead__inner { gap: 10px; padding: 0 12px; }
    .brand { gap: 10px; }
    .brand::before { width: 52px; height: 37px; }
    .brand__name { padding-left: 10px; font-size: 14px; }
    .masthead__count { height: 30px; padding: 0 12px; font-size: 12px; }
    .stylebar { padding: 14px; }
    .post--full .post__excerpt { font-size: 17px; }
    .doc { font-size: 16px; }
    .doc h2 { font-size: 23px; }
    .btn { padding: 0 14px; }
    .colophon::before { width: 150px; height: 34px; }
}
@media (max-width: 380px) {
    .brand__name { display: none; }
}

/* reduced motion: the spots stop at a soft glow, nothing slides */
@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; }
    body::before { opacity: 0.3; translate: 72vw 24vh; }
    body::after { opacity: 0.26; translate: 20vw 76vh; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    .post--card:hover { transform: none; }
}

/* 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 { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
/* table cells break long words only when they must (no "Librarie s" in narrow first columns) */
.doc td, .doc th { overflow-wrap: break-word; }
