/* Catalog style "demo5" — "The Cover": pale green-grey ground, deep green fields, Schibsted Grotesk 900; the masthead is a DEPO magazine cover pinned on the right while the posts scroll past as huge editorial steps. Mirrors /demo5/. */
@import url("https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;700;900&display=swap");

:root {
    --ground: #e8ebe4;
    --paper: #f4f6f1;
    --ink: #121612;
    --soft: #4a524b;
    --deep: #0f2a1a;
    --green: #2f7d43;
    --yellow: #ffb500;
    --on-deep: #f1f3ee;
    --on-deep-soft: #c9d3cb;
    --line: #cfd5cb;
    --font: "Schibsted Grotesk", "Lato", system-ui, sans-serif;
    --edge: clamp(16px, 3vw, 48px);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font); }
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: 3px solid var(--green); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 30; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { left: 16px; }
.deco { display: none; }

/* Two columns: text steps on the left, the pinned cover on the right (6fr / 5fr, as in the demo). */
.page {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr auto;
    column-gap: clamp(32px, 5vw, 96px); max-width: 1720px; margin: 0 auto; padding: 0 var(--edge);
}
.stylebar, .categories, .content { grid-column: 1; }
.stylebar { grid-row: 1; }
.categories { grid-row: 2; }
.content { grid-row: 3; }
.colophon { grid-column: 1 / -1; grid-row: 4; }

