/* Subpages. Everything shared with the homepage is in site.css. */

/* The page you are on */
.nav-links a[aria-current='page'],
.nav-links .is-current,
.menu-links a[aria-current='page'] {
  font-weight: 700;
  opacity: 1;
}

/* Violet head: the homepage hero's island at a size that leaves room for the page */
.hero--page {
  --edge: 12px;
  display: flex;
  min-height: 0;
}
.page-helix {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
/* Same left and right edge as the .wrap sections below, whatever the island's own margin */
.page-head {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), 100% + 2 * var(--edge) - 2 * var(--gutter));
  margin-inline: auto;
  padding-block: clamp(148px, 15vw, 204px) clamp(60px, 6.5vw, 92px);
}
.page-title {
  max-width: 13.5em;
  font: 400 clamp(2.6rem, 1rem + 4.4vw, 5rem) / 1.05 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-lead {
  margin-top: 24px;
  max-width: 35rem;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  padding-block: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}
.page-back:hover {
  color: #fff;
}
.page-back svg {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform 0.35s var(--ease);
}
.page-back:hover svg {
  transform: rotate(90deg) translateY(2px);
}
.hero--case .page-head {
  padding-block: clamp(124px, 12vw, 164px) clamp(52px, 5.5vw, 76px);
}
.hero--case .page-title {
  max-width: 24em;
  font-size: clamp(2rem, 1.25rem + 2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.026em;
}
/* A zoomed-in phone: the longest words ("development", "neurodegenerative") still fit on a line. */
@media (max-width: 319px) {
  .page-title {
    font-size: min(2.6rem, 14.4vw);
  }
  .hero--case .page-title {
    font-size: 10.4vw;
  }
}

.section {
  padding-block: clamp(72px, 9vw, 124px);
}
.section + .section {
  padding-top: 0;
}
.section-head {
  padding-bottom: clamp(28px, 3.5vw, 44px);
}

/* About */
.statement {
  max-width: 25em;
  font: 500 clamp(1.625rem, 1.15rem + 1.5vw, 2.625rem) / 1.24 var(--display);
  letter-spacing: -0.024em;
  color: var(--ink);
  text-wrap: pretty;
}
.statement em {
  font-style: normal;
  color: var(--v800);
}
.leaders {
  display: grid;
  gap: 40px;
}
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: var(--mist-2);
}
.person h3 {
  margin-top: 20px;
  font: 650 1.375rem/1.2 var(--display);
  letter-spacing: -0.016em;
  color: var(--ink);
}
.person p {
  margin-top: 4px;
  color: var(--ink-3);
}
.person a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-block: 4px;
  font-weight: 600;
  color: var(--v800);
  transition: color 0.2s;
}
.person a:hover {
  color: var(--v950);
}
.person a svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 1000px) {
  .leaders {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
}

/* A case study: the results, then the story beside its headings */
.cs-stats {
  display: grid;
  gap: 32px 40px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  background: var(--mist);
}
.cs-stat dt {
  max-width: 19em;
  margin-top: 12px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.cs-stat dd {
  font: 650 clamp(3rem, 2.2rem + 2.2vw, 4.5rem) / 1 var(--display);
  letter-spacing: -0.042em;
  font-variant-numeric: tabular-nums;
  color: var(--v800);
}
.cs-stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.cs-share {
  display: block;
  height: 6px;
  margin-top: 16px;
  border-radius: 3px;
  background: var(--v600);
}
.cs-extra {
  margin-top: 24px;
  max-width: 44rem;
}
.cs-extra.ticks {
  margin-top: 0;
  align-self: center;
}
@media (min-width: 640px) {
  .cs-stats--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 760px) {
  .cs-stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cs-stats--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 640px) and (max-width: 759px) {
  .cs-stats--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cs-row {
  display: grid;
  gap: 14px;
  padding-block: clamp(32px, 4vw, 48px);
}
.cs-row:first-child {
  padding-top: 0;
}
.cs-row:last-child {
  padding-bottom: 0;
}
.cs-row + .cs-row {
  border-top: 1px solid var(--line);
}
.cs-row .ticks {
  margin-top: 0;
  max-width: 42rem;
}
.cs-row p {
  max-width: 42rem;
  text-wrap: pretty;
}
.cs-row p + .ticks {
  margin-top: 18px;
}
@media (min-width: 1000px) {
  .cs-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}
/* On a list page the case studies stack on phones instead of swiping, and their detail is read, not glanced at */
.ledger--page .mini {
  max-width: 34rem;
  font-size: 0.9375rem;
}
.ledger--page .mini .funnel-row {
  grid-template-columns: 5.75rem minmax(0, 1fr) 2.25rem;
}
.ledger--page .mini .funnel-row span {
  font-size: inherit;
}
.ledger--page .mini .funnel-row b {
  font-size: 0.9375rem;
}

/* Technology */
.tech-post {
  display: grid;
  gap: 10px;
  padding: 28px 18px;
  margin-inline: -18px;
  border-radius: 18px;
  transition: background-color 0.25s;
}
.tech-post:hover {
  background: var(--mist);
}
.tech-post time {
  color: var(--ink-3);
}
.tech-post h3 {
  font: 650 clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem) / 1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 30em;
  text-wrap: balance;
}
.tech-post p {
  max-width: 44rem;
  text-wrap: pretty;
}
.tech-post .link-arrow {
  margin-top: 6px;
}
.tech-post:hover .arrow path {
  transform: translate(2px, -2px);
}
.tech-note {
  max-width: 44rem;
  color: var(--ink-2);
}
.tech-note--after {
  margin-top: 40px;
}
.tech-note a,
.prose a,
.form-hint a,
.pir-intro a,
.checkbox-item a,
.form-error a {
  color: var(--v800);
  text-decoration: underline;
  text-decoration-color: var(--v300);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.tech-note a:hover,
.prose a:hover,
.form-hint a:hover,
.pir-intro a:hover,
.checkbox-item a:hover,
.form-error a:hover {
  color: var(--v950);
}

/* The Jaro-Winkler figure */
.fig {
  padding: clamp(20px, 3vw, 36px);
}
.fig-title {
  font: 650 1.1875rem/1.3 var(--display);
  letter-spacing: -0.012em;
  color: var(--ink);
}
.fig-group {
  margin-top: 24px;
}
.fig-group-label {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--v800);
}
.fig-group--same .fig-group-label {
  color: var(--ink);
}
.fig-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  margin-bottom: 12px;
}
.fig-row:last-child {
  margin-bottom: 0;
}
.fig-names {
  color: var(--ink);
}
.fig-score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--v800);
}
.fig-group--same .fig-score {
  color: var(--ink);
}
.fig-track {
  grid-column: 1 / -1;
  position: relative;
  height: 14px;
}
.fig-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  border-radius: 1px;
  background: var(--mist-2);
}
.fig-dot {
  position: absolute;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--v600);
  transform: translateX(-50%);
}
.fig-group--same .fig-dot {
  background: var(--ink);
}
.fig-dot--p900 {
  left: 90.9%;
}
.fig-dot--p892 {
  left: 87.3%;
}
.fig-dot--p883 {
  left: 83.2%;
}
.fig-dot--p868 {
  left: 76.4%;
}
.fig-dot--p750 {
  left: 22.7%;
}
.fig-dot--p743 {
  left: 19.5%;
}
.fig-axis {
  position: relative;
  height: 24px;
  margin-top: 18px;
}
.fig-tick {
  position: absolute;
  top: 4px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  transform: translateX(-50%);
}
.fig-tick--start {
  left: 0;
  transform: none;
}
.fig-tick--mid {
  left: 45.5%;
}
.fig-tick--end {
  left: 90.9%;
}
.fig-caption {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .fig-row {
    grid-template-columns: 188px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 20px;
  }
  .fig-track {
    grid-column: auto;
  }
  .fig-axis {
    margin-inline: 208px 74px;
  }
}

