:root {
  --ink: #101513;
  --graphite: #1b2220;
  --fog: #f1f3f0;
  --mist: #e3e7e2;
  --slate: #5c6661;
  --exit: #1f7a50;
  --exit-bright: #4ccb93;
  --declined: #c8503f;
  --fog-2: #f7f8f6; /* derived: light raised surface */
  --haze: #9ba59f; /* derived: secondary text on dark */
  --ink-2: #161c1a; /* derived: dark muted cell */

  --bg: var(--fog);
  --surface: var(--fog-2);
  --surface-muted: var(--mist);
  --text: var(--ink);
  --text-2: var(--slate);
  --accent: var(--exit);
  --accent-dot: var(--exit);
  --on-accent: var(--fog);
  --focus: var(--exit);
  --border: rgba(16, 21, 19, 0.12);
  --border-strong: rgba(16, 21, 19, 0.22);
  --tint: rgba(31, 122, 80, 0.1);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emph: cubic-bezier(0.32, 0.72, 0, 1);

  --font: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: var(--graphite);
    --surface-muted: var(--ink-2);
    --text: var(--fog);
    --text-2: var(--haze);
    --accent: var(--exit-bright);
    --accent-dot: var(--exit-bright);
    --on-accent: var(--ink);
    --focus: var(--exit-bright);
    --border: rgba(241, 243, 240, 0.1);
    --border-strong: rgba(241, 243, 240, 0.18);
    --tint: rgba(76, 203, 147, 0.1);
  }
}

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-md);
}
.skip:focus {
  inset-block-start: 12px;
}

/* Language switch */
.lang {
  display: flex;
  gap: 16px;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.lang a[aria-current='page'] {
  color: var(--text);
}
.lang a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Logo mark + "incoming call" motion (CSS only, finite) */
.mark {
  display: block;
  overflow: visible;
  color: var(--text);
}
.mark .dot {
  fill: var(--accent-dot);
}
.mark .ripple {
  stroke: var(--accent-dot);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.mark .ring {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.lockup .mark {
  height: 1.1em;
  width: auto;
  aspect-ratio: 186 / 152;
}
.lockup.animate .mark .ring {
  animation: ring-draw 900ms var(--ease-out) both;
}
.lockup.animate .mark .dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pop 500ms var(--ease-out) 700ms both;
}
.lockup.animate .mark .ripple-1 {
  animation: ripple 1400ms var(--ease-out) 1100ms forwards;
}
.lockup.animate .mark .ripple-2 {
  animation: ripple 1400ms var(--ease-out) 1450ms forwards;
}
@media (hover: hover) {
  .lockup.animate:hover .ripple-1 {
    animation: ripple-b 1400ms var(--ease-out) 0ms forwards;
  }
  .lockup.animate:hover .ripple-2 {
    animation: ripple-b 1400ms var(--ease-out) 350ms forwards;
  }
}
@keyframes ring-draw {
  from {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@keyframes dot-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes ripple {
  from {
    transform: scale(1);
    opacity: 0.45;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
@keyframes ripple-b {
  from {
    transform: scale(1);
    opacity: 0.45;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Reduced motion: the final frame is the static state */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .lockup.animate .mark .ring,
  .lockup.animate .mark .dot,
  .lockup.animate .mark .ripple,
  .lockup.animate:hover .ripple {
    animation: none !important;
  }
}

body.soon {
  --wm: 2.75rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: clamp(20px, 6vw, 96px);
}
.soon .top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 72px;
}
.soon main {
  align-self: center;
  padding-block-end: 6vh;
}
.soon .lockup-h1 {
  font-size: var(--wm);
  margin: 0;
}
.soon .lockup-h1 .mark {
  height: 72px;
}
.soon .lockup-h1 {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.soon .line {
  margin-block-start: 24px;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
}
.soon .tagline,
.soon .notify {
  margin-block-start: 8px;
  color: var(--text-2);
}
.soon .notify a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soon .bottom {
  padding-block: 24px 28px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-2);
}

@media (min-width: 640px) {
  body.soon {
    --wm: clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
  }
  .soon .lockup-h1 {
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
  }
  .soon .lockup-h1 .mark {
    height: 1.1em;
  }
  /* start under the wordmark, not under the mark */
  .soon .line {
    margin-inline-start: calc(var(--wm) * 1.646);
  }
}

/* 404 */
.notfound h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  font-weight: 600;
}
.notfound .line a,
.notfound .nf-es a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notfound .nf-es {
  margin-block-start: 8px;
  color: var(--text-2);
}
.notfound .line {
  margin-inline-start: 0;
}
