/* Catalog style "demo10" — covers as paper objects on deep green: wide Archivo display, every post a tilted stack of pages dealt on the table, paper bands alternating with green. Mirrors /demo10/. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100..125,400..900&display=swap");

:root {
    --deep: #0d2618;
    --deep-2: #12321f;
    --green: #469a58;
    --paper: #eef1ea;
    --paper-2: #e2e7dd;
    --paper-3: #cdd5c6;
    --ink: #121612;
    --mist: #edf2eb;
    --soft: #b8c8bb;
    --soft-ink: #45504a;
    --yellow: #ffb500;
    --font: "Archivo", "Lato", system-ui, sans-serif;
    --edge: clamp(16px, 3vw, 48px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--deep); color: var(--mist); font: 400 18px/1.55 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: 500 0.84em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

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

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

/* masthead */
.masthead { padding: clamp(40px, 6vw, 96px) 0 clamp(28px, 3vw, 48px); }
.masthead__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 48px; }
.brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; text-decoration: none; }
.brand__mark { font-weight: 900; font-stretch: 125%; font-size: clamp(88px, 17vw, 300px); line-height: 0.8; letter-spacing: -0.04em; }
.brand__name { font-weight: 800; font-stretch: 112%; font-size: clamp(26px, 3.4vw, 56px); line-height: 1; letter-spacing: -0.03em; color: var(--soft); }
.masthead__tagline { max-width: 40ch; margin: 0; font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; line-height: 1.3; }
.masthead__count { margin: 0; color: var(--soft); font-size: 16px; text-align: right; }
.masthead__num { display: block; color: var(--yellow); font-weight: 850; font-stretch: 116%; font-size: 64px; line-height: 0.9; letter-spacing: -0.04em; }

/* style bar: a paper band */
.stylebar { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.stylebar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px 0; }
.stylebar__label { font-weight: 850; font-stretch: 116%; font-size: 20px; letter-spacing: -0.02em; }
.stylebar__value { flex: 1 1 280px; min-width: 0; padding: 9px 14px; overflow-x: auto; white-space: nowrap; background: var(--paper-2); border-radius: 8px; }
.stylebar__copy {
    min-height: 46px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
    font: 700 16px/1 var(--font); font-stretch: 108%; cursor: pointer; transition: background 200ms ease, transform 160ms var(--ease);
}
.stylebar__copy:hover { background: var(--green); color: #fff; }
.stylebar__copy:active { transform: scale(0.96); }
.stylebar__copy.is-done { background: var(--green); color: #fff; }
.stylebar :focus-visible { outline-color: var(--green); }
.stylebar__list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.stylebar__item { padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--paper-3); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--soft-ink); }
.stylebar__item:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stylebar__item.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }

/* categories: filter chips, each with a tiny fanned stack */
.categories { margin: clamp(36px, 4vw, 64px) 0 0; }
.categories__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.categories__link {
    position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 50px; border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgb(237 242 235 / 0.28); font-weight: 700; font-stretch: 108%; text-decoration: none;
    transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.categories__link::before, .categories__link::after {
    content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 20px; margin-top: -10px; border-radius: 2px;
    background: var(--paper-3); transform: rotate(-14deg); transform-origin: 50% 100%; transition: transform 300ms var(--ease);
}
.categories__link::after { background: var(--paper); transform: rotate(8deg); }
.categories__link:hover::before { transform: rotate(-24deg); }
.categories__link:hover::after { transform: rotate(16deg); }
.categories__link:hover { box-shadow: inset 0 0 0 1px var(--mist); }
.categories__link.is-active { background: var(--yellow); color: var(--ink); box-shadow: none; }
.categories__link.is-active::after { background: var(--deep); }
.categories__link.is-active::before { background: var(--deep-2); }
.categories__count { font-weight: 500; font-size: 14px; opacity: 0.8; }

/* listing */
.content { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 9vw, 140px); }
.listing__header { margin-bottom: clamp(40px, 5vw, 80px); }
.listing__title { margin: 0; font-weight: 850; font-stretch: 116%; font-size: clamp(48px, 6.4vw, 112px); line-height: 0.9; letter-spacing: -0.04em; }
.listing__intro { max-width: 46ch; margin: 16px 0 0; color: var(--soft); font-size: 20px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 24px; color: var(--soft); font-size: 15px; }
.toolbar p { margin: 0; }
.toolbar__range { font-weight: 700; color: var(--mist); }
.toolbar__view { display: flex; align-items: center; gap: 4px; }
.toolbar__label { margin-right: 6px; }
.toolbar__opt { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border-radius: 999px; color: var(--mist); text-decoration: none; font-weight: 700; }
.toolbar__opt:hover { box-shadow: inset 0 0 0 1px var(--mist); }
.toolbar__opt.is-active { background: var(--mist); color: var(--deep); }

