:root {
  --bg: var(--color-background,#F7F9F6);
  --panel: #FFFFFF;
  --sunk: #EFF2EE;
  --line: #E0E5DF;
  --line2: #C7CEC6;
  --ink: var(--color-ink,#131714);
  --ink2: #5C635C;
  --ink3: #939A93;
  --accent: var(--color-primary,#0D8B84);
  --chrome: var(--color-chrome,#161D19);
  --on: #EAEFE9;
  --on2: #9BA79F;
  --on3: #6E7A72;
  --accent2: var(--color-accent-on-dark,#5FBDB4);
  --dark-panel: #1B2320;
  --dark-line: #2C3630;
  --mono: ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --sans: var(--font-body-faces, var(--font-body, Inter), system-ui), sans-serif;
  --display: var(--font-display-faces, var(--font-display, Inter), system-ui), sans-serif;
  --t0: 12px;
  --t1: 13.5px;
  --t2: 15px;
  --t3: 16px;
  --t4: 19px;
  --r1: 8px;
  --r2: 14px;
  --gutter: max(24px,(100% - 1120px) / 2);
}

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

html {
  scroll-behavior: smooth;
  /* The header's height, border included; the script keeps it exact. */
  scroll-padding-top: 61px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t3);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

p {
  margin: 0 0 .8em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

h1,
h2 {
  font-family: var(--display);
}

h1 {
  font-size: clamp(34px,4.6vw,56px);
  font-weight: 650;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px,3vw,34px);
  font-weight: 640;
  text-wrap: balance;
}

h3 {
  font-size: var(--t3);
  font-weight: 640;
  margin-bottom: 6px;
}

code {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: .87em;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .36em;
}

img {
  max-width: 100%;
}

main > section:first-of-type > p > a,
main article > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t2);
  line-height: 20px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--r1);
  border: 1px solid transparent;
  white-space: nowrap;
}

main > section:first-of-type > p > a:hover {
  background: #000;
}

main > section:first-of-type > p > a:nth-child(2),
main article > a {
  background: transparent;
  color: var(--ink);
  border-color: var(--line2);
}

main > section:first-of-type > p > a:nth-child(2):hover,
main article > a:hover {
  background: var(--sunk);
}

main > section:first-of-type > p > a {
  background: var(--on);
  color: var(--chrome);
}

main > section:first-of-type > p > a:hover {
  background: #fff;
}

main > section:first-of-type > p > a:nth-child(2) {
  background: transparent;
  color: var(--on);
  border-color: #3B4841;
}

main > section:first-of-type > p > a:nth-child(2):hover {
  background: var(--dark-panel);
}

main > section:first-of-type > p > a:nth-child(3) {
  flex-basis: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 400;
  font-size: var(--t1);
  color: var(--on2);
  text-decoration: underline;
  white-space: normal;
}

main > section:first-of-type > p > a:nth-child(3):hover {
  background: none;
  color: var(--on);
}

main > section:first-of-type > p:has(> a) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 10px;
  margin: 30px 0 0;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-height: 60px;
  padding: 8px var(--gutter);
  color: var(--on);
  background: var(--chrome);
  border-bottom: 1px solid rgba(234,239,233,.12);
}

body > header > a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--on);
}

body > header > a img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

body > header > a b {
  font-size: var(--t2);
  letter-spacing: -.01em;
}

body > header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

body > header nav a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: var(--t1);
  font-weight: 500;
  color: var(--on2);
  text-decoration: none;
  white-space: nowrap;
}

body > header nav a:hover {
  color: var(--on);
  background: rgba(234,239,233,.09);
}

body > header nav a[aria-current] {
  color: var(--on);
}

body > header nav {
  margin-left: 0;
}

body > header > p {
  display: flex;
  gap: 8px;
  margin: 0 0 0 auto;
}

