@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --paper: #f2efe6;
  --paper-2: #e8e3d8;
  --ink: #171815;
  --muted: #66665f;
  --line: #bdb8ab;
  --signal: #ee573d;
  --blue: #385a86;
  --white: #fffdf6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }
code, pre, .eyebrow, .brand, .pipeline-list span, .plot-toolbar, .plot-stats {
  font-family: "DM Mono", Consolas, monospace;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 4vw;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { font-weight: 500; text-decoration: none; letter-spacing: -.04em; }
.brand span { color: var(--signal); }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.menu { display: none; border: 1px solid var(--line); background: transparent; padding: 7px 11px; }

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding: clamp(56px, 8vw, 120px) 6vw;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: -.055em; }
h1 { font-size: clamp(58px, 8.5vw, 134px); font-weight: 500; }
h1 em { color: var(--signal); font-style: normal; }
h2 { font-size: clamp(42px, 6.6vw, 92px); font-weight: 500; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); }
.lead.small { font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.button.primary { background: var(--ink); color: var(--white); }
.button:hover { transform: translateY(-2px); }

.plot-card { border: 1px solid var(--line); background: var(--paper-2); }
.plot-toolbar, .plot-stats {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.plot-toolbar { border-bottom: 1px solid var(--line); }
.plot-toolbar button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
  background: transparent;
  color: var(--signal);
  cursor: pointer;
}
#hero-plot { display: block; width: 100%; height: min(68vh, 650px); }
#hero-plot canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
.plot-stats { border-top: 1px solid var(--line); }
.plot-stats strong { color: var(--ink); font-weight: 500; }

.pipeline { padding: 110px 6vw; background: var(--ink); color: var(--white); }
.section-intro { max-width: 920px; margin-bottom: 65px; }
.pipeline .eyebrow { color: #8eaaca; }
.pipeline-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #55564f; }
.pipeline-list li {
  display: grid;
  grid-template-columns: 70px minmax(170px, .45fr) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid #55564f;
}
.pipeline-list span { color: var(--signal); font-size: 12px; }
.pipeline-list strong { font-size: clamp(22px, 3vw, 38px); letter-spacing: -.035em; }
.pipeline-list p { margin: 0; color: #b8b8b1; }

.code-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 7vw;
  padding: 120px 6vw;
  align-items: start;
}
pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: #272924;
  font-size: 13px;
  line-height: 1.65;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.page { max-width: 1100px; margin: 0 auto; padding: 90px 5vw 120px; }
.page-header { max-width: 860px; margin-bottom: 58px; }
.page h1 { font-size: clamp(52px, 9vw, 112px); }
.page h2 { margin-top: 70px; font-size: clamp(34px, 5vw, 58px); }
.page h3 { margin-top: 32px; font-size: 25px; }
.page p, .page li { max-width: 800px; color: var(--muted); }
.page code { color: var(--ink); }
.page pre { max-width: 900px; margin: 24px 0; }
.note { padding: 18px 20px; border-left: 3px solid var(--signal); background: var(--paper-2); }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.example-card { padding: 24px; border: 1px solid var(--line); background: var(--white); }
.example-card h2 { margin: 8px 0 14px; font-size: 38px; }
.example-card a { font-weight: 700; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero, .code-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .plot-card { max-width: 680px; }
  .pipeline-list li { grid-template-columns: 45px 1fr; }
  .pipeline-list p { grid-column: 2; }
}
@media (max-width: 620px) {
  .nav { align-items: flex-start; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  .menu { display: block; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; padding-top: 18px; }
  .nav.nav-open .nav-links { display: flex; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-left: 20px; padding-right: 20px; }
  .plot-toolbar, .plot-stats { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .example-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