/* Documents: white, light nav, one reading column */
.doc-head {
  padding-block: clamp(132px, 13vw, 176px) clamp(32px, 4vw, 52px);
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding-block: 6px;
  font-weight: 600;
  color: var(--v800);
  transition: color 0.2s;
}
.doc-back:hover {
  color: var(--v950);
}
.doc-back svg {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
}
.doc-title {
  max-width: 19em;
  font: 650 clamp(2.4rem, 1.2rem + 3vw, 4rem) / 1.06 var(--display);
  letter-spacing: -0.034em;
  color: var(--ink);
  text-wrap: balance;
}
.doc-lead {
  margin-top: 20px;
  max-width: 44rem;
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.doc-meta {
  margin-top: 16px;
  color: var(--ink-3);
}
.doc-body {
  padding-bottom: clamp(72px, 9vw, 124px);
}
.doc-layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}
.prose {
  max-width: 44rem;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol {
  margin-top: 16px;
}
.prose h2 {
  margin-top: clamp(44px, 5vw, 60px);
  font: 650 clamp(1.4375rem, 1.2rem + 0.6vw, 1.75rem) / 1.22 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.prose h2 + p,
.prose h2 + ul,
.prose h2 + ol {
  margin-top: 14px;
}
.prose ul,
.prose ol {
  padding-left: 1.35em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-top: 8px;
  padding-left: 0.2em;
}
.prose li::marker {
  color: var(--v700);
}
.prose strong {
  font-weight: 600;
  color: var(--ink);
}
.prose code {
  padding: 1px 5px;
  border-radius: 6px;
  font:
    0.9375em/1.4 ui-monospace,
    'SF Mono',
    Menlo,
    Consolas,
    monospace;
  background: var(--mist-2);
  color: var(--ink);
}
.prose .run-in {
  display: block;
}
.prose .open {
  font-weight: 600;
  color: var(--ink);
}
.prose .pull {
  margin-block: 32px;
  max-width: 24em;
  font: 500 clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem) / 1.3 var(--display);
  letter-spacing: -0.018em;
  color: var(--v800);
  text-wrap: pretty;
}
.prose .stage {
  margin-block: 28px;
  padding: clamp(8px, 1.4vw, 16px);
}
.prose-end {
  margin-top: clamp(44px, 5vw, 60px);
}

/* The section list on long documents */
.toc {
  border-radius: 18px;
  background: var(--mist);
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}
.toc[open] summary svg {
  transform: rotate(180deg);
}
.toc ol {
  display: grid;
  gap: 2px;
  padding: 0 8px 12px;
}
.toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink-3);
  transition:
    color 0.2s,
    background-color 0.2s;
}
.toc a:hover {
  color: var(--ink);
  background: var(--mist-2);
}
.toc a[aria-current='true'] {
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: none;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 calc(100% - 28px),
      transparent
    );
    mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  }
  .toc summary {
    display: none;
  }
  .toc ol {
    padding: 0 0 28px;
  }
  .toc a {
    margin-left: -10px;
  }
}

