:root {
  --ink: #282624;
  --body: #474645;
  --muted: #848281;
  --line: #ebe8e4;
  --sand: #f6f4f0;
  --paper: #ffffff;
  --btn: #171717;
  --measure: 40rem;
  --page: 68rem;
  --gutter: 1.25rem;
  --header: 3.6rem;
}

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

html {
  background: var(--paper);
  color: var(--body);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
}

/* Prototype banner */

.banner {
  background: var(--sand);
  color: var(--body);
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 0.55rem 1.25rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.banner a {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.banner a:hover {
  text-decoration: underline;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 20;
}

.header .wrap {
  position: relative;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}

.nav a.is-active {
  color: var(--ink);
}

.nav-cta {
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.9rem !important;
  border-radius: 999px !important;
  background: var(--btn);
  color: #fff !important;
  font-weight: 500;
}

.nav-cta:hover {
  background: #000;
}

.hero-talk {
  display: none;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0;
  cursor: pointer;
}

/* Layout */

main {
  flex: 1;
}

.wrap {
  width: min(var(--page), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

main .wrap {
  width: min(var(--measure), calc(100% - (2 * var(--gutter))));
}

.measure {
  width: 100%;
}

.hero,
.page-head,
.section {
  padding: 5.5rem 0 4.5rem;
}

.page-head,
.home-hero,
.product-hero {
  padding: 4.25rem 0 2.25rem;
}

.page-head h1,
.home-hero h1,
.product-hero h1 {
  max-width: none;
  font-size: clamp(1.85rem, 8.4vw, 3.75rem);
}

.section {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  line-height: 1.08;
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.lede,
.prose p,
.prose li {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.013em;
}

.lede {
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.lede a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

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

.hero .lede {
  margin-top: 1.4rem;
}

.home-hero .lede,
.page-head .lede,
.product-hero .lede {
  max-width: none;
  color: var(--body);
}

.home-write {
  padding: 1.25rem 0 4.5rem;
}

.home-write .kicker {
  margin-bottom: 0;
}

.home-write .kicker a:hover {
  color: var(--ink);
}

.home-write .write-list {
  margin-top: 1.15rem;
}

.life {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid var(--line);
}

.life > li {
  position: relative;
  padding: 0 0 1.85rem;
}

.life > li:last-child {
  padding-bottom: 0;
}

.life-when {
  margin: 0 0 0.7rem;
}

.life-dot {
  position: absolute;
  left: -0.85rem;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.life time {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.life-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.life-item {
  display: block;
  min-width: 0;
}

.life-kind {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.life-item .work-logo {
  display: block;
  height: 1.3rem;
  width: auto;
}

.life-item .work-logo-pairwit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 1.3rem;
}

.life-item .work-logo-pairwit .mark {
  height: 1.2rem;
  width: 1.2rem;
  border-radius: 0.25rem;
}

.life-item .work-logo-pairwit strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.life-item h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1rem;
}

.life-item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.life-item p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.life-item + .life-item {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pkg-heading {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pkg-heading + .pkg-list {
  margin-top: 0;
}

.pkg-heading:not(:first-of-type) {
  margin-top: 2.25rem;
}

.pkg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkg-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.pkg-list h3 {
  font-size: 1.05rem;
}

.pkg-list h3 a {
  color: var(--ink);
}

.pkg-list h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.pkg-list p {
  margin: 0.3rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.pkg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.pkg-links a {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.study-meta code {
  font-size: 0.8125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.btn:hover {
  background: #000;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.text-link {
  font-size: 0.90625rem;
  font-weight: 500;
  color: var(--body);
}

.text-link:hover {
  color: var(--ink);
}

/* Work list */

.work-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.work-list li + li {
  border-top: 1px solid var(--line);
}

.work-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
}

.work-list .num {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.work-list h3 {
  margin: 0 0 0.25rem;
}

.work-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.work-list .meta {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.work-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work-list.work-list-plain {
  margin-top: 0;
}

.work-list.work-list-plain a {
  grid-template-columns: 1fr auto;
}

/* Proof / products */

.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
}

.proof article h3 {
  font-size: 1rem;
}

.proof article p {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.proof a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Writing list */

.write-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.write-list li + li {
  margin-top: 1.5rem;
}

.write-list time {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.write-list a {
  display: block;
  padding: 0.85rem 0;
}

.write-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.write-list p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Close band */

.close {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.close .lede {
  margin-bottom: 0;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
}

.footer .wrap {
  width: min(var(--measure), calc(100% - (2 * var(--gutter))));
}

.footer-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.socials a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Case study */

.product-hero .kicker {
  margin-bottom: 1.5rem;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-mark img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

.product-hero h1 {
  max-width: none;
  font-size: clamp(2.15rem, 7vw, 3.75rem);
}

.product-hero .lede {
  max-width: none;
  margin: 1.35rem 0 0;
  color: var(--body);
}

.product-hero .actions {
  margin-top: 1.75rem;
}

.product-hero .note {
  margin: 1rem 0 0;
}

.product-hero .note a {
  overflow-wrap: anywhere;
}

.talk-hero {
  padding-bottom: 5rem;
}

.product-banner {
  padding: 0 0 4.5rem;
}

.product-stage {
  margin: 0;
  max-width: none;
  background: var(--sand);
  border-radius: 1.35rem;
  padding: 1.15rem 1.15rem 0;
  overflow: hidden;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.product-dots {
  display: flex;
  gap: 0.35rem;
}

.product-dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d8d4cf;
}

.product-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.pypi-card {
  margin: 0;
  padding: 1.5rem 1.25rem 1.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0 0 0.75rem 0.75rem;
}

.pypi-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pypi-card-head img {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 20%;
}

.pypi-card-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.pypi-card-head span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.pypi-card > p {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pypi-install {
  display: flex;
  align-items: center;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--sand);
  border-radius: 0.65rem;
}

.pypi-install code {
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pypi-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.pypi-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.product-points {
  padding: 0 0 5.5rem;
}

.product-points ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-points h2 {
  font-size: 1.15rem;
}

.product-points p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.product-more {
  padding: 0 0 5.5rem;
}

.product-more .measure {
  width: 100%;
}

.study-head h1 {
  max-width: 18ch;
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--muted);
}

.study-meta span {
  color: var(--ink);
  font-weight: 500;
}

.study-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.callout {
  margin: 2.25rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--sand);
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body);
}

.prose {
  padding: 3rem 0 5rem;
  text-align: left;
}

.prose .measure > * + * {
  margin-top: 1.15rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* About */

.timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.timeline h3 {
  font-size: 1.05rem;
}

.timeline p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Talk */

.talk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.cal-slot {
  background: var(--sand);
  border-radius: 14px;
  min-height: 22rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-slot p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* IA notes */

.ia {
  padding-bottom: 5rem;
}

.ia-grid {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.75rem 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.ia-grid dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
}

.ia-grid dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.cut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cut h3 {
  margin-bottom: 0.75rem;
}

.cut ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cut li + li {
  margin-top: 0.35rem;
}

/* Quotes */

.quotes {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.quotes li + li {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.quotes blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.quotes footer {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--muted);
  border: 0;
  padding: 0;
}

.t-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}

.t-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.t-list img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sand);
}

.t-list blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.t-who {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.t-who strong {
  font-weight: 500;
  color: var(--ink);
}

.path-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.path-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.path-list a {
  display: block;
}

.path-list h3 {
  font-size: 1.05rem;
}

.path-list a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.path-list p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slot {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.slot:hover,
.slot.is-picked {
  border-color: var(--ink);
}

/* Steps */

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.steps .num {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Mentor desk */

.desk {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
}

.desk-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.desk-nav button {
  font: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--body);
  padding: 0.55rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
}

.desk-nav button.is-active {
  color: var(--ink);
}

.desk-panel[hidden] {
  display: none;
}

.session {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.session h3 {
  font-size: 1.05rem;
}

.session p {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Chat */

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.chip {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--body);
  background: var(--sand);
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.chip:hover {
  color: var(--ink);
}

.chat {
  margin: 2rem 0 5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.chat-log {
  flex: 1;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.msg p {
  margin: 0;
}

.msg p + p {
  margin-top: 0.65rem;
}

.msg-user {
  align-self: flex-end;
  color: var(--ink);
}

.msg-ai {
  align-self: flex-start;
  background: var(--sand);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  color: var(--body);
}

.chat-form {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  font: inherit;
  font-size: 0.9375rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.chat-form button {
  flex-shrink: 0;
}

/* Mobile */

@media (min-width: 721px) {
  .page-head,
  .home-hero,
  .product-hero {
    padding: 5.5rem 0 2.75rem;
  }

  .page-head h1,
  .home-hero h1,
  .product-hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 6vw, 4rem);
  }

  .home-write {
    padding: 1.5rem 0 7rem;
  }

  .product-stage {
    padding: 1.75rem 1.75rem 0;
    border-radius: 1.6rem;
  }

  .pypi-card {
    padding: 1.85rem 1.75rem 2rem;
  }

  .product-points ul {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.25rem 2rem;
  }

  .life {
    padding-left: 0;
    border-left: 0;
  }

  .life > li {
    display: grid;
    grid-template-columns: 7.25rem 1fr;
    gap: 1.75rem;
    padding-bottom: 2.35rem;
  }

  .life-when {
    margin: 0;
  }

  .life-dot {
    left: 7.25rem;
    top: 0.45rem;
  }

  .life > li::before {
    content: "";
    position: absolute;
    left: 7.25rem;
    top: 0.7rem;
    bottom: 0;
    width: 1px;
    background: var(--line);
    transform: translateX(-50%);
  }

  .life > li:last-child::before {
    display: none;
  }

  .life time {
    padding-top: 0.15rem;
    font-size: 0.8125rem;
  }

  .life-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .life-items-now {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .life-item + .life-item {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 1rem;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    align-self: flex-start;
    width: auto;
  }

  .hero-talk {
    display: inline-flex;
  }

  .hero,
  .page-head {
    padding-top: 3rem;
  }

  .product-hero {
    padding-top: 3rem;
  }

  .product-stage {
    padding: 0.85rem 0.85rem 0;
    border-radius: 1rem;
  }

  .pypi-card {
    padding: 1.25rem 1rem 1.35rem;
  }

  .home-hero {
    padding-top: 3.5rem;
  }

  .work-list a {
    grid-template-columns: 2rem 1fr;
  }

  .work-list-plain a {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .work-list .meta {
    grid-column: 2;
    text-align: left;
    margin-top: 0.35rem;
    white-space: normal;
  }

  .work-list-plain .meta {
    grid-column: 1;
  }

  .proof,
  .talk-grid,
  .cut,
  .desk {
    grid-template-columns: 1fr;
  }

  .desk-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .cal-slot {
    min-height: 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .ia-grid {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}
