index.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @import "tailwindcss";
  2. /* Instrument Serif for literary headings + DM Sans for clean UI */
  3. @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');
  4. @theme inline {
  5. --color-background: var(--background);
  6. --color-foreground: var(--foreground);
  7. --color-card: var(--card);
  8. --color-card-foreground: var(--card-foreground);
  9. --color-popover: var(--popover);
  10. --color-popover-foreground: var(--popover-foreground);
  11. --color-primary: var(--primary);
  12. --color-primary-foreground: var(--primary-foreground);
  13. --color-secondary: var(--secondary);
  14. --color-secondary-foreground: var(--secondary-foreground);
  15. --color-muted: var(--muted);
  16. --color-muted-foreground: var(--muted-foreground);
  17. --color-accent: var(--accent);
  18. --color-accent-foreground: var(--accent-foreground);
  19. --color-destructive: var(--destructive);
  20. --color-destructive-foreground: var(--destructive-foreground);
  21. --color-border: var(--border);
  22. --color-input: var(--input);
  23. --color-ring: var(--ring);
  24. --color-amber: var(--amber);
  25. --color-amber-foreground: var(--amber-foreground);
  26. --radius-sm: calc(var(--radius) - 4px);
  27. --radius-md: calc(var(--radius) - 2px);
  28. --radius-lg: var(--radius);
  29. --radius-xl: calc(var(--radius) + 4px);
  30. --font-serif: 'Instrument Serif', Georgia, serif;
  31. --font-sans: 'DM Sans', system-ui, sans-serif;
  32. --font-mono: 'JetBrains Mono', monospace;
  33. }
  34. /* ── Light: warm parchment ── */
  35. :root {
  36. --radius: 0.375rem;
  37. --background: oklch(0.97 0.008 80);
  38. --foreground: oklch(0.18 0.015 55);
  39. --card: oklch(0.99 0.005 80);
  40. --card-foreground: oklch(0.18 0.015 55);
  41. --popover: oklch(0.99 0.005 80);
  42. --popover-foreground: oklch(0.18 0.015 55);
  43. --primary: oklch(0.62 0.14 55);
  44. --primary-foreground: oklch(0.99 0.005 80);
  45. --secondary: oklch(0.93 0.01 80);
  46. --secondary-foreground: oklch(0.25 0.02 55);
  47. --muted: oklch(0.93 0.008 80);
  48. --muted-foreground: oklch(0.42 0.03 55);
  49. --accent: oklch(0.93 0.012 55);
  50. --accent-foreground: oklch(0.25 0.02 55);
  51. --destructive: oklch(0.55 0.2 25);
  52. --destructive-foreground: oklch(0.98 0 0);
  53. --border: oklch(0.82 0.015 75);
  54. --input: oklch(0.82 0.015 75);
  55. --ring: oklch(0.62 0.14 55);
  56. --amber: oklch(0.75 0.15 70);
  57. --amber-foreground: oklch(0.25 0.05 55);
  58. }
  59. /* ── Dark: neutral charcoal + amber accent ── */
  60. .dark {
  61. --background: #111111;
  62. --foreground: #e8e6e3;
  63. --card: #191919;
  64. --card-foreground: #e8e6e3;
  65. --popover: #191919;
  66. --popover-foreground: #e8e6e3;
  67. --primary: #d4a046;
  68. --primary-foreground: #111111;
  69. --secondary: #252525;
  70. --secondary-foreground: #d4d0cb;
  71. --muted: #252525;
  72. --muted-foreground: #a09a93;
  73. --accent: #2a2826;
  74. --accent-foreground: #d4d0cb;
  75. --destructive: #e5584f;
  76. --destructive-foreground: #ffffff;
  77. --border: #333333;
  78. --input: #2a2a2a;
  79. --ring: #d4a046;
  80. --amber: #d4a046;
  81. --amber-foreground: #111111;
  82. }
  83. body {
  84. font-family: var(--font-sans);
  85. font-size: 15px;
  86. line-height: 1.6;
  87. -webkit-font-smoothing: antialiased;
  88. -moz-osx-font-smoothing: grayscale;
  89. background-color: var(--background);
  90. color: var(--foreground);
  91. }
  92. /* Subtle grain texture */
  93. body::before {
  94. content: '';
  95. position: fixed;
  96. inset: 0;
  97. pointer-events: none;
  98. z-index: 50;
  99. opacity: 0.03;
  100. 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  101. }
  102. /* Serif headings */
  103. h1, h2, h3 {
  104. font-family: var(--font-serif);
  105. letter-spacing: -0.01em;
  106. }