/* Forms */
.form-group + .form-group,
.form-row + .form-group,
.form-group + .form-row,
.form-row + .form-row {
  margin-top: 24px;
}
.form-row {
  display: grid;
  gap: 24px 20px;
}
.form-row > .form-group {
  margin-top: 0;
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.form-label span {
  font-weight: 400;
  color: var(--ink-3);
}
.required,
.form-label .required {
  font-weight: 600;
  color: var(--v800);
}
.form-hint {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.form-input,
.form-textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 400 1.0625rem/1.4 var(--sans);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-textarea {
  min-height: 136px;
  padding-block: 14px;
  resize: vertical;
}
/* iOS gives a native date field its own width and centres the value; it ignores width: 100% until reset.
   Grid centres the value vertically, which block does not, and keeps the picker icon at the far edge. */
.form-input[type='date'] {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  align-content: center;
}
.form-input::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}
.form-input:hover,
.form-textarea:hover {
  border-color: var(--v300);
}
.form-input:focus,
.form-textarea:focus {
  outline: 0;
  border-color: var(--v600);
  box-shadow: 0 0 0 1px var(--v600);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-3);
  opacity: 0.8;
}
.form-input:disabled {
  background: var(--mist);
}
.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.input-row .form-input {
  flex: 1;
  min-width: 0;
}
.input-row .form-input--code {
  flex: 0 1 200px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font: 600 1.0625rem/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease);
}
.form-submit:hover {
  background: var(--v800);
}
.form-submit:hover .arrow path {
  transform: translate(2px, -2px);
}
.form-submit--quiet {
  flex: none;
  padding: 0 18px;
  background: var(--mist-2);
  color: var(--ink);
}
.form-submit--quiet:hover {
  background: var(--v100);
}
.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-submit:disabled:hover {
  background: var(--ink);
}
.form-submit--quiet:disabled:hover {
  background: var(--mist-2);
}
.form-success,
.form-error {
  display: none;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  line-height: 1.5;
}
.form-success {
  background: var(--mist-2);
  color: var(--ink);
}
.form-error {
  background: #fdf0f0;
  color: #8f1d1d;
}
.form-error a {
  color: inherit;
  text-decoration-color: currentColor;
}
.cf-turnstile {
  max-width: 100%;
  min-height: 65px;
  margin-top: 24px;
}
.form-actions {
  margin-top: 24px;
}

