/* Written by pnpm sync-brand from theme/kbasis.json. Do not edit. */
@font-face {
  font-family: Geist;
  src: url('/_astro/Geist-Variable.Bj2R_7yk.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/_astro/GeistMono-Variable.Dispecij.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --background: oklch(0.99 0.003 85);
  --surface: oklch(0.97 0.004 85);
  --muted: oklch(0.955 0.004 85);
  --border: oklch(0.9 0.005 85);
  --foreground: oklch(0.21 0.01 260);
  --muted-foreground: oklch(0.5 0.01 260);
  --primary: oklch(0.5 0.1 222);
  --primary-foreground: oklch(0.985 0 0);
  --ring: oklch(0.62 0.12 215);
  --scrim: oklch(0.21 0.01 260 / 0.35);
  --shadow: oklch(0.21 0.01 260 / 0.16);
  --info: oklch(0.42 0.12 250);
  --info-container: oklch(0.95 0.03 250);
  --info-border: oklch(0.85 0.06 250);
  --warning: oklch(0.45 0.1 75);
  --warning-container: oklch(0.96 0.06 90);
  --warning-border: oklch(0.86 0.1 85);
  --success: oklch(0.42 0.1 155);
  --success-container: oklch(0.95 0.04 155);
  --success-border: oklch(0.85 0.07 155);
  --error: oklch(0.48 0.17 27);
  --error-container: oklch(0.95 0.03 25);
  --error-border: oklch(0.86 0.07 25);
  --font-sans: Geist, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --weight-regular: 400;
  --weight-emphasis: 600;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.17 0.006 260);
    --surface: oklch(0.205 0.007 260);
    --muted: oklch(0.25 0.007 260);
    --border: oklch(0.3 0.008 260);
    --foreground: oklch(0.93 0.004 85);
    --muted-foreground: oklch(0.7 0.01 260);
    --primary: oklch(0.8 0.13 212);
    --primary-foreground: oklch(0.17 0.006 260);
    --ring: oklch(0.7 0.12 212);
    --scrim: oklch(0 0 0 / 0.55);
    --shadow: oklch(0 0 0 / 0.6);
    --info: oklch(0.82 0.09 250);
    --info-container: oklch(0.27 0.05 250);
    --info-border: oklch(0.4 0.08 250);
    --warning: oklch(0.84 0.11 85);
    --warning-container: oklch(0.28 0.05 85);
    --warning-border: oklch(0.42 0.08 85);
    --success: oklch(0.82 0.1 155);
    --success-container: oklch(0.27 0.05 155);
    --success-border: oklch(0.4 0.08 155);
    --error: oklch(0.8 0.11 25);
    --error-container: oklch(0.27 0.06 25);
    --error-border: oklch(0.42 0.1 25);
    --font-sans: Geist, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --weight-regular: 400;
    --weight-emphasis: 600;
  }
}
/* Every colour here is a theme role. The arrows of the cube are the one exception, in Cube.astro. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  font-weight: var(--weight-emphasis);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
code,
pre,
kbd {
  font-family: var(--font-mono);
}

.site {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, min(4vw, 48px));
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* The header: the lockup and the sections. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding-block: 20px;
}
.nav .lockup {
  display: block;
  line-height: 0;
}
.nav .lockup svg {
  height: 26px;
  width: auto;
  display: block;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
}
.nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--foreground);
}
.nav li:last-child a {
  color: var(--foreground);
  font-weight: 500;
}
.on-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .on-light {
    display: none;
  }
  .on-dark {
    display: block;
  }
}

/* The footer. */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-foreground);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px 16px;
  flex-wrap: wrap;
}

/* Buttons and small labels. */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--background);
}
.btn.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: filter 0.15s;
  }
  .btn:hover {
    filter: brightness(1.08);
  }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* A page of text, at a readable measure. */
.page {
  padding-block: clamp(28px, 5vw, 56px) 8px;
}
.measure {
  max-width: 42rem;
}
.page h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 18px;
}
.page h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 36px 0 8px;
}
.page p,
.page li {
  font-size: 16px;
}
.page p {
  margin: 0 0 14px;
}
.lede {
  font-size: 18px !important;
  color: var(--muted-foreground);
}
.muted {
  color: var(--muted-foreground);
}

/* The promises as a ledger: a number in the vector's colour at its place, the promise, and one
   sentence, each row ruled off with the cube's dashed edge. */
