/* Catalog style "demo27" — the album as a night radar: near-black glass panels, signal green, Unbounded + IBM Plex Mono, categories as a Frequencies panel with glowing bars beside a column of duotone signal rows. Mirrors /demo27/. */
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
    --night: #0a0b0d;
    --night-2: #111216;
    --glass: rgb(14 15 18 / 0.78);
    --glass-solid: #0e0f12;
    --edge: rgb(255 255 255 / 0.09);
    --edge-2: rgb(255 255 255 / 0.16);
    --text: #eef0f4;
    --soft: #c3c7d0;
    --dim: #8d93a0;
    --sig: #9dff6a;
    --sig-glow: rgb(157 255 106 / 0.55);
    --purple: #8f84ff;
    --pink: #ff6fa3;
    --orange: #ffa066;
    --magenta: #e98bd6;
    --blue: #7aa5ff;
    --amber: #f2c46b;
    --display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
    --edge-x: clamp(16px, 2.6vw, 40px);
    --r: 18px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; overflow-x: hidden; background: var(--night); color: var(--text); font: 400 15px/1.65 var(--mono); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.92em/1.4 var(--mono); }
:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }
::selection { background: var(--sig); color: var(--night); }

.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--sig); color: var(--night); font: 600 13px/1 var(--mono); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ── glowing lights behind everything (the speciality lights of the map) ─────────────────── */
.deco { position: fixed; z-index: 0; display: block; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: 0.38; }
.deco--1 { top: -12vh; left: -10vw; width: 46vw; height: 46vw; background: radial-gradient(closest-side, #5b4cf0, transparent); }
.deco--2 { top: 40vh; right: -14vw; width: 40vw; height: 40vw; background: radial-gradient(closest-side, #d6457a, transparent); opacity: 0.26; }
.deco--3 { bottom: -18vh; left: 30vw; width: 34vw; height: 34vw; background: radial-gradient(closest-side, #9dff6a, transparent); opacity: 0.12; }
.page > :not(.deco) { position: relative; z-index: 1; }
.page > .categories { position: sticky; }

/* ── page grid: everything left, the Frequencies panel right ───────────────────────────────── */
.page {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: 28px; max-width: 1600px; margin: 0 auto; padding: 0 var(--edge-x);
}
.masthead { grid-column: 1 / -1; grid-row: 1; }
.stylebar { grid-column: 1 / -1; grid-row: 2; }
.tagcloud { grid-column: 1; grid-row: 3; }
.content { grid-column: 1; grid-row: 4 / 6; min-width: 0; }
.categories { grid-column: 2; grid-row: 3 / 6; }
.colophon { grid-column: 1 / -1; grid-row: 6; }
.catalog--post .content { grid-row: 3 / 6; }

/* ── masthead: the banner — duotone faces, a huge uppercase title, the live readout ──────── */
.masthead { margin: var(--edge-x) 0 0; overflow: hidden; border: 1px solid var(--edge); border-radius: 24px; background: #000; isolation: isolate; }
.masthead::before {
    content: ""; position: absolute; inset: 0 0 0 42%; z-index: -2;
    background:
        url("/_img/photos/photo-22.jpg") 0% 25% / auto 130% no-repeat,
        url("/_img/photos/photo-23.jpg") 50% 25% / auto 130% no-repeat,
        url("/_img/photos/photo-24.jpg") 100% 25% / auto 130% no-repeat,
        #120f2a;
    filter: grayscale(1) contrast(1.2) brightness(0.62);
}
.masthead::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, #000 0%, #000 38%, rgb(0 0 0 / 0.55) 56%, rgb(0 0 0 / 0.15) 100%),
        linear-gradient(140deg, rgb(91 76 240 / 0.55), rgb(214 69 122 / 0.45) 60%, rgb(157 255 106 / 0.2));
}
.masthead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand count" "tag count"; align-items: end; gap: 18px 32px; min-height: clamp(300px, 30vw, 420px); padding: clamp(28px, 4vw, 56px); }
.brand { grid-area: brand; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 18px; text-decoration: none; align-self: center; }
.brand__name { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sig); }
.brand__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 12px var(--sig); animation: d27-pulse 1.8s infinite; }
.brand__name::after { content: "· live"; }
@keyframes d27-pulse { 50% { opacity: 0.3; } }
.brand__mark { font: 800 clamp(64px, 11vw, 168px)/0.84 var(--display); letter-spacing: -0.05em; text-transform: uppercase; color: #fff; }
.brand:hover .brand__mark { text-shadow: 0 0 40px rgb(157 255 106 / 0.35); }
.masthead__tagline { grid-area: tag; max-width: 46ch; margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.masthead__count {
    grid-area: count; align-self: end; min-width: 220px; margin: 0; padding: 16px 20px 18px; border: 1px solid var(--edge); border-radius: 16px;
    background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--dim); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.masthead__num { display: block; margin-bottom: 8px; font: 800 clamp(48px, 5vw, 68px)/1 var(--display); letter-spacing: -0.05em; color: #fff; text-shadow: 0 0 30px rgb(157 255 106 / 0.35); }
.masthead__count::after { content: " in view"; }

/* ── style bar: a glass control strip ──────────────────────────────────────────────────────── */
.stylebar { margin: 14px 0 0; }
.stylebar__inner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px; border: 1px solid var(--edge); border-radius: var(--r);
    background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.stylebar__label { padding: 0 6px; font: 600 13px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.stylebar__value { flex: 1 1 260px; min-width: 0; padding: 11px 14px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--edge); border-radius: 12px; background: #15161b; color: var(--text); font-size: 13px; scrollbar-width: thin; scrollbar-color: #2a2c33 transparent; }
.stylebar__copy {
    min-height: 44px; padding: 0 22px; border: 1px solid var(--sig); border-radius: 999px; background: var(--sig); color: var(--night);
    font: 600 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
    box-shadow: 0 0 18px -2px var(--sig-glow); transition: box-shadow 200ms ease, transform 150ms ease;
}
.stylebar__copy:hover { box-shadow: 0 0 28px 0 var(--sig-glow); }
.stylebar__copy:active { transform: scale(0.97); }
.stylebar__copy.is-done { background: transparent; color: var(--sig); }
.stylebar__copy.is-done::after { content: " ✓"; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.stylebar__item { padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; color: var(--dim); font: 500 12px/1 var(--mono); letter-spacing: 0.04em; text-decoration: none; }
.stylebar__item:hover { color: #fff; border-color: var(--edge-2); }
.stylebar__item.is-active { border-color: var(--sig); background: rgb(157 255 106 / 0.12); color: var(--sig); box-shadow: 0 0 14px -4px var(--sig-glow); }
.stylebar__tools { padding: 8px 6px 2px; border-top: 1px solid var(--edge); color: var(--soft); font-size: 12.5px; }
.stylebar__guide { color: var(--sig); }
.upload-form__input, .upload-form__file { border-color: var(--edge-2); border-radius: 10px; background: #15161b; }
.upload-form__input:focus { outline: none; border-color: var(--sig); }
.upload-form__submit { min-height: 38px; }

/* ── categories: the Frequencies panel ─────────────────────────────────────────────────────── */
.categories {
    position: sticky; top: 16px; align-self: start; margin: 28px 0 0; padding: 0 0 10px; border: 1px solid var(--edge); border-radius: var(--r);
    background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); counter-reset: band -1;
}
.categories::before {
    content: "Frequencies"; display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--edge);
    font: 600 15px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
}
.categories::after {
    content: "Glow"; position: absolute; top: 11px; right: 14px; padding: 8px 12px; border-radius: 999px; background: var(--sig); color: var(--night);
    font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 0 16px -2px var(--sig-glow);
}
.categories__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 10px 0; list-style: none; }
.categories__item { counter-increment: band; --c: var(--purple); }
.categories__item:nth-child(6n+2) { --c: var(--purple); }
.categories__item:nth-child(6n+3) { --c: var(--pink); }
.categories__item:nth-child(6n+4) { --c: var(--orange); }
.categories__item:nth-child(6n+5) { --c: var(--blue); }
.categories__item:nth-child(6n) { --c: var(--magenta); }
.categories__item:nth-child(6n+1) { --c: var(--amber); }
.categories__item:first-child { --c: var(--sig); }
.categories__link {
    position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; padding: 10px 8px 14px;
    border-radius: 10px; color: #d7dae2; font: 400 13px/1.25 var(--mono); text-decoration: none; transition: background 200ms ease, color 200ms ease;
}
.categories__link::before {
    content: counter(band, decimal-leading-zero); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    color: var(--c); font: 500 10px/1 var(--mono); box-shadow: inset 0 0 0 1.5px var(--c);
}
.categories__link::after {
    content: ""; position: absolute; left: 50px; right: 46px; bottom: 6px; height: 2px; border-radius: 1px;
    background: linear-gradient(90deg, var(--c), var(--c)) 0 0 / var(--w, 18%) 100% no-repeat, rgb(255 255 255 / 0.07);
    box-shadow: 0 0 8px -1px color-mix(in srgb, var(--c) 60%, transparent); transition: background-size 500ms var(--ease);
}
.categories__item:first-child .categories__link::before { content: "∑"; font-size: 12px; }
.categories__link:hover { background: rgb(255 255 255 / 0.04); color: #fff; --w: 100%; }
.categories__link.is-active { background: color-mix(in srgb, var(--c) 16%, transparent); color: #fff; --w: 100%; }
.categories__link.is-active::before { background: var(--c); color: var(--night); box-shadow: 0 0 14px -2px var(--c); }
.categories__count { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 12.5px; }
.categories__link.is-active .categories__count { color: #fff; }
/* a level for each band, shortest to longest down the list, like a live readout */
.categories__item:nth-child(2) { --w: 62%; }
.categories__item:nth-child(3) { --w: 44%; }
.categories__item:nth-child(4) { --w: 52%; }
.categories__item:nth-child(5) { --w: 30%; }
.categories__item:nth-child(6) { --w: 36%; }
.categories__item:nth-child(7) { --w: 24%; }
.categories__item:first-child { --w: 100%; }

/* ── listing ───────────────────────────────────────────────────────────────────────────────── */
.content { padding: 28px 0 clamp(64px, 7vw, 120px); }
.listing__header { margin-bottom: 22px; }
.listing__title { margin: 0; font: 800 clamp(38px, 5vw, 76px)/0.92 var(--display); letter-spacing: -0.045em; text-transform: uppercase; }
.listing__intro { max-width: 58ch; margin: 14px 0 0; color: var(--soft); font-size: 14.5px; }
.toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 20px; padding: 10px 10px 10px 16px;
    border: 1px solid var(--edge); border-radius: 14px; background: rgb(255 255 255 / 0.025);
    color: var(--dim); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.toolbar p { margin: 0; }
.toolbar__range { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); }
.toolbar__range::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 10px var(--sig); }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 8px; border: 1px solid var(--edge); border-radius: 999px; color: var(--soft); text-decoration: none; letter-spacing: 0; }
.toolbar__opt:hover { border-color: var(--edge-2); color: #fff; }
.toolbar__opt.is-active { border-color: var(--sig); background: var(--sig); color: var(--night); box-shadow: 0 0 14px -2px var(--sig-glow); }

/* each post: a glass signal row — duotone thumbnail left, readout right, a glowing bar under it */
.listing { display: flex; flex-direction: column; gap: 14px; counter-reset: sig; }
.post--card {
    --c: var(--purple); counter-increment: sig;
    position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--edge); border-radius: var(--r);
    background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease);
}
.post--card:nth-child(5n+2) { --c: var(--pink); }
.post--card:nth-child(5n+3) { --c: var(--sig); }
.post--card:nth-child(5n+4) { --c: var(--orange); }
.post--card:nth-child(5n) { --c: var(--blue); }
.post--card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, var(--c), transparent 70%); box-shadow: 0 0 12px var(--c); opacity: 0.7; transition: opacity 300ms ease;
}
.post--card:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 30px 60px -30px #000, 0 0 40px -18px var(--c); transform: translateY(-2px); }
.post--card:hover::after { opacity: 1; }
.post__media { position: relative; display: block; min-height: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #120f2a; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.2) brightness(0.78); transition: filter 600ms var(--ease), transform 900ms var(--ease); }
.post__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(140deg, rgb(91 76 240 / 0.6), rgb(214 69 122 / 0.5) 60%, rgb(157 255 106 / 0.18)); mix-blend-mode: multiply;
    transition: opacity 600ms var(--ease);
}
.post--card:hover .post__thumb { filter: none; transform: scale(1.03); }
.post--card:hover .post__media::after { opacity: 0; }
.post__media::before {
    content: counter(sig, decimal-leading-zero); position: absolute; z-index: 1; left: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 50%; background: rgb(10 11 13 / 0.7); color: var(--c); font: 500 11px/1 var(--mono); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 16px -4px var(--c);
}
.post__body { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 32px); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 14px; color: var(--dim); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.post__num { display: inline-flex; align-items: center; gap: 8px; color: var(--c); }
.post__num::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.post__cat { color: var(--soft); text-decoration: none; }
.post__cat:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.post__title { order: -1; margin: 0 0 12px; font: 700 clamp(22px, 2.2vw, 32px)/1.02 var(--display); letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
.post--card .post__meta { order: -2; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--c); }
.post__excerpt { margin: 0 0 18px; color: var(--soft); font-size: 13.5px; line-height: 1.6; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: auto 0 0; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--edge-2); border-radius: 12px; background: transparent; cursor: pointer;
    color: #fff; font: 600 11.5px/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn:hover { border-color: #fff; }
.btn--primary { border-color: var(--sig); background: var(--sig); color: var(--night); box-shadow: 0 0 18px -4px var(--sig-glow); }
.btn--primary:hover { border-color: var(--sig); box-shadow: 0 0 28px -2px var(--sig-glow); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 36px; }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass); color: var(--soft); font: 500 13px/1 var(--mono); text-decoration: none; }
.pager__link:hover { border-color: var(--edge-2); color: #fff; }
.pager__link.is-active { border-color: var(--sig); background: var(--sig); color: var(--night); box-shadow: 0 0 16px -2px var(--sig-glow); }
.pager__link--prev, .pager__link--next { letter-spacing: 0.1em; text-transform: uppercase; font-size: 11.5px; }

/* ── one post ──────────────────────────────────────────────────────────────────────────────── */
.post--full { max-width: 1000px; }
.post__header { padding: 8px 0 28px; }
.post--full .post__meta { margin-bottom: 18px; }
.post--full .post__num { --c: var(--sig); }
.post--full .post__title { order: 0; margin-bottom: 18px; font-size: clamp(40px, 6.4vw, 96px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }
.post--full .post__excerpt { max-width: 56ch; font-size: 15.5px; color: var(--soft); }
.post--full .post__actions { margin-top: 22px; }
.post__shot { margin: 0 0 clamp(40px, 5vw, 64px); }
.post__zoom {
    position: relative; display: block; max-height: 720px; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--r); background: #000; cursor: zoom-in;
    box-shadow: 0 40px 80px -40px #000, 0 0 60px -30px rgb(91 76 240 / 0.6);
}
.post__zoom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(transparent, rgb(10 11 13 / 0.92)); pointer-events: none; }
.post__zoom img { width: 100%; transition: transform 700ms var(--ease); }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--dim); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.post__caption::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 10px var(--sig); }

.doc { font-size: 15px; line-height: 1.75; color: #dadde4; }
.doc > :first-child { margin-top: 0; }
.doc h2 { position: relative; margin: 56px 0 16px; padding-bottom: 14px; font: 700 clamp(22px, 2.4vw, 32px)/1.05 var(--display); letter-spacing: -0.03em; text-transform: uppercase; color: #fff; }
.doc h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 2px; background: var(--sig); box-shadow: 0 0 10px var(--sig); }
.doc h3 { margin: 34px 0 10px; font: 600 17px/1.2 var(--display); letter-spacing: 0; color: #fff; }
.doc h4, .doc h5, .doc h6 { margin: 26px 0 8px; font: 600 13px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sig); }
.doc p, .doc ul, .doc ol { max-width: 72ch; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--sig); }
.doc a { color: var(--sig); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.doc a:hover { text-shadow: 0 0 12px var(--sig-glow); }
.doc strong { color: #fff; }
.doc code { padding: 2px 6px; border: 1px solid var(--edge); border-radius: 6px; background: #15161b; color: #e7ffd9; }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; background: #060708; color: #d8ffc4; box-shadow: inset 0 0 40px -20px rgb(157 255 106 / 0.25); }
.doc pre code { padding: 0; border: 0; background: none; color: inherit; }
.doc blockquote { position: relative; margin: 0 0 20px; padding: 18px 22px 18px 26px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); color: var(--soft); }
.doc blockquote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px 0; border: 0; height: 1px; background: linear-gradient(90deg, var(--sig), var(--edge) 30%, transparent); }
.doc-table { margin: 0 0 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; background: rgb(255 255 255 / 0.03); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 12px; border: 1px solid var(--edge-2); border-radius: 999px; color: var(--soft); font-size: 12px; letter-spacing: 0.04em; }
.tags__item::before { content: "#"; color: var(--sig); margin-right: 2px; }

.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.post__nav-link {
    padding: 18px 20px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--glass);
    font: 700 clamp(16px, 1.6vw, 20px)/1.1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.post__nav-link:hover { border-color: var(--sig); box-shadow: 0 0 30px -14px var(--sig); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; color: var(--sig); font: 500 11px/1 var(--mono); letter-spacing: 0.16em; }

.notice { padding: 18px 22px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); color: var(--soft); }
.notice p { margin: 0; }
.notice a { color: var(--sig); }
.notice--error { border-color: rgb(255 111 163 / 0.5); color: #ffc2d6; box-shadow: 0 0 30px -16px var(--pink); }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 24px; padding: 24px 0 40px; border-top: 1px solid var(--edge); color: var(--dim); font-size: 12px; letter-spacing: 0.06em; }
.colophon p { margin: 0; }
.colophon a { color: var(--soft); text-underline-offset: 3px; }
.colophon a:hover { color: var(--sig); }
.colophon code { color: var(--sig); }

/* ── screenshot dialog ─────────────────────────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--edge-2); border-radius: var(--r); background: var(--glass-solid); color: var(--text); }
.zoom::backdrop { background: rgb(5 5 8 / 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.zoom__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px; border-bottom: 1px solid var(--edge); background: var(--glass-solid); }
.zoom__close { min-height: 42px; padding: 0 20px; border: 1px solid var(--sig); border-radius: 999px; background: var(--sig); color: var(--night); font: 600 12px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 16px -2px var(--sig-glow); }
.zoom__scroll { height: calc(94vh - 64px); overflow: auto; }
.zoom__img { width: 100%; }

/* ── responsive ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .page { grid-template-columns: minmax(0, 1fr) 290px; column-gap: 20px; }
    .post--card { grid-template-columns: minmax(0, 1fr); }
    .post__media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 860px) {
    .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .masthead, .stylebar, .tagcloud, .content, .categories, .colophon, .catalog--post .content { grid-column: 1; grid-row: auto; }
    .page > .categories { position: relative; top: auto; margin-top: 20px; }
    .masthead::before { inset: 0; opacity: 0.55; }
    .masthead::after { background: linear-gradient(180deg, rgb(0 0 0 / 0.3), #000 85%), linear-gradient(140deg, rgb(91 76 240 / 0.55), rgb(214 69 122 / 0.45) 60%, rgb(157 255 106 / 0.2)); }
    .masthead__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "tag" "count"; min-height: 0; }
    .masthead__count { justify-self: start; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
    .masthead__num { margin: 0; font-size: 40px; }
    .post--card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    body { font-size: 14.5px; }
    .stylebar__copy { flex: 1 1 100%; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
    .post__actions .btn { flex: 1 1 auto; }
    .toolbar { padding-left: 12px; }
}
@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; white-space: nowrap; }
