:root {
  color-scheme: light;
  --paper: #f4f5fa;
  --ink: #20243b;
  --muted: #535b71;
  --rule: #d9ddeb;
  --link: #334b8b;
  --night: #22293b;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #374e99; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.frame { width: min(70rem, 100% - 4rem); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 1;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  transform: translateY(calc(-100% - 1rem));
  border-radius: .35rem;
  background: white;
}
.skip:focus { transform: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.masthead nav { display: flex; flex-wrap: wrap; gap: 0 1.15rem; }
.masthead nav a, .footer a, .project-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 2.75rem;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}
.masthead nav a { color: var(--muted); text-decoration-color: transparent; }
.masthead nav a:hover { text-decoration-color: currentColor; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.lab-mark {
  width: 1.2rem;
  aspect-ratio: 1;
  border: 1px solid #4a5e9a;
  border-radius: 32% 32% 32% 7%;
  background: #c4cfee;
  box-shadow: inset 0 0 0 3px var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.25rem);
  padding-block: clamp(2.8rem, 7vw, 5.25rem) clamp(3.5rem, 7vw, 5.5rem);
}
.hero-intro h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 6.05vw, 5.8rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-intro p {
  max-width: 30ch;
  margin-block: 1.35rem 1.5rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.65vw, 1.28rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 2.85rem;
  padding: .58rem .95rem .58rem 1.05rem;
  border-radius: .38rem;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
}
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #374266; }
.button-quiet { border: 1px solid #c5cde2; background: white; color: var(--ink); }
.button-quiet:hover { background: #eef1fb; }

.story-feature {
  overflow: hidden;
  border-radius: 1rem 1rem 1rem .25rem;
  background: var(--night);
  color: #f9faff;
}
.story-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.9;
  object-fit: cover;
}
.story-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .4rem 1.3rem;
  padding: 1.2rem 1.35rem .8rem;
}
.story-caption h2 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.1; letter-spacing: -.047em; }
.story-caption p { max-width: 35ch; margin-top: .42rem; color: #d6ddec; line-height: 1.45; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .95rem; }
.project-links a:not(.button) { color: var(--link); font-weight: 650; font-size: .9rem; }
.story-caption .project-links a { color: #e8eeff; }
.story-caption a:focus-visible { outline-color: #aebffa; }

.section-title { margin-bottom: 1.1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.064em; }
.bundle-feature {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(1rem, 3.5vw, 2.5rem);
  padding: clamp(1rem, 3.2vw, 2rem);
  border: 1px solid #d4d9eb;
  border-radius: .35rem .85rem .85rem .85rem;
  background: #e9edf9;
}
.bundle-copy h3 { font-size: clamp(1.65rem, 3.2vw, 2.7rem); line-height: 1.25; letter-spacing: -.058em; }
.bundle-copy p { max-width: 37ch; margin-block: .55rem 1rem; color: #505a72; line-height: 1.55; }
.bundle-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfd6ed;
  border-radius: .5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.7rem;
  margin-top: 2rem;
}
.tool { display: grid; grid-template-rows: auto 1fr auto; gap: .45rem; padding-block: 1rem .45rem; border-top: 1px solid var(--rule); }
.tool h3 { font-size: 1.38rem; letter-spacing: -.04em; }
.tool p { max-width: 33ch; color: var(--muted); line-height: 1.55; }
.integrations { margin-top: clamp(2.4rem, 6vw, 4rem); }
.integrations .tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin-top: 0; }
.interactive-shelf .section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: .35rem; }
.interactive-shelf .section-title { margin-bottom: 0; }
.section-note { color: var(--muted); font-size: .94rem; }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin-top: 3rem;
  padding-block: .6rem 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .93rem;
}
.footer p { font-weight: 650; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.15rem; }

@media (max-width: 51rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-intro h1 { max-width: 16ch; }
  .hero-intro p { max-width: 37ch; }
  .tool-grid { gap: 1.2rem; }
}
@media (max-width: 43rem) {
  .frame { width: calc(100% - 2rem); }
  .masthead { padding-block: .58rem; }
  .masthead nav { gap: 0 .68rem; }
  .masthead nav a { font-size: .88rem; }
  .story-caption { padding-inline: 1rem; }
  .bundle-feature, .tool-grid { grid-template-columns: 1fr; }
  .tool-grid { gap: .6rem; }
}

@media (max-width: 23rem) {
  .masthead { gap: .5rem; }
  .wordmark { gap: .4rem; font-size: 1rem; }
  .lab-mark { width: .9rem; }
  .hero-intro h1 { font-size: 2.95rem; }
}
