/* Vitals: shared tokens, type and components */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/sourceserif4-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color */
  --paper: #ffffff;
  --mist: #f1f1ef;
  --mist-2: #e8e8e5;
  --rule: #e8e8e5;
  --rule-strong: #d5d5d1;
  --ink: #111111;
  --ink-2: #3f3f3f;
  --slate: #55554f;
  --navy: #111111;
  --navy-hover: #2b2b2b;
  --navy-deep: #111111;
  --highlight: #ffe14d;
  --highlight-soft: #fff3b0;
  --rust: #b42318;
  --sage: #12775a;
  --steel: #85857f;

  /* Type */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* Space and shape */
  --gutter: clamp(20px, 4vw, 44px);
  --max: 1200px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);

  color-scheme: light;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
}
h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
::selection {
  background: var(--highlight-soft);
  color: var(--ink);
}

/* Smooth scrolling (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Page transitions between landing and onboarding (Chrome, Safari 18+) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
  animation-timing-function: var(--ease-soft);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type */
.display {
  font-family: var(--sans);
  font-stretch: 84%;
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 0.98;
  text-wrap: balance;
}
.heading {
  font-family: var(--sans);
  font-stretch: 88%;
  font-weight: 620;
  font-size: clamp(32px, 3.5vw, 46px);
  letter-spacing: -0.018em;
  line-height: 1.04;
  text-wrap: balance;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  font-optical-sizing: auto;
  text-wrap: pretty;
}
.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted {
  color: var(--slate);
}
.tabular {
  font-variant-numeric: tabular-nums lining-nums;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Links */
.link {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent);
  transition: text-decoration-color 160ms var(--ease-soft);
}
.link:hover {
  text-decoration-color: currentColor;
}

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 560;
  font-stretch: 96%;
  letter-spacing: -0.003em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 180ms var(--ease-soft),
    box-shadow 180ms var(--ease-soft),
    color 180ms var(--ease-soft),
    transform 140ms var(--ease-soft);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn-primary {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 2px rgba(17, 17, 17, 0.24);
}
.btn-primary:hover {
  --btn-bg: var(--navy-hover);
}
.btn-secondary {
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.btn-secondary:hover {
  --btn-bg: var(--mist);
  box-shadow: inset 0 0 0 1px var(--slate);
}
.btn-light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-deep);
}
.btn-light:hover {
  --btn-bg: var(--highlight-soft);
}
.btn-small {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 14.5px;
  border-radius: 9px;
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  border-radius: var(--radius-m);
}
.on-dark :focus-visible {
  outline-color: #fff;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark svg {
  width: 24px;
  height: 24px;
  flex: none;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-soft), background-color 220ms var(--ease-soft);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 480;
  text-decoration: none;
  padding: 6px 0;
  transition: color 160ms var(--ease-soft);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-header__login {
  margin-left: 8px;
  padding: 8px 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 540;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease-soft);
}
.site-header__login:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.site-header__nav-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header__cta {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .site-header__login {
    margin-left: auto;
    font-size: 14.5px;
  }
  .site-header__cta {
    margin-left: 4px;
  }
  .site-header__inner {
    height: 62px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 40px 48px;
  color: var(--slate);
  font-size: 14.5px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.site-footer__links a {
  color: var(--slate);
  text-decoration: none;
  transition: color 160ms var(--ease-soft);
}
.site-footer__links a:hover {
  color: var(--ink);
}
.site-footer .wordmark {
  font-size: 16px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  transition: top 160ms var(--ease-soft);
}
.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
