@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap");
/* Catalyst's systems playground: shared visual language, with quiet reading surfaces. */
:root {
  --serif: Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
body {
  font-family: var(--sans);
  background: var(--paper);
}
main {
  max-width: 1440px;
  padding: 0 4% 75px;
}
h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.lab-hero {
  background: var(--ink-panel);
  color: var(--on-panel);
  border: 0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  align-items: center;
  padding: 65px 4%;
  position: relative;
  min-height: 570px;
}
.lab-hero .eyebrow {
  color: var(--lime);
  font-size: 10px;
  letter-spacing: 1.2px;
}
.lab-hero h1 {
  font-size: clamp(62px, 7.7vw, 112px);
  line-height: 0.96;
  letter-spacing: -5px;
  margin: 35px 0 24px;
  max-width: 650px;
}
.lab-hero h1 em {
  color: var(--lime);
}
.lab-hero .lede {
  color: var(--panel-muted);
  max-width: 33ch;
  font-size: 18px;
  line-height: 1.65;
}
.hero-links {
  gap: 20px;
  font-size: 12px;
}
.lab-hero .hero-links > a:not(.text-button) {
  color: var(--on-panel);
}
.text-button {
  background: var(--yellow);
  color: var(--fixed-ink);
  border-radius: 30px;
  padding: 15px 23px;
  font-weight: 600;
  display: inline-flex;
  gap: 30px;
  align-items: center;
}
.text-button:hover {
  background: var(--yellow);
  color: var(--fixed-ink);
}
.hero-caption {
  font: 9px/1.7 var(--mono);
  color: var(--panel-muted);
  margin: 30px 0 0;
  letter-spacing: 0.2px;
}
.hero-art {
  min-width: 0;
  transform: rotate(-7deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-art:hover {
  transform: rotate(0) scale(1.025);
}
.hero-art img {
  width: 115%;
  max-width: none;
  height: auto;
  margin-left: -7.5%;
}
.art-caption {
  display: block;
  font: 9px var(--mono);
  color: var(--panel-muted);
  text-align: center;
  letter-spacing: 1px;
}
.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 1%;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(11px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: 1px;
}
.ticker span:nth-child(even) {
  color: var(--green);
  font-size: 30px;
}
.play-band {
  padding: 80px 3%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
}
.play-band h2,
.collection-intro h2 {
  font-size: clamp(40px, 5.2vw, 70px);
  margin: 23px 0;
  letter-spacing: -2.5px;
}
.play-band > div > p:not(.eyebrow) {
  max-width: 40ch;
  color: var(--muted);
}
.quick-preview {
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--surface-alt);
  box-shadow: 9px 9px 0 var(--shadow);
}
.quick-preview h2 {
  font: 500 27px/1.2 var(--sans);
  letter-spacing: -0.7px;
  margin: 20px 0 10px;
}
.side-toggle button {
  border-radius: 24px;
}
.side-toggle button[aria-pressed="true"] {
  background: var(--ink-panel);
  color: var(--yellow);
}
.quick-preview input[type="range"] {
  accent-color: var(--ink);
}
.collection-intro {
  padding: 55px 0 25px;
  border-top: 1px solid var(--ink);
  position: relative;
}
.collection-intro > p:last-child {
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
}
.catalog-tools {
  margin-top: 20px;
  align-items: end;
}
.filter-pills button {
  border-radius: 30px;
  font-size: 11px;
  padding: 10px 15px;
}
.filter-pills button[aria-pressed="true"] {
  background: var(--ink-panel);
  color: var(--yellow);
  border-color: var(--ink);
}
.model-search input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  border-radius: 0;
}
.catalog-group {
  padding-top: 40px;
}
.group-heading {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  gap: 30px;
}
.group-heading h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
.group-heading .serial {
  font-size: 12px;
  color: var(--green);
}
.catalog-grid {
  gap: 35px;
}
.experiment-card {
  border: 0;
  border-radius: 0;
  padding: 0 0 25px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.experiment-card:before {
  display: none;
}
.experiment-card:hover,
.experiment-card:focus-within {
  transform: none;
  border-color: transparent;
  background: transparent;
}
.card-art {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  margin-bottom: 24px;
  background: var(--pale);
}
.card-art img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-art:hover img,
.experiment-card:focus-within .card-art img {
  transform: scale(1.065) rotate(-1deg);
}
.art-open {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  font-size: 25px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.card-art:hover .art-open {
  background: var(--lime);
  transform: rotate(45deg);
}
.experiment-card .tag {
  font-size: 9px;
  letter-spacing: 0.4px;
}
.experiment-card h3 {
  font-size: 32px;
  margin: 14px 0 16px;
  letter-spacing: -1.1px;
}
.experiment-card h3 a {
  text-decoration: none;
}
.card-question {
  font-size: 15px;
  line-height: 1.75;
}
.card-output {
  font-size: 12px;
  max-width: 55ch;
  line-height: 1.8;
  color: var(--muted);
}
.card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 20px;
  font-size: 12px;
}
.index-note {
  background: var(--ink-panel);
  color: var(--on-panel);
  border-radius: 10px;
  padding: 45px;
  margin-top: 60px;
  gap: 40px;
}
.index-note h2 {
  font-size: 40px;
  letter-spacing: -1px;
}
.index-note p,
.index-note .section-label {
  color: var(--panel-muted);
}
.index-note a {
  color: var(--lime);
}
footer {
  max-width: 1440px;
  font-size: 10px;
  padding: 28px 4%;
  border-color: var(--ink);
}
/* Simulations: strong orientation, calm controls and legible results. */
.back {
  margin-top: 35px;
}
.detail-head {
  max-width: 100%;
  padding: 25px 0 35px;
  border-top: 1px solid var(--ink);
}
.detail-head h1 {
  font-size: clamp(42px, 6vw, 78px);
  max-width: 1000px;
  letter-spacing: -3px;
}
.detail-head .subtitle {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 24px;
}
.detail-head .question {
  font: 500 24px/1.4 var(--sans);
  letter-spacing: -0.6px;
}
.detail-head .intro {
  max-width: 72ch;
}
.tags .tag {
  border-radius: 20px;
}
.section-nav {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workspace {
  padding-top: 35px;
  gap: 40px;
  border-top: 0;
}
.controls {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.controls h2 {
  font-size: 27px;
}
.controls .primary {
  background: var(--ink-panel);
  color: var(--yellow);
  border-radius: 30px;
}
.presets button {
  border-radius: 15px;
  background: var(--paper);
}
.metrics {
  background: var(--ink-panel);
  color: var(--on-panel);
  border-radius: 10px;
  padding: 16px;
  border: 0;
}
.metrics > div {
  border-color: var(--muted) !important;
  padding: 12px;
}
.metric-label,
.metric-note {
  color: var(--line);
}
.metric-value {
  font-family: var(--sans);
  color: var(--lime);
  font-size: 35px;
  letter-spacing: -1px;
}
.chart {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: var(--surface);
}
.chart h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.insight {
  background: var(--surface-alt);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
}
.reading {
  max-width: 820px;
}
.reading h2 {
  font: 500 39px/1.2 var(--sans);
  letter-spacing: -1.2px;
}
.reading .step h3 {
  font: 500 25px/1.3 var(--sans);
  letter-spacing: -0.7px;
}
.equation,
.method-box {
  border-radius: 8px;
}
.reading p,
.reading li {
  line-height: 1.85;
}
/* Guide: the same identity, an intentionally quieter long-reading layout. */
.guide-page main {
  max-width: 1250px;
  padding: 45px 4% 80px;
}
.guide-page .hero {
  display: block;
  background: var(--ink-panel);
  color: var(--on-panel);
  max-width: none;
  padding: 45px;
  border-radius: 10px;
  margin-bottom: 50px;
  border: 0;
}
.guide-page .hero h1 {
  font: 500 clamp(40px, 5.7vw, 72px) / 1.06 var(--sans);
  letter-spacing: -2.5px;
  max-width: 900px;
}
.guide-page .hero p {
  color: var(--panel-muted);
}
.guide-page .hero .eyebrow {
  color: var(--lime);
}
.guide-page h2 {
  font: 500 38px/1.18 var(--sans);
  letter-spacing: -1.2px;
}
.guide-page h3 {
  font: 500 24px/1.3 var(--sans);
  letter-spacing: -0.5px;
}
.guide-page .contents {
  border: 0;
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 24px;
  font-size: 12px;
}
.guide-page .contents a {
  padding: 10px 0;
}
.guide-page .contents a[aria-current] {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--structural-accent);
  text-decoration-thickness: 3px;
}
.guide-page .chapter {
  padding-top: 35px;
  margin-bottom: 75px;
  border-top: 1px solid var(--ink);
}
.guide-page .formula {
  border-radius: 8px;
  background: var(--surface);
  border-color: var(--line);
}
.guide-page pre {
  background: var(--ink-panel);
  color: var(--on-panel);
  border-radius: 8px;
}
.guide-page .questions {
  border-radius: 10px;
  background: var(--surface-alt);
  border: 0;
}
.guide-page .callout {
  border-radius: 0 8px 8px 0;
}
.read-progress {
  height: 3px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--green);
  z-index: 40;
  pointer-events: none;
}
@media (min-width: 1000px) {
  .catalog-group:last-of-type .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-intro > p:last-child {
    position: absolute;
    right: 0;
    bottom: 40px;
    width: 33%;
  }
}
@media (max-width: 900px) {
  .lab-hero {
    padding: 45px 5%;
    grid-template-columns: 1fr 1fr;
    min-height: 490px;
  }
  .lab-hero h1 {
    font-size: 70px;
    letter-spacing: -3px;
  }
  .hero-links {
    align-items: start;
    flex-direction: column;
  }
  .hero-art img {
    width: 130%;
    margin-left: -15%;
  }
  .play-band {
    padding: 55px 0;
    gap: 35px;
  }
  .quick-preview {
    padding: 24px;
  }
  .workspace {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
  }
  .controls {
    padding: 18px;
  }
  .index-note {
    padding: 30px;
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 5% 45px;
  }
  .lab-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 35px 7% 25px;
    min-height: 0;
  }
  .lab-hero h1 {
    font-size: clamp(54px, 13vw, 84px);
    letter-spacing: -3px;
    margin-top: 30px;
  }
  .lab-hero .lede {
    font-size: 16px;
  }
  .hero-links {
    flex-direction: row;
    align-items: center;
    font-size: 11px;
  }
  .hero-caption {
    font-size: 8px;
  }
  .hero-art {
    margin: 15px 0 0;
    transform: none;
  }
  .hero-art img {
    width: 100%;
    margin: 0;
  }
  .art-caption {
    font-size: 8px;
    margin-top: -10px;
  }
  .ticker {
    gap: 6px;
    padding: 15px 0;
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .ticker span:nth-child(even) {
    font-size: 20px;
  }
  .play-band {
    display: block;
    padding: 42px 0;
  }
  .play-band h2,
  .collection-intro h2 {
    font-size: 43px;
    letter-spacing: -1.7px;
  }
  .quick-preview {
    margin-top: 30px;
    box-shadow: 5px 5px 0 var(--shadow);
  }
  .collection-intro {
    padding-top: 35px;
  }
  .catalog-tools {
    display: block;
  }
  .model-search {
    display: block;
    margin-top: 20px;
  }
  .model-search input {
    width: 100%;
  }
  .filter-pills {
    gap: 6px;
  }
  .filter-pills button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .group-heading h2 {
    font-size: 25px;
  }
  .group-heading p {
    font-size: 13px;
  }
  .experiment-card h3 {
    font-size: 29px;
  }
  .card-art {
    margin-bottom: 18px;
  }
  .index-note {
    display: block;
    padding: 25px;
    margin-top: 30px;
  }
  .index-note h2 {
    font-size: 32px;
  }
  .detail-head h1 {
    letter-spacing: -1.7px;
  }
  .detail-head .subtitle {
    font-size: 21px;
  }
  .workspace {
    display: block;
  }
  .controls {
    position: static;
    margin-bottom: 28px;
  }
  .metrics {
    gap: 0;
    padding: 10px;
  }
  .metric-value {
    font-size: 29px;
  }
  .chart {
    padding: 14px;
  }
  .reading h2 {
    font-size: 32px;
  }
  .guide-page .hero {
    padding: 28px;
  }
  .guide-page .hero h1 {
    letter-spacing: -1.5px;
    font-size: 40px;
  }
  .guide-page .contents {
    position: static;
    padding: 17px;
  }
  .guide-page .contents a {
    padding: 6px 0;
  }
  .guide-page .layout {
    gap: 30px;
  }
  .guide-page h2 {
    font-size: 32px;
  }
  .guide-page main {
    padding-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-art,
  .card-art img,
  .art-open {
    transition: none;
  }
  .hero-art:hover,
  .card-art:hover img,
  .experiment-card:focus-within .card-art img {
    transform: none;
  }
}
@media print {
  .lab-hero,
  .guide-page .hero {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
  .read-progress,
  .hero-art {
    display: none;
  }
  .guide-page pre {
    background: #eee;
    color: #000;
  }
}
.lab-hero .hero-caption {
  color: var(--panel-muted);
  opacity: 1;
}

:root {
  --mono: "DM Mono", monospace;
}
.experiment-card h3,
.detail-head h1 {
  font-family: var(--sans);
}
.guide-page .contents {
  display: block;
}
.guide-page .hero p {
  max-width: 65ch;
}
.quick-preview .preview-metrics strong {
  font-family: var(--sans);
}
@media (max-width: 800px) {
  .guide-page .contents {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
  }
}
/* Code blocks stay scrollable inside the guide's grid at phone widths. */
.guide-page .layout > * {
  min-width: 0;
}
.guide-page pre {
  max-width: 100%;
}
@media (max-width: 800px) {
  .guide-page .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-page .contents {
    max-width: 100%;
  }
  .guide-page table {
    overflow-wrap: anywhere;
  }
}