body > header > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--r1);
  border: 1px solid transparent;
  background: var(--on);
  color: var(--chrome);
  font-size: var(--t1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body > header > p > a:hover {
  background: #fff;
}

body > header > p > a:nth-child(2) {
  background: transparent;
  color: var(--on);
  border-color: #3B4841;
}

body > header > p > a:nth-child(2):hover {
  background: var(--dark-panel);
}

/* The burger: three lines that fold into a cross. Only on narrow screens. */
body > header > button {
  display: none;
}

@media (max-width: 959px) {
  body > header {
    flex-wrap: nowrap;
    gap: 10px;
  }

  body > header > p {
    display: none;
  }

  body > header > button {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0 -8px 0 auto;
    padding: 0;
    border: 0;
    border-radius: var(--r1);
    background: none;
    color: var(--on);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body > header > button:hover,
  body > header > button[aria-expanded="true"] {
    background: rgba(234,239,233,.09);
  }

  body > header > button:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px;
  }

  body > header > button > span,
  body > header > button > span::before,
  body > header > button > span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s cubic-bezier(.2,.7,.2,1),background-color .18s ease;
  }

  body > header > button > span {
    position: relative;
  }

  body > header > button > span::before,
  body > header > button > span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  body > header > button > span::before {
    top: -6px;
  }

  body > header > button > span::after {
    top: 6px;
  }

  body > header > button[aria-expanded="true"] > span {
    background: transparent;
  }

  body > header > button[aria-expanded="true"] > span::before {
    transform: translateY(6px) rotate(45deg);
  }

  body > header > button[aria-expanded="true"] > span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  body > header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    padding: 6px var(--gutter) 14px;
    background: var(--chrome);
    border-bottom: 1px solid rgba(234,239,233,.12);
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
  }

  body > header:has(> button[aria-expanded="true"]) nav {
    display: flex;
    animation: rise .25s cubic-bezier(.2,.7,.2,1) backwards;
  }

  body > header nav a {
    height: 44px;
    padding: 0 12px;
    border-radius: var(--r1);
    font-size: var(--t2);
  }

  body > header nav a[aria-current] {
    background: rgba(234,239,233,.06);
  }
}

main > section {
  padding: 88px var(--gutter);
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 14px;
}

main > section:nth-of-type(odd) {
  background: var(--chrome);
  color: var(--on);
}

main > section > p:first-child {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t0);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

main > section:nth-of-type(odd) > p:first-child {
  color: var(--accent2);
}

main > section > h2 {
  grid-column: 1 / -1;
  max-width: 62ch;
}

main > section > h2 + p {
  grid-column: 1 / -1;
  max-width: 62ch;
  margin: 0 0 26px;
  font-size: var(--t4);
  color: var(--ink2);
  text-wrap: pretty;
}

main > section:nth-of-type(odd) > h2 + p {
  color: var(--on2);
}

main > section > article {
  grid-column: span 4;
}

main > section > figure {
  grid-column: span 6;
}

main > section > :is(p, ul) + figure,
main > section > table {
  grid-column: 1 / -1;
}

main > section > article ~ p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: var(--t2);
  color: var(--ink2);
}

main > section > article ~ p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

main > section > article ~ p a:hover {
  text-decoration: underline;
}

main > section > article:has(> a) {
  grid-column: span 4;
}

@media (max-width: 959px) {
  main > section > article,
  main > section > article:has(> a) {
    grid-column: span 6;
  }
}

@media (max-width: 639px) {
  main > section > article,
  main > section > article:has(> a),
  main > section > figure {
    grid-column: 1 / -1;
  }
}

main > section:first-of-type {
  display: block;
  padding-bottom: 0;
  text-align: center;
}

main > section:first-of-type > p:first-child {
  margin-bottom: 20px;
}

main > section:first-of-type > h1 {
  max-width: 760px;
  margin-inline: auto;
}

main > section:first-of-type > h1 + p {
  max-width: 58ch;
  margin: 22px auto 0;
  font-size: var(--t4);
  line-height: 1.5;
  color: var(--on2);
  text-wrap: pretty;
}

main > section:first-of-type > figure {
  max-width: 1120px;
  margin: 56px auto 0;
  position: relative;
  top: 1px;
}

main > section:first-of-type > figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r2) var(--r2) 0 0;
  border: 1px solid rgba(234,239,233,.16);
  border-bottom: 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,.35);
}

main > dl {
  margin: 0;
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 0 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

main > dl dt {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

main > dl dd {
  margin: 0;
  font-size: var(--t1);
  color: var(--ink2);
}

@media (max-width: 639px) {
  main > dl {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4,auto);
    row-gap: 0;
  }
  main > dl dd {
    margin-bottom: 12px;
  }
}

main > section > ul {
  grid-column: 1 / -1;
  list-style: none;
  margin: -4px 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

main > section > ul li {
  font-size: var(--t1);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ink2);
}

main article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 22px;
}

main article p {
  font-size: var(--t2);
  color: var(--ink2);
  line-height: 1.5;
}

main > section:nth-of-type(odd) article {
  background: var(--dark-panel);
  border-color: var(--dark-line);
}

main > section:nth-of-type(odd) article p {
  color: var(--on2);
}

main > section:nth-of-type(odd) code {
  background: var(--dark-panel);
  border-color: var(--dark-line);
  color: var(--on);
}

main section article:has(> a) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

/* A page of text: the headline, then its text in the layout's column, as the sections have it; not a card. */
main > article {
  padding: 88px var(--gutter);
  text-align: center;
  background: none;
  border: 0;
  border-radius: 0;
}

