/* Homepage "On GitHub" section. Written into index.html after the React root (like the FAQ);
   substack.js moves it above the FAQ once Framer has hydrated, and api/home.mjs refreshes the
   month calendars and the 90-day count from github.com/users/PlasmaLemur88/contributions. The heading row
   reuses .fq-head from faq.css. */
#gh {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 96px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  font-family: Inter, "Inter Placeholder", sans-serif;
  color: #111;
}
#gh .gh-h {
  margin: 0;
  max-width: 640px;
  text-align: center;
  font-family: "Instrument Serif", "Instrument Serif Placeholder", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
#gh .gh-line {
  margin: -12px 0 0;
  max-width: 540px;
  text-align: center;
  font-size: 15px;
  line-height: 24px;
  color: #444;
  text-wrap: balance;
}
#gh .gh-wrap { width: 100%; max-width: 720px; }
/* month calendars since Sep 1 (Sunday first); days still to come are outlines */
#gh .gh-months { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 28px; }
#gh .gh-month span { display: block; margin-bottom: 8px; font-family: "Instrument Serif", "Instrument Serif Placeholder", serif; font-size: 20px; line-height: 24px; color: #333; }
#gh .gh-cal { display: grid; grid-template-columns: repeat(7, 18px); grid-auto-rows: 18px; gap: 3px; }
#gh .gh-cal i { border-radius: 3px; background: rgba(0, 0, 0, 0.07); }
#gh .gh-cal i.z { background: none; }
#gh .gh-cal i.o { background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
#gh .gh-cal i.l1 { background: rgba(0, 0, 0, 0.28); }
#gh .gh-cal i.l2 { background: rgba(0, 0, 0, 0.5); }
#gh .gh-cal i.l3 { background: rgba(0, 0, 0, 0.72); }
#gh .gh-cal i.l4 { background: #111; }
#gh .gh-lab { display: flex; align-items: center; gap: 8px; }
#gh .gh-lab svg { flex: none; width: 20px; height: 20px; }
#gh .gh-cap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; text-align: center; font-size: 13px; line-height: 20px; color: #555; }
#gh .gh-cap p { margin: 0; max-width: 460px; text-wrap: balance; font-variant-numeric: tabular-nums; }
#gh .gh-cap a { display: inline-flex; align-items: center; gap: 4px; color: #111; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, 0.3); }
/* the site's own up-right arrow (same icon as the Read More button) */
#gh .gh-arrow { flex: none; width: 13px; height: 13px; 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; }
#gh .gh-cap a:focus-visible { outline: 2px solid #111; outline-offset: 4px; border-radius: 2px; }
@media (max-width: 809.98px) {
  #gh { padding: 72px 20px 24px; }
  #gh .gh-h { font-size: 32px; line-height: 36px; }
  /* phones: three months side by side; exactly four months go two by two with bigger squares */
  #gh .gh-months { gap: 20px 14px; }
  #gh .gh-cal { grid-template-columns: repeat(7, 12px); grid-auto-rows: 12px; gap: 2px; }
  #gh .gh-cal i { border-radius: 2px; }
  #gh .gh-month span { font-size: 17px; }
  #gh .gh-months:has(> :nth-child(4):last-child) { gap: 20px 24px; }
  #gh .gh-months:has(> :nth-child(4):last-child) .gh-cal { grid-template-columns: repeat(7, 17px); grid-auto-rows: 17px; }
}
@media (max-width: 359.98px) {
  #gh .gh-cal { grid-template-columns: repeat(7, 10px); grid-auto-rows: 10px; }
  #gh .gh-months:has(> :nth-child(4):last-child) .gh-cal { grid-template-columns: repeat(7, 15px); grid-auto-rows: 15px; }
}
