/* RapidCue website: blog list (blog.html) and article (blog-post.html). Uses the
   tokens in site.css. */
[hidden] { display: none !important; }
.blog-hero { padding-bottom: 110px; }
.blog-hero h1 { max-width: 16ch; }

.blog-body { padding: 40px 0 96px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font: 500 14px/1 var(--body); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tag-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--plum-200); }
.tag-chip[aria-pressed="true"] { background: var(--plum); color: #fff; box-shadow: none; }

.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); overflow: hidden; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--plum-200), var(--shadow-pop); }
.post-card .cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--plum-150), var(--cue-50)); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .cover.blank { display: grid; place-items: center; }
.post-card .cover.blank svg { width: 56px; height: 56px; --mark-c: var(--plum-300); --mark-dot: var(--cue-300); }
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .kicker { font-size: 13px; font-weight: 600; color: var(--cue-700); }
.post-card h2 { font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.post-card p { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }

.post-card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card.feature .cover { aspect-ratio: auto; min-height: 300px; }
.post-card.feature .body { padding: 34px 36px; justify-content: center; }
.post-card.feature h2 { font-size: clamp(26px, 3vw, 34px); }
.post-card.feature p { -webkit-line-clamp: 4; font-size: 16px; }
@media (max-width: 760px) { .post-card.feature { display: flex; } .post-card.feature .cover { min-height: 0; aspect-ratio: 16 / 9; } .post-card.feature .body { padding: 22px; } }

.skeleton { border-radius: var(--r-card); background: linear-gradient(90deg, var(--line-soft), #fff, var(--line-soft)); background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite; height: 360px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.blog-empty { text-align: center; padding: 64px 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); }
.blog-empty h2 { font-size: 26px; }
.blog-empty p { margin: 10px auto 0; max-width: 46ch; color: var(--ink-2); }
.load-more { display: flex; justify-content: center; margin-top: 36px; }

/* Article */
.article-hero { padding-bottom: 96px; }
.article-hero h1 { max-width: 24ch; font-size: clamp(34px, 5vw, 56px); }
.article-hero .back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; font-weight: 600; }
.article-hero .back:hover { color: #fff; }
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: rgba(255,255,255,.8); }
.article-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
.article-tags a:hover { background: rgba(255,255,255,.2); }

.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter); }
.article-cover { margin: -64px auto 0; max-width: 960px; padding: 0 var(--gutter-r) 0 var(--gutter); position: relative; z-index: 1; }
.article-cover img { width: 100%; border-radius: var(--r-card); display: block; box-shadow: var(--shadow-pop); }

.prose { padding: 44px 0 20px; font-size: 18px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2 { font-size: 30px; line-height: 1.2; margin-top: 1.8em; }
.prose h3 { font-size: 23px; line-height: 1.3; margin-top: 1.6em; }
.prose h4 { font: 700 19px/1.4 var(--body); margin-top: 1.4em; }
.prose a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--plum-200); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--plum); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--plum-500); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--cue-300); color: var(--ink-2); font-style: italic; }
.prose img, .prose video, .prose iframe { max-width: 100%; border-radius: var(--r-tile); display: block; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose code { font: 500 .88em var(--mono); background: var(--plum-50); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: var(--plum-900); color: #f3e8f1; padding: 18px 20px; border-radius: var(--r-tile); overflow-x: auto; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--plum-50); }

.article-cta { margin: 36px 0 0; padding: 30px 32px; border-radius: var(--r-card); background: var(--plum); color: #fff; display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.article-cta h2 { font-size: 24px; line-height: 1.25; max-width: 26ch; }
.article-cta p { margin-top: 6px; color: rgba(255,255,255,.8); font-size: 15px; }

.more { padding: 72px 0 96px; }
.more h2 { font-size: 30px; margin-bottom: 24px; }
.not-found { padding: 80px 0 120px; text-align: center; }
.not-found p { margin-top: 10px; color: var(--ink-2); }
.not-found .btn { margin-top: 24px; }

/* Newsletter (BlogSpeed subscribers, through our server) */
.subscribe { margin-top: 56px; background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line);
  padding: 32px 36px; display: grid; gap: 20px 40px; grid-template-columns: 1fr 1.2fr; align-items: center; }
.subscribe h2 { font-size: 26px; line-height: 1.2; }
.subscribe > div > p { margin-top: 8px; color: var(--ink-2); }
.subscribe-form { display: grid; gap: 10px; grid-template-columns: 1fr 1.3fr auto; }
.subscribe-form input { font: 15px/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-inner);
  padding: 12px 14px; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.subscribe-form input:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 3px var(--plum-150); }
.subscribe-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.subscribe-msg.ok { color: var(--cue-700); }
.subscribe-msg.bad { color: #a8402c; }
.article-wrap .subscribe { margin: 40px 0 0; }
@media (max-width: 860px) { .subscribe { grid-template-columns: 1fr; padding: 26px 22px; } }
@media (max-width: 560px) { .subscribe-form { grid-template-columns: 1fr; } .subscribe-form button { justify-content: center; } }
