@tailwind base; @tailwind components; @tailwind utilities; @layer base { /* Dark (default) and light themes. Blues and whites only: brand blue #46AAE9, ice #BFE3FA, sky #7CC4F2, cobalt #3A86E8. Dark is a deep blue-black rather than pure black so long pages are easier on the eyes. */ :root, .dark { --background: 216 28% 7%; --foreground: 210 40% 98%; --card: 215 25% 10%; --card-foreground: 210 40% 98%; --popover: 215 25% 11%; --popover-foreground: 210 40% 98%; --primary: 203 79% 59%; --primary-foreground: 0 0% 100%; --secondary: 215 22% 14%; --secondary-foreground: 210 40% 98%; --muted: 215 22% 14%; --muted-foreground: 218 11% 62%; --accent: 215 22% 14%; --accent-foreground: 210 40% 98%; --destructive: 0 63% 45%; --destructive-foreground: 0 0% 100%; --border: 215 18% 17%; --input: 215 18% 20%; --ring: 203 79% 59%; --radius: 0.5rem; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3); --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4); --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4); /* brand palette (fixed in both themes) */ --brand: #46aae9; --ice: #bfe3fa; --sky: #7cc4f2; --cobalt: #3a86e8; /* theme-dependent text and surfaces */ --void: #0d1117; --bone: #f5f8fc; --ash: #8e97a6; --mist: #c3cad6; --link: #6fc0f5; --link-line: rgb(111 192 245 / 0.45); --accent-text: var(--sky); --logo-face: #ffffff; --code-bg: #0a0e14; --code-fg: #e6ebf2; --card-glow: rgb(70 170 233 / 0.18); /* track accents */ --t-claude: #7cc4f2; --t-chatgpt: #bfe3fa; --t-computer-use: #3a86e8; --t-ai-video: #46aae9; color-scheme: dark; } .light { --background: 214 50% 97%; --foreground: 216 50% 9%; --card: 0 0% 100%; --card-foreground: 216 50% 9%; --popover: 0 0% 100%; --popover-foreground: 216 50% 9%; --secondary: 214 35% 92%; --secondary-foreground: 216 50% 9%; --muted: 214 35% 92%; --muted-foreground: 215 14% 38%; --accent: 214 35% 92%; --accent-foreground: 216 50% 9%; --border: 214 28% 86%; --input: 214 28% 82%; --shadow-sm: 0 1px 2px 0 rgb(15 35 70 / 0.06); --shadow: 0 1px 3px 0 rgb(15 35 70 / 0.1), 0 1px 2px -1px rgb(15 35 70 / 0.1); --shadow-md: 0 4px 6px -1px rgb(15 35 70 / 0.1), 0 2px 4px -2px rgb(15 35 70 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(15 35 70 / 0.1), 0 4px 6px -4px rgb(15 35 70 / 0.1); --shadow-xl: 0 20px 25px -5px rgb(15 35 70 / 0.1), 0 8px 10px -6px rgb(15 35 70 / 0.1); --void: #f5f8fc; --bone: #0b1422; --ash: #556275; --mist: #2f3a4a; --link: #1565b8; --link-line: rgb(21 101 184 / 0.4); --accent-text: #1f74c2; --logo-face: #0b1422; --code-bg: #0d1420; --code-fg: #e6ebf2; --card-glow: rgb(58 134 232 / 0.16); --t-claude: #1d78c0; --t-chatgpt: #3f6690; --t-computer-use: #2a66cf; --t-ai-video: #1488cc; color-scheme: light; } * { @apply border-border; } html { background: hsl(var(--background)); scroll-padding-top: 6rem; } body { font-weight: 300; } :focus-visible { @apply outline-none ring-2 ring-ring ring-offset-2 ring-offset-background; } ::selection { @apply bg-primary/30 text-foreground; } } @layer components { /* The "AI Resource" wordmark with the PRO badge, kept from the original site */ .wordmark { @apply inline-flex items-center gap-2.5 whitespace-nowrap font-mark text-[20px] font-semibold tracking-[-0.02em]; } /* The flex gap (gap-2.5) spaces PRO from "AI Resource" the same as the mark from "AI" */ .pro-badge { @apply rounded-md bg-primary px-2 py-[3px] text-[11px] tracking-[0.02em] text-primary-foreground; box-shadow: 0 1px 2px rgb(70 170 233 / 0.25); } /* Inner pages start below the fixed header */ .page { @apply mx-auto max-w-[1416px] px-4 pb-28 pt-36 md:px-12 md:pt-44; } /* Small uppercase mono label with a glowing dot; colour comes from --tc */ .label { @apply flex items-center gap-3 font-mono text-[12.5px] font-medium uppercase tracking-[0.08em]; color: var(--tc, var(--accent-text)); } .label > i { @apply h-[7px] w-[7px] rounded-full bg-current; box-shadow: 0 0 14px currentColor; } .display-title { @apply font-display font-normal; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; } /* Filled brand pill and underlined text link */ .pill { @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; } .pill:hover { background: var(--cobalt); } .pill-sm { @apply px-5 py-3; } .ghost-link { @apply relative whitespace-nowrap pb-[5px] font-mono text-[12.5px] font-medium uppercase tracking-[0.07em] text-foreground; } .ghost-link::after { content: ""; @apply absolute inset-x-0 bottom-0 h-px bg-current; opacity: 0.6; transition: opacity 0.3s; } .ghost-link:hover::after { opacity: 1; } /* Links in running text always look like links: link colour plus an underline that fills in on hover */ .text-link { color: var(--link); text-decoration-line: underline; text-decoration-color: var(--link-line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color 0.2s, color 0.2s; } .text-link:hover { text-decoration-color: currentColor; } /* Tutorial article typography, layered on @tailwindcss/typography */ .tutorial-prose { @apply prose max-w-none; @apply prose-headings:scroll-mt-28 prose-headings:font-display prose-headings:font-normal prose-headings:tracking-[-0.03em]; @apply prose-h3:text-xl prose-strong:font-medium prose-strong:text-foreground; @apply prose-pre:m-0 prose-pre:bg-transparent prose-pre:p-0; font-size: 17.5px; line-height: 1.8; } .tutorial-prose p, .tutorial-prose li { color: var(--mist); } .tutorial-prose > p:first-child { @apply text-[clamp(19px,1.5vw,21px)] leading-relaxed text-foreground; } .tutorial-prose a:not(.not-prose a) { @apply text-link font-normal; } .tutorial-prose li::marker { color: var(--brand); } /* Each h2 opens a numbered section with a rule and a big index, so long pages read as chapters */ .tutorial-prose { counter-reset: section; } .tutorial-prose h2 { @apply relative mb-6 mt-20 border-t border-border pt-10 text-[clamp(28px,2.6vw,36px)] leading-tight; counter-increment: section; } .tutorial-prose h2::before { content: counter(section, decimal-leading-zero); @apply mb-3 block font-mono text-[12.5px] font-medium tracking-[0.12em]; color: var(--tc, var(--brand)); } .tutorial-prose h2::after { content: ""; @apply absolute left-0 top-[-1px] h-[2px] w-16; background: var(--tc, var(--brand)); } .tutorial-prose > h2:first-child { @apply mt-4; } .tutorial-prose :not(pre) > code { @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; } /* Fade-and-rise as blocks scroll into view (see components/reveal-on-scroll.tsx) */ .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0, 1); } .reveal.in { opacity: 1; transform: none; } @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } } } /* Share pill (2026-11-21), behavior in public/share.js */ .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); } /* Monochrome at the document root also covers SVG, video and CSS artwork without changing the positioning context of sticky or fixed controls. */ html { filter: grayscale(1); }