@import url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.min.css");
@import url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/style.min.css");

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --primary: oklch(0.141 0.005 285.823);
  --primary-foreground: oklch(0.985 0 0);
  --primary-color: var(--primary);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.141 0.005 285.823);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --accent: oklch(0.967 0.001 286.375);
  --accent-muted: color-mix(in oklab, var(--accent) 50%, transparent);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --border: oklch(0.92 0.004 286.32);
  --line: color-mix(in oklab, var(--border) 64%, var(--background));
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.705 0.015 286.067);
  --info: oklch(0.67 0.17 244.98);
  --success: oklch(0.723 0.219 149.579);
  --destructive: oklch(0.577 0.245 27.325);
  --link: oklch(0.488 0.243 264.376);
  --surface: oklch(0.985 0 0);
  --selection: oklch(0.141 0.005 285.823);
  --selection-foreground: oklch(0.985 0 0);
  --pattern-foreground: color-mix(in oklab, var(--line) 80%, transparent);
  --bg: var(--background);
  --fg: var(--foreground);
  --ok: var(--success);
  --err: var(--destructive);
  --dim: var(--muted-foreground);
  --ink: var(--foreground);
  --soft: var(--muted-foreground);
  --mute: var(--muted-foreground);
  --elevated: var(--card);
  --checker-a: oklch(0.92 0.004 286.32);
  --checker-b: oklch(0.985 0 0);
  --font-sans: "Geist Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font: var(--font-sans);
  --font-display: var(--font-sans);
  --trans: 150ms ease;
  --radius: 8px;
  --max: 48rem;
  --header-h: 3.5rem;
}

html.dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.141 0.005 285.823);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.705 0.015 286.067);
  --card: oklch(0.21 0.006 285.885);
  --card-foreground: oklch(0.985 0 0);
  --accent: oklch(0.274 0.006 286.033);
  --accent-muted: color-mix(in oklab, var(--accent) 20%, transparent);
  --accent-foreground: oklch(0.985 0 0);
  --border: oklch(0.274 0.006 286.033);
  --line: color-mix(in oklab, var(--border) 64%, var(--background));
  --input: lab(100% 0 0 / 0.15);
  --ring: oklch(0.552 0.016 285.938);
  --success: oklch(0.723 0.219 149.579);
  --destructive: oklch(0.505 0.213 27.518);
  --link: oklch(0.623 0.214 259.815);
  --surface: oklch(0.21 0.006 285.885);
  --selection: oklch(0.985 0 0);
  --selection-foreground: oklch(0.141 0.005 285.823);
  --checker-a: oklch(0.274 0.006 286.033);
  --checker-b: oklch(0.141 0.005 285.823);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-feature-settings: "ss01" 1, "cv11" 1;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  appearance: none;
  background: none;
  border: 0;
}

a { color: inherit; }

::selection {
  background: var(--selection);
  color: var(--selection-foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.screen-line-top,
.screen-line-bottom {
  position: relative;
}

.screen-line-top::before,
.screen-line-bottom::after {
  content: "";
  position: absolute;
  left: -100vw;
  z-index: -1;
  height: 1px;
  width: 200vw;
  background: var(--line);
}

.screen-line-top::before { top: 0; }
.screen-line-bottom::after { bottom: 0; }

.im0-stripe {
  position: relative;
  height: 2.5rem;
  width: 100%;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.im0-stripe--tall { height: 3.5rem; }

.im0-stripe::before {
  content: "";
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line)),
    repeating-linear-gradient(
      315deg,
      var(--pattern-foreground) 0,
      var(--pattern-foreground) 1px,
      transparent 0,
      transparent 50%
    );
  background-size: 100% 1px, 100% 1px, 10px 10px;
  background-position: 0 0, 0 100%, 0 0;
  background-repeat: no-repeat, no-repeat, repeat;
}

.im0-tick {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 1px solid var(--border);
  background: var(--background);
  pointer-events: none;
}

.im0-tick--tl { top: -4.5px; left: -4.5px; }
.im0-tick--tr { top: -4.5px; right: -4.5px; }
.im0-tick--bl { bottom: -4.5px; left: -4.5px; }
.im0-tick--br { bottom: -4.5px; right: -4.5px; }

.im0-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.im0-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 0.5rem;
  background: color-mix(in oklab, var(--background) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: clip;
}

.im0-header__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-right: 0.5rem;
  border-right: 1px solid var(--line);
}

.im0-header__bar.screen-line-bottom::after {
  background: var(--border);
  z-index: 1;
}

.im0-brand {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.im0-brand:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.im0-header__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.im0-navlink {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  transition: color var(--trans), background var(--trans);
}

.im0-navlink:hover {
  color: var(--foreground);
  background: var(--muted);
}

.im0-vsep {
  width: 1px;
  height: 1.25rem;
  margin: 0 0.35rem;
  background: var(--line);
}

.im0-theme {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  transition: background var(--trans);
}

.im0-theme:hover { background: var(--muted); }

.im0-theme svg {
  width: 16px;
  height: 16px;
  display: block;
}

.im0-body {
  padding: 0 0.5rem;
  overflow-x: clip;
}

.im0-col {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.im0-kicker {
  margin: 0;
  padding: 0.75rem 1rem 0.5rem;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.im0-title {
  margin: 0;
  padding: 0.7rem 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.im0-lede {
  margin: 0;
  padding: 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: balance;
}

.im0-pad {
  padding: 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.im0-note {
  margin: 0;
  padding: 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
}

.im0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 36px;
  padding: 0 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--trans), transform 80ms ease, opacity var(--trans);
}

.im0-btn:hover { background: color-mix(in oklab, var(--primary) 80%, transparent); }
.im0-btn:active { transform: scale(0.98); }
.im0-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.im0-btn--ghost {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.im0-btn--ghost:hover { background: var(--muted); }

.im0-link {
  color: var(--foreground);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.im0-link:hover { text-decoration-color: currentColor; }

.im0-code,
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-feature-settings: "ss11" 1, "zero" 1, "tnum" 1;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  border-radius: 6px;
  padding: 1px 6px;
}

.im0-body > footer {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.im0-end {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted-foreground);
  font-size: 13px;
}

.im0-fade {
  pointer-events: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  height: 6rem;
  background: linear-gradient(to bottom, transparent, var(--background) 70%);
  mask-image: linear-gradient(to top, var(--background) 25%, transparent);
}

.im0-top {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 20%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, background var(--trans);
}

.im0-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

.im0-top[data-visible="true"][data-dir="down"] { opacity: 0.3; }
.im0-top[data-visible="true"]:hover { opacity: 1; background: var(--muted); }

.im0-top svg { width: 16px; height: 16px; display: block; }

@media (min-width: 1024px) {
  .im0-top { right: 2rem; bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.im0-discord { cursor: pointer; }