/* the table: three columns of stacks, dealt at slight angles; the newest one lies large */
.listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(72px, 7vw, 120px) clamp(36px, 4vw, 72px); perspective: 1600px; }
.post--card { display: flex; flex-direction: column; min-width: 0; }
.post--card .post__media {
    position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper);
    box-shadow: 7px 7px 0 -1px var(--paper-2), 14px 14px 0 -2px var(--paper-3), 21px 21px 0 -3px #9fb0a2;
    transform: rotate(-2.2deg) rotateX(6deg); transform-origin: 50% 100%; transition: transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
.post--card:nth-child(3n + 2) .post__media { transform: rotate(1.6deg) rotateX(6deg); }
.post--card:nth-child(3n) .post__media { transform: rotate(-0.8deg) rotateX(6deg); }
.post--card:nth-child(3n + 2) { margin-top: clamp(24px, 4vw, 64px); }
.post--card:hover .post__media, .post--card:focus-within .post__media {
    transform: rotate(0) rotateX(0) translateY(-10px);
    box-shadow: 3px 3px 0 -1px var(--paper-2), 6px 6px 0 -2px var(--paper-3), 9px 9px 0 -3px #9fb0a2;
}
.post__thumb { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post--card .post__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(13 38 24 / 0) 55%, rgb(13 38 24 / 0.22)); pointer-events: none; transition: opacity 600ms var(--ease); }
.post--card:hover .post__media::after { opacity: 0; }
.post--card .post__body { display: flex; flex: 1; flex-direction: column; padding-top: clamp(32px, 3vw, 44px); }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; color: var(--soft); font-size: 15px; }
.post__num { color: var(--yellow); font-weight: 700; }
.post__cat { text-decoration: none; }
.post__cat:hover { color: var(--mist); text-decoration: underline; text-underline-offset: 4px; }
.post__title { margin: 0 0 14px; font-weight: 850; font-stretch: 116%; font-size: clamp(30px, 2.8vw, 48px); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--yellow); }
.post__excerpt { margin: 0 0 22px; color: var(--soft); font-size: 17px; }
.post__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: auto 0 0; }

.post--card:first-child { grid-column: span 2; flex-direction: row; align-items: center; gap: clamp(36px, 4vw, 72px); }
.post--card:first-child .post__media { flex: 0 0 58%; }
.post--card:first-child .post__body { padding-top: 0; }
.post--card:first-child .post__title { font-size: clamp(44px, 5.2vw, 96px); }
.post--card:first-child + .post--card { margin-top: 0; }
.post--card:nth-child(2) ~ .post--card:nth-child(3n + 2) { margin-top: 0; }
.post--card:nth-child(2) ~ .post--card:nth-child(3n) { margin-top: clamp(24px, 4vw, 64px); }

.btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font: 700 16px/1.2 var(--font); font-stretch: 108%;
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--yellow);
    transition: color 200ms ease, background 200ms ease, transform 160ms var(--ease), text-underline-offset 200ms ease;
}
.btn:hover { color: var(--yellow); text-underline-offset: 9px; }
.btn--primary { padding: 0 28px; border-radius: 999px; background: var(--yellow); color: var(--ink); text-decoration: none; }
.btn--primary:hover { background: #fff; color: var(--ink); }
.btn--primary:active { transform: scale(0.96); }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(64px, 8vw, 120px); }
.pager__link { display: inline-grid; place-items: center; min-width: 52px; min-height: 52px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(237 242 235 / 0.28); font-weight: 800; font-stretch: 112%; font-size: 18px; text-decoration: none; }
.pager__link:hover { box-shadow: inset 0 0 0 1px var(--mist); }
.pager__link.is-active { background: var(--mist); color: var(--deep); box-shadow: none; }
.pager__link--next { margin-left: auto; }

