:root {
  color-scheme: dark;
  --ink: #090909;
  --paper: #f3f1eb;
  --muted: #a6a49e;
  --dim: #6e6c67;
  --hairline: rgba(243, 241, 235, 0.16);
  --page-gutter: clamp(18px, 3.2vw, 54px);
  --header-height: 68px;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
  background: var(--ink);
  color: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(82px, 1fr) auto minmax(82px, 1fr);
  align-items: center;
  min-height: var(--header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(18px);
}

.wordmark {
  width: max-content;
  font-size: 19px;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 13px;
  font-weight: 700;
}

.site-header nav a,
.language-switch {
  color: var(--muted);
  transition: color 160ms ease-out;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.language-switch:hover,
.language-switch:focus-visible {
  color: var(--paper);
}

.language-switch {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
}

.index-main,
.legal-main {
  padding: 0 var(--page-gutter);
}

.index-heading,
.legal-heading {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(220px, 1.35fr) minmax(230px, 1fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: end;
  min-height: clamp(220px, 34vh, 390px);
  padding: clamp(48px, 9vh, 112px) 0 clamp(34px, 6vh, 72px);
  border-bottom: 1px solid var(--hairline);
}

.index-heading > p,
.legal-heading > p,
.route-page main > p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.index-heading h1,
.legal-heading h1,
.route-page h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 900;
  line-height: 0.82;
}

.index-heading > div,
.legal-heading > div {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.index-heading > span,
.legal-heading div > p {
  margin: 0;
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 600;
  line-height: 1.25;
}

.index-heading > span {
  max-width: 420px;
  align-self: end;
}

.document-index {
  display: grid;
  padding: clamp(36px, 6vw, 76px) 0 clamp(90px, 12vw, 170px);
}

.index-document {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  gap: 20px;
  align-items: center;
  min-height: clamp(92px, 10vw, 146px);
  border-bottom: 1px solid var(--hairline);
  transition: color 180ms ease-out, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.index-document:first-child {
  border-top: 1px solid var(--hairline);
}

.index-document > span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
}

.index-document strong {
  font-size: clamp(28px, 4.6vw, 68px);
  font-weight: 900;
  line-height: 0.96;
}

.index-document i {
  color: var(--dim);
  font-size: 20px;
  font-style: normal;
  transition: color 180ms ease-out, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.index-document:hover,
.index-document:focus-visible {
  color: var(--muted);
  transform: translate3d(6px, 0, 0);
}

.index-document:hover i,
.index-document:focus-visible i {
  color: var(--paper);
  transform: translate3d(3px, -3px, 0);
}

.legal-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.legal-heading {
  align-items: end;
}

.legal-heading h1 {
  font-size: clamp(46px, 7vw, 102px);
  line-height: 0.9;
}

.legal-content {
  margin-left: min(18vw, 260px);
  padding: clamp(38px, 6vw, 84px) 0 clamp(90px, 12vw, 170px);
}

.legal-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 720px);
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--hairline);
}

.legal-section > span {
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.05;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section p a,
.text-action {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-action {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 110px;
  margin: 0 var(--page-gutter);
  border-top: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer span {
  justify-self: end;
}

.route-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.route-page main {
  display: grid;
  gap: 24px;
  width: min(720px, 100%);
}

.route-page h1 {
  font-size: clamp(46px, 10vw, 112px);
  line-height: 0.94;
}

.has-motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 520ms ease-out, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-motion [data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    padding: 11px 0 13px;
    border-top: 1px solid var(--hairline);
  }

  .index-heading,
  .legal-heading {
    grid-template-columns: 1fr 1.5fr;
  }

  .index-heading > p,
  .legal-heading > p {
    grid-column: 1 / -1;
  }

  .legal-content {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 52px;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .site-header nav {
    gap: 10px;
    font-size: 12px;
  }

  .index-heading,
  .legal-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 52px 0 38px;
  }

  .index-heading > p,
  .legal-heading > p {
    grid-column: auto;
  }

  .index-heading h1 {
    font-size: clamp(58px, 22vw, 88px);
  }

  .legal-heading h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .legal-section {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  }

  .site-footer span {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
