/* blog.joyet.app — on top of joyet.app's styles.css (copied by sync.mjs).
   Uses the same theme variables, so light, dark and device themes all work. */

.brand-sub { font: 500 15px/1 var(--text); letter-spacing: 0; color: rgba(255,255,255,.6); margin-left: 2px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); }

/* hero */
.bhero { padding-bottom: 70px; }
.bhero h1 { max-width: 820px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chips a { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink2); background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-line); transition: background .2s, color .2s; text-decoration: none !important; }
.chips a:hover { background: var(--chip2); color: var(--ink); }
.phero .chips a.on { background: #fff; color: #0B1033 !important; box-shadow: none; }

/* Covers are 1200×630: show them whole. */
.blog .post .img { aspect-ratio: 1200/630; }

/* list */
.blist { padding: 56px 0 30px; }
.lead-post { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--glass); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--lift); margin-bottom: 18px; transition: transform .3s, box-shadow .3s; }
.lead-post:hover { transform: translateY(-4px); }
.lead-post .img { min-height: 360px; background: var(--n1) center/cover; }
.lead-post { align-items: stretch; }
.lead-post .body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--bg2); }
.lead-post h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.08; }
.lead-post .ex { color: var(--muted); font-size: 16.5px; margin: 16px 0 18px; }
.lead-post .link-arrow svg { width: 18px; height: 18px; }
.post .ex { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .body { flex: 1; display: flex; flex-direction: column; }
.post .meta { margin-top: auto; }
.meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.meta span + span::before { content: "·"; margin-right: 14px; opacity: .6; }
.post .meta { margin-bottom: 0; }
.img.ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--n0), var(--n2)); }
.img.ph img { width: 64px; height: 64px; border-radius: 18px; opacity: .9; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.pager .btn { height: 46px; padding: 0 20px; font-size: 14.5px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 2rem; margin-bottom: 10px; }

/* post */
.phead { padding-bottom: 120px; }
.phead h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; }
.phead .back { display: inline-block; color: var(--muted) !important; text-decoration: none !important; font-size: 14.5px; margin-bottom: 26px; }
.phead .back:hover { color: #fff !important; }
.ptags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px !important; }
.ptags a { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--peri) !important; text-decoration: none !important; padding: 6px 12px; border-radius: 999px; background: rgba(175,192,255,.1); }
.phead .lead { font-size: 20px; max-width: 720px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 30px !important; font-size: 14px !important; }
.byline img { width: 40px; height: 40px; border-radius: 12px; }
.byline > span { display: flex; flex-direction: column; line-height: 1.35; }
.byline b { color: #fff; font-weight: 600; }
.pcover { margin-top: -80px; position: relative; z-index: 2; }
.pcover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }

.prose { max-width: 720px; margin: 56px auto 0; color: var(--ink2); font-size: 18px; line-height: 1.78; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { color: var(--ink); font-size: 1.9rem; line-height: 1.15; margin-top: 1.8em; }
.prose > h3 { color: var(--ink); font-size: 1.35rem; margin-top: 1.6em; }
.prose > h4 { color: var(--ink); font-size: 1.1rem; margin-top: 1.4em; }
.prose a { color: var(--peri); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--peri); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 24px; border-radius: var(--r-sm); background: var(--chip); box-shadow: inset 3px 0 0 var(--peri); color: var(--ink); font-size: 19px; }
.prose blockquote p { margin: 0; }
.prose code { font-size: .88em; background: var(--chip2); padding: .15em .4em; border-radius: 6px; }
.prose pre { background: #0B1033; color: #E6E9F2; border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--r-md); width: 100%; height: auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose > hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong { color: var(--ink); }

.share { max-width: 720px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share span { color: var(--muted); font-size: 14px; margin-right: 8px; }
.share a, .share button { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font: 500 14px/1 var(--text); color: var(--ink); background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-line); border: 0; cursor: pointer; transition: background .2s; }
.share a:hover, .share button:hover { background: var(--chip2); }
.related { padding: 100px 0 20px; }
.related .sec-head { margin-bottom: 36px; }

@media (max-width: 860px) {
  .lead-post { grid-template-columns: 1fr; }
  .lead-post .img { min-height: 0; aspect-ratio: 1200/630; }
  .lead-post .body { padding: 26px 24px 30px; }
  .phead { padding-bottom: 90px; }
  .pcover { margin-top: -60px; }
  .prose { font-size: 17px; margin-top: 40px; }
  .brand-sub { display: none; }
}
