/* Claude handbook hub (/blog/, /hu/blog/). 820px column, dark + light via theme tokens.
   Layout idea: featured note + topic pills + list (inspired by a 21st.dev blog index,
   rebuilt in the site's own black + amber style; no 21st.dev code). */

.hb .lede { max-width: 64ch; }

/* featured note */
.hb-feat {
  margin: 40px 0 8px; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: var(--onyx, #0b0b0b); display: grid; grid-template-columns: 1fr;
}
.hb-feat-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.hb-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease, ease); }
.hb-feat:hover .hb-feat-img img { transform: scale(1.025); }
.hb-feat-body { padding: 28px 30px 30px; }
.hb-feat-t { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.03em; margin: 12px 0 10px; }
.hb-feat-t a { color: var(--ivory); text-decoration: none; }
.hb-feat-t a:hover { color: var(--amber); }
.hb-feat .hb-x { margin: 0 0 22px; }
.hb-feat-go { margin: 0; }

/* meta line */
.hb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hb-flag { color: #020202; background: var(--amber); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.hb-tag { color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 999px; padding: 2px 10px; }
.hb-x { color: var(--muted); margin: 6px 0 0; line-height: 1.55; }

/* list */
.hb-h { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin: 0 0 8px; }
.hb-list { margin-top: 48px; }
.hb-filter { margin-top: 40px; }
.hb-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.hb-row:last-child { border-bottom: 1px solid var(--line); }
.hb-row > :not(.hb-go) { grid-column: 1; }
.hb-t { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; letter-spacing: -0.015em; margin: 10px 0 0; }
.hb-t a { color: var(--ivory); text-decoration: none; }
.hb-t a::after { content: ""; position: absolute; inset: 0; }   /* whole row is the link */
.hb-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 22px; color: var(--muted);
  transition: transform .35s var(--ease, ease), color .35s; }
.hb-row:hover .hb-t a { color: var(--amber); }
.hb-row:hover .hb-go { color: var(--amber); transform: translateX(4px); }
.hb-row:focus-within { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.hb-t a:focus-visible { outline: none; }

/* free guides pointer */
.hb-builds { margin: 64px 0 0; padding: 28px 30px; border-radius: 22px; border: 1px dashed var(--line-strong); }
.hb-builds p { color: var(--muted); margin: 0 0 18px; }
.hb-builds p:last-child { margin: 0; }

/* The featured image is a text-heavy OG card: always full width at its own 1200:630
   ratio, never cropped or stretched. */
@media (min-width: 760px) {
  .hb-feat-body { padding: 32px 36px 34px; }
}

/* light mode */
html[data-theme="light"] .hb-feat { background: #fffdf8; }
html[data-theme="light"] .hb-tag { color: #8a5a00; border-color: rgba(138, 90, 0, .45); }

@media (prefers-reduced-motion: reduce) {
  .hb-feat-img img, .hb-go { transition: none; }
  .hb-feat:hover .hb-feat-img img { transform: none; }
}
