/* wandkit subpages.

   Loaded after the bundled sheet on the twelve subpages. The tokens, nav,
   buttons and footer come from site.css; this sheet only adds the components
   the subpage bodies in pages.json use, in the same language: white, ink, one
   yellow, hairlines, and no grey text anywhere. */

.page {
  padding-top: 150px;
}
.wrap--narrow {
  max-width: 820px;
}

/* ---------- page header ---------- */
.page-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.page-head__eyebrow {
  display: inline-block;
  margin-bottom: 22px;
}
.page-head__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.page-head__lede {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.page-head__meta {
  margin-top: 20px;
  overflow-wrap: anywhere;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.page-body {
  margin: 72px auto 0;
}
@media (max-width: 600px) {
  .page {
    padding-top: 112px;
  }
  .page-body {
    margin-top: 44px;
  }
}

/* inline labels inside body copy sit in a row, separated by hairlines; inside a
   sentence they keep their case, an address in capitals is not an address */
.page-body .tag {
  line-height: 1.8;
}
.page-body p .tag,
.page-body li .tag {
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: normal;
  display: inline;
}
.page-body .tag + .tag {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
}

/* ---------- contents rail, on pages with enough sections to lose your place ---------- */
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 72px;
}
.doc__nav {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid var(--line-2);
}
.doc__nav-label {
  margin: 0 0 10px 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.doc__nav a {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease-out);
}
.doc__nav a:hover {
  background: var(--paper-3);
}
/* a grid item with auto side margins is not stretched: it takes fit-content,
   which for a body holding a code block is the longest line of code */
.doc__body {
  min-width: 0;
  margin: 0;
}
.doc__body .prose,
.doc__body .body-head,
.doc__body .cards {
  margin-left: 0;
}
@media (max-width: 960px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .doc__nav {
    position: static;
    flex-flow: row wrap;
    gap: 4px;
    padding: 0;
    border-right: 0;
  }
  .doc__nav-label {
    width: 100%;
    margin-left: 0;
  }
  .doc__nav a {
    padding: 6px 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 13px;
  }
}

/* ---------- surfaces ---------- */
.surface {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

/* ---------- section heading inside a body ---------- */
.body-head {
  max-width: 820px;
  margin: 0 auto 28px;
}
.body-head__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}
.body-head__sub {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}

/* ---------- card grids ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.cards--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lg);
  border-color: var(--line-3);
}
.card__kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}
.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
@media (max-width: 900px) {
  .cards,
  .cards--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- prose ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose.surface {
  padding: 32px 36px;
}
.prose h2 {
  margin: 44px 0 12px;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.prose strong {
  font-weight: 600;
}
.prose ul.bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.prose ul.bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-deep);
}
.prose a.inline {
  border-bottom: 1px solid var(--brand-deep);
}

/* ---------- code: light, so it reads like the rest of the page ---------- */
.page-body > .code {
  max-width: 760px;
  margin-inline: auto;
}
.code {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.code .k {
  color: var(--amber-ink);
  font-weight: 500;
}
.code .s {
  color: var(--tag-green-fg);
}
.code .c {
  color: var(--ink);
  font-style: italic;
}
.code .p {
  color: var(--tag-blue-fg);
}

/* ---------- changelog ---------- */
.changelog {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.change {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px;
}
.change__aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.change__date {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.change__ver {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.change__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.change__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.change__chip {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .change {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.road-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.road-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.road-col__title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.road {
  padding: 18px;
}
.road__title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.road__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}
@media (max-width: 900px) {
  .roadmap {
    grid-template-columns: 1fr;
  }
}

/* ---------- status ---------- */
.status-banner {
  max-width: 820px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--tag-green-bg);
  color: var(--tag-green-fg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.status-banner .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.status-list {
  max-width: 820px;
  margin: 0 auto;
}
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.status-row:last-child {
  border-bottom: none;
}
.status-row__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.status-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-row__uptime {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tag-green-bg);
  color: var(--tag-green-fg);
  font-family: var(--f-mono);
  font-size: 11px;
}
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
}
.status-pill--maint {
  background: var(--tag-yellow-bg);
  color: var(--tag-yellow-fg);
}
.status-pill--maint .dot {
  background: #d97706;
}

/* ---------- API reference ---------- */
.api {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.api__nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.api__nav a {
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease-out);
}
.api__nav a:hover {
  background: var(--paper-3);
}
.endpoint {
  padding: 22px 24px;
  margin-bottom: 16px;
}
.endpoint__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.method {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.method--get {
  background: var(--tag-green-bg);
  color: var(--tag-green-fg);
}
.method--post {
  background: var(--tag-blue-bg);
  color: var(--tag-blue-fg);
}
.method--del {
  background: var(--tag-rose-bg);
  color: var(--tag-rose-fg);
}
.endpoint__path {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
}
.endpoint__desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
@media (max-width: 860px) {
  .api {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .api__nav {
    position: static;
  }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--paper-2);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- careers ---------- */
.roles {
  max-width: 820px;
  margin: 0 auto;
}
.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.role:last-child {
  border-bottom: none;
}
.role__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role__title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.role__meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---------- figures ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat {
  padding: 22px;
}
.stat__v {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__l {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- names in a row ---------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.logos span {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- the call to action, on yellow like the demo panel ---------- */
.cta-band {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-tray);
  text-align: center;
  background: var(--brand);
  color: var(--ink);
}
.cta-band h2 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}
.cta-band p {
  margin: 14px auto 26px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.55;
}
