:root {
  --paper: #f8f8ff;
  --paper-2: #f0f2fa;
  --ink: #17191f;
  --ink-soft: #595d6b;
  --ink-faint: #6b6f7e;
  --night: #191d22;
  --night-soft: #aeb2bc;
  --line: #dfe2ed;
  --lavender: #afa9ec;
  --lavender-strong: #7f77dd;
  --lavender-deep: #625abb;
  --mint: #9fe1cb;
  --mint-strong: #5dcaa5;
  --white: #fff;
  --field-bg: #eef0f7;
  --field-border: rgba(68, 72, 92, .1);
  --field-shadow: 0 28px 68px rgba(64, 60, 102, .12);
  --field-radius: 34px;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.6vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }
::selection { background: var(--lavender); color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--lavender-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  text-decoration: none;
  transition: transform .2s ease;
}

.skip-link:focus { transform: none; }

.shell {
  width: min(1320px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding-block: 16px;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .nav {
  width: min(1180px, calc(100% - 40px));
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 19px;
  background: rgba(248, 248, 255, .68);
  box-shadow: 0 10px 30px rgba(23, 25, 31, .10);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  pointer-events: auto;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding-inline: 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .42);
}

.nav-link--one[aria-current="page"],
.nav-link--anywhere[aria-current="page"] {
  color: var(--ink);
  background: transparent;
}

.nav-link--one[aria-current="page"]::after,
.nav-link--anywhere[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 3px;
  left: 13px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  opacity: .34;
}

.nav-cta {
  margin-left: 6px;
}

.nav-cta-short { display: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
  transition: color .25s ease;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  mix-blend-mode: normal;
}

.site-header--dark .nav {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(25, 29, 34, .68);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .24);
}

.site-header--dark .brand {
  color: rgba(255, 255, 255, .94);
}

.site-header--dark .nav-link {
  color: rgba(255, 255, 255, .72);
}

.site-header--dark .nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .09);
}

.site-header--dark .nav-link--one[aria-current="page"],
.site-header--dark .nav-link--anywhere[aria-current="page"] {
  color: var(--white);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 0 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--ease), background-color .2s ease, box-shadow .28s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--lavender-deep);
  box-shadow: 0 12px 28px rgba(98, 90, 187, .2);
}

.button:active { transform: none; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  color: var(--ink-faint);
  font-size: 12px;
}

.footer-note {
  display: grid;
  max-width: 58ch;
  gap: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 24px;
}

.footer-links a {
  white-space: nowrap;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 76px; }
  .site-header { padding-block: 12px; }
  .site-header .nav {
    width: calc(100% - 24px);
    gap: 10px;
    padding: 5px 6px 5px 9px;
    border-radius: 16px;
  }
  .brand img { width: 30px; height: 30px; }
  .brand { gap: 7px; font-size: 15.5px; }
  .nav-links { gap: 3px; }
  .nav-link {
    min-height: 32px;
    padding-inline: 7px;
    border-radius: 9px;
    font-size: 12px;
  }
  .nav-cta { margin-left: 3px; }
  .site-footer { flex-direction: column; gap: 16px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 400px) {
  .brand { gap: 7px; font-size: 15px; }
  .brand span { max-width: 76px; line-height: 1.05; }
  .nav-link { padding-inline: 6px; }
}

@media (max-width: 360px) {
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
}

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