index.css 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. InkOS Studio — Atmospheric Literary Workbench
  3. Fonts: Instrument Serif (Headings/Literary), DM Sans (UI), JetBrains Mono (Data)
  4. */
  5. @import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');
  6. @import "tailwindcss";
  7. @theme inline {
  8. --color-background: var(--background);
  9. --color-foreground: var(--foreground);
  10. --color-card: var(--card);
  11. --color-card-foreground: var(--card-foreground);
  12. --color-popover: var(--popover);
  13. --color-popover-foreground: var(--popover-foreground);
  14. --color-primary: var(--primary);
  15. --color-primary-foreground: var(--primary-foreground);
  16. --color-secondary: var(--secondary);
  17. --color-secondary-foreground: var(--secondary-foreground);
  18. --color-muted: var(--muted);
  19. --color-muted-foreground: var(--muted-foreground);
  20. --color-accent: var(--accent);
  21. --color-accent-foreground: var(--accent-foreground);
  22. --color-destructive: var(--destructive);
  23. --color-destructive-foreground: var(--destructive-foreground);
  24. --color-border: var(--border);
  25. --color-input: var(--input);
  26. --color-ring: var(--ring);
  27. --radius-sm: calc(var(--radius) - 4px);
  28. --radius-md: calc(var(--radius) - 2px);
  29. --radius-lg: var(--radius);
  30. --radius-xl: calc(var(--radius) + 4px);
  31. --font-serif: 'Instrument Serif', Georgia, serif;
  32. --font-sans: 'DM Sans', system-ui, sans-serif;
  33. --font-mono: 'JetBrains Mono', monospace;
  34. --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  35. --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  36. --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  37. --shadow-soft: 0 2px 15px -3px oklch(0 0 0 / 0.07), 0 4px 6px -4px oklch(0 0 0 / 0.05);
  38. --shadow-3d: 0 10px 30px -10px oklch(0 0 0 / 0.15), 0 4px 10px -5px oklch(0 0 0 / 0.1);
  39. --shadow-3d-hover: 0 20px 40px -15px oklch(0 0 0 / 0.2), 0 8px 16px -8px oklch(0 0 0 / 0.15);
  40. }
  41. /* ── Light Mode: Warm Parchment & Ink ── */
  42. :root {
  43. --radius: 0.6rem;
  44. /* Background: Warm, aged paper with subtle radial light */
  45. --background: oklch(0.985 0.005 80);
  46. --background-radial: radial-gradient(circle at 50% 0%, oklch(0.995 0.002 85) 0%, oklch(0.985 0.005 80) 100%);
  47. --foreground: oklch(0.13 0.02 60);
  48. /* Cards: Crisp sheets on paper */
  49. --card: oklch(1 0 0);
  50. --card-foreground: oklch(0.15 0.015 60);
  51. --popover: oklch(1 0 0);
  52. --popover-foreground: oklch(0.15 0.015 60);
  53. /* Primary: Deep Oxblood / Ink */
  54. --primary: oklch(0.45 0.12 25);
  55. --primary-foreground: oklch(0.98 0.006 76);
  56. /* Secondary: Soft paper shadow */
  57. --secondary: oklch(0.94 0.01 76);
  58. --secondary-foreground: oklch(0.25 0.015 60);
  59. /* Muted: Faded ink */
  60. --muted: oklch(0.94 0.008 76);
  61. --muted-foreground: oklch(0.38 0.02 60);
  62. /* Accent: Subtle gold leaf */
  63. --accent: oklch(0.92 0.02 85);
  64. --accent-foreground: oklch(0.25 0.05 60);
  65. --destructive: oklch(0.55 0.18 25);
  66. --destructive-foreground: oklch(0.98 0 0);
  67. --border: oklch(0.84 0.01 76);
  68. --input: oklch(0.92 0.005 76);
  69. --ring: oklch(0.45 0.12 25);
  70. }
  71. /* ── Dark Mode: Obsidian & Candlelight ── */
  72. .dark {
  73. /* Background: Deep obsidian with soft top glow */
  74. --background: oklch(0.12 0.01 250);
  75. --background-radial: radial-gradient(circle at 50% 0%, oklch(0.16 0.015 250) 0%, oklch(0.12 0.01 250) 100%);
  76. --foreground: oklch(0.97 0.005 250);
  77. /* Cards: Floating graphite */
  78. --card: oklch(0.18 0.015 250);
  79. --card-foreground: oklch(0.95 0.005 250);
  80. --popover: oklch(0.18 0.015 250);
  81. --popover-foreground: oklch(0.95 0.005 250);
  82. /* Primary: Warm Amber / Candlelight */
  83. --primary: oklch(0.78 0.14 85);
  84. --primary-foreground: oklch(0.12 0.01 250);
  85. /* Secondary: Dark slate */
  86. --secondary: oklch(0.22 0.02 250);
  87. --secondary-foreground: oklch(0.92 0.005 250);
  88. /* Muted: Dimmed graphite */
  89. --muted: oklch(0.22 0.015 250);
  90. --muted-foreground: oklch(0.78 0.005 250);
  91. /* Accent: Muted gold */
  92. --accent: oklch(0.28 0.04 85);
  93. --accent-foreground: oklch(0.95 0.06 85);
  94. --destructive: oklch(0.55 0.2 25);
  95. --destructive-foreground: oklch(0.98 0 0);
  96. --border: oklch(0.30 0.02 250);
  97. --input: oklch(0.25 0.02 250);
  98. --ring: oklch(0.78 0.14 85);
  99. }
  100. body {
  101. font-family: var(--font-sans);
  102. font-size: 15px;
  103. font-weight: 450;
  104. line-height: 1.6;
  105. -webkit-font-smoothing: antialiased;
  106. -moz-osx-font-smoothing: grayscale;
  107. background: var(--background-radial);
  108. background-attachment: fixed;
  109. color: var(--foreground);
  110. transition: background 0.5s ease, color 0.5s ease;
  111. }
  112. /* ── Cursor interaction rules ── */
  113. button, [role="button"], a, select, label[for], summary { cursor: pointer; }
  114. button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
  115. input[type="text"], input[type="number"], input[type="email"], input[type="password"], textarea { cursor: text; }
  116. input[type="checkbox"], input[type="radio"] { cursor: pointer; }
  117. /* Button hover micro-feedback */
  118. button:not(:disabled):active {
  119. transform: scale(0.97);
  120. transition: transform 0.1s ease;
  121. }
  122. /* Subtle grain texture for physical feel */
  123. body::before {
  124. content: '';
  125. position: fixed;
  126. inset: 0;
  127. pointer-events: none;
  128. z-index: 50;
  129. opacity: 0.035;
  130. background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  131. mix-blend-mode: overlay;
  132. }
  133. /* Serif headings with literary character */
  134. h1, h2, h3, h4 {
  135. font-family: var(--font-serif);
  136. letter-spacing: -0.02em;
  137. font-weight: 500;
  138. }
  139. h1 { font-size: 2.25rem; font-style: italic; }
  140. h2 { font-size: 1.75rem; }
  141. h3 { font-size: 1.25rem; }
  142. /* Focus indicator */
  143. :focus-visible {
  144. outline: 2px solid var(--ring);
  145. outline-offset: 2px;
  146. }
  147. /* Custom Scrollbar */
  148. ::-webkit-scrollbar {
  149. width: 6px;
  150. height: 6px;
  151. }
  152. ::-webkit-scrollbar-track {
  153. background: transparent;
  154. }
  155. ::-webkit-scrollbar-thumb {
  156. background: var(--border);
  157. border-radius: 10px;
  158. }
  159. ::-webkit-scrollbar-thumb:hover {
  160. background: var(--muted-foreground);
  161. }
  162. /* ── Animation Classes ── */
  163. .fade-in {
  164. animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  165. }
  166. .stagger-1 { animation-delay: 0.05s; opacity: 0; }
  167. .stagger-2 { animation-delay: 0.1s; opacity: 0; }
  168. .stagger-3 { animation-delay: 0.15s; opacity: 0; }
  169. .stagger-4 { animation-delay: 0.2s; opacity: 0; }
  170. .stagger-5 { animation-delay: 0.25s; opacity: 0; }
  171. @keyframes fadeIn {
  172. from { opacity: 0; transform: translateY(8px); }
  173. to { opacity: 1; transform: translateY(0); }
  174. }
  175. /* ── Premium Layout Utilities ── */
  176. .glass-panel {
  177. backdrop-blur: 16px;
  178. background-color: color-mix(in oklch, var(--card) 70%, transparent);
  179. border: 1px solid color-mix(in oklch, var(--border) 50%, transparent);
  180. box-shadow: var(--shadow-3d);
  181. }
  182. .paper-sheet {
  183. background-color: var(--card);
  184. border: 1px solid var(--border);
  185. box-shadow: var(--shadow-md);
  186. transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  187. transform-style: preserve-3d;
  188. }
  189. .paper-sheet:hover {
  190. box-shadow: var(--shadow-3d-hover);
  191. transform: translateY(-4px) scale(1.005);
  192. border-color: var(--primary);
  193. }
  194. /* ── ChatPanel Animations ── */
  195. /* Header sparkle glow pulse */
  196. @keyframes iconGlow {
  197. 0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  198. 50% { filter: drop-shadow(0 0 6px oklch(0.78 0.14 85 / 0.4)); }
  199. }
  200. .chat-icon-glow { animation: iconGlow 2s ease-in-out infinite; }
  201. /* Writing pen gentle bobbing */
  202. @keyframes iconWrite {
  203. 0%, 100% { transform: translateY(0) rotate(0deg); }
  204. 25% { transform: translateY(-1px) rotate(-3deg); }
  205. 75% { transform: translateY(1px) rotate(3deg); }
  206. }
  207. .chat-icon-write { animation: iconWrite 1.2s ease-in-out infinite; }
  208. /* Slow spin for revision/wrench */
  209. @keyframes spinSlow {
  210. from { transform: rotate(0deg); }
  211. to { transform: rotate(360deg); }
  212. }
  213. .chat-icon-spin-slow { animation: spinSlow 3s linear infinite; }
  214. /* Pop-in for success checkmark */
  215. @keyframes iconPop {
  216. 0% { transform: scale(0); opacity: 0; }
  217. 60% { transform: scale(1.2); }
  218. 100% { transform: scale(1); opacity: 1; }
  219. }
  220. .chat-icon-pop { animation: iconPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  221. /* Shake for trash icon hover */
  222. @keyframes shake {
  223. 0%, 100% { transform: translateX(0); }
  224. 25% { transform: translateX(-2px) rotate(-5deg); }
  225. 75% { transform: translateX(2px) rotate(5deg); }
  226. }
  227. /* Message slide-in from right (user) */
  228. @keyframes msgSlideRight {
  229. from { opacity: 0; transform: translateX(12px); }
  230. to { opacity: 1; transform: translateX(0); }
  231. }
  232. .chat-msg-user { animation: msgSlideRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  233. /* Message slide-in from left (assistant) */
  234. @keyframes msgSlideLeft {
  235. from { opacity: 0; transform: translateX(-12px); }
  236. to { opacity: 1; transform: translateX(0); }
  237. }
  238. .chat-msg-assistant { animation: msgSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  239. /* Thinking breathing glow */
  240. @keyframes thinkGlow {
  241. 0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.14 85 / 0); }
  242. 50% { box-shadow: 0 0 12px 2px oklch(0.78 0.14 85 / 0.15); }
  243. }
  244. .chat-thinking-glow { animation: thinkGlow 2s ease-in-out infinite; }
  245. /* Typing wave for dots */
  246. @keyframes typingWave {
  247. 0%, 60%, 100% { transform: translateY(0); }
  248. 30% { transform: translateY(-6px); }
  249. }
  250. .chat-typing-dot { animation: typingWave 1.4s ease-in-out infinite; }
  251. .chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
  252. .chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }
  253. /* Panel slide transition */
  254. .chat-panel-enter {
  255. transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1),
  256. opacity 200ms ease-out;
  257. }