.promises {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.promises li {
  display: grid;
  grid-template-columns: 2.6rem minmax(14rem, 1fr) 1.5fr;
  gap: 4px 20px;
  align-items: baseline;
  padding-block: 14px;
  border-top: 1.5px dashed color-mix(in oklch, var(--foreground) 22%, transparent);
  color: var(--muted-foreground);
}
.promises li:first-child {
  border-top: 0;
}
.promise-n {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
.promises b {
  color: var(--foreground);
  font-weight: var(--weight-emphasis);
  font-size: 17px;
}
@media (max-width: 640px) {
  .promises li {
    grid-template-columns: 2.2rem 1fr;
  }
  .promise-body {
    grid-column: 2;
  }
}

/* A list of posts: the date, the title, and the summary when there is one. */
.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.posts li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 4px 20px;
  padding-block: 12px;
  border-top: 1px solid var(--border);
}
.posts time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.posts a {
  font-weight: 500;
  text-decoration: none;
}
.posts a:hover {
  text-decoration: underline;
}
.posts span {
  display: block;
  color: var(--muted-foreground);
  font-size: 14px;
}
@media (max-width: 480px) {
  .posts li {
    grid-template-columns: 1fr;
  }
}
.empty {
  color: var(--muted-foreground);
  padding-block: 12px;
  border-top: 1px solid var(--border);
  margin: 0;
}

.page .trail-slab .promises {
  margin-block: 6px 4px;
}
/* A link that closes a card, on its own line. */
.page .trail-slab .trail-more {
  color: var(--primary);
  text-decoration: none;
}
.page .trail-slab .trail-more::after {
  content: ' →';
}
.page .trail-slab .trail-more:hover {
  text-decoration: underline;
}
.more {
  margin-top: 24px;
  font-weight: 500;
}

/* The roadmap: cards for Now, Next and Later, a plain list for Done. */
.road {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.road-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}
.road-item.labelled {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 12px;
  align-items: baseline;
}
.road-item b {
  font-weight: var(--weight-emphasis);
  display: block;
}
.road-item span {
  color: var(--muted-foreground);
  display: block;
}
.road-item a {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
}
.road-group,
.road-heading {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.road-group {
  font-size: 11px;
}
.page h2.road-heading {
  font-size: 12px;
  font-weight: 500;
  margin: 32px 0 10px;
}
.road-group.now,
.road-heading.now {
  color: var(--primary);
}
.done {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted-foreground);
}
.done b {
  color: var(--foreground);
  font-weight: 500;
}

/* A post, set for reading at about 65 characters a line. */
.post {
  max-width: 65ch;
}
.post .byline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0 0 28px;
}
.post .body {
  font-size: 17px;
  line-height: 1.65;
}
.post .body :is(p, li) {
  font-size: 17px;
}
.post .body :is(pre, code) {
  font-size: 0.9em;
  background: var(--muted);
  border-radius: 4px;
}
.post .body pre {
  padding: 12px 14px;
  overflow-x: auto;
}
.post .body code {
  padding: 1px 4px;
}
.post .body pre code {
  padding: 0;
  background: none;
}
.post .body img {
  max-width: 100%;
  height: auto;
}
.post .body blockquote {
  margin: 0 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
  color: var(--muted-foreground);
}
.post-end {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
}
.post-end .btn {
  margin-top: 4px;
}

/* The landing page: the cube beside the headline, then the commands, the promises, the rest. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 5vw, 64px);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.07;
  letter-spacing: -0.022em;
}
.hero p {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 34rem;
}
.stage {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.cube {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}
/* Hidden until the script has drawn the first, empty frame, so the full drawing never flashes
   before the build. Without the script, or after three seconds without it, the drawing shows. */
.cube:not(.live) {
  opacity: 0;
  animation: cube-show 0s linear 3s forwards;
}
@keyframes cube-show {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cube:not(.live) {
    opacity: 1;
    animation: none;
  }
}
.cube.building,
.cube.following {
  cursor: pointer;
}
.cube .edge {
  fill: none;
  stroke: var(--foreground);
  stroke-opacity: 0.5;
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}
.cube .green {
  fill: var(--arrow-green);
}
.cube .yellow {
  fill: var(--arrow-yellow);
}
.cube .cyan {
  fill: var(--arrow-cyan);
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .stage {
    max-width: 260px;
    order: -1;
  }
}

.run {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 28px;
}
.run h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.run p {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-size: 14px;
}
@media (max-width: 760px) {
  .run {
    grid-template-columns: 1fr;
  }
}
.term {
  min-width: 0;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.term-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 12px;
}
.term pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
}
.term .prompt {
  color: var(--primary);
  user-select: none;
}
.term .note {
  color: var(--muted-foreground);
}
.copy {
  font: inherit;
  font-size: 12px;
  color: var(--primary);
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 8px;
  cursor: pointer;
}

