@font-face {
  font-family: "Satoshi";
  font-weight: 300;
  font-display: block;
  src: url("fonts/satoshi-300.woff2") format("woff2");
}
/* Inter Variable: the five letters of "jaunt", and Latin for the early access form */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Jaunt";
  font-weight: 100 900;
  font-display: block;
  src: url("fonts/inter-jaunt.woff2") format("woff2");
}
@font-face {
  font-family: "Satoshi";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/satoshi-400.woff2") format("woff2");
}

:root {
  --void: #000;
  --starlight: #eef0f6;
  --amber: 231 162 70; /* the icon's */
  /* the lockup keeps jaunt's sidebar proportions: a 33px icon, a 10px gap, "jaunt" at
     29px / 650 / -1.2px, all scaled by --u */
  --icon: min(168px, 24vmin, calc((100vw - 40px) / 3.45));
  --u: calc(var(--icon) / 33);
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--void);
  color: var(--starlight);
}

body {
  font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

@media (pointer: fine) {
  body, a, button { cursor: none; }
}

main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px 6vh;
  pointer-events: none;
}

/* a low warm light behind the icon, breathing slowly */
.lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 10);
  /* optically centred: the word weighs less than the icon */
  margin-left: calc(var(--u) * -4);
}
.name {
  position: relative;
  font-family: "Inter Jaunt", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: calc(var(--u) * 29);
  font-weight: 650;
  letter-spacing: calc(var(--u) * -1.2);
  line-height: 1;
  color: #eceeea;
  opacity: 0;
  transform: translateX(calc(var(--u) * -6));
  filter: blur(6px);
  transition: opacity 2s ease .5s, transform 2.6s cubic-bezier(.2, .7, .2, 1) .5s, filter 2.2s cubic-bezier(.2, .7, .2, 1) .5s;
}
.in .name { opacity: 1; transform: none; filter: blur(0); }

.halo { position: relative; }
.halo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--icon) * 3.2);
  height: calc(var(--icon) * 3.2);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--amber) / .13), rgb(var(--amber) / .04) 45%, transparent);
  opacity: 0;
  transition: opacity 3s ease 1s;
}
.in .halo::before { opacity: 1; animation: breathe 7s ease-in-out 4s infinite; }
@keyframes breathe {
  50% { opacity: .55; }
}

.icon {
  position: relative;
  display: block;
  width: var(--icon);
  height: auto;
  opacity: 0;
  filter: blur(14px);
  transform: scale(.94);
  transition: opacity 2.2s ease, filter 2.4s cubic-bezier(.2, .7, .2, 1), transform 2.8s cubic-bezier(.2, .7, .2, 1);
}
.in .icon { opacity: 1; filter: blur(0); transform: none; }

.line {
  position: relative;
  margin: calc(var(--icon) * .3 + 12px) 0 0;
  font-weight: 300;
  font-size: clamp(16px, 2.3vmin, 22px);
  letter-spacing: .06em;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 2s ease 1.1s, transform 2.4s cubic-bezier(.2, .7, .2, 1) 1.1s;
}
.in .line { opacity: .8; transform: none; }

#mark {
  position: fixed;
  left: 0;
  pointer-events: none;
}

.nebul {
  position: fixed;
  display: block;
  border-radius: 6px;
  outline: none;
}
.nebul:focus-visible { box-shadow: 0 0 0 1px rgb(238 240 246 / .25); }

/* ------------------------------------------------ early access */

.ea-open {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 12px));
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  z-index: 5;
  padding: 8px 6px;
  border: 0;
  background: none;
  font: 400 13px/1 "Satoshi", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .08em;
  color: var(--starlight);
  opacity: 0;
  transition: opacity 1.6s ease 3.2s;
}
.in .ea-open { opacity: .5; }
.ea-open::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.in .ea-open:hover, .in .ea-open:focus-visible { opacity: 1; transition-delay: 0s; transition-duration: .3s; }
.ea-open:hover::after, .ea-open:focus-visible::after { transform: none; transform-origin: left; }
.ea-open:focus-visible { outline: none; }

