/* Blog: page layout only. Components come from felt.css and are never restyled here.
   Used by blog.html (the index) and blog/<slug>.html (the posts). */

/* ---------- night hero (same recipe as connect.css, copied: page sheets do not import each other) ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding: 36px 0 150px;
  background: radial-gradient(45% 50% at 80% 45%, rgba(246, 181, 68, .13), transparent 70%), radial-gradient(70% 55% at 20% 8%, #3a2654 0%, transparent 70%), var(--night); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: var(--grain); background-size: 180px; mix-blend-mode: overlay; opacity: .2; }
.scenery { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hang-star { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.hang-star .thread-line { height: var(--len); background: rgba(251, 241, 225, .3); }
.hang-star svg { width: 30px; height: 30px; margin-top: -2px; }
.hang-star.s1 { left: 4%; } .hang-star.s2 { right: 5%; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { max-width: 700px; }
.hero .title { font-size: clamp(54px, 5.6vw, 88px); }
.hero .lede { max-width: 32em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-weight: 800; font-size: 16px; color: var(--lilac-text); }
.post-meta li + li::before { content: "·"; margin-right: 18px; color: var(--amber); }
.post-meta a { color: inherit; }

.prop { margin: 0; justify-self: center; width: min(100%, 360px); display: grid; place-items: center; }
.prop img { width: auto; height: auto; max-width: 100%; max-height: 440px; filter: drop-shadow(0 26px 34px rgba(8, 3, 16, .55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.index-ghost { width: min(100%, 340px); justify-self: center; }

/* ---------- the index ---------- */
.posts { position: relative; padding: 30px 0 30px; }
.posts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.post-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 22px; align-items: center; padding: 28px 28px 26px; }
.post-card:nth-child(odd) { rotate: -.4deg; }
.post-card:nth-child(even) { rotate: .4deg; }
.post-card .card-art { display: grid; place-items: center; align-self: stretch; }
.post-card .card-art img { width: auto; max-width: 100%; height: auto; max-height: 190px; filter: drop-shadow(0 12px 14px rgba(8, 3, 16, .35)); }
.post-card .kicker { color: var(--coral-ink); margin-bottom: 4px; }
.post-card h2 { margin: 0 0 8px; font: 400 clamp(34px, 3vw, 44px)/.98 var(--display); }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* the whole card is the link */
.post-card h2 a:hover { text-decoration: underline wavy var(--coral) 2px; text-underline-offset: 6px; }
.post-card p { margin: 0 0 10px; }
.post-card .ask-line { font-weight: 700; color: var(--muted-ink); }
.post-card .more { font-weight: 800; }
.post-card:focus-within { outline: 3px solid var(--amber); outline-offset: 6px; }
.post-card a:focus-visible { outline: 0; }
.follow { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.follow p { margin: 0; }

/* ---------- a post ---------- */
.post { position: relative; padding: 30px 0 40px; }
.post-wrap { display: grid; grid-template-columns: minmax(0, 68ch); justify-content: center; }
.post-body > * + * { margin-top: 1em; }
.post-body p, .post-body li { font-size: 18px; line-height: 1.6; }
.post-body p { margin-bottom: 0; }
.post-body a:not(.patch) { font-weight: 800; text-decoration-color: var(--coral); text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
.post-body h2 { margin: 1.5em 0 .35em; scroll-margin-top: 24px; }
.post-body h2:first-child { margin-top: 0; }
.post-body .claim { font-weight: 800; font-size: 20px; line-height: 1.45; color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: .45em; margin-bottom: 0; }
.post-body li::marker { font-weight: 800; color: var(--coral-ink); }
.post-body code { background: var(--cream-deep); padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-word; }

.tldr { margin: 0 0 1.4em; padding: 24px 28px 22px; }
.tldr h2 { margin: 0 0 .2em; }
.tldr ul { margin: 0; }

.table-wrap { overflow-x: auto; border-radius: 16px 20px 15px 18px; background: var(--cream-deep); box-shadow: 0 4px 0 #c9ae84; }
.table-wrap:focus-visible { outline-offset: 4px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 1.4; }
.table-wrap caption { text-align: left; padding: 12px 16px 4px; font-weight: 800; font-size: 15px; color: var(--muted-ink); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 16px; border-bottom: 2.4px dashed rgba(42, 27, 61, .22); }
.table-wrap th { font-weight: 800; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tr.is-us td, .table-wrap tr.is-us th { background: rgba(246, 181, 68, .32); font-weight: 800; }
.table-note { font-size: 15px; color: var(--muted-ink); }
.post-body .table-note { font-size: 15px; line-height: 1.5; }

.status { display: inline-block; padding: 1px 10px 2px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; rotate: -1.5deg; }
.status.is-built { background: var(--mint); color: #163f34; }
.status.is-soon { border: 2px dashed currentColor; color: var(--coral-ink); }
.status.is-never { background: var(--berry); color: var(--cream); }

.sources { font-size: 16px; }
.sources li, .post-body .sources li { font-size: 16px; line-height: 1.5; }
.faq { display: grid; gap: 22px; }
.faq .qa { margin: 0; }
.faq h3 { margin: 0 0 .25em; font: 800 21px/1.3 var(--body); color: var(--ink); }
.faq p { margin: 0; }
.updated { font-size: 15px; color: var(--muted-ink); }

.next { margin-top: 1.6em; padding-top: 1.2em; border-top: 2.4px dashed rgba(42, 27, 61, .3); }
.next h2 { margin-top: 0; }

/* ---------- call to action on night ---------- */
.cta { position: relative; padding: 40px 0 70px; }
.cta .wrap { max-width: 860px; text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .patch-row { justify-content: center; margin-top: 8px; }
.page-blog .footbar { margin-top: 0; }

@media (max-width: 899px) {
  .hero { padding: 18px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .prop, .index-ghost { order: -1; width: 150px; margin-bottom: -6px; }
  .prop img { max-height: 190px; }
  .hero .title { font-size: 48px; }
  .posts-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-card { grid-template-columns: 96px minmax(0, 1fr); padding: 22px 18px 20px; gap: 6px 14px; }
  .post-card .card-art img { max-height: 120px; }
  .post-card h2 { font-size: 34px; }
  .tldr { padding: 20px 18px 18px; }
  .post-body p, .post-body li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .prop img { animation: none; }
  .post-card:nth-child(odd), .post-card:nth-child(even) { rotate: 0deg; }
}