/* On the landing page the promises sit in a slab of their own, the heading beside the ledger. */
.home-promises {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2.6fr;
  gap: 18px 40px;
  margin-block: 28px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  --depth: color-mix(in oklch, var(--border) 80%, var(--foreground));
  box-shadow:
    1px 1px 0 var(--depth),
    2px 2px 0 var(--depth),
    3px 3px 0 var(--depth),
    4px 4px 0 var(--depth),
    5px 5px 0 var(--depth),
    6px 6px 0 var(--depth),
    14px 18px 28px -14px var(--shadow);
}
.home-promises h2 {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.2;
}
@media (max-width: 800px) {
  .home-promises {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
}

.home-more {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.home-more > div {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.home-more h2 {
  margin: 0;
  font-weight: 500;
}
.home-more h2 a {
  text-decoration: none;
}
.home-more h2 a:hover {
  color: var(--foreground);
}
.home-more.single {
  grid-template-columns: 1fr;
}
@media (max-width: 760px) {
  .home-more {
    grid-template-columns: 1fr;
  }
}

/* A page whose heading sits centred over a Trail. */
.page-head {
  text-align: center;
}
.page-head h1 {
  margin-bottom: 8px;
}

/* A Trail: a centred column of cards with one vector down their right side. The vector runs from
   cyan through yellow to green, the brand's arrows, and is drawn as the reader scrolls. */
.trail {
  --gutter: 64px; /* from the cards' right edge to the track's */
  --vx: 22px; /* from the track's right edge to the vector */
  position: relative;
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 var(--gutter) 36px 0;
  display: grid;
  gap: 22px;
}
.trail-vector,
.trail-tip {
  position: absolute;
  right: var(--vx);
}
.trail-vector {
  top: 0;
  bottom: 36px;
  width: 2px;
  margin-right: -1px;
  background: linear-gradient(in oklab, var(--arrow-cyan), var(--arrow-yellow), var(--arrow-green));
  transform-origin: top;
}
.trail-tip {
  top: calc(100% - 36px);
  width: 14px;
  height: 14px;
  margin: -3px -7px 0 0;
  fill: var(--arrow-green);
}
.trail-card {
  position: relative;
}
.trail-slab {
  position: relative;
  padding: 24px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  --depth: color-mix(in oklch, var(--border) 80%, var(--foreground));
  box-shadow:
    1px 1px 0 var(--depth),
    2px 2px 0 var(--depth),
    3px 3px 0 var(--depth),
    4px 4px 0 var(--depth),
    5px 5px 0 var(--depth),
    6px 6px 0 var(--depth),
    14px 18px 28px -14px var(--shadow);
  transition: translate 0.25s ease;
}
.trail-slab:hover {
  translate: -2px -2px;
}
.page .trail-slab h2 {
  margin: 0 0 8px;
}
.page .trail-slab p {
  margin: 0;
  color: var(--muted-foreground);
}
.page .trail-slab a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
}
.page .trail-slab .trail-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page .trail-slab .trail-label.current {
  color: var(--primary);
}
/* Where the vector meets a card: a node on the vector, joined to the card by a dashed edge. */
.trail-join {
  position: absolute;
  top: 30px;
  left: calc(100% + 7px);
  width: calc(var(--gutter) - 7px - var(--vx));
  border-top: 1.5px dashed var(--foreground);
  opacity: 0.35;
}
.trail-node {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: calc(100% + var(--gutter) - var(--vx) - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--c);
}
.trail-after {
  max-width: 860px;
  margin-inline: auto;
}
@media (max-width: 719px) {
  .page-head {
    text-align: left;
  }
  .trail {
    --gutter: 34px;
    --vx: 8px;
    margin-top: 28px;
    gap: 18px;
  }
  .trail-slab {
    padding: 20px 20px 22px;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trail {
      view-timeline-name: --trail;
    }
    .trail-vector,
    .trail-tip {
      animation: linear both;
      animation-timeline: --trail;
      animation-range: entry 0% exit 0%;
    }
    .trail-vector {
      animation-name: trail-grow;
    }
    .trail-tip {
      animation-name: trail-ride;
    }
    .trail-card {
      view-timeline-name: --card;
    }
    .trail-slab {
      animation: trail-pop cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
      animation-timeline: --card;
      animation-range: entry 0% entry 90%;
    }
    .trail-node,
    .trail-join {
      animation: trail-appear linear both;
      animation-timeline: --card;
      animation-range: entry 20% entry 60%;
    }
  }
}
@keyframes trail-grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes trail-ride {
  from {
    top: 0;
    fill: var(--arrow-cyan);
  }
  50% {
    fill: var(--arrow-yellow);
  }
  to {
    top: calc(100% - 36px);
    fill: var(--arrow-green);
  }
}
@keyframes trail-appear {
  from {
    opacity: 0;
  }
}
@keyframes trail-pop {
  from {
    opacity: 0;
    transform: perspective(1000px) translateY(40px) rotateY(0) rotateX(28deg) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