.ea {
  /* jaunt's own palette (web/style.css) */
  --bg: #121314;
  --panel: #17191a;
  --surface: #1d2021;
  --surface-hover: #242728;
  --line: #2b2e30;
  --text: #eceeea;
  --muted: #929891;
  --faint: #69706a;
  --accent: #e7a246;
  --accent-soft: #33291d;
  --danger: #df8d82;
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(18 19 20 / .9);
  -webkit-backdrop-filter: blur(18px) saturate(.8);
  backdrop-filter: blur(18px) saturate(.8);
  opacity: 0;
  transition: opacity .45s ease;
  user-select: text;
  -webkit-user-select: text;
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text);
  color-scheme: dark;
}
.ea.on { opacity: 1; }
.ea[hidden] { display: none; }
.ea-on .ea-open { opacity: 0 !important; }

.ea-close {
  position: fixed;
  top: max(12px, calc(env(safe-area-inset-top) + 6px));
  right: max(10px, calc(env(safe-area-inset-right) + 6px));
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  transition: color .3s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.ea-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.ea-close:hover, .ea-close:focus-visible { color: var(--text); transform: rotate(90deg); outline: none; }

.ea-body {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 76px 16px 56px;
  transform: translateY(14px);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ea.on .ea-body { transform: none; }
.ea-form, .ea-done {
  padding: 30px 26px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius, 10px);
  box-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
@media (max-width: 420px) { .ea-form, .ea-done { padding: 24px 18px 22px; } }

.ea h2 {
  margin: 0 0 10px;
  font-weight: 650;
  font-size: 26px;
  letter-spacing: -.9px;
  line-height: 1.15;
}
.ea-lede, .ea-done p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.ea-done p { margin: 0; }

.ea-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.ea-field[hidden] { display: none; }
.ea-field > label { font-size: 12px; font-weight: 500; color: var(--muted); }
.ea-field em { font-style: normal; color: var(--faint); margin-left: 4px; }
.ea-field input, .ea-field textarea, .ea-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ea-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23929891' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
}
.ea-field select:invalid { color: var(--faint); }
.ea-field option { color: var(--text); background: var(--panel); }
.ea-field textarea { resize: vertical; min-height: 96px; }
.ea-field textarea::placeholder { color: var(--faint); }
.ea-field input:focus, .ea-field textarea:focus, .ea-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #e7a24614; }

.ea-note { margin: 2px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }
.ea-note[hidden] { display: none; }
.ea-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line); }
.ea-note.paid {
  padding: 10px 12px;
  border: 1px solid #4a3a24;
  border-radius: 7px;
  background: var(--accent-soft);
  color: #e9c48f;
}
.ea-note.paid b { color: var(--accent); font-weight: 600; }

.ea-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-check:empty { display: none; }
.ea-check { margin: 0 0 16px; }

.ea-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ea-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #251d11;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.ea-send:hover, .ea-send:focus-visible { background: #efb360; border-color: #efb360; outline: none; }
.ea-send[hidden] { display: none; }
.ea-send:disabled:not(.busy) {
  background: var(--surface);
  border-color: var(--line);
  color: var(--faint);
}
.ea-send.busy span { opacity: .55; }
.ea-send.busy::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.ea-error { margin: 14px 0 0; font-size: 13px; color: var(--danger); }
.ea-done[hidden], .ea-form[hidden], .ea-error[hidden] { display: none; }

/* VHS: grain, and the faintest scanlines */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: screen;
  image-rendering: pixelated;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .018) 0 1px, transparent 1px 3px);
}

/* ------------------------------------------------ cursor (nebul.earth's) */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  pointer-events: none;
  transition: opacity .4s ease;
}
.cursor i {
  position: absolute;
  left: -14px;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgb(238 240 246 / .32);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .5s ease;
}
.cursor::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -1.5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(238 240 246 / .85);
}
.cursor.over i { transform: scale(1.45); border-color: rgb(143 211 214 / .4); }
.cursor.pulse i { animation: pulse .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes pulse {
  from { transform: scale(.4); border-color: rgb(238 240 246 / .9); }
}
.cursor.away { opacity: 0; }
@media (pointer: coarse) {
  .cursor { display: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fallback {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  color: var(--starlight);
  text-decoration: none;
  font-size: 22px;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .icon, .name, .line, .halo::before { transition-duration: .01s; transition-delay: 0s; }
  .in .halo::before { animation: none; }
}
