@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --chalk: #e9edeb;
  --ink: #16262b;
  --blue: #2c3ddb;
  --moss: #4d6b55;
  --rule: #c5cfca;
  --muted: #455459;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 74rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand,
.btn,
label,
.acro {
  font-family: var(--display);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: 60ch;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 2rem;
  height: 2rem;
  color: var(--blue);
}
.nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--blue);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(2.5rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 750;
  max-width: 11ch;
}
.hero .lede {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-top: 1.75rem;
  max-width: 34ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.25rem;
}
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 1.6rem;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #2232b8;
}
.textlink {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
}

.tree {
  width: 100%;
  height: auto;
  color: var(--ink);
  overflow: visible;
}
.tree .main {
  fill: var(--ink);
}
.tree .tip {
  fill: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .tree .main {
    animation: settle 1.2s ease-out both;
  }
  .tree .tip {
    animation: settle 0.8s ease-out 1.1s both;
  }
  @keyframes settle {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* sections */
section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}
.split h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 14ch;
}

/* the system */
.layers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.layers li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.layers li:first-child {
  border-top: 0;
  padding-top: 0;
}
.acro {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--blue);
  line-height: 1;
  padding-top: 0.3rem;
}
.layers h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.layers p {
  margin: 0;
  max-width: 52ch;
}
.note {
  margin-top: 1.75rem;
  font-style: italic;
  color: var(--muted);
}

/* offerings */
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offers li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.offers li:first-child {
  border-top: 0;
  padding-top: 0;
}
.offers h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.offers p {
  margin: 0;
}

/* about */
.about p {
  font-size: 1.2rem;
}

/* form */
.waitlist {
  background: var(--ink);
  color: var(--chalk);
  border-top: 0;
}
.waitlist h2 {
  color: #fff;
}
.waitlist p {
  color: #cfd8d4;
}
form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}
label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
input,
select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 0.95rem;
  background: #f6f8f7;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 3px;
}
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9aa6ff;
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist .btn {
  background: #fff;
  color: var(--ink);
  justify-self: start;
}
.waitlist .btn:hover {
  background: #dfe6ff;
}
.waitlist .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.status {
  min-height: 1.6em;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
}
.status.error {
  color: #ffb4a8;
}

/* footer */
.site-foot {
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.site-foot a {
  color: var(--muted);
}

/* simple pages */
.doc {
  padding-top: 2rem;
  padding-bottom: 5rem;
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.doc h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}

@media (max-width: 52rem) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: start;
  }
  .tree {
    max-width: 26rem;
  }
  .layers li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .nav {
    gap: 1.1rem;
  }
}

.waitlist .split > div > p {
  margin-top: 1.25rem;
}

.nav a {
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .site-head {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }
  .nav {
    font-size: 0.95rem;
  }
}