main > article > h1 {
  margin-bottom: 32px;
}

main > article :is(h2, h3) {
  margin: 40px 0 12px;
  font-size: var(--t4);
}

main > article p {
  font-size: var(--t3);
  line-height: 1.6;
}

main > article > dl {
  margin: 0;
}

main > article > dl dt {
  margin-top: 24px;
  font-weight: 600;
}

main > article > dl dd {
  margin: 0;
  color: var(--ink2);
}

main section article:has(> a):nth-of-type(2) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

main section article:has(> a) h3 {
  font-size: var(--t2);
  font-weight: 600;
  color: var(--ink2);
  margin: 0;
}

main article > h3 + p > b {
  font-size: 30px;
  font-weight: 640;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
}

main section article:has(> a) > p:last-of-type {
  flex: 1;
}

main article > a {
  margin-top: 8px;
}

/* The page's actions close it as light buttons. */
main > article > a {
  margin: 40px 5px 0;
}

/* The highlighted plan's button carries the accent. */
main section article:has(> a):nth-of-type(2) > a {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

main section article:has(> a):nth-of-type(2) > a:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
}

main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  margin-top: 26px;
}

main th {
  width: 150px;
  text-align: left;
  vertical-align: baseline;
  padding: 12px 16px 12px 20px;
  font-size: var(--t2);
  font-weight: 600;
  color: var(--ink2);
}

main td {
  padding: 9px 20px 6px 0;
  vertical-align: baseline;
}

main tr + tr th,
main tr + tr td {
  border-top: 1px solid var(--line);
}

main td a {
  display: inline-block;
  margin: 0 6px 6px 0;
  font-family: var(--mono);
  font-size: var(--t0);
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
  text-decoration: none;
  cursor: help;
}

@media (max-width: 639px) {
  main th,
  main td {
    display: block;
    width: auto;
    padding: 12px 16px 0;
  }
  main td {
    padding-bottom: 6px;
  }
  main tr + tr td {
    border-top: 0;
  }
}

main > section > figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

main > section > figure > div {
  height: 300px;
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sunk);
}

main > section > figure > div > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: var(--r1) var(--r1) 0 0;
  box-shadow: 0 8px 24px rgba(19,23,20,.12);
}

main > section > figure > figcaption {
  padding: 20px 22px;
  font-size: var(--t2);
  color: var(--ink2);
  line-height: 1.5;
}

main > section > figure > figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

main > section > :is(p, ul) + figure {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 26px;
}

main > section > :is(p, ul) + figure > div {
  height: auto;
  padding: 0;
  display: block;
  overflow: visible;
  background: none;
}

main > section > :is(p, ul) + figure > div > img {
  width: 100%;
  max-height: none;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  box-shadow: none;
}

main > section > :is(p, ul) + figure > figcaption {
  padding: 28px 0 0;
}

main > section > :is(p, ul) + figure > figcaption b {
  display: inline;
  margin: 0;
}

body > footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  column-gap: 28px;
  row-gap: 0;
  padding: 56px var(--gutter) 36px;
  background: var(--chrome);
  font-size: var(--t2);
  color: var(--on2);
}

@media (max-width: 859px) {
  body > footer {
    grid-template-columns: 1fr 1fr;
  }
}

body > footer > div {
  margin-bottom: 36px;
}

body > footer > div > b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: var(--t0);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on3);
}

body > footer > div:first-child > b {
  font-family: var(--sans);
  font-size: var(--t2);
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--on);
}

body > footer > div > b a {
  color: inherit;
  text-decoration: none;
}

body > footer > div > p {
  max-width: 34ch;
  margin: 0 0 12px;
  font-size: var(--t1);
  color: var(--on2);
}

body > footer > div > a {
  display: block;
  padding: 3px 0;
  color: var(--on2);
  text-decoration: none;
}

body > footer > div > a:hover,
body > footer > div > a[aria-current] {
  color: var(--accent2);
}

body > footer > small {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: var(--t1);
  color: var(--on3);
}

body > footer > p:last-child {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: var(--t1);
  color: var(--on3);
}

a {
  transition: color .18s ease,background-color .18s ease,border-color .18s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main > section:first-of-type > * {
  animation: rise .6s cubic-bezier(.2,.7,.2,1) backwards;
}

main > section:first-of-type > h1 {
  animation-delay: .05s;
}

main > section:first-of-type > h1 + p {
  animation-delay: .1s;
}

main > section:first-of-type > p:has(> a) {
  animation-delay: .15s;
}

main > section:first-of-type > figure {
  animation: rise .7s cubic-bezier(.2,.7,.2,1) .15s backwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none!important;
    transition: none!important;
  }
}
