@font-face {
  font-family: "Journey Levels";
  src: url("/assets/fonts/JourneyLevels-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Journey Levels";
  src: url("/assets/fonts/JourneyLevels-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/FiraCode-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/FiraCode-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("/assets/fonts/GlacialIndifference-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-003F, U+0041-FFFF;
}

:root {
  --lavender: #cdacdd;
  --night: #152b30;
  --white: #ffffff;
  --low: #406169;
  --iris: #00d7e4;
  --deep: #0e2023;
  --hint: #6a7577;
  --bad: #7a1630;

  --heading: "Journey Levels", "Marker Felt", "Chalkboard SE", system-ui, sans-serif;
  --mono: "Fira Code", "SF Mono", Menlo, Consolas, monospace;
  --body: "Glacial Indifference", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --page: 1728;
  --gutter: clamp(16px, 3.47vw, 60px);
  --nav-top: clamp(12px, 2.3vw, 40px);
  --radius-pill: 24px;
  --radius-button: 13px;
  --radius-card: 24px;
  --radius-frame: 34px;

  --t-display: clamp(2.125rem, 4.34vw, 4.6875rem);
  --t-statement: clamp(1.5rem, 3.47vw, 3.75rem);
  --t-lead: clamp(1.5rem, 2.2vw, 2.375rem);
  --t-copy: clamp(1.25rem, 1.74vw, 1.875rem);
  --t-link: clamp(1.125rem, 1.39vw, 1.5rem);
  --t-label: clamp(1.0625rem, 1.22vw, 1.3125rem);
  --t-button: clamp(1rem, 1.16vw, 1.25rem);
  --t-small: clamp(1rem, 0.98vw, 1.0625rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --quick: 180ms;
  --calm: 360ms;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--lavender);
  color: var(--night);
  font-family: var(--heading);
  font-weight: 300;
  font-size: var(--t-link);
  line-height: 1.27;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p { margin: 0; font-weight: 300; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.on-light :focus-visible,
.on-light:focus-visible { outline-color: var(--night); }

.skip {
  position: absolute;
  left: 8px;
  top: -100px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--night);
  font-family: var(--body);
  z-index: 50;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(1608px + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 30px;
  border: 1px solid var(--white);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--white);
  font-family: var(--heading);
  font-weight: 300;
  font-size: var(--t-button);
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.button:hover { background: rgba(255, 255, 255, 0.12); }
.button--filled {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--night);
}
.button--filled:hover { background: #d9bfe6; border-color: #d9bfe6; }
.button[aria-disabled="true"] { cursor: default; opacity: 0.6; }

.site-nav {
  position: relative;
  z-index: 40;
  pointer-events: none;
}
.home .site-nav {
  position: sticky;
  top: 0;
}
.site-nav__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: var(--nav-top);
}
.site-nav__row > * { pointer-events: auto; }
.home .site-nav { z-index: 40; }

.logo-pill {
  display: flex;
  align-items: center;
  flex: none;
  height: clamp(52px, 4.8vw, 83px);
  padding: 0 clamp(16px, 1.74vw, 30px);
  border: 1px solid var(--lavender);
  border-radius: var(--radius-pill);
  background: var(--night);
}
.logo-pill img {
  width: auto;
  height: clamp(34px, 3.18vw, 55px);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.16vw, 20px);
  padding: clamp(10px, 1.16vw, 20px);
  border: 1px solid var(--lavender);
  border-radius: var(--radius-pill);
  background: var(--night);
  transition: padding var(--calm) var(--ease);
}
.nav-grid .button {
  min-width: clamp(0px, 7.6vw, 131px);
  padding-left: clamp(10px, 1.74vw, 30px);
  padding-right: clamp(10px, 1.74vw, 30px);
}
.nav-grid__secondary {
  display: contents;
}
.nav-grid__secondary .button {
  transition: opacity var(--calm) var(--ease), transform var(--calm) var(--ease);
}
body.nav-collapsed .nav-grid__secondary {
  display: none;
}
.nav-caret {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 4.8vw, 83px);
  height: clamp(52px, 4.8vw, 83px);
  padding: 0;
  border: 1px solid var(--lavender);
  border-radius: var(--radius-pill);
  background: var(--night);
  color: var(--white);
  cursor: pointer;
}
.nav-caret::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--calm) var(--ease), margin var(--calm) var(--ease);
}
.nav-caret:hover { background: #1d3a40; }
body.nav-open .nav-caret::before {
  margin-top: 7px;
  transform: rotate(-135deg);
}
@media (min-width: 721px) {
  body.nav-tucked .nav-caret { display: flex; }
  body.nav-tucked .nav-grid { margin-left: auto; }
  body.nav-tucked:not(.nav-open) .nav-grid { display: none; }
}

.site-foot {
  background: var(--night);
  color: var(--white);
  padding-top: clamp(64px, 15vw, 264px);
  padding-bottom: clamp(48px, 5.8vw, 100px);
}
.home .site-foot {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home .site-foot > .wrap { width: 100%; }
.site-foot__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px clamp(32px, 12.6vw, 218px);
  padding-left: clamp(0px, 2.9vw, 50px);
  padding-right: clamp(0px, 2.9vw, 50px);
}
.site-foot__hello {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  max-width: 378px;
}
.site-foot__hello p {
  font-size: var(--t-lead);
  line-height: 1.26;
}
.site-foot__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 50px;
}
.site-foot__group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 183px;
}
.site-foot__group h2 {
  font-size: var(--t-link);
  color: var(--low);
}
.site-foot__group ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lavender);
  font-size: var(--t-link);
  text-decoration: none;
}
a.site-foot__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-foot__link img { width: 24px; height: 24px; flex: none; }
.site-foot__link--pending { color: var(--low); }
.site-foot__wordmark {
  margin-top: clamp(40px, 7.2vw, 125px);
  padding-left: clamp(0px, 0.46vw, 8px);
  padding-right: clamp(0px, 0.46vw, 8px);
}
.site-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 16px;
  padding-left: clamp(0px, 2.9vw, 50px);
  padding-right: clamp(0px, 2.9vw, 50px);
  color: var(--low);
  font-size: var(--t-link);
}

.body-copy {
  font-family: var(--body);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .home .site-nav { position: static; }
  body.nav-collapsed .nav-grid__secondary { display: contents; }
  .site-nav__row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .nav-grid { gap: 6px; padding: 8px; }
  .nav-grid .button { min-height: 36px; padding: 4px 10px; font-size: 0.9375rem; }
  .logo-pill { height: 48px; }
  .logo-pill img { height: 30px; }
  .site-foot__top { justify-content: flex-start; }
}

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