/* GRAI Labs: the existing waveform mark, monochrome grid, serif and mono type. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --paper: #faf9f5;
  --ink: #181818;
  --muted: #656565;
  --line: #dddad5;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Instrument Serif", Georgia, serif;
  --lime: #eee9f6;
}
body {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.025em;
}
.masthead {
  max-width: none;
  background: #0a0a0a;
  color: #fafafa;
  border-color: #292929;
  padding: 24px max(28px, calc((100% - 1120px) / 2));
  gap: 25px;
}
.brand {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  gap: 13px;
  font-size: 13px;
  font-weight: 500;
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.brand .brand-wordmark {
  font-weight: 500;
  display: block;
  white-space: nowrap;
}
.brand-wordmark small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #929292;
  margin-top: 5px;
}
.masthead nav {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.masthead nav .repo-link {
  border-color: #68636e;
  border-radius: 0;
}
.hero.wrap {
  max-width: none;
  padding-inline: max(40px, calc((100% - 1120px) / 2));
  background-color: #0a0a0a;
  background-image:
    linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 96px 96px;
  color: #fafafa;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(54px, 6.5vw, 88px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero h1 em {
  font-family: var(--display);
  color: #c7b2e5;
  letter-spacing: -0.025em;
}
.hero .intro {
  color: #b9b6bb;
}
.hero .signal {
  background: #b8a0d5;
}
.hero .button.dark {
  background: transparent;
  border: 1px solid #8c8593;
  border-radius: 0;
  color: #fafafa;
  font-family: var(--mono);
  font-size: 11px;
}
.hero .button.dark:hover {
  background: #fafafa;
  color: #0a0a0a;
}
.hero .text-link {
  font-family: var(--mono);
  font-size: 11px;
}
.hero .matchup {
  background: #151317;
  border-color: #36313c;
  transform: none;
}
.hero .matchup-top,
.hero .matchup-foot {
  border-color: #36313c;
  color: #aaa2b5;
}
.hero .contender h2 {
  color: #fafafa;
  font-size: 43px;
}
.hero .contender p,
.hero .small-label {
  color: #b9b2c2;
}
.hero .gem .model-symbol {
  background: #31283e;
  color: #c5a9ef;
}
.hero .gpt .model-symbol {
  background: #203630;
  color: #a8d6c8;
}
.hero .versus span {
  background: #353039;
}
.hero .versus b {
  color: #aca4b5;
}
.hero .circuit span {
  border-color: #443d4d;
  color: #c3bacd;
}
.hero .circuit b {
  color: #b1a1c6;
}
.hero .study-facts {
  border-color: #302c34;
}
.hero .study-facts strong {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 29px;
  letter-spacing: -0.06em;
}
.hero .study-facts span {
  color: #a8a0ae;
}
.verdict-band {
  background: #ece6f2;
}
.verdict-grid h2 {
  font-size: 35px;
}
.section h2 {
  font-size: clamp(38px, 4vw, 52px);
}
.outcome-card h3,
.timing-plot h3 {
  font-size: 28px;
}
.case-heading h3 {
  font-size: 35px;
}
.comparison strong,
.waffle-label > span,
.plot-values strong {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.055em;
}
.waffle-label > span {
  font-size: 24px;
}
.plot-values strong {
  font-size: 24px;
}
.failure-section {
  background: #f0edef;
}
.timing-section {
  background: #f1f0eb;
}
.production-section {
  background: #ece9ef;
}
.production-steps li {
  border-color: #cdc4d4;
}
.production-steps li > span,
.production-steps p {
  color: #665f6c;
}
.community-note {
  border-color: #cfc5d5;
  background: #faf9f570;
}
.state-transition {
  background: #17141c;
}
.state-transition div > span {
  color: #b7a9c4;
}
.state-transition > span {
  color: #c8b2e0;
}
.backend-box {
  background: #ebe6f0;
  border-color: #d4c9df;
}
.cost-section {
  border-top: 1px solid var(--line);
}
.cost-warning {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gem);
  background: #ece6f2;
  line-height: 1.6;
}
.cost-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.cost-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gem);
  border-radius: 8px;
  padding: 26px;
  background: #f4eff8;
}
.gpt-cost {
  border-top-color: var(--gpt);
  background: #eef4f0;
}
.cost-card h3 {
  margin: 14px 0 8px;
  font-size: 30px;
}
.cost-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  margin: 26px 0;
}
.cost-card dt {
  color: var(--muted);
  font-size: 12px;
}
.cost-card dd {
  font: 36px var(--mono);
  letter-spacing: -0.06em;
  margin: 8px 0 0;
}
.cost-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 34px 0 16px;
}
.cost-table {
  margin-top: 16px;
}
.cost-table tbody th {
  font:
    15px "DM Sans",
    sans-serif;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.cost-table th small {
  display: block;
  margin-top: 6px;
  max-width: 300px;
  font:
    11px/1.5 "DM Sans",
    sans-serif;
  color: var(--muted);
}
.cost-table tbody tr:last-child {
  background: #ece6f280;
}
.cost-method {
  margin-top: 36px;
}
footer.wrap {
  max-width: none;
  padding-inline: max(40px, calc((100% - 1120px) / 2));
  background: #0a0a0a;
  color: #ccc4d3;
  border-color: #303030;
}
footer .brand {
  color: #fafafa;
}
@media (max-width: 760px) {
  .masthead {
    padding: 20px 25px;
    flex-wrap: wrap;
    gap: 18px;
  }
  .masthead nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .cost-cards {
    grid-template-columns: 1fr;
  }
  .hero.wrap {
    padding-inline: 25px;
  }
  .hero h1 {
    font-size: 68px;
  }
  .hero .study-facts strong {
    font-size: 25px;
  }
  .verdict-grid h2 {
    font-size: 31px;
  }
  .section h2 {
    font-size: 40px;
  }
}
@media (max-width: 430px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-wordmark small {
    font-size: 7px;
  }
  .masthead nav {
    font-size: 10px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero .study-facts strong {
    font-size: 23px;
  }
  .hero .contender h2 {
    font-size: 38px;
  }
  .case-heading h3 {
    font-size: 30px;
  }
  .plot-values strong {
    font-size: 21px;
  }
  .hero .button.dark {
    padding: 12px 14px;
  }
  .hero .actions {
    gap: 16px;
  }
  footer.wrap {
    padding-inline: 25px;
  }
}
