/* Catalog style "demo8" — film titles on a deep green-black ground: Lazurski title cards, every post a letterboxed scene, a fixed scene strip with the style URL at the bottom, the doc set like credits. Mirrors /demo8/. */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
@font-face {
    font-family: "Album Lazurski";
    src: url("/_fonts/LazurskiRegular.woff2") format("woff2"), url("/_fonts/LazurskiRegular.woff") format("woff");
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00CC, U+00CE, U+00D0-00EC, U+00EE, U+00F0-00FF, U+2010-2027;
}
@font-face {
    font-family: "Album Lazurski";
    src: url("/_fonts/LazurskiBold.woff2") format("woff2"), url("/_fonts/LazurskiBold.woff") format("woff");
    font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00CC, U+00CE, U+00D0-00EC, U+00EE, U+00F0-00FF, U+2010-2027;
}

:root {
    --ground: #0d1410;
    --raise: #16201a;
    --raise-2: #1e2a23;
    --ink: #f2efe8;
    --soft: #bdb6a8;
    --line: rgb(242 239 232 / 0.16);
    --yellow: #ffb500;
    --title: "Album Lazurski", Georgia, serif;
    --text: "Lato", system-ui, sans-serif;
    --edge: clamp(16px, 3.4vw, 56px);
    --strip: 112px;
    --ease: cubic-bezier(.22, .7, .16, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; padding-bottom: var(--strip); background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 400 0.86em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; padding: 10px 16px; background: var(--yellow); color: #17130a; font-weight: 700; border-radius: 999px; }
.skip:focus { left: 16px; }
.deco { display: none; }

.page { max-width: 1640px; margin: 0 auto; padding: 0 var(--edge); }

/* masthead: the opening title card */
.masthead { display: grid; place-items: center; min-height: min(62vh, 640px); padding: 72px 0 56px; text-align: center; }
.masthead__inner { display: grid; justify-items: center; gap: 18px; }
.brand { display: grid; justify-items: center; gap: 4px; text-decoration: none; }
.brand__name { order: -1; font-family: var(--title); font-size: clamp(20px, 2vw, 30px); color: var(--soft); }
.brand__mark { font-family: var(--title); font-weight: 400; font-size: clamp(110px, 20vw, 320px); line-height: 0.82; letter-spacing: -0.02em; }
.masthead__tagline { max-width: 40ch; margin: 18px 0 0; color: var(--soft); font-size: clamp(17px, 1.3vw, 20px); }
.masthead__count { margin: 0; font-family: var(--title); font-size: 22px; color: var(--soft); }
.masthead__num { color: var(--ink); }

/* style bar: the fixed scene strip */
.stylebar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--strip); padding: 0 var(--edge);
    background: rgb(13 20 16 / 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.stylebar__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label value copy" "list list list"; align-items: center; gap: 8px 16px; max-width: 1640px; height: 100%; margin: 0 auto; padding: 12px 0; }
.stylebar__label { grid-area: label; font-family: var(--title); font-size: 20px; color: var(--soft); }
.stylebar__value { grid-area: value; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 15px; color: var(--ink); }
.stylebar__copy {
    grid-area: copy; min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--yellow); color: #17130a;
    font: 700 15px/1 var(--text); cursor: pointer; transition: background 220ms ease, transform 160ms ease;
}
.stylebar__copy:hover { background: #ffc93d; transform: translateY(-2px); }
.stylebar__copy:active { transform: scale(0.97); }
.stylebar__copy.is-done { background: var(--ink); }
.stylebar__list { grid-area: list; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.stylebar__item {
    flex: none; display: inline-grid; place-items: center; min-width: 64px; height: 34px; padding: 0 10px;
    background: var(--raise-2); border: 1px solid transparent; font-size: 13px; color: var(--soft); text-decoration: none;
    transition: color 200ms ease, border-color 200ms ease;
}
.stylebar__item:hover { color: var(--ink); border-color: var(--soft); }
.stylebar__item.is-active { color: var(--ink); border-color: var(--yellow); }

/* categories: chapters */
.categories { margin: 0 0 clamp(32px, 4vw, 56px); border-block: 1px solid var(--line); }
.categories__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 3vw, 48px); margin: 0; padding: 10px 0; list-style: none; }
.categories__link { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding-top: 8px; font-family: var(--title); font-size: clamp(19px, 1.7vw, 26px); color: var(--soft); text-decoration: none; transition: color 200ms ease; }
.categories__link:hover, .categories__link.is-active { color: var(--ink); }
.categories__link.is-active { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.categories__count { font-family: var(--text); font-size: 13px; }

/* listing: one scene after another, full width, letterboxed */
.content { padding: 0 0 clamp(64px, 8vw, 120px); }
.listing__header { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(32px, 4vw, 64px); text-align: center; }
.listing__title { margin: 0; font-family: var(--title); font-weight: 400; font-size: clamp(46px, 6vw, 104px); line-height: 1; letter-spacing: -0.015em; word-spacing: -0.08em; }
.listing__intro { max-width: 52ch; margin: 0; color: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 32px; color: var(--soft); font-size: 15px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 2px; }
.toolbar__label { margin-right: 8px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; color: var(--soft); text-decoration: none; border-bottom: 1px solid transparent; }
.toolbar__opt:hover { color: var(--ink); }
.toolbar__opt.is-active { color: var(--ink); border-bottom-color: var(--yellow); }

.listing { display: grid; gap: clamp(56px, 7vw, 112px); }
.post--card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: clamp(24px, 4vw, 64px); }
.post--card .post__body { display: contents; }
.post--card .post__media {
    grid-column: 1 / -1; grid-row: 1; position: relative; display: block; aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--raise);
}
.post--card .post__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 20 16 / 0.05) 20%, rgb(13 20 16 / 0.6) 58%, rgb(13 20 16 / 0.94) 100%); }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.02); transition: transform 2400ms var(--ease); }
.post--card:hover .post__thumb { transform: scale(1.08); }
.post--card .post__title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; margin-inline: clamp(20px, 3.4vw, 56px); pointer-events: none; }
.post--card .post__meta { grid-column: 1; grid-row: 2; margin: 22px 0 0; }
.post--card .post__title { align-self: end; margin-bottom: clamp(20px, 2.4vw, 40px); }
.post--card .post__title a { pointer-events: auto; }
.post--even .post__title { text-align: right; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; color: var(--soft); font-size: 15px; }
.post__num { color: var(--ink); }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.post__title { margin: 0; font-family: var(--title); font-weight: 400; font-size: clamp(44px, 6.6vw, 124px); line-height: 0.95; letter-spacing: -0.015em; word-spacing: -0.08em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 0.45); }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.post--card .post__excerpt { grid-column: 1; grid-row: 3; max-width: 62ch; margin: 4px 0 0; color: var(--soft); }
.post--card .post__actions { grid-column: 2; grid-row: 2; align-self: start; margin: 18px 0 0; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 700 16px/1 var(--text); text-decoration: none; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: currentColor; transform-origin: left; transition: transform 320ms var(--ease); }
.btn:hover::after { transform: scaleX(0.4); }
.btn--primary { padding: 0 30px; border-radius: 999px; background: var(--yellow); color: #17130a; transition: background 220ms ease, transform 160ms ease; }
.btn--primary::after { display: none; }
.btn--primary:hover { background: #ffc93d; transform: translateY(-2px); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px; margin-top: clamp(56px, 7vw, 104px); }
.pager__link { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; font-family: var(--title); font-size: 24px; color: var(--soft); text-decoration: none; }
.pager__link:hover { color: var(--ink); }
.pager__link.is-active { color: var(--ink); border-bottom: 1px solid var(--yellow); }

/* one post: title card, the shot letterboxed, the doc as credits */
.post--full .post__header { display: grid; justify-items: center; padding: clamp(24px, 4vw, 64px) 0 clamp(40px, 5vw, 72px); text-align: center; }
.post--full .post__meta { justify-content: center; }
.post--full .post__title { font-size: clamp(56px, 9vw, 168px); text-shadow: none; }
.post--full .post__excerpt { max-width: 56ch; margin: 26px 0 32px; color: var(--soft); font-size: clamp(17px, 1.3vw, 20px); }
.post--full .post__actions { justify-content: center; }
.post__shot { margin: 0 calc(-1 * var(--edge)) clamp(56px, 7vw, 104px); }
.post__zoom { display: block; height: min(72vh, 760px); overflow: hidden; background: #000; border-block: 14px solid #000; cursor: zoom-in; }
.post__zoom img { width: 100%; transition: transform 2400ms var(--ease); }
.post__zoom:hover img { transform: translateY(-6%); }
.post__caption { margin-top: 12px; padding: 0 var(--edge); color: var(--soft); font-size: 14px; text-align: center; }

.doc { overflow-wrap: anywhere; max-width: 70ch; margin: 0 auto; font-size: 18px; line-height: 1.7; color: #e3dfd6; }
.doc h2, .doc h3 { margin: 72px 0 20px; font-family: var(--title); font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.01em; word-spacing: -0.08em; text-align: center; color: var(--ink); }
.doc h2::after, .doc h3::after { content: ""; display: block; width: 48px; height: 1px; margin: 22px auto 0; background: var(--soft); }
.doc > h2:first-child { margin-top: 0; }
.doc h4, .doc h5, .doc h6 { margin: 32px 0 8px; font-family: var(--title); font-size: 24px; font-weight: 400; color: var(--ink); }
.doc p, .doc ul, .doc ol { margin: 0 0 18px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--soft); }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.doc a:hover { color: var(--yellow); }
.doc code { padding: 1px 6px; background: var(--raise-2); overflow-wrap: anywhere; }
.doc pre { margin: 0 0 22px; padding: 18px 20px; overflow-x: auto; background: var(--raise); border-left: 2px solid var(--yellow); }
.doc pre code { padding: 0; background: none; overflow-wrap: normal; }
.doc blockquote { margin: 0 0 22px; padding: 22px clamp(18px, 3vw, 40px); background: var(--raise); font-family: var(--title); font-size: 1.12em; line-height: 1.55; color: var(--ink); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 48px auto; width: 48px; border: 0; border-top: 1px solid var(--soft); }
.doc-table { margin: 0 0 24px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.doc th, .doc td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc td:first-child, .doc th:first-child { width: 28%; padding-right: 24px; text-align: right; color: var(--soft); }
.doc th { font-family: var(--title); font-weight: 400; font-size: 20px; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; max-width: 70ch; margin: 56px auto 0; padding: 0; list-style: none; }
.tags__item { font-family: var(--title); font-size: 20px; color: var(--soft); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(64px, 8vw, 120px); padding-top: 28px; border-top: 1px solid var(--line); }
.post__nav-link { font-family: var(--title); font-size: clamp(26px, 3vw, 48px); line-height: 1.05; word-spacing: -0.08em; text-decoration: none; }
.post__nav-link:hover { color: var(--yellow); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; font-family: var(--text); font-size: 14px; word-spacing: normal; color: var(--soft); }

.notice { max-width: 60ch; margin: 0 auto; padding: 48px 24px; font-family: var(--title); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; text-align: center; }
.notice p { margin: 0; }
.notice a { color: var(--yellow); }
.notice--error { color: #ffb4a8; }

.colophon { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 32px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; text-align: center; }
.colophon p { margin: 0; }
.colophon a { color: var(--ink); text-underline-offset: 4px; }

/* screenshot dialog: a dark screening room */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; background: #000; color: var(--ink); }
.zoom::backdrop { background: rgb(5 8 6 / 0.92); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px; background: #000; }
.zoom__close { min-height: 40px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 15px/1 var(--text); cursor: pointer; }
.zoom__close:hover { background: var(--ink); color: #000; }
.zoom__scroll { height: calc(94vh - 62px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 860px) {
    .post--card { grid-template-columns: minmax(0, 1fr); }
    .post--card .post__media { aspect-ratio: 16 / 10; }
    .post--card .post__actions { grid-column: 1; grid-row: 4; }
    .post--even .post__title { text-align: left; }
}
@media (max-width: 560px) {
    :root { --strip: 150px; }
    body { font-size: 16px; }
    .stylebar__inner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "label value" "copy copy" "list list"; padding: 10px 0; gap: 6px 12px; }
    .stylebar__copy { min-height: 40px; }
    .post--card .post__media { aspect-ratio: 4 / 5; }
    .post--card .post__title { margin-inline: 18px; margin-bottom: 18px; font-size: 44px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
    .doc td:first-child, .doc th:first-child { width: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: 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 { overflow-wrap: anywhere; }
.doc pre, .doc-table { max-width: 100%; }
