/* The ScreenshotNeo blog sits on the app's own stylesheet (assets/app.css, copied from app/globals.css at build), so the header,
   footer, buttons, type and colours are the product's. Only what a blog needs lives here. Text first: the owner's rule is no images in posts. */
:root { --font-display: 'Newsreader'; --font-text: 'Hanken Grotesk'; --font-mono: 'IBM Plex Mono'; }

/* listing head */
.bh { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 48px; align-items: end; padding-top: 56px; padding-bottom: 30px; }
.bh h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.035em; margin-top: 12px; max-width: 18ch; }
.bh .lede { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.kicker a { color: inherit; }
.bh-search { position: relative; }
.bh-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.bh-search input { width: 100%; height: 48px; padding: 0 16px 0 42px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 16px; }
.bh-search input:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.bcats { display: flex; gap: 4px 22px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bcats a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.bcats a span { font: 500 11.5px var(--mono); color: var(--faint); }
.bcats a:hover { color: var(--ink); }
.bcats a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--plum); }

/* the list: type does the work, hairlines between rows */
.bl { padding-top: 34px; padding-bottom: 16px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.post-card { display: grid; gap: 9px; align-content: start; padding: 24px 0 26px; border-top: 1px solid var(--line); }
.posts:not(.has-lead) > .post-card:nth-child(-n + 3), .posts.has-lead > .post-card:nth-child(n + 2):nth-child(-n + 4) { border-top: 0; padding-top: 8px; }
.post-card h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.post-card h2 a:hover { color: var(--plum-ink); }
.pc-meta { display: flex; gap: 12px; flex-wrap: wrap; font: 500 11.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.pc-meta a { color: var(--plum-ink); }
.pc-ex { color: var(--muted); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-date { font-size: 13px; color: var(--faint); }
.has-lead > .lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 56px; padding: 6px 0 34px; border-top: 0; border-bottom: 1px solid var(--line); margin-bottom: 10px; align-items: end; }
.has-lead > .lead .pc-meta { grid-column: 1 / -1; }
.has-lead > .lead h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; grid-row: span 2; }
.has-lead > .lead .pc-ex { font-size: 17px; -webkit-line-clamp: 5; }
.pager-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 26px 0 8px; }
.pager-b .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14.5px; background: var(--surface); }
.pager-b a.page-numbers:hover { border-color: var(--ink); }
.pager-b .current { background: var(--ink); color: var(--on-action); border-color: var(--ink); }
.pager-b .dots { border: 0; background: none; }
.empty { max-width: 640px; margin: 20px auto 40px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: 30px; }
.empty p { color: var(--muted); }
.empty .bh-search { width: 100%; max-width: 420px; }

/* the call to action, in the product's words */
.sn-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; margin: 44px 0 10px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); position: relative; }
.sn-cta::before { content: ''; position: absolute; left: 30px; top: -1px; width: 56px; height: 2px; background: var(--plum); }
.sn-cta h2 { font-size: 26px; margin-top: 8px; letter-spacing: -0.025em; color: var(--ink); }
.sn-cta p:not(.kicker) { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 58ch; }
.prose .sn-cta a { text-decoration: none; }
.prose .sn-cta .btn-primary { color: var(--on-action); }
.prose .sn-cta .btn-line { color: var(--ink); }

/* one guide */
.art { padding-top: 40px; }
.art-h { max-width: 880px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--plum-ink); }
.art-h h1 { font-size: clamp(32px, 3.9vw, 52px); letter-spacing: -0.035em; margin-top: 14px; }
.art-h .lede { margin-top: 16px; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.art-grid { display: grid; grid-template-columns: minmax(0, 740px); gap: 64px; padding-top: 34px; }
.art-grid.with-toc { grid-template-columns: minmax(0, 740px) 250px; }
.toc { order: 2; position: sticky; top: 92px; align-self: start; font-size: 14px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc p { font: 600 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { display: grid; gap: 1px; border-left: 1px solid var(--line); list-style: none; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.4; }
.toc .l3 a { padding-left: 26px; font-size: 13.5px; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { color: var(--ink); border-left-color: var(--plum); }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 29px; line-height: 1.2; margin-top: 1.9em; color: var(--ink); letter-spacing: -0.025em; scroll-margin-top: 92px; }
.prose h3 { font-size: 21.5px; line-height: 1.3; margin-top: 1.6em; color: var(--ink); letter-spacing: -0.015em; scroll-margin-top: 92px; }
.prose h4 { font-size: 18px; margin-top: 1.4em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--plum-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--faint); }
.prose code { font: 500 .85em var(--mono); background: var(--sunk); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { background: #111413; color: #E9E6DD; border: 1px solid #1E2321; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font: 500 13.5px/1.7 var(--mono); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose blockquote { border-left: 3px solid var(--plum); padding: 2px 0 2px 18px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 12px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose img { border-radius: 10px; border: 1px solid var(--line); height: auto; }
.related { padding-top: 56px; padding-bottom: 10px; }
.related > h2 { font-size: 24px; margin-bottom: 6px; }
.related .post-card { border-top: 0; padding-top: 10px; }

@media (max-width: 1080px) { .art-grid.with-toc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) {
  .bh { grid-template-columns: minmax(0, 1fr); padding-top: 38px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .posts:not(.has-lead) > .post-card:nth-child(3), .posts.has-lead > .post-card:nth-child(4) { border-top: 1px solid var(--line); padding-top: 24px; }
  .has-lead > .lead { grid-template-columns: minmax(0, 1fr); }
  .has-lead > .lead h2 { grid-row: auto; }
  .sn-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .posts > .post-card { border-top: 1px solid var(--line) !important; padding-top: 22px !important; }
  .posts > .post-card:first-child { border-top: 0 !important; padding-top: 6px !important; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .sn-cta { padding: 22px 20px; }
  .bcats { gap: 2px 16px; }
}

/* featured images (the ScreenshotNeo blog carries them; captures sit inside the viewfinder like everywhere else on the site) */
.pc-img { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .pc-img img { transform: scale(1.02); }
.has-lead > .lead.has-img .pc-img { grid-row: span 3; }
.art-cover { position: relative; margin: 30px 0 0; padding: 12px; max-width: 1000px; }
.art-cover > i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--plum); }
.art-cover > i.c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; } .art-cover > i.c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.art-cover > i.c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; } .art-cover > i.c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.art-cover img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line-2); }
.prose figure { margin: 1.6em 0; } .prose figcaption { margin-top: 8px; font: 400 12.5px var(--mono); color: var(--muted); text-align: center; }
