/* Fonts are self-hosted, so the site makes no third-party requests. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  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: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  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: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f2f3fb;
  --ink: #1e1b3f;
  --muted: #55527a;
  --peri: #4f55d9;
  --sun: #ffcf3f;
  --line: #d9daee;

  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Onest", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 66ch;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17152e;
    --ink: #ecebff;
    --muted: #aeabd4;
    --peri: #a5a9ff;
    --line: #322f57;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--peri);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--peri);
  text-decoration: underline;
}

/* Hero: the one loud moment on the site */

.hero {
  padding-block: clamp(3rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
}

.wordmark {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--peri);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, calc((100vw - 2 * var(--gutter)) / 5.9), 11.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* The sun sits behind the first letter. */
.wordmark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.12em;
  top: -0.22em;
  width: 0.92em;
  height: 0.92em;
  border-radius: 50%;
  background: var(--sun);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    transform: translateY(35%) scale(0.85);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark::before {
    animation: none;
  }
}

.tagline {
  max-width: 30ch;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.35;
  font-weight: 450;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--peri);
  color: var(--paper);
}

/* Content rows: heading on the left, content on the right */

.row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.row h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.row-body {
  max-width: var(--measure);
}

.row-body > :first-child {
  margin-top: 0;
}

.row-body > :last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* Company details */

.details {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.6rem 2rem;
  margin: 0;
}

.details dt {
  color: var(--muted);
}

.details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Long-form pages (privacy policy, 404) */

.doc {
  padding-block: clamp(2.5rem, 7vw, 5rem) 4rem;
}

.doc h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.doc .effective {
  margin: 1rem 0 0;
  color: var(--muted);
}

.prose {
  max-width: var(--measure);
  margin-top: 2.5rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 2.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

@media (max-width: 44rem) {
  .row {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2rem;
  }

  .details {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .details dt:not(:first-child) {
    margin-top: 0.9rem;
  }
}