/* ── masthead: the DEPO cover, sticky ───────────────────────────────────── */
.masthead { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 24px 0; }
.masthead__inner {
    position: relative; height: min(88%, 980px); aspect-ratio: 2 / 3; max-width: 100%; overflow: hidden; container-type: inline-size;
    background:
        linear-gradient(to bottom, rgb(0 0 0 / 0.18), transparent 30%, transparent 58%, rgb(0 0 0 / 0.62)),
        url("/_img/site/first-page/talinda-colman.jpeg") center 20% / cover no-repeat #cfd4cb;
    animation: d5-issue 1100ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes d5-issue { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.brand { position: static; text-decoration: none; }
.brand__mark { position: absolute; top: 3cqw; left: 0; right: 0; text-align: center; font: 900 31cqw/0.8 var(--font); letter-spacing: -0.06em; color: #fff; }
.brand__name { position: absolute; left: 6cqw; right: 6cqw; bottom: 23cqw; font: 900 12cqw/0.9 var(--font); letter-spacing: -0.04em; color: #fff; }
.masthead__tagline { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw; margin: 0; font: 500 3.6cqw/1.25 var(--font); color: #fff; }
.masthead__count { position: absolute; top: 36cqw; right: 6cqw; margin: 0; padding: 2.4cqw 3cqw; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 3.6cqw/1 var(--font); }
.masthead__num { font-weight: 900; }
.brand:hover .brand__mark { color: var(--paper); }

/* ── style bar: a deep green strip at the top of the text column ─────── */
.stylebar { margin: var(--edge) 0 0; }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 20px; border-radius: 6px; background: var(--deep); color: var(--on-deep); }
.stylebar__label { font: 700 15px/1 var(--font); }
.stylebar__value { flex: 1 1 260px; min-width: 0; padding: 8px 12px; overflow-x: auto; white-space: nowrap; border-radius: 4px; background: rgb(255 255 255 / 0.08); color: var(--on-deep); }
.stylebar__copy { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--font); cursor: pointer; transition: background 200ms ease, transform 150ms ease; }
.stylebar__copy:hover { background: #fff; }
.stylebar__copy:active { transform: scale(0.97); }
.stylebar__copy.is-done { background: var(--green); color: #fff; }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; }
.stylebar__item { color: var(--on-deep-soft); font: 500 14px/1.6 var(--font); text-decoration: none; }
.stylebar__item:hover { color: var(--yellow); }
.stylebar__item.is-active { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ── categories: the magazine list — big names, counts on the right ────── */
.categories { margin: clamp(40px, 5vw, 72px) 0 0; }
.categories__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.categories__item { border-bottom: 1px solid var(--line); }
.categories__link {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 8px 4px;
    font: 700 clamp(26px, 2.8vw, 46px)/1.05 var(--font); letter-spacing: -0.04em; text-decoration: none;
    transition: color 200ms ease, padding 300ms cubic-bezier(.2, .7, .2, 1);
}
.categories__link:hover { color: var(--green); padding-left: 18px; }
.categories__link.is-active { color: var(--green); }
.categories__link.is-active::before { content: ""; flex: none; align-self: center; width: 0.42em; height: 0.42em; margin-right: -8px; border-radius: 50%; background: var(--green); }
.categories__link.is-active { justify-content: flex-start; }
.categories__link.is-active .categories__count { margin-left: auto; }
.categories__count { flex: none; font: 500 15px/1 var(--font); letter-spacing: 0; color: var(--soft); font-variant-numeric: tabular-nums; }

/* ── listing: each post is a step of the issue ──────────────────────────── */
.content { padding: clamp(56px, 7vw, 112px) 0 clamp(80px, 9vw, 160px); min-width: 0; }
.listing__header { margin-bottom: clamp(40px, 5vw, 80px); }
.listing__title { margin: 0; font: 900 clamp(54px, 7vw, 120px)/0.88 var(--font); letter-spacing: -0.055em; }
.listing__intro { max-width: 40ch; margin: 22px 0 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 28px; color: var(--soft); font-size: 15px; }
.toolbar p { margin: 0; }
.toolbar__view { display: flex; align-items: center; gap: 6px; }
.toolbar__label { margin-right: 4px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; }
.toolbar__opt:hover { background: var(--paper); }
.toolbar__opt.is-active { background: var(--ink); color: var(--paper); }

.listing { display: grid; gap: clamp(72px, 9vw, 150px); }
.post--card { display: flex; flex-direction: column; }
.post--card .post__body { display: contents; }
.post--card .post__meta { order: 1; }
.post--card .post__title { order: 2; }
.post--card .post__excerpt { order: 3; }
.post--card .post__media { order: 4; }
.post--card .post__actions { order: 5; }
.post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 14px; color: var(--soft); font-size: 15px; }
.post__num { color: var(--green); font-weight: 900; }
.post__cat { font-weight: 700; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post__cat:hover { color: var(--green); }
.post__title { margin: 0; font: 900 clamp(44px, 5.6vw, 100px)/0.9 var(--font); letter-spacing: -0.05em; text-wrap: balance; }
.post__title a { text-decoration: none; }
.post__title a:hover { color: var(--green); }
.post__excerpt { max-width: 46ch; margin: 22px 0 0; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; color: var(--ink); }
.post__media { display: block; margin-top: 28px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #d7dbd3; }
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.post--card:hover .post__thumb { transform: scale(1.03); }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 24px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 700 16px/1.2 var(--font); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--green); transition: color 200ms ease; }
.btn:hover { color: var(--green); }
.btn--primary { min-height: 52px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; transition: background 200ms ease, transform 150ms ease; }
.btn--primary:hover { background: var(--green); color: #fff; }
.btn--primary:active { transform: scale(0.97); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(64px, 8vw, 120px); }
.pager__link { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pager__link:hover { background: var(--paper); }
.pager__link.is-active { background: var(--ink); color: var(--paper); }
.pager__link--prev, .pager__link--next { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ── one post ───────────────────────────────────────────────────────────── */
.post--full { max-width: 900px; }
.post__header { padding-bottom: clamp(32px, 4vw, 56px); }
.post--full .post__title { font-size: clamp(54px, 7.6vw, 132px); line-height: 0.88; letter-spacing: -0.055em; }
.post--full .post__excerpt { max-width: 40ch; }
.post--full .post__actions { margin-top: 32px; }
.post__shot { margin: 0 0 clamp(48px, 6vw, 88px); }
.post__zoom { display: block; max-height: 760px; overflow: hidden; border-radius: 4px; background: #d7dbd3; cursor: zoom-in; }
.post__zoom img { width: 100%; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.post__zoom:hover img { transform: scale(1.01); }
.post__caption { margin-top: 12px; color: var(--soft); font-size: 14px; }

.doc { font-size: 18px; line-height: 1.6; }
.doc h2 { margin: 64px 0 16px; padding-top: 18px; font: 900 clamp(34px, 3.6vw, 56px)/0.95 var(--font); letter-spacing: -0.045em; box-shadow: inset 0 6px 0 var(--green); }
.doc > :first-child { margin-top: 0; }
.doc h3 { margin: 36px 0 10px; font: 700 clamp(22px, 1.8vw, 28px)/1.1 var(--font); letter-spacing: -0.02em; }
.doc h4, .doc h5, .doc h6 { margin: 26px 0 8px; font: 700 18px/1.3 var(--font); }
.doc p, .doc ul, .doc ol { max-width: 64ch; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green); }
.doc a { text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 500; }
.doc a:hover { color: var(--green); }
.doc code { padding: 1px 6px; border-radius: 4px; background: var(--paper); color: var(--deep); }
.doc pre { margin: 0 0 20px; padding: 18px 20px; overflow-x: auto; border-radius: 6px; background: var(--deep); color: var(--on-deep); }
.doc pre code { padding: 0; background: none; color: inherit; }
.doc blockquote { margin: 0 0 20px; padding: 22px 26px; border-radius: 6px; background: var(--paper); font-size: 19px; line-height: 1.5; font-weight: 500; }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.doc-table { margin: 0 0 20px; overflow-x: auto; border-radius: 6px; background: var(--paper); }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { background: var(--deep); color: var(--on-deep); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.tags__item { padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 700; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.post__nav-link { padding-top: 18px; box-shadow: inset 0 6px 0 var(--green); font: 900 clamp(24px, 2.4vw, 36px)/1 var(--font); letter-spacing: -0.03em; text-decoration: none; }
.post__nav-link:hover { color: var(--green); }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; color: var(--soft); font-size: 15px; font-weight: 500; letter-spacing: 0; }

.notice { padding: 26px 28px; border-radius: 6px; background: var(--paper); font-size: 19px; }
.notice p { margin: 0; }
.notice a { text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.notice--error { box-shadow: inset 6px 0 0 #b3261e; color: #8c1d18; }

/* ── colophon: "Shoot. Publish. Repeat." with the closing masthead ────── */
.colophon {
    position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; overflow: hidden;
    margin: 0 calc(var(--edge) * -1); padding: clamp(72px, 9vw, 140px) var(--edge) 0; background: var(--deep); color: var(--on-deep);
    font-size: 15px;
}
.colophon::before { content: "Shoot. Publish. Repeat."; width: 100%; font: 900 clamp(40px, 5.6vw, 96px)/0.92 var(--font); letter-spacing: -0.05em; }
.colophon::after { content: "DEPO"; width: 100%; margin-top: clamp(32px, 4vw, 64px); text-align: center; white-space: nowrap; font: 900 30vw/0.72 var(--font); letter-spacing: -0.07em; color: var(--green); transform: translateY(8%); max-width: 100%; overflow: hidden; }
.colophon p { margin: 0; }
.colophon a { color: var(--yellow); text-underline-offset: 4px; }
.colophon code { color: var(--on-deep-soft); }
.colophon :focus-visible { outline-color: var(--yellow); }

/* ── screenshot dialog ──────────────────────────────────────────────────── */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); }
.zoom::backdrop { background: rgb(15 42 26 / 0.88); }
.zoom__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px; background: var(--deep); }
.zoom__close { min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--font); cursor: pointer; }
.zoom__close:hover { background: #fff; }
.zoom__scroll { height: calc(94vh - 64px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 899px) {
    .page { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .masthead, .stylebar, .categories, .content, .colophon { grid-column: 1; grid-row: auto; }
    .masthead { position: static; height: auto; padding: var(--edge) 0 0; }
    .masthead__inner { width: min(100%, 460px); height: auto; }
    .categories__list { display: flex; gap: 0 22px; overflow-x: auto; border-top: 0; scrollbar-width: none; }
    .categories__item { flex: none; border-bottom: 0; }
    .categories__link { padding: 6px 0; font-size: 28px; white-space: nowrap; gap: 8px; }
    .categories__link:hover { padding-left: 0; }
    .categories__link.is-active::before { display: none; }
    .categories__link.is-active { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
}
@media (max-width: 520px) {
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: auto; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.doc p, .doc li, .doc blockquote, .post__excerpt { overflow-wrap: break-word; }

/* 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%; }
