/* The Cropped Blog. Builds on /docs/docs.css (colors, header, figures, pager, footer). */
.blog { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.top .site-links { margin-left: auto; }
.blog-follow { max-width: 760px; margin: 56px auto 0; padding: 0 20px; font-size: 14px; color: var(--muted); }
.blog-follow a { color: var(--muted); }
.blog h1, .post-title { font-family: var(--display); font-weight: 500; }
.post h1 { margin-top: 4px; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-cta p { margin: 0; }
/* Fixed 44px buttons with the label centered: a plain inline-block here put the text at the top of the button. */
.post-cta .cta, .cta-buy { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0 20px; line-height: 1; box-sizing: border-box; }
.blog .post-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.post-list a { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; }
.post-list a:hover { border-color: var(--accent); }
.post-list img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--card); margin-bottom: 8px; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-title { font-size: 26px; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.post-desc { color: var(--muted); text-wrap: pretty; }
@media (max-width: 820px) {
  .blog { padding: 0 16px; }
  .top .site-links { display: none; }
  .top .cta { display: inline-flex; margin-left: auto; }
}

/* Blog pictures run wider than the text column, up to 1120px, so screenshots read at full size. */
.post .shot { width: min(1120px, calc(100vw - 40px)); margin: 32px 0 32px 50%; transform: translateX(-50%); }
/* Pictures show at half their pixel size (sharp on Retina), up to the 1120px figure width. */
@media (max-width: 820px) { .post .shot { width: calc(100vw - 32px); } }

/* A buy button for posts with "cta: buy" in their front matter, and inline in the post body. */
.buy-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.buy-cta p { margin: 0; flex: 1 1 260px; }
.cta-buy { border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.cta-buy:hover { filter: brightness(1.08); }
.cta-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dark .cta-buy { color: #120d1f; }
.post-cta .cta-secondary { color: var(--muted); font-size: 14px; }

/* The homepage's section language: gray eyebrow with the violet box, big display headings, gray second line. */
.blog .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
/* section icon "blog" (site/src/landing/sectionIcons.tsx, Figma icon/section-blog) */
.blog .eyebrow::before { content: ""; width: 14px; height: 14px; flex: none; background: #641AE6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Crect x='10' y='6' width='8' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Crect x='10' y='6' width='8' height='4' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.dark .blog .eyebrow::before, .blog.dark .eyebrow::before { background: #B79CFF; }
.blog .eyebrow a { color: var(--muted); text-decoration: none; }
.blog .eyebrow a:hover { color: var(--accent); }
.blog-index h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.blog-index h1 .soft { color: #C6C6C6; }
.blog-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); margin: 22px 0 0; max-width: 620px; }
.post h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; }
.post h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.blog .post-list a { padding: 18px; transition: border-color .15s, transform .15s; }
.blog .post-list a:hover { transform: translateY(-2px); }
.blog .post-list img { border-radius: 12px; }
.post-cta, .buy-cta { border-radius: 20px; }

/* Line the header up with the homepage's 1280 px column. */
@media (min-width: 821px) { body:has(main.blog) .top { padding-inline: max(clamp(20px, 5.6vw, 80px), calc((100% - 1280px) / 2)); } }
/* The blog has no sidebar, so its links stay in the header down to tablet width, like the homepage's. */
@media (min-width: 821px) and (max-width: 1180px) { body:has(main.blog) .top .site-links { display: flex; gap: 18px; font-size: 14px; margin-left: auto; } }
.site-links a { white-space: nowrap; }

/* The blog index matches Updates: the site's 1280 px column, the Updates / Versions / Blog tabs, and a grid of post cards. */
.blog:has(.blog-index) { max-width: calc(1280px + 2 * clamp(20px, 5.6vw, 80px)); padding: 0 clamp(20px, 5.6vw, 80px); }
.blog-index h1 { max-width: 15ch; }
.blog-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 28px; }
.blog-intro .blog-lead { margin: 0; }
.blog-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.blog-tabs a { padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.blog-tabs a:hover { color: var(--ink); }
.blog-tabs a[aria-current="page"] { background: #0E0E10; color: #fff; }
.blog .blog-index .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.blog-index .post-list a { gap: 8px; padding: 14px 14px 20px; height: 100%; }
.blog-index .post-list img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.blog-index .post-meta, .blog-index .post-title, .blog-index .post-desc { padding-inline: 4px; }
.blog-index .post-title { font-size: 21px; line-height: 1.2; }
.blog-index .post-desc { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .blog .blog-index .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog .blog-index .post-list { grid-template-columns: minmax(0, 1fr); } }
main.blog:has(.blog-index) + .blog-follow { max-width: calc(1280px + 2 * clamp(20px, 5.6vw, 80px)); padding: 0 clamp(20px, 5.6vw, 80px); }

/* Blog header matches the React pages' header (landing.css .lp-nav): centered links, Download, then the trial button. */
body:has(main.blog) .top { height: 77px; gap: 24px; }
body:has(main.blog) .top .site-links { margin: 0 auto; gap: 32px; font-size: 15px; }
.top-dl { font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 1240px) { body:has(main.blog) .top .site-links { gap: 22px; } }
@media (max-width: 1100px) { body:has(main.blog) .top .site-links { gap: 18px; font-size: 14px; } .top-dl { display: none; } }
@media (max-width: 820px) { body:has(main.blog) .top .cta { margin-left: auto; } }

/* Updates, Versions and Blog share one title block: two-line title, two-line intro, tabs in the same spot. */
.blog-index h1 { max-width: none; font-size: clamp(44px, 5.4vw, 76px); }
.blog-intro .blog-lead { min-height: calc(2 * 1.55em); max-width: 600px; }
.blog-index { padding-top: 65px; }
.blog-index > .eyebrow { line-height: 20px; }
.blog-tabs a { line-height: 21px; }
@media (max-width: 1023px) { .blog-index { padding-top: 41px; } }
@media (max-width: 820px) { .blog-index { padding-top: 40px; } }
@media (max-width: 640px) { .blog-index h1 { font-size: clamp(34px, 9.4vw, 44px); } }
@media (max-width: 820px) { body:has(main.blog) .top { padding-inline: clamp(20px, 5.6vw, 80px); } }
body:has(main.blog) .top { border-bottom-color: transparent; }
body:has(main.blog) .top .brand { font-size: 24px; }
body:has(main.blog) .top .cta { min-height: 42px; font-size: 15px; }
.blog-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.blog-tab-icon { flex: none; opacity: .75; }
.blog-tabs a[aria-current="page"] .blog-tab-icon { opacity: 1; color: #B79CFF; }

/* Posts use the site's side padding on phones too, so text lines up with the header logo. */
@media (max-width: 820px) {
  .blog, .blog-follow { padding-inline: clamp(20px, 5.6vw, 80px); }
  .post .shot { width: calc(100vw - 2 * clamp(20px, 5.6vw, 80px)); }
}

/* Like the React pages: the header links show down to 901px, then the phone menu button takes over. */
@media (min-width: 901px) { body:has(main.blog) .top .site-links { display: flex; } }
@media (max-width: 900px) { body:has(main.blog) .top .site-links { display: none; } body:has(main.blog) .top .cta { margin-left: auto; } }

/* The padding numbers demo (blog/padding-demo.js): a looping picture of the area picker, drawn like
   native/macCapture.m draws it. One point on its screen is 0.125cqw. Its box has a fixed aspect ratio,
   the captions and the settings panel have fixed rows, and Reset keeps its place, so nothing moves. */
.pad-demo { --pn: 11; --pnpad: 4; --pn-color: #ff619e; --pn-ink: #000; margin: 28px 0 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 14px; }
.pd-stage { position: relative; }
.pd-screen { --pt: .125cqw; --t: max(.8px, .125cqw); position: relative; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 10px; container-type: inline-size;
  background: radial-gradient(120% 90% at 20% 0%, #8E6CF0 0%, #4B1FB8 45%, #1B0E3D 100%); user-select: none; }
.pd-screen > *, .pd-zoom > * { position: absolute; }
.pd-screen > :not(.pd-window):not(.pd-item) { opacity: var(--op, 1); }
.pd-window { left: 7.5%; top: 4%; width: 85%; height: 92%; border-radius: 1.4cqw; background: #141418; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.35); }
.pd-bar { position: absolute; left: 0; right: 0; top: 0; height: 6%; border-bottom: 1px solid #26262c; display: flex; gap: .8cqw; align-items: center; padding-left: 1.6cqw; }
.pd-bar i { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #3a3a42; }
.pd-item { display: flex; align-items: center; justify-content: center; }
.pd-icon { border-radius: 22%; background: #fff; color: #2A0E6E; }
.pd-icon svg { width: 62%; height: 62%; }
.pd-title { color: #fff; font: 600 3.1cqw/1 var(--display, system-ui); letter-spacing: -.02em; white-space: nowrap; }
.pd-sub { border-radius: 99px; background: #3a3a44; }
.pd-btn { border-radius: 1cqw; background: #A58BFA; color: #1B0E3D; font: 600 1.6cqw/1 var(--sans, system-ui); }
.pd-dim { inset: 0; }
/* The picker's own look: violet edge and handles, padding numbers and snap lines in the chosen color. */
.pd-frame { box-shadow: 0 0 0 1.5px #7d5cf5; }
.pd-handle { width: max(5px, calc(8 * var(--pt))); height: max(5px, calc(8 * var(--pt))); transform: translate(-50%, -50%); background: #fff; box-shadow: inset 0 0 0 1px #7d5cf5; }
.pd-guide { background: var(--pn-color); box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.pd-guide.is-v { width: 1px !important; margin-left: -.5px; }
.pd-guide.is-h { height: 1px !important; margin-top: -.5px; }
.pd-gap { filter: drop-shadow(0 0 .5px rgba(0,0,0,.6)); }
.pd-gap.is-h { height: 1px !important; margin-top: -.5px; background: repeating-linear-gradient(to right, var(--pn-color) 0 4px, transparent 4px 7px); }
.pd-gap.is-v { width: 1px !important; margin-left: -.5px; background: repeating-linear-gradient(to bottom, var(--pn-color) 0 4px, transparent 4px 7px); }
.pd-num { transform: translate(-50%, -50%); padding: 1px calc(var(--pnpad) * var(--t)); border-radius: calc(var(--pnpad) * var(--t)); background: var(--pn-color); color: var(--pn-ink);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.35); font: 600 calc(var(--pn) * var(--t))/1.3 system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-num[data-beside="right"] { transform: translate(calc(5 * var(--t)), -50%); }
.pd-num[data-beside="above"] { transform: translate(-50%, calc(-100% - 5 * var(--t))); }
.pd-pill { padding: calc(3 * var(--t)) calc(10 * var(--t)); border-radius: calc(8 * var(--t)); background: rgba(20,20,20,.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  color: #fff; font: 500 calc(12 * var(--t))/1.25 system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-size { transform: translate(-50%, calc(-100% - 8 * var(--pt))); }
.pd-hint { left: 50%; top: calc(56 * var(--pt)); transform: translate(-50%, -100%); }
.pd-coords { transform: translateX(-50%); }
.pd-cross.is-v { top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }
.pd-cross.is-h { left: 0; right: 0; height: 1px; background: repeating-linear-gradient(to right, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }
.pd-toolbar, .pd-sizebox { height: calc(48 * var(--pt)); border-radius: calc(12 * var(--pt)); background: rgba(20,20,20,.92); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.pd-toolbar > *, .pd-sizebox > * { position: absolute; top: calc(6 * var(--pt)); }
.pd-tool { width: calc(36 * var(--pt)); height: calc(36 * var(--pt)); display: grid; place-items: center; align-content: center; color: rgba(255,255,255,.92); }
.pd-tool svg { width: calc(19 * var(--pt)); height: calc(19 * var(--pt)); }
.pd-tool b { font: 600 calc(12 * var(--pt))/1 system-ui, -apple-system, sans-serif; }
.pd-tool small { font: 500 calc(8 * var(--pt))/1.2 system-ui, -apple-system, sans-serif; color: rgba(255,255,255,.6); }
.pd-divider { top: calc(14 * var(--pt)); width: 1px; height: calc(20 * var(--pt)); background: rgba(255,255,255,.18); }
.pd-field { width: calc(50 * var(--pt)); height: calc(36 * var(--pt)); border-radius: calc(6 * var(--pt)); background: rgba(255,255,255,.07); display: grid; place-items: center;
  color: #fff; font: 600 calc(12 * var(--pt))/1 system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; }
.pd-field:first-child { left: calc(6 * var(--pt)); }
.pd-field:nth-child(3) { left: calc(72 * var(--pt)); }
.pd-times { left: calc(56 * var(--pt)); width: calc(16 * var(--pt)); height: calc(36 * var(--pt)); display: grid; place-items: center; color: rgba(255,255,255,.6); font: 500 calc(12 * var(--pt))/1 system-ui, sans-serif; }
.pd-menu { left: calc(124 * var(--pt)); width: calc(22 * var(--pt)); height: calc(36 * var(--pt)); display: grid; place-items: center; color: rgba(255,255,255,.7); }
.pd-menu svg { width: calc(12 * var(--pt)); height: calc(12 * var(--pt)); }
.pd-mag { overflow: hidden; border-radius: calc(10 * var(--pt)); background: #000; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.pd-zoom { position: absolute; left: 50%; top: 50%; width: 666.667%; height: 416.667%; transform-origin: 0 0; background: radial-gradient(120% 90% at 20% 0%, #8E6CF0 0%, #4B1FB8 45%, #1B0E3D 100%); }
.pd-mag-center { left: 50%; top: 50%; width: calc(8 * var(--pt)); height: calc(8 * var(--pt)); transform: translate(-50%, -50%); box-shadow: 0 0 0 1.5px rgba(255,255,255,.95); }
.pd-pointer { width: 3cqw; height: 3cqw; transform: translate(-50%, -50%); }
.pd-pointer svg { width: 100%; height: 100%; display: block; }
.pd-keys { left: 2%; bottom: 3%; display: flex; gap: .8cqw; }
.pd-key { padding: .6cqw 1.1cqw; border-radius: .8cqw; background: rgba(20,20,24,.7); color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.14); font: 600 max(9px, 1.45cqw)/1 var(--sans, system-ui); transition: background .2s, color .2s, border-color .2s; }
.pd-key.is-on { background: #fff; color: #2A0E6E; border-color: #fff; }
.pd-play { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: rgba(20,20,24,.72); color: #fff; font: 500 12px/1 var(--sans, system-ui); cursor: pointer; }
.pd-play:hover { border-color: #fff; }
.pd-foot { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; margin-top: 14px; }
.pd-caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-caps li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 15px; line-height: 1.5; transition: color .2s; }
.pd-caps li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transform: translateY(-1px); transition: background .2s; }
.pd-caps li.is-on { color: var(--ink); }
.pd-caps li.is-on::before { background: var(--accent); }
/* Settings › Capture › Padding numbers, as in the app. */
.pd-set { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; font: 400 13px/1.3 var(--sans, system-ui); color: var(--ink); }
.pd-set-head { display: flex; align-items: center; justify-content: space-between; height: 34px; border-bottom: 1px solid var(--line); }
.pd-set-head b { font-weight: 600; }
.pd-reset { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; visibility: hidden; }
.pd-reset.is-on { visibility: visible; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; }
.pd-row + .pd-row { border-top: 1px solid var(--line); }
.pd-row select { height: 28px; width: 156px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; padding: 0 6px; }
.pd-swatches { display: flex; align-items: center; gap: 7px; }
.pd-swatch, .pd-custom { position: relative; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); cursor: pointer; }
.pd-swatch[aria-checked="true"], .pd-custom.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.pd-swatch:focus-visible, .pd-custom:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.pd-custom { overflow: hidden; border: 1px dashed var(--muted); }
.pd-custom span { display: block; width: 100%; height: 100%; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.pd-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pd-where { margin: 8px 2px 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 720px) { .pd-foot { grid-template-columns: 1fr; } .pd-foot > :last-child { order: -1; } }
@media (max-width: 560px) { .pad-demo { padding: 10px; } .pd-hint { display: none; } .pd-caps li { font-size: 14px; } .pd-play { right: 6px; bottom: 6px; width: 54px; height: 24px; font-size: 11px; } }
/* Under each post: the latest other posts, as cards like the blog index, instead of Newer and Older links. */
.more-posts { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more-head h2 { margin: 0; font-size: 22px; }
.more-head a { font-size: 15px; font-weight: 500; white-space: nowrap; }
.blog .more-posts .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.more-posts .post-list a { gap: 8px; padding: 12px 12px 18px; height: 100%; }
.more-posts .post-list img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.more-posts .post-meta, .more-posts .post-title, .more-posts .post-desc { padding-inline: 4px; }
.more-posts .post-title { font-size: 18px; line-height: 1.25; font-weight: 600; }
.more-posts .post-desc { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .blog .more-posts .post-list { grid-template-columns: minmax(0, 1fr); } }
