@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Gloock";
  src: url("fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Young Serif";
  src: url("fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #161819;
  --text: #ecebe6;
  --muted: #a7aba9;
  --quiet: #8a8f8e;
  --line: rgb(255 255 255 / 0.09);
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -0.035em;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}
[data-f="2"] {
  --display: "Gloock", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.01em;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
}
[data-f="3"] {
  --display: "Familjen Grotesk", system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -0.03em;
  --body: "Familjen Grotesk", system-ui, sans-serif;
}
[data-f="4"] {
  --display: "Young Serif", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.02em;
  --body: "Hanken Grotesk", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font: 400 16px / 1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid #f1f0ec;
  outline-offset: 2px;
}
.patronus canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 4vh, 48px) var(--gutter) 64px;
}
h1 {
  margin: 0;
  font: var(--display-weight) clamp(46px, 5.6vw, 76px) / 1.02 var(--display);
  letter-spacing: var(--display-track);
  text-wrap: balance;
}
.join {
  max-width: 460px;
  margin-top: 40px;
}
.field {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 10px;
}
.field:focus-within {
  border-color: rgb(255 255 255 / 0.45);
}
.join[data-state="bad"] .field {
  border-color: #c98f78;
}
.field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
}
.field input::placeholder {
  color: var(--quiet);
}
.field input:focus-visible {
  outline: none;
}
.field button {
  flex: none;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #f1f0ec;
  color: #161819;
  font: 500 16px var(--body);
  cursor: pointer;
}
.field button:hover {
  background: #fff;
}
.field button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.field .arr,
.field kbd {
  display: none;
}
[data-w] .field .more {
  white-space: pre;
}
[data-w="a"] .field {
  position: relative;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
[data-w="a"] .field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1);
}
[data-w="a"] .join[data-state="bad"] .field::after {
  background: #c98f78;
  transform: scaleX(1);
}
[data-w="a"] .field input {
  height: 60px;
  padding: 0;
  font-size: 21px;
  letter-spacing: -0.01em;
}
[data-w="a"] .field button {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  background: #f1f0ec;
  color: #161819;
  font-size: 16px;
  transition: background 200ms ease;
}
[data-w="a"] .field button:hover {
  background: #ffffff;
}
[data-w="a"] .field .arr {
  display: block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1);
}
[data-w="a"] .field button:hover .arr,
[data-w="a"] .field button:focus-visible .arr {
  transform: translateX(4px);
}
[data-w="b"] .field {
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.025));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 18px 40px -18px rgb(0 0 0 / 0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 240ms, box-shadow 240ms;
}
[data-w="b"] .field:focus-within {
  border-color: rgb(255 255 255 / 0.28);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 0 0 4px rgb(236 235 230 / 0.06),
    0 18px 40px -18px rgb(0 0 0 / 0.7);
}
[data-w="b"] .field input {
  height: 52px;
  padding: 0 12px;
  font-size: 17px;
}
[data-w="b"] .field button {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px 0 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfaf6, #e6e4dd);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(0 0 0 / 0.4);
}
[data-w="b"] .field kbd {
  display: grid;
  place-items: center;
  margin-left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgb(22 24 25 / 0.08);
  font: 500 13px var(--body);
}
.msg {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.join[data-state="bad"] .msg,
.join[data-state="fail"] .msg {
  color: #e0a58e;
}
.join[data-state="done"] .msg {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}
.join[data-state="done"] .field {
  display: none;
}
.sr,
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.object {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.object .patronus {
  flex: none;
  width: 230px;
  aspect-ratio: 1;
  margin: 0 -34px 40px 0;
}
.phone {
  position: relative;
  flex: none;
  width: 290px;
  height: 590px;
  border-radius: 50px;
  background: linear-gradient(165deg, #1b1f21, #0e1011 55%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 2px 0 0 rgb(220 230 245 / 0.18),
    0 40px 80px -30px rgb(0 0 0 / 0.7);
}
.ghost {
  position: absolute;
  inset: 0 18px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
}
.row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.g {
  display: block;
  height: 34px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.06);
  filter: blur(4px);
}
.row .g {
  border-bottom-left-radius: 6px;
}
.row.me {
  justify-content: flex-end;
}
.row.me .g {
  border-bottom-left-radius: 18px;
}
.g.r {
  border-bottom-right-radius: 6px;
  background: rgb(255 255 255 / 0.14);
}
.g.t {
  height: 52px;
}
.w36 { width: 36%; }
.w44 { width: 44%; }
.w50 { width: 50%; }
.w58 { width: 58%; }
.w60 { width: 60%; }
.w64 { width: 64%; }
.w68 { width: 68%; }
.w70 { width: 70%; }
.w72 { width: 72%; }
.av {
  flex: none;
  width: 22px;
  opacity: 0.3;
  filter: blur(0.5px);
  fill: none;
  stroke: rgb(220 230 245 / 0.75);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.av .e {
  fill: rgb(220 230 245 / 0.75);
  stroke: none;
}
.av.agent {
  opacity: 0.42;
  stroke: rgb(232 240 255);
}
.av.agent .e {
  fill: rgb(255 255 255);
}
.pairs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pairs a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.pairs a[aria-current] {
  background: rgb(255 255 255 / 0.1);
  color: var(--text);
}
.pairs a:hover {
  color: var(--text);
}
.doc {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 64px) var(--gutter) 72px;
}
.doc h1 {
  font-size: clamp(44px, 6vw, 64px);
}
.doc .updated {
  margin: 16px 0 40px;
  color: var(--quiet);
  font-size: 14px;
}
.doc h2 {
  margin: 40px 0 10px;
  font-size: 19px;
  font-weight: 600;
}
.doc p,
.doc li {
  color: #d3d3ce;
  font-size: 16px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.doc table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  color: var(--muted);
  font-weight: 500;
}
.doc td {
  color: #d3d3ce;
}
.doc .wide {
  overflow-x: auto;
}
.foot {
  padding: 16px var(--gutter) 28px;
  color: var(--quiet);
  font-size: 13px;
}
.foot nav {
  display: flex;
  gap: 24px;
}
.foot a {
  color: var(--quiet);
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}
.langs [aria-current] {
  color: var(--muted);
}
.nav .langs {
  font-size: 13px;
  color: var(--quiet);
}
.nav .langs a {
  color: var(--quiet);
  text-decoration: none;
}
.nav .langs a:hover {
  color: var(--text);
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
    padding-top: 24px;
  }
  .object .patronus {
    width: 150px;
    margin: 0 -24px 24px 0;
  }
  .phone {
    width: 220px;
    height: 450px;
    border-radius: 40px;
  }
  .ghost {
    inset: 0 14px 44px;
    gap: 9px;
  }
  .g {
    height: 26px;
  }
  .g.t {
    height: 40px;
  }
  .av {
    width: 18px;
  }
}
@media (max-width: 420px) {
  .more {
    display: none;
  }
}
@media (hover: none), (max-width: 860px) {
  [data-w="b"] .field kbd {
    display: none;
  }
  [data-w="b"] .field button {
    padding: 0 20px;
  }
}
