/* Blog look: white and rounded, Tesana-like structure (expanded grotesk display, pills, image grid),
   with pixel-art worlds as covers. */
:root {
  --bg: #ffffff;
  --soft: #f6f6f5;
  --soft-2: #efefee;
  --ink: #131313;
  --body: #2a2a2a;
  --muted: #7a7a7a;
  --line: #e7e7e5;
  --line-soft: #f0f0ee;
  --accent: #3a63ff;
  --display: "Archivo", "SF Pro Display", system-ui, sans-serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 700px;
  --r: 20px;

  --s0: #3a63ff;
  --s1: #ff8a3d;
  --s2: #12b886;
  --s3: #e64980;
  --s4: #7950f2;
  --s5: #9a9a9a;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 18px/1.72 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #1f45e0; }
img, svg { max-width: 100%; }
::selection { background: #dfe6ff; }

/* header */
.top-bar { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 14px 28px; font-family: var(--ui); }
.brand { display: inline-flex; align-items: center; gap: 9px; justify-self: start; color: var(--ink); text-decoration: none; font: 560 17px/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.brand .dim { color: var(--muted); font-weight: 460; }
.top nav { display: contents; }
.pills { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); justify-self: center; }
.pills a { padding: 8px 18px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s, background .15s; }
.pills a:hover { color: var(--ink); }
.pills a[aria-current] { background: var(--soft-2); color: var(--ink); }
.top-cta {
  justify-self: end; padding: 11px 20px; border-radius: 999px; color: #fff !important; text-decoration: none;
  background: var(--ink); font: 500 15px/1 var(--ui); transition: transform .2s, background .2s;
}
.top-cta:hover { background: #000; transform: translateY(-1px); }

/* article */
.post { max-width: var(--measure); margin: 0 auto; padding: 48px 24px 110px; }
.crumbs { margin: 0 0 20px; font: 500 14px/1 var(--ui); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post h1 {
  margin: 0 0 20px; color: var(--ink);
  font: 520 clamp(32px, 5vw, 52px)/1.07 var(--display); font-stretch: 125%; letter-spacing: -.02em;
  text-wrap: balance;
}
.dek { margin: 0 0 24px; font-size: 20px; line-height: 1.55; color: #555; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; color: var(--muted); font: 400 14.5px/1.4 var(--ui); }
.cover { display: block; height: auto; width: calc(100% + 120px); max-width: calc(100vw - 32px); margin: 0 -60px 44px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.post h2 { margin: 2.2em 0 .6em; color: var(--ink); font: 540 27px/1.2 var(--display); font-stretch: 118%; letter-spacing: -.015em; text-wrap: balance; }
.post h3 { margin: 1.8em 0 .45em; color: var(--ink); font: 600 19.5px/1.35 var(--ui); }
.post p, .post ul, .post ol { margin: 0 0 1.15em; text-wrap: pretty; }
.post li { margin: .35em 0; }
.post li::marker { color: var(--accent); }
.post strong { color: var(--ink); font-weight: 600; }
.post blockquote { margin: 1.8em 0; padding: 18px 22px; border-radius: 16px; background: var(--soft); color: var(--ink); }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.post code { font: .86em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--soft); padding: .15em .4em; border-radius: 6px; }

.takeaways { margin: 0 0 2.6em; padding: 24px 28px 10px; border-radius: var(--r); background: var(--soft); }
.takeaways h2 { margin: 0 0 .7em; font: 600 14px/1 var(--ui); letter-spacing: 0; color: var(--ink); }
.takeaways ul { padding-left: 1.1em; font-size: 16.5px; line-height: 1.62; }

/* tables */
.post table, .ch-table { width: 100%; border-collapse: collapse; margin: 0; font: 400 14.5px/1.45 var(--ui); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.table-wrap table { min-width: 520px; }
.post th, .post td, .ch-table th, .ch-table td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.post tbody tr:last-child > *, .ch-table tbody tr:last-child > * { border-bottom: 0; }
.post tbody tr:hover, .ch-table tbody tr:hover { background: #fafaf9; }
.post thead th, .ch-table thead th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.post tbody th { color: var(--ink); font-weight: 600; }

/* charts */
.chart { margin: 2.4em -28px; padding: 24px 26px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-family: var(--ui); }
.chart .ch-table { margin-top: 4px; }
.chart .table-wrap { margin: 0; }
.chart figcaption { margin-bottom: 16px; }
.chart figcaption b { display: block; color: var(--ink); font: 560 17px/1.25 var(--display); font-stretch: 112%; letter-spacing: -.005em; }
.chart figcaption span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 5px; }
.chart-src { margin: 14px 0 0 !important; padding-top: 11px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.chart-src a { color: var(--muted); }
.chart-src a:hover { color: var(--ink); }
.ch { display: block; width: 100%; height: auto; font-family: var(--ui); overflow: visible; }
.ch text { font-size: 12px; fill: var(--muted); }
.ch .ch-label { fill: var(--body); font-size: 12.5px; }
.ch .ch-value { fill: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.ch .ch-legend, .ch .ch-pl { fill: var(--body); }
.ch .ch-axis { font-size: 11.5px; }
.ch .ch-grid { stroke: var(--line-soft); stroke-width: 1; }
.ch .ch-base { stroke: #cfcfcc; }
.ch .ch-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ch .ch-pt { stroke: #fff; stroke-width: 1.5; }
.ch .ch-pt.ch-hollow { fill: #fff !important; stroke: var(--s5); stroke-width: 2; }
.ch .ch-end { font-size: 12px; font-weight: 600; }
.ch-s0 { fill: var(--s0); } .ch-l0 { stroke: var(--s0); } .ch-t0 { fill: var(--s0) !important; }
.ch-s1 { fill: var(--s1); } .ch-l1 { stroke: var(--s1); } .ch-t1 { fill: var(--s1) !important; }
.ch-s2 { fill: var(--s2); } .ch-l2 { stroke: var(--s2); } .ch-t2 { fill: var(--s2) !important; }
.ch-s3 { fill: var(--s3); } .ch-l3 { stroke: var(--s3); } .ch-t3 { fill: var(--s3) !important; }
.ch-s4 { fill: var(--s4); } .ch-l4 { stroke: var(--s4); } .ch-t4 { fill: var(--s4) !important; }
.ch-s5 { fill: var(--s5); } .ch-l5 { stroke: var(--s5); } .ch-t5 { fill: var(--s5) !important; }

/* one color per lab */
.cr-anthropic { fill: #d97757; } .cr-openai { fill: #10a37f; } .cr-google { fill: #4285f4; } .cr-xai { fill: #1f1f1f; }
.cr-meta { fill: #8b5cf6; } .cr-alibaba { fill: #f59e0b; } .cr-deepseek { fill: #06b6d4; } .cr-mistral { fill: #ec4899; }
.cr-moonshot { fill: #64748b; } .cr-zai { fill: #14b8a6; } .cr-minimax { fill: #f43f5e; } .cr-xiaomi { fill: #fb923c; }
.cr-nvidia { fill: #76b900; } .cr-stepfun { fill: #a855f7; } .cr-bfl { fill: #d946ef; } .cr-midjourney { fill: #475569; } .cr-bytedance { fill: #3b82f6; }
.ch .ch-hollow.cr-anthropic { stroke: #d97757; } .ch .ch-hollow.cr-openai { stroke: #10a37f; } .ch .ch-hollow.cr-google { stroke: #4285f4; }
.ch .ch-hollow.cr-meta { stroke: #8b5cf6; } .ch .ch-hollow.cr-alibaba { stroke: #f59e0b; } .ch .ch-hollow.cr-deepseek { stroke: #06b6d4; }
.ch .ch-hollow.cr-mistral { stroke: #ec4899; } .ch .ch-hollow.cr-moonshot { stroke: #64748b; } .ch .ch-hollow.cr-zai { stroke: #14b8a6; }
.ch .ch-hollow.cr-minimax { stroke: #f43f5e; } .ch .ch-hollow.cr-xiaomi { stroke: #fb923c; } .ch .ch-hollow.cr-nvidia { stroke: #76b900; }
.ch .ch-hollow.cr-stepfun { stroke: #a855f7; } .ch .ch-hollow.cr-xai { stroke: #1f1f1f; }

/* end matter */
.faq h3 { font-size: 18px; }
.sources ol { font: 400 14px/1.6 var(--ui); color: var(--muted); word-break: break-word; }
.related { margin-top: 3.2em; padding-top: 1.8em; border-top: 1px solid var(--line); }
.related h2 { font-size: 21px; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.related a { display: block; color: var(--ink); text-decoration: none; font: 500 15px/1.35 var(--ui); }
.related img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 10px; background: var(--soft); transition: transform .25s; }
.related a:hover img { transform: translateY(-2px); }

/* index */
.index { max-width: 1240px; margin: 0 auto; padding: 28px 28px 110px; font-family: var(--ui); }
.banner { position: relative; display: grid; place-items: center; min-height: 260px; margin: 0 auto 64px; max-width: 980px; padding: 40px 24px; border-radius: 24px; overflow: hidden; text-align: center; background: var(--soft) center / cover no-repeat; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner div { position: relative; padding: 22px 30px; border-radius: 20px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); }
.banner b { display: block; color: var(--ink); font: 560 22px/1.1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.banner span { display: block; margin-top: 8px; color: #444; font-size: 15.5px; line-height: 1.45; }
.index-head { max-width: 860px; margin: 0 auto 56px; text-align: center; }
.index h1 { margin: 0 0 16px; color: var(--ink); font: 520 clamp(38px, 6vw, 68px)/1.03 var(--display); font-stretch: 125%; letter-spacing: -.025em; text-wrap: balance; }
.index-head p { margin: 0 auto; max-width: 620px; color: var(--muted); font: 400 19px/1.55 var(--ui); }
.cards { display: grid; gap: 34px 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding: 0; margin: 0; list-style: none; }
.cards a { display: block; color: var(--body); text-decoration: none; }
.cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--soft); margin-bottom: 14px; transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.cards a:hover img { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .45); }
.cards b { display: block; color: var(--ink); font: 500 17.5px/1.3 var(--ui); margin-bottom: 6px; text-wrap: balance; }
.cards span { display: block; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cards em { display: block; margin-top: 6px; font: 400 13.5px/1 var(--ui); font-style: normal; color: var(--muted); }

.foot { max-width: 1240px; margin: 0 auto; padding: 30px 28px 44px; display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font: 400 13.5px/1.4 var(--ui); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .cover { width: 100%; margin: 0 0 36px; }
}
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; padding: 12px 18px; }
  .pills { display: none; }
  body { font-size: 17px; }
  .post { padding-top: 30px; }
  .chart { margin: 2em -8px; padding: 16px 14px 12px; }
  .dek { font-size: 18.5px; }
  .banner { min-height: 200px; margin-bottom: 44px; }
}
.ch .ch-logo-l { fill: #fff; font-size: 8.5px; font-weight: 700; }
