@font-face{font-family:"Syne";src:url("/fonts/syne.woff2") format("woff2");font-weight:700 800;font-style:normal;font-display:swap}
@font-face{font-family:"Manrope";src:url("/fonts/manrope.woff2") format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url("/fonts/jetbrains-mono.woff2") format("woff2");font-weight:400 500;font-style:normal;font-display:swap}

html{color-scheme:dark}

:root{
  --background:#0A0A0A !important;
  --foreground:#FAFAFA !important;
  --card:#141414 !important;
  --card-foreground:#FAFAFA !important;
  --border:#262626 !important;
  --muted:#141414 !important;
  --muted-foreground:#A3A3A3 !important;
  --accent:#1A1A1A !important;
  --accent-foreground:#FAFAFA !important;
  --primary:#FF3D00 !important;
  --primary-foreground:#0A0A0A !important;
  --sidebar:#0A0A0A !important;
  --sidebar-foreground:#FAFAFA !important;
  --popover:#141414 !important;
  --popover-foreground:#FAFAFA !important;
  --input:#262626 !important;
  --destructive:#FF3D00 !important;
  --destructive-foreground:#FAFAFA !important;
  --ring:#FF3D00 !important;
}

body{background-color:#0A0A0A !important;color:#FAFAFA !important;font-family:"Manrope",ui-sans-serif,system-ui,-apple-system,sans-serif !important}
h1,h2,h3,h4,h5,h6{font-family:"Syne",ui-sans-serif,system-ui,sans-serif !important}
code,pre,kbd,samp{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace !important}

/* ===== 顶栏：注册按钮（由 kf-brand.js 注入）=====
   New API 顶栏原生没有注册入口，未登录访客只能看到「登录」。
   这里把「注册」设为主按钮，把「登录」降为描边次要按钮。 */
header .kf-register{
  background:var(--primary) !important;
  color:var(--primary-foreground) !important;
  border-color:transparent !important;
  font-weight:600 !important;
  margin-left:2px !important;
}
header .kf-register:hover{opacity:.88}

header a[href="/sign-in"].kf-signin-secondary{
  background:transparent !important;
  color:var(--foreground) !important;
  border-color:var(--border) !important;
}
header a[href="/sign-in"].kf-signin-secondary:hover{
  background:var(--accent) !important;
  color:var(--foreground) !important;
}
