/* Substack byline above the blog cards, the blog cards themselves, and the Substack
   icon in the footer. substack.js inserts the byline and footer icon; the cards are
   rendered by the card component in assets/dae4b9bc7a8a4ceb93c1.mjs and written into
   index.html so crawlers see their titles and TL;DRs. */

/* ---- Byline ---- */

/* The original "I'm on Substack" heading row hides once the byline sits after it. */
.framer-b8k7gi:has(+ .bs-byline) { display: none; }

.bs-byline {
  position: relative;
  z-index: 1; /* above the section's white light-beam overlay, like the row it replaces */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  font-family: Inter, "Inter Placeholder", sans-serif;
}
.bs-rule {
  flex: 0 1 69px;
  min-width: 16px;
  height: 1px;
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(84, 84, 84, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.bs-rule:last-child { background: linear-gradient(270deg, rgba(84, 84, 84, 0) 0%, rgba(0, 0, 0, 0.5) 100%); }
.bs-byline a {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #1a1a1a;
  text-decoration: none;
}
.bs-byline img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.bs-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.bs-sub svg { flex: none; width: 14px; height: 14px; color: #ff6719; }
@media (hover: hover) {
  .bs-byline a:hover .bs-sub { text-decoration: underline; text-underline-offset: 3px; }
}
/* Phones: drop the side padding so the rules keep some length at 375. */
@media (max-width: 809.98px) {
  .bs-byline { padding: 0; gap: 12px; }
}
/* Below 360px the rules would shrink to stubs, so drop them. */
@media (max-width: 359px) {
  .bs-rule { display: none; }
}
/* Desktop puts 163px between the byline and the cards (60px on tablet and phone),
   so the byline read as part of the section above. Move it down to sit 60px above
   the cards at every width. */
@media (min-width: 1440px) {
  .bs-byline { transform: translateY(103px); }
}

/* ---- Blog cards ---- */

/* Compact cards: the carousel is capped so each card is 300px wide on phones and
   320px on tablet (two cards, 32px gap) and desktop (three cards, 32px gaps). The
   slideshow sizes cards as a share of this width, so the cap sets the card width.
   Height = whole 3:2 cover + a 164px text panel. The section (fixed at 944px)
   grows if needed instead of spilling into the section above. */
.framer-1sxcqal { height: auto !important; min-height: max(100vh, 944px) !important; }
.framer-1q7eieb-container {
  max-width: 300px;
  height: calc(min(300px, 100vw - 48px) * 2 / 3 + 164px) !important;
}
@media (min-width: 810px) {
  .framer-1q7eieb-container { max-width: 672px; height: calc(320px * 2 / 3 + 164px) !important; }
}
@media (min-width: 1440px) {
  .framer-1q7eieb-container { max-width: 1024px; }
}

a.mc {
  --ink: #111;
  --muted: #444;
  --muted2: #666;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: var(--panel, #fff);
  color: var(--ink);
  font-family: Inter, "Inter Placeholder", sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mc-cover { flex: none; aspect-ratio: 3 / 2; overflow: hidden; }
.mc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px 14px;
}
.mc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-tldr {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-tldr b { font-weight: 600; color: var(--label, #111); }
.mc-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted2);
}
.mc-src { display: flex; align-items: center; gap: 6px; }
.mc-src svg { flex: none; width: 12px; height: 12px; }
/* the site's own up-right arrow (same icon as the Read More button), not the ↗ character, which iPhones draw as an emoji */
.mc-arrow { flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%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 256 256'%3E%3Cpath d='M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (hover: hover) {
  a.mc { transition: transform 0.25s ease-out; }
  a.mc:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  a.mc { transition: none; }
  a.mc:hover { transform: none; }
}

/* ---- Footer icon ---- */

/* Copies of the Instagram button with the Substack and GitHub glyphs in the same line weight. */
.bs-foot-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--token-547b5c15-77fe-4f79-a0d6-e024d7d798f1, rgba(255, 255, 255, 0.5));
  transition: color 0.2s ease-out;
}
/* Framer animates the other icons to white on hover with JavaScript the copy does not carry. */
@media (hover: hover) {
  .bs-foot-icon a:hover { --border-color: #fff !important; }
  .bs-foot-icon a:hover svg { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-foot-icon svg { transition: none; }
}
/* Five 60px icons fit a phone's 48px-margin row from 380px up. The gap shrinks from 16px
   to 8px first, and below 380px the buttons narrow (to 48px at 320px) so the row keeps
   the footer's margins. */
@media (max-width: 809.98px) {
  [class]:has(> .bs-foot-icon) { gap: clamp(8px, calc((100vw - 348px) / 4), 16px) !important; }
  [class]:has(> .bs-foot-icon) > *,
  [class]:has(> .bs-foot-icon) > * > a { width: min(60px, calc((100vw - 80px) / 5)) !important; }
}
