@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --surface: #ffffff;
  --surface-subtle: #fbfaf6;
  --ink: #000000;
  --muted: #555555;
  --rule: #dcdad3;
  --rule-strong: #b8b5ab;
  --link: #0000ee;
  --link-visited: #551a8b;
  --jade-ink: #1a7f4b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0e1015;
    --surface-subtle: #151821;
    --ink: #ececec;
    --muted: #9aa0ab;
    --rule: #2a2e36;
    --rule-strong: #3d434f;
    --link: #7aa2f7;
    --link-visited: #bb9af7;
    --jade-ink: #4cc38a;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--surface);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font-family: "Newsreader", "Times New Roman", Times, serif;
  font-size: 16.5px;
  line-height: 1.5;
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body.article-page {
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

body.article-page main {
  padding-bottom: 44px;
}

.site-header {
  margin-bottom: 24px;
}

body.article-page .site-header {
  margin-bottom: 36px;
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo svg {
  display: block;
  height: 26px;
  width: auto;
}

.logo .tt-logo-fx { display: none; }
.logo .tt-word, .logo .tt-cell-4 { fill: var(--ink); }
.logo .tt-cell-1, .logo .tt-cell-2, .logo .tt-cell-3 { fill: #2459e2; }
.logo .tt-cell-foot { fill: #e5484d; }
.logo .tt-hair { stroke: #dbd9d0; }

@media (prefers-color-scheme: dark) {
  .logo .tt-cell-1, .logo .tt-cell-2, .logo .tt-cell-3 { fill: #5b8df9; }
  .logo .tt-cell-foot { fill: #ff6369; }
  .logo .tt-hair { stroke: #2a2e36; }
}

section {
  margin-bottom: 24px;
}

h1 {
  font-family: "Newsreader", "Times New Roman", Times, serif;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-family: "Newsreader", "Times New Roman", Times, serif;
  font-size: 18.5px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

article h2 {
  margin: 34px 0 10px;
}

h3 {
  font-family: "Newsreader", "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 8px;
}

p {
  margin: 0;
}

p + p {
  margin-top: 16px;
}

article p {
  margin: 0 0 16px;
}

article p + p {
  margin-top: 0;
}

strong {
  font-weight: 600;
}

.byline {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 24px;
}

.lead {
  font-style: italic;
  margin: 0 0 24px;
}

ul, ol {
  margin: 0;
  padding-left: 20px;
}

article ul, article ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.blog-list {
  list-style: none;
  padding: 0;
}

.blog-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
}

.blog-list time {
  color: var(--muted);
  font-size: 14px;
  line-height: 24.75px;
}

.yc-mark {
  display: inline-block;
  vertical-align: -0.1em;
  margin-right: 0.4em;
}

@media (max-width: 480px) {
  .blog-list li {
    grid-template-columns: 1fr;
  }

  .blog-list li + li {
    margin-top: 10px;
  }

  .blog-list time {
    line-height: 1.5;
  }
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

blockquote {
  margin: 20px 0;
  padding-left: 14px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-style: italic;
}

figure {
  margin: 22px 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: #fbfaf6;
}

.grid-2, .grid-3, .grid-4, .grid-5, .grid-6 {
  display: grid;
  gap: 10px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.cell-label {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 4px;
}

figcaption {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 7px;
}

details {
  margin: -10px 0 20px;
  font-size: 14px;
}

summary {
  cursor: pointer;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  user-select: none;
}

details figure {
  margin: 14px 0 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

th {
  font-weight: 500;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

th.num, td.num {
  text-align: right;
}

.table-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 20px;
}

.method {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.method h2 {
  margin-top: 0;
}

/* Interactive TimelineBench side-by-side comparison viewer */
.comparisons {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.comparisons [hidden] {
  display: none !important;
}

.comparisons .eyebrow {
  display: none;
}

.comparisons__heading h3 {
  font-size: 18.5px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.comparison-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.comparison-field {
  display: grid;
  gap: 4px;
  flex: 1 1 200px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}

.comparison-field select {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
}

.comparison-project-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
}

.comparison-count {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.comparison-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.comparison-carousel__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.comparison-carousel__arrow:hover {
  background: var(--surface-subtle);
}

@media (prefers-color-scheme: dark) {
  .comparison-carousel__arrow img {
    filter: invert(1);
  }
}

.comparison-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.comparison-agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 14px;
}

.comparison-card {
  margin: 0;
  min-width: 0;
}

.comparison-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.comparison-card__label::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  flex-shrink: 0;
}

.comparison-card--human .comparison-card__label::before {
  background: var(--jade-ink);
}

.comparison-media {
  position: relative;
  background: #141414;
  border: 1px solid var(--rule);
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.comparison-media img, .comparison-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #141414;
}

.comparison-card figcaption {
  margin-top: 8px;
}

.comparison-card__name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.comparison-card__detail {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.comparison-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
  padding: 12px;
  text-align: center;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 13px;
}

.comparison-empty strong {
  font-weight: 500;
  color: var(--ink);
}

.comparison-stage.is-video.is-portrait .comparison-media {
  aspect-ratio: 4 / 5;
  max-height: 460px;
}

.mail-dialog {
  max-width: calc(100% - 36px);
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
}

.mail-dialog__in { padding: 20px; }
.mail-dialog__subject:empty { display: none; }
.mail-dialog__opts { margin: 16px 0; }

footer {
  flex-shrink: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 600px) {
  main { padding: 36px 18px 32px; }
  body.article-page main { padding: 36px 18px 36px; }
  footer { padding: 8px 18px 28px; }
  .logo svg { height: 24px; }
  h1 { font-size: 21px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid-4, .grid-5, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-stage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .comparison-field { flex-basis: 100%; }
}
