@font-face {
  font-family: 'Grenze Gotisch';
  src: url('/fonts/grenze-gotisch.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* True black is the Vanta family. Light comes from two sources: one for each side of a call. */
  --void: #000;
  --accent: #35c9ff;
  --accent-soft: #9be3ff;
  --accent-2: #a45cff;
  --dusk: #0b1016;
  --dusk-raised: #161e27;
  --dusk-high: #232e3a;
  --ink: #f5f9ff;
  --ash: #9aabbd;
  --line: color-mix(in srgb, var(--ink) 11%, transparent);
  --danger: #ff5c7a;
  --on-accent: #00131c;

  /* Set per person on the Appearance page. */
  --round: 1;
  --bar-glass: 50%;
  --tint-strength: 0.5;

  --brand: 'Grenze Gotisch', 'Times New Roman', serif;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Bricolage Grotesque', system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2.25rem;
  --step-4: 3.5rem;

  --dock-height: 1rem;
  --key: calc(14px * var(--round));
}

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

html { background: var(--void); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 var(--step-0) / 1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

img { -webkit-user-drag: none; }

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, canvas, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

* { scrollbar-width: thin; scrollbar-color: var(--dusk-raised) transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wordmark {
  font: 700 1.75rem / 1 var(--brand);
  letter-spacing: 0.005em;
  color: var(--ink);
}

.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem;
  border-radius: var(--key);
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }

.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--accent-soft); }

.btn-danger { background: var(--danger); color: #000; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 80%, #fff); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.titled { display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; }
.titled > .icon { width: 0.92em; height: 0.92em; color: var(--accent-soft); }

.toast .icon { width: 1.125rem; height: 1.125rem; }
.toast .icon-ok, .toast .icon-info, .toast .icon-chat { color: var(--accent); }
.toast .icon-alert { color: var(--danger); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  color: var(--ash);
  transition: color 0.15s, background-color 0.15s;
}
.icon-btn:hover { color: var(--ink); background: var(--dusk-raised); }
.icon-btn[aria-pressed='true'] { color: var(--accent-soft); }

/* Forms */

.field { display: grid; gap: 0.375rem; }
.field > span { color: var(--ash); font-size: var(--step--1); }

.input {
  width: 100%; min-height: 2.75rem; padding: 0 0.875rem;
  background: var(--dusk);
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--round));
}
.input:focus { outline: none; border-color: var(--accent-soft); }
.input::placeholder { color: var(--ash); opacity: 0.75; }

/* Dialogs */

dialog {
  width: min(30rem, calc(100vw - 2rem));
  padding: 1.75rem;
  background: var(--dusk);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: calc(18px * var(--round));
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.6);
}
dialog::backdrop { background: rgb(0 0 0 / 0.75); }
dialog h2 { font: 700 var(--step-2) / 1.15 var(--display); margin-bottom: 1rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.625rem; margin-top: 1.5rem; }
.form-error { color: var(--danger); font-size: var(--step--1); min-height: 1.25em; margin-top: 0.5rem; }

/* Toast */

.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-height) + 0.5rem); z-index: 70;
  transform: translate(-50%, 0.5rem);
  max-width: calc(100vw - 2rem); padding: 0.625rem 1.125rem;
  background: var(--dusk-high); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--key);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.5);
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