/* Contact: Turnstile takes no room until a person has to act on it */
.contact-form .cf-turnstile {
  min-height: 0;
  margin-top: 0;
}
.contact-form .cf-turnstile.is-visible {
  min-height: 65px;
  margin-top: 24px;
}
.form-field-error {
  display: none;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: #8f1d1d;
}
.form-input[aria-invalid='true'] {
  border-color: #8f1d1d;
}
.form-error:focus,
.form-success:focus {
  outline: none;
}
.form-error p {
  margin-bottom: 8px;
}
.form-error a {
  font-weight: 600;
}
.contact-card .form-success {
  margin-bottom: 0;
  padding: 0;
  background: none;
}
.contact-card .form-success p {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.contact-card .form-success strong {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.form-again {
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v800);
  font: 600 1.0625rem/1.4 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-card .form-success a,
.form-privacy a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
/* Still working, and may be telling them what to do: not the washed-out look of a dead button */
.form-submit[aria-busy='true'],
.form-submit[aria-busy='true']:hover {
  opacity: 1;
  cursor: progress;
}
.form-privacy {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* Contact: the form sits on the violet island and the island owns the first screen */
.hero--contact {
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
}
.hero--contact .page-head {
  display: grid;
  /* minmax(0, ...): the security widget is a fixed 300px, and an auto column stretched the whole page to fit it. */
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(116px, 13vh, 148px) clamp(40px, 6vh, 64px);
}
.contact-note {
  margin-top: 20px;
  max-width: 35rem;
  color: rgba(255, 255, 255, 0.82);
}
.contact-card {
  padding: clamp(22px, 3vw, 36px);
  color: var(--ink-2);
}
.contact-card h2 {
  margin-bottom: 22px;
  font: 650 1.5rem/1.2 var(--display);
  letter-spacing: -0.018em;
  color: var(--ink);
}
@media (min-width: 1120px) {
  .hero--contact .page-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 72px;
  }
  .hero--contact .page-title {
    font-size: clamp(2.75rem, 1rem + 2.9vw, 3.75rem);
    line-height: 1.08;
  }
}

/* Privacy requests: one column, grouped */
.request {
  max-width: 45rem;
}
.pir-intro {
  margin-bottom: 8px;
  text-wrap: pretty;
}
.pir-section-label {
  margin: clamp(40px, 5vw, 56px) 0 20px;
  font: 650 1.4375rem/1.25 var(--display);
  letter-spacing: -0.018em;
  color: var(--ink);
}
.radio-group,
.checkbox-group {
  display: grid;
  gap: 4px;
  margin-inline: -14px;
}
.radio-item,
.checkbox-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  cursor: pointer;
  transition: background-color 0.2s;
}
.radio-item:hover,
.checkbox-item:hover {
  background: var(--mist);
}
.radio-item:has(input:checked),
.checkbox-item:has(input:checked) {
  background: var(--mist-2);
}
.radio-item input,
.checkbox-item input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--v700);
}
.checkbox-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* Phones */
@media (max-width: 719px) {
  .hero--page {
    --edge: 8px;
  }
  .page-head {
    padding-block: 116px 136px;
  }
  .hero--case .page-head {
    padding-block: 100px 112px;
  }
  .hero--contact {
    min-height: 0;
  }
  .hero--contact .page-head {
    padding-block: 100px 8px;
    width: calc(100% - 16px);
    gap: 28px;
  }
  .hero--contact .page-copy {
    padding-inline: calc(var(--gutter) - 8px);
  }
  .hero--contact .page-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }
  .contact-card {
    border-radius: 20px;
  }
  .section {
    padding-block: 56px;
  }
  .people {
    gap: 16px;
  }
  .person img {
    border-radius: 18px;
  }
  .person h3 {
    margin-top: 12px;
    font-size: 1.125rem;
  }
  .cs-stats {
    margin-inline: calc(var(--gutter) * -1 + 8px);
    border-radius: 26px;
  }
  .ledger--page {
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .ledger--page li + li {
    border-top: 1px solid var(--line);
  }
  .ledger--page a {
    padding: 24px 0;
    background: none;
    border-radius: 0;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .input-row .form-input {
    flex: 1 1 100%;
  }
  .input-row .form-submit {
    flex: 1 1 100%;
  }
}

/* The figure inside an article keeps its own spacing */
.prose .fig p {
  margin: 0;
}
.prose .fig .fig-group-label {
  margin-bottom: 10px;
}
.prose .fig .fig-caption {
  margin-top: 18px;
}

/* Article stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin-block: 28px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 28px;
  background: var(--mist);
}
.prose .stats p {
  margin: 0;
}
.prose .stat-number {
  font: 650 clamp(2.5rem, 2rem + 1.4vw, 3.25rem) / 1 var(--display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--v800);
}
.prose .stat-label {
  margin-top: 10px;
  line-height: 1.45;
  color: var(--ink-2);
}
/* A footer with no call to action opens on its links */
.foot .wrap > .foot-links:first-child {
  border-top: 0;
  padding-top: clamp(48px, 6vw, 72px);
}
.foot-legal a {
  color: var(--on-night-2);
  transition: color 0.2s;
}
.foot-legal a:hover {
  color: #fff;
}
.foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* The 404 page: where to go instead */
.lost-links {
  max-width: 45rem;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.lost-links li {
  display: grid;
  gap: 2px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.lost-links a {
  font-weight: 600;
  color: var(--v700);
}
.lost-links a:hover {
  color: var(--v900);
}
.lost-links span {
  color: var(--ink-3);
}
