Branchwell

AI Resource Pro / website · airesourcepro.com / src / app / globals.css

1@tailwind base;
2@tailwind components;
3@tailwind utilities;
4
5@layer base {
6 /* Dark (default) and light themes. Blues and whites only: brand blue #46AAE9, ice #BFE3FA, sky #7CC4F2, cobalt #3A86E8.
7 Dark is a deep blue-black rather than pure black so long pages are easier on the eyes. */
8 :root,
9 .dark {
10 --background: 216 28% 7%;
11 --foreground: 210 40% 98%;
12 --card: 215 25% 10%;
13 --card-foreground: 210 40% 98%;
14 --popover: 215 25% 11%;
15 --popover-foreground: 210 40% 98%;
16 --primary: 203 79% 59%;
17 --primary-foreground: 0 0% 100%;
18 --secondary: 215 22% 14%;
19 --secondary-foreground: 210 40% 98%;
20 --muted: 215 22% 14%;
21 --muted-foreground: 218 11% 62%;
22 --accent: 215 22% 14%;
23 --accent-foreground: 210 40% 98%;
24 --destructive: 0 63% 45%;
25 --destructive-foreground: 0 0% 100%;
26 --border: 215 18% 17%;
27 --input: 215 18% 20%;
28 --ring: 203 79% 59%;
29 --radius: 0.5rem;
30 --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
31 --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
32 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
33 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
34 --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
35
36 /* brand palette (fixed in both themes) */
37 --brand: #46aae9;
38 --ice: #bfe3fa;
39 --sky: #7cc4f2;
40 --cobalt: #3a86e8;
41
42 /* theme-dependent text and surfaces */
43 --void: #0d1117;
44 --bone: #f5f8fc;
45 --ash: #8e97a6;
46 --mist: #c3cad6;
47 --link: #6fc0f5;
48 --link-line: rgb(111 192 245 / 0.45);
49 --accent-text: var(--sky);
50 --logo-face: #ffffff;
51 --code-bg: #0a0e14;
52 --code-fg: #e6ebf2;
53 --card-glow: rgb(70 170 233 / 0.18);
54
55 /* track accents */
56 --t-claude: #7cc4f2;
57 --t-chatgpt: #bfe3fa;
58 --t-computer-use: #3a86e8;
59 --t-ai-video: #46aae9;
60 color-scheme: dark;
61 }
62
63 .light {
64 --background: 214 50% 97%;
65 --foreground: 216 50% 9%;
66 --card: 0 0% 100%;
67 --card-foreground: 216 50% 9%;
68 --popover: 0 0% 100%;
69 --popover-foreground: 216 50% 9%;
70 --secondary: 214 35% 92%;
71 --secondary-foreground: 216 50% 9%;
72 --muted: 214 35% 92%;
73 --muted-foreground: 215 14% 38%;
74 --accent: 214 35% 92%;
75 --accent-foreground: 216 50% 9%;
76 --border: 214 28% 86%;
77 --input: 214 28% 82%;
78 --shadow-sm: 0 1px 2px 0 rgb(15 35 70 / 0.06);
79 --shadow: 0 1px 3px 0 rgb(15 35 70 / 0.1), 0 1px 2px -1px rgb(15 35 70 / 0.1);
80 --shadow-md: 0 4px 6px -1px rgb(15 35 70 / 0.1), 0 2px 4px -2px rgb(15 35 70 / 0.1);
81 --shadow-lg: 0 10px 15px -3px rgb(15 35 70 / 0.1), 0 4px 6px -4px rgb(15 35 70 / 0.1);
82 --shadow-xl: 0 20px 25px -5px rgb(15 35 70 / 0.1), 0 8px 10px -6px rgb(15 35 70 / 0.1);
83
84 --void: #f5f8fc;
85 --bone: #0b1422;
86 --ash: #556275;
87 --mist: #2f3a4a;
88 --link: #1565b8;
89 --link-line: rgb(21 101 184 / 0.4);
90 --accent-text: #1f74c2;
91 --logo-face: #0b1422;
92 --code-bg: #0d1420;
93 --code-fg: #e6ebf2;
94 --card-glow: rgb(58 134 232 / 0.16);
95
96 --t-claude: #1d78c0;
97 --t-chatgpt: #3f6690;
98 --t-computer-use: #2a66cf;
99 --t-ai-video: #1488cc;
100 color-scheme: light;
101 }
102
103 * {
104 @apply border-border;
105 }
106
107 html {
108 background: hsl(var(--background));
109 scroll-padding-top: 6rem;
110 }
111
112 body {
113 font-weight: 300;
114 }
115
116 :focus-visible {
117 @apply outline-none ring-2 ring-ring ring-offset-2 ring-offset-background;
118 }
119
120 ::selection {
121 @apply bg-primary/30 text-foreground;
122 }
123}
124
125@layer components {
126 /* The "AI Resource" wordmark with the PRO badge, kept from the original site */
127 .wordmark {
128 @apply inline-flex items-center gap-2.5 whitespace-nowrap font-mark text-[20px] font-semibold tracking-[-0.02em];
129 }
130 /* The flex gap (gap-2.5) spaces PRO from "AI Resource" the same as the mark from "AI" */
131 .pro-badge {
132 @apply rounded-md bg-primary px-2 py-[3px] text-[11px] tracking-[0.02em] text-primary-foreground;
133 box-shadow: 0 1px 2px rgb(70 170 233 / 0.25);
134 }
135
136 /* Inner pages start below the fixed header */
137 .page {
138 @apply mx-auto max-w-[1416px] px-4 pb-28 pt-36 md:px-12 md:pt-44;
139 }
140
141 /* Small uppercase mono label with a glowing dot; colour comes from --tc */
142 .label {
143 @apply flex items-center gap-3 font-mono text-[12.5px] font-medium uppercase tracking-[0.08em];
144 color: var(--tc, var(--accent-text));
145 }
146 .label > i {
147 @apply h-[7px] w-[7px] rounded-full bg-current;
148 box-shadow: 0 0 14px currentColor;
149 }
150
151 .display-title {
152 @apply font-display font-normal;
153 letter-spacing: -0.045em;
154 line-height: 0.95;
155 text-wrap: balance;
156 }
157
158 /* Filled brand pill and underlined text link */
159 .pill {
160 @apply inline-flex items-center gap-2.5 whitespace-nowrap rounded-full bg-primary px-6 py-4 font-mono text-[12.5px] font-semibold uppercase tracking-[0.07em] text-primary-foreground transition-colors;
161 }
162 .pill:hover {
163 background: var(--cobalt);
164 }
165 .pill-sm {
166 @apply px-5 py-3;
167 }
168 .ghost-link {
169 @apply relative whitespace-nowrap pb-[5px] font-mono text-[12.5px] font-medium uppercase tracking-[0.07em] text-foreground;
170 }
171 .ghost-link::after {
172 content: "";
173 @apply absolute inset-x-0 bottom-0 h-px bg-current;
174 opacity: 0.6;
175 transition: opacity 0.3s;
176 }
177 .ghost-link:hover::after {
178 opacity: 1;
179 }
180
181 /* Links in running text always look like links: link colour plus an underline that fills in on hover */
182 .text-link {
183 color: var(--link);
184 text-decoration-line: underline;
185 text-decoration-color: var(--link-line);
186 text-decoration-thickness: 1.5px;
187 text-underline-offset: 4px;
188 transition: text-decoration-color 0.2s, color 0.2s;
189 }
190 .text-link:hover {
191 text-decoration-color: currentColor;
192 }
193
194 /* Tutorial article typography, layered on @tailwindcss/typography */
195 .tutorial-prose {
196 @apply prose max-w-none;
197 @apply prose-headings:scroll-mt-28 prose-headings:font-display prose-headings:font-normal prose-headings:tracking-[-0.03em];
198 @apply prose-h3:text-xl prose-strong:font-medium prose-strong:text-foreground;
199 @apply prose-pre:m-0 prose-pre:bg-transparent prose-pre:p-0;
200 font-size: 17.5px;
201 line-height: 1.8;
202 }
203 .tutorial-prose p,
204 .tutorial-prose li {
205 color: var(--mist);
206 }
207 .tutorial-prose > p:first-child {
208 @apply text-[clamp(19px,1.5vw,21px)] leading-relaxed text-foreground;
209 }
210 .tutorial-prose a:not(.not-prose a) {
211 @apply text-link font-normal;
212 }
213 .tutorial-prose li::marker {
214 color: var(--brand);
215 }
216
217 /* Each h2 opens a numbered section with a rule and a big index, so long pages read as chapters */
218 .tutorial-prose {
219 counter-reset: section;
220 }
221 .tutorial-prose h2 {
222 @apply relative mb-6 mt-20 border-t border-border pt-10 text-[clamp(28px,2.6vw,36px)] leading-tight;
223 counter-increment: section;
224 }
225 .tutorial-prose h2::before {
226 content: counter(section, decimal-leading-zero);
227 @apply mb-3 block font-mono text-[12.5px] font-medium tracking-[0.12em];
228 color: var(--tc, var(--brand));
229 }
230 .tutorial-prose h2::after {
231 content: "";
232 @apply absolute left-0 top-[-1px] h-[2px] w-16;
233 background: var(--tc, var(--brand));
234 }
235 .tutorial-prose > h2:first-child {
236 @apply mt-4;
237 }
238
239 .tutorial-prose :not(pre) > code {
240 @apply rounded bg-foreground/10 px-1.5 py-0.5 font-mono text-[0.85em] font-normal text-foreground before:content-none after:content-none;
241 }
242
243 /* Fade-and-rise as blocks scroll into view (see components/reveal-on-scroll.tsx) */
244 .reveal {
245 opacity: 0;
246 transform: translateY(18px);
247 transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0, 1);
248 }
249 .reveal.in {
250 opacity: 1;
251 transform: none;
252 }
253 @media (prefers-reduced-motion: reduce) {
254 .reveal {
255 opacity: 1;
256 transform: none;
257 transition: none;
258 }
259 }
260}
261
262/* Share pill (2026-11-21), behavior in public/share.js */
263.pm-share-btn.airp-share { --pm-share-accent: var(--brand); --pm-share-line: rgb(70 170 233 / 0.6); --pm-share-glow: rgb(70 170 233 / 0.22); --pm-share-glow-hover: rgb(70 170 233 / 0.4); color: hsl(var(--foreground)); background: hsl(var(--background) / 0.6); }
264
265/* Monochrome at the document root also covers SVG, video and CSS artwork
266 without changing the positioning context of sticky or fixed controls. */
267html { filter: grayscale(1); }