/* one post: title on green, then a paper band with the shot as the top sheet of a stack and the doc */
.post--full .post__header { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "meta meta" "title excerpt" "title actions"; align-items: end; gap: 12px clamp(32px, 5vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.post--full .post__meta { grid-area: meta; }
.post--full .post__title { grid-area: title; margin: 0; font-size: clamp(56px, 8.4vw, 160px); line-height: 0.86; letter-spacing: -0.045em; }
.post--full .post__excerpt { grid-area: excerpt; margin: 0; color: var(--mist); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; }
.post--full .post__actions { grid-area: actions; }
.post__shot, .post--full .post__doc, .post--full .post__tags, .post--full .post__nav { color: var(--ink); background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.post__shot { margin: 0; padding: clamp(56px, 7vw, 112px) 0 clamp(48px, 5vw, 80px); }
.post__zoom {
    display: block; width: min(1100px, calc(100% - 24px)); max-height: 720px; margin: 0 auto; overflow: hidden; background: #fff; cursor: zoom-in;
    box-shadow: 8px 8px 0 -1px var(--paper-2), 16px 16px 0 -2px var(--paper-3), 24px 24px 0 -3px #9fb0a2;
    transform: rotate(-0.8deg); transition: transform 600ms var(--ease);
}
.post__zoom:hover { transform: rotate(0) translateY(-6px); }
.post__zoom img { width: 100%; }
.post__caption { width: min(1100px, 100%); margin: 36px auto 0; color: var(--soft-ink); font-size: 15px; }
.post--full .post__doc { padding-bottom: 24px; }
.doc { overflow-wrap: anywhere; font-size: 18px; }
.doc > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.doc h2, .doc h3 { margin-top: 64px; margin-bottom: 16px; font-weight: 850; font-stretch: 116%; font-size: clamp(32px, 3.4vw, 56px); line-height: 0.95; letter-spacing: -0.035em; }
.doc > h2:first-child { margin-top: 0; }
.doc h4, .doc h5, .doc h6 { margin-top: 28px; margin-bottom: 8px; font-weight: 800; font-size: 20px; }
.doc p, .doc ul, .doc ol { margin-top: 0; margin-bottom: 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green); }
.doc a { color: #2a6d3a; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.doc a:hover { color: var(--ink); }
.doc code { padding: 1px 6px; background: var(--paper-2); border-radius: 4px; overflow-wrap: anywhere; }
.doc pre { margin-bottom: 20px; padding: 18px 20px; overflow-x: auto; background: var(--deep); color: var(--mist); border-radius: 8px; }
.doc pre code { padding: 0; background: none; overflow-wrap: normal; }
.doc blockquote { margin-top: 0; margin-bottom: 20px; padding: 20px 24px; background: #fff; box-shadow: 6px 6px 0 -1px var(--paper-2), 12px 12px 0 -2px var(--paper-3); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc hr { margin-top: 40px; margin-bottom: 40px; border: 0; border-top: 2px solid var(--ink); }
.doc-table { margin-bottom: 20px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-3); text-align: left; vertical-align: top; }
.doc th { border-bottom: 2px solid var(--ink); font-weight: 850; font-stretch: 112%; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 32px 0 0; list-style: none; }
.tags__item { padding: 6px 14px; border-radius: 999px; background: var(--paper-2); font-size: 15px; font-weight: 600; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.post__nav-link { font-weight: 850; font-stretch: 116%; font-size: clamp(26px, 3vw, 48px); line-height: 0.95; letter-spacing: -0.035em; text-decoration: none; }
.post__nav-link:hover { color: #2a6d3a; }
.post__nav-link--older { grid-column: 2; text-align: right; }
.post__nav-label { display: block; margin-bottom: 8px; font-weight: 500; font-stretch: 100%; font-size: 15px; letter-spacing: 0; color: var(--soft-ink); }
.post--full .post__tags :focus-visible, .post--full .post__nav :focus-visible, .post--full .post__doc :focus-visible, .post__zoom:focus-visible { outline-color: var(--green); }

.notice { max-width: 56ch; padding: 28px 32px; background: var(--paper); color: var(--ink); font-size: 20px; font-weight: 500; box-shadow: 8px 8px 0 -1px var(--paper-2), 16px 16px 0 -2px var(--paper-3); }
.notice p { margin: 0; }
.notice a { color: #2a6d3a; }
.notice a:focus-visible { outline-color: var(--green); }
.notice--error { color: #8b1d14; }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px 0 40px; border-top: 1px solid rgb(237 242 235 / 0.2); color: var(--soft); font-size: 14px; }
.colophon p { margin: 0; }
.colophon a { color: var(--mist); text-decoration-color: var(--yellow); text-underline-offset: 4px; }

/* screenshot dialog */
.zoom { width: min(1480px, 96vw); max-width: none; height: 94vh; max-height: none; padding: 0; border: 0; border-radius: 4px; background: var(--deep); color: var(--mist); }
.zoom::backdrop { background: rgb(13 38 24 / 0.9); }
.zoom__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px; background: var(--deep); }
.zoom__close { min-height: 42px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 15px/1 var(--font); cursor: pointer; }
.zoom__close:focus-visible { outline-color: var(--mist); }
.zoom__scroll { height: calc(94vh - 62px); overflow: auto; }
.zoom__img { width: 100%; }

@media (max-width: 1100px) {
    .listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post--card:nth-child(n) { margin-top: 0; }
    .post--card:nth-child(2) ~ .post--card:nth-child(even) { margin-top: clamp(24px, 4vw, 56px); }
}
@media (max-width: 760px) {
    .masthead__inner { grid-template-columns: minmax(0, 1fr); }
    .masthead__count { text-align: left; }
    .listing { grid-template-columns: minmax(0, 1fr); gap: 64px; }
    .post--card:nth-child(n), .post--card:nth-child(2) ~ .post--card:nth-child(even) { margin-top: 0; }
    .post--card:first-child { grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }
    .post--card:first-child .post__media { flex: none; }
    .post--card:first-child .post__body { padding-top: 36px; }
    .post--card .post__media { margin-right: 18px; }
    .post--full .post__header { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "title" "excerpt" "actions"; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .stylebar__copy { flex: 1 0 100%; }
    .categories__link { min-height: 46px; }
    .post__nav { grid-template-columns: 1fr; }
    .post__nav-link--older { grid-column: 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%; }
