
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2328; background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
  .wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }
  .wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  ::selection { background: color-mix(in srgb, var(--accent) 16%, #fff); }
  header.site { border-bottom: 1px solid #ececec; padding: 15px 0; background: #fff; }
  header.site .wide { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  a.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #111; }
  a.brand img { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; display: block; }
  a.brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
  header.site nav { display: flex; align-items: center; gap: 6px; }
  header.site nav a.nav-blog { color: #57606a; text-decoration: none; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
  header.site nav a.nav-blog:hover { color: #111; background: #f6f8fa; }
  a.visit { font-size: 13.5px; font-weight: 600; color: #fff; background: var(--accent); text-decoration: none; padding: 8px 15px; border-radius: 999px; white-space: nowrap; }
  a.visit:hover { filter: brightness(1.08); }

  /* ---- Home ---- */
  .masthead { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, #fff) 0%, #fff 100%); padding: 52px 0 40px; }
  .masthead h1 { font-size: clamp(32px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -0.022em; color: #101418; }
  .masthead .tag { margin-top: 10px; font-size: 17px; color: #57606a; max-width: 560px; }
  .feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; margin: 40px 0 10px; }
  .feat .img-link { display: block; border-radius: 16px; overflow: hidden; background: #f6f8fa; }
  .feat img, .card .img-link img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
  .feat h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.22; letter-spacing: -0.016em; margin: 8px 0 10px; }
  .feat h2 a, .card h3 a { color: #111; text-decoration: none; }
  .feat h2 a:hover, .card h3 a:hover { color: var(--accent); }
  .feat .excerpt { color: #4b5563; font-size: 16px; }
  .feat .more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: none; }
  .feat .more:hover { text-decoration: underline; }
  .date { color: #8b949e; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
  .sec-title { display: flex; align-items: center; gap: 14px; margin: 38px 0 18px; color: #8b949e; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  .sec-title::after { content: ""; flex: 1; height: 1px; background: #eef0f2; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 28px; padding-bottom: 8px; }
  .card .img-link { display: block; border-radius: 12px; overflow: hidden; background: #f6f8fa; }
  .card img { transition: transform 0.25s ease; }
  .card:hover img { transform: scale(1.03); }
  .card .date { margin-top: 12px; }
  .card h3 { font-size: 18.5px; line-height: 1.34; letter-spacing: -0.01em; margin: 6px 0 6px; }
  .card .excerpt { color: #57606a; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ph { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #000) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 72%, #fff) 100%); }
  .ph span { font-size: 44px; font-weight: 800; color: #fff; opacity: 0.92; }
  .empty { color: #666; padding: 56px 0 30px; font-size: 16px; }

  /* ---- Post ---- */
  main.wrap { padding-top: 36px; }
  main.home { padding-top: 0; }
  .kicker { display: inline-block; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
  h1.post-title { font-size: clamp(31px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; color: #101418; }
  .post-meta { color: #8b949e; font-size: 13.5px; margin-bottom: 8px; }
  .hero { width: 100%; height: auto; border-radius: 16px; margin: 24px 0 34px; }
  article.body > p:first-of-type { font-size: 18px; color: #374151; }
  article.body h2 { font-size: 25px; margin: 42px 0 14px; line-height: 1.28; letter-spacing: -0.012em; color: #101418; }
  article.body h3 { font-size: 19px; margin: 28px 0 10px; color: #101418; }
  /* Landing on a fragment link must not tuck the heading against the viewport
     edge, and the sticky-free layout means a small offset is enough. */
  article.body h2[id], article.body h3[id] { scroll-margin-top: 20px; }

  /* ---- Contents ---- */
  nav.toc { border: 1px solid #ececec; border-radius: 12px; background: #fbfcfd; padding: 14px 18px 15px; margin: 26px 0 4px; }
  nav.toc p.toc-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #8b949e; margin-bottom: 7px; }
  nav.toc ol { margin: 0; padding-left: 19px; }
  nav.toc li { font-size: 15px; margin: 4px 0; color: #57606a; }
  nav.toc a { color: #2f3439; text-decoration: none; }
  nav.toc a:hover { color: var(--accent); text-decoration: underline; }
  article.body p, article.body li { font-size: 16.5px; color: #2f3439; }
  article.body p { margin: 14px 0; }
  article.body ul, article.body ol { padding-left: 26px; margin: 14px 0; }
  article.body li { margin-bottom: 7px; }
  article.body a { color: var(--accent); font-weight: 500; }
  article.body a:hover { text-decoration-thickness: 2px; }
  article.body img { max-width: 100%; height: auto; border-radius: 10px; }
  /* <picture> is inline by default, which would leave a baseline gap under the
     card/hero images now that the <img> sits inside one. */
  .feat .img-link picture, .card .img-link picture, article.body picture { display: block; }
  article.body blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; color: #57606a; margin: 18px 0; }
  article.body pre { background: #f6f8fa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; margin: 18px 0; overflow-x: auto; font-size: 13.5px; line-height: 1.5; white-space: pre; }
  article.body pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: none; padding: 0; }
  article.body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; background: #f1f3f5; border-radius: 4px; padding: 0.12em 0.35em; font-size: 0.9em; }
  article.body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
  article.body th, article.body td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
  article.body th { background: #f9fafb; }

  /* ---- More-from strip + CTA ---- */
  .below { margin-top: 56px; }
  .cta { margin-top: 48px; background: var(--accent); border-radius: 18px; padding: 36px 34px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  .cta h2 { font-size: clamp(21px, 2.6vw, 26px); letter-spacing: -0.015em; line-height: 1.25; }
  .cta p { opacity: 0.88; font-size: 15px; margin-top: 4px; }
  .cta a.btn { background: #fff; color: var(--accent); font-weight: 700; padding: 12px 24px; border-radius: 999px; text-decoration: none; font-size: 15px; white-space: nowrap; }
  .cta a.btn:hover { filter: brightness(0.96); }

  /* ---- Taxonomy: chips, breadcrumbs, pagination ---- */
  .taxo { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
  .taxo a { font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: 999px; }
  .taxo a.chip-cat { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); }
  .taxo a.chip-tag { background: #f2f4f6; color: #57606a; }
  .taxo a.chip-tag:hover { background: #e7ebef; color: #111; }
  .crumbs { color: #8b949e; font-size: 13px; margin-bottom: 14px; }
  .crumbs a { color: #57606a; text-decoration: none; }
  .crumbs a:hover { color: var(--accent); }
  .crumbs span.sep { margin: 0 7px; color: #c2c8ce; }
  nav.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 44px 0 8px; font-size: 14px; }
  nav.pager a { color: var(--accent); font-weight: 600; text-decoration: none; padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 999px; }
  nav.pager a:hover { background: #f6f8fa; }
  nav.pager .pos { color: #8b949e; font-weight: 600; }
  .hub-head { padding: 44px 0 24px; }
  .hub-head .eyebrow { color: #8b949e; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  .hub-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.14; letter-spacing: -0.02em; margin-top: 6px; color: #101418; }

  footer.site { border-top: 1px solid #ececec; margin-top: 64px; padding: 24px 0 44px; color: #8b949e; font-size: 13.5px; }
  footer.site .wide { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  footer.site a { color: #57606a; text-decoration: none; }
  footer.site a:hover { color: var(--accent); }

  @media (max-width: 860px) {
    .feat { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
    .masthead { padding: 38px 0 30px; }
  }
