/* 习惯罐子 v4：直接用色值，不靠被缓存的旧 CSS 变量 */

html,
html.light,
html.dark,
body,
#__next,
main,
.min-h-screen {
  background-color: #FBF4F6 !important;
  color: #3D2C31 !important;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif !important;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: radial-gradient(900px 320px at 50% -8%, rgba(201, 139, 152, 0.18), transparent 62%) !important;
}

:root,
html.light,
.light {
  --background: 340 47% 97% !important;
  --foreground: 345 16% 21% !important;
  --card: 350 100% 99% !important;
  --card-foreground: 345 16% 21% !important;
  --popover: 350 100% 99% !important;
  --popover-foreground: 345 16% 21% !important;
  --primary: 347 36% 67% !important;
  --primary-foreground: 350 60% 99% !important;
  --secondary: 345 53% 94% !important;
  --secondary-foreground: 347 25% 52% !important;
  --muted: 345 53% 94% !important;
  --muted-foreground: 345 12% 43% !important;
  --accent: 345 53% 94% !important;
  --accent-foreground: 347 25% 52% !important;
  --border: 344 31% 90% !important;
  --input: 344 31% 90% !important;
  --ring: 347 36% 67% !important;
  --radius: 12px !important;
}

.bg-background,
.bg-muted,
.bg-muted\/50 {
  background-color: #FBF4F6 !important;
}

.bg-card,
.bg-white,
.bg-popover {
  background-color: #FFFBFC !important;
}

.border,
.border-border {
  border-color: #EEDFE3 !important;
}

.text-foreground,
.text-gray-900,
.text-black {
  color: #3D2C31 !important;
}

.text-muted-foreground,
.text-gray-500,
.text-gray-600,
.text-gray-400,
.text-slate-500 {
  color: #7A5F66 !important;
}

.bg-primary {
  background-color: #C98B98 !important;
  color: #FFF9FA !important;
}

h1, h2, h3,
.text-2xl, .text-3xl, .text-4xl {
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, serif !important;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #3D2C31 !important;
}

/* 顶栏 HabitTrove → 习惯罐子（不依赖 logo 图） */
span.font-bold.text-xl {
  font-size: 0 !important;
  line-height: 0 !important;
}
span.font-bold.text-xl::after {
  content: "习惯罐子";
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  font-family: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "STSong", Georgia, serif;
  color: #3D2C31;
  font-weight: 600;
}

img[alt="HabitTrove Logo"] {
  display: none !important;
}

.rounded-lg, .rounded-xl, .rounded-md {
  border-radius: 12px !important;
}

button.bg-primary,
a.bg-primary {
  border-radius: 999px !important;
}

input, textarea, select {
  font-size: 16px !important;
}

::selection {
  background: #F8E8EC;
  color: #3D2C31;
}
