@import "tailwindcss"; @import "tw-animate-css"; @import "shadcn/tailwind.css"; @import "react-lite-youtube-embed/dist/LiteYouTubeEmbed.css"; @plugin "@tailwindcss/typography"; @custom-variant dark (&:where(.dark *)); @theme inline { --font-sans: var(--font-inter); --font-sans--font-feature-settings: "rlig" 1, "calt" 0; --font-mono: var(--font-jetbrains-mono); --font-mono--font-feature-settings: "liga" 0; --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); --radius-xl: calc(var(--radius) + 4px); --radius-2xl: calc(var(--radius) + 8px); --radius-3xl: calc(var(--radius) + 12px); --radius-4xl: calc(var(--radius) + 16px); --color-background: var(--background); --color-foreground: var(--foreground); --color-card: var(--card); --color-card-foreground: var(--card-foreground); --color-popover: var(--popover); --color-popover-foreground: var(--popover-foreground); --color-primary: var(--primary); --color-primary-foreground: var(--primary-foreground); --color-secondary: var(--secondary); --color-secondary-foreground: var(--secondary-foreground); --color-muted: var(--muted); --color-muted-foreground: var(--muted-foreground); --color-accent: var(--accent); --color-accent-foreground: var(--accent-foreground); --color-destructive: var(--destructive); --color-destructive-foreground: var(--destructive-foreground); --color-border: var(--border); --color-input: var(--input); --color-ring: var(--ring); --color-chart-1: var(--chart-1); --color-chart-2: var(--chart-2); --color-chart-3: var(--chart-3); --color-chart-4: var(--chart-4); --color-chart-5: var(--chart-5); --color-sidebar: var(--sidebar); --color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-border: var(--sidebar-border); --color-sidebar-ring: var(--sidebar-ring); --color-surface: var(--surface); --color-surface-foreground: var(--surface-foreground); --color-code: var(--code); --color-code-foreground: var(--code-foreground); --color-code-highlight: var(--code-highlight); --color-code-number: var(--code-number); --color-selection: var(--selection); --color-selection-foreground: var(--selection-foreground); } :root { --radius: 0.625rem; --duration-exit: 150ms; --duration-enter: 210ms; --duration-move: 400ms; --background: oklch(1 0 0); --foreground: oklch(0.145 0 0); --card: oklch(1 0 0); --card-foreground: oklch(0.145 0 0); --popover: oklch(1 0 0); --popover-foreground: oklch(0.145 0 0); --primary: oklch(0.205 0 0); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.97 0 0); --secondary-foreground: oklch(0.205 0 0); --muted: oklch(0.97 0 0); --muted-foreground: oklch(0.556 0 0); --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.325); --destructive-foreground: oklch(0.97 0.01 17); --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); --chart-1: oklch(0.87 0 0); --chart-2: oklch(0.556 0 0); --chart-3: oklch(0.439 0 0); --chart-4: oklch(0.371 0 0); --chart-5: oklch(0.269 0 0); --sidebar: oklch(0.985 0 0); --sidebar-foreground: oklch(0.145 0 0); --sidebar-primary: oklch(0.205 0 0); --sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.97 0 0); --sidebar-accent-foreground: oklch(0.205 0 0); --sidebar-border: oklch(0.922 0 0); --sidebar-ring: oklch(0.708 0 0); --surface: oklch(0.98 0 0); --surface-foreground: var(--foreground); --code: var(--surface); --code-foreground: var(--surface-foreground); --code-highlight: oklch(0.96 0 0); --code-number: oklch(0.56 0 0); --selection: oklch(0.145 0 0); --selection-foreground: oklch(1 0 0); } @keyframes via-blur { 30% { filter: blur(3px); } } .dark { --background: oklch(0 0 0); --foreground: oklch(0.985 0 0); --card: oklch(0.205 0 0); --card-foreground: oklch(0.985 0 0); --popover: oklch(0.205 0 0); --popover-foreground: oklch(0.985 0 0); --primary: oklch(0.922 0 0); --primary-foreground: oklch(0.205 0 0); --secondary: oklch(0.269 0 0); --secondary-foreground: oklch(0.985 0 0); --muted: oklch(0.269 0 0); --muted-foreground: oklch(0.708 0 0); --accent: oklch(0.269 0 0); --accent-foreground: oklch(0.985 0 0); --destructive: oklch(0.704 0.191 22.216); --destructive-foreground: oklch(0.58 0.22 27); --border: oklch(1 0 0 / 10%); --input: oklch(1 0 0 / 15%); --ring: oklch(0.556 0 0); --chart-1: oklch(0.87 0 0); --chart-2: oklch(0.556 0 0); --chart-3: oklch(0.439 0 0); --chart-4: oklch(0.371 0 0); --chart-5: oklch(0.269 0 0); --sidebar: oklch(0.205 0 0); --sidebar-foreground: oklch(0.985 0 0); --sidebar-primary: oklch(0.488 0.243 264.376); --sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.269 0 0); --sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-border: oklch(1 0 0 / 10%); --sidebar-ring: oklch(0.556 0 0); --surface: oklch(0.2 0 0); --surface-foreground: oklch(0.708 0 0); --code: var(--surface); --code-foreground: var(--surface-foreground); --code-highlight: oklch(0.27 0 0); --code-number: oklch(0.72 0 0); --selection: oklch(0.922 0 0); --selection-foreground: oklch(0.205 0 0); } @theme { --animate-wave: wave 5s ease 1s infinite; --animate-marquee: marquee 30s linear infinite; @keyframes wave { 0%, 30%, 100% { transform: rotate(0deg); } 5% { transform: rotate(14deg); } 10% { transform: rotate(-8deg); } 15% { transform: rotate(14deg); } 20% { transform: rotate(-4deg); } 25% { transform: rotate(10deg); } } @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--gap))); } } } @layer base { * { @apply outline-ring/50; } body { @apply bg-background text-foreground; } ::selection { @apply bg-selection text-selection-foreground; } /* https://ui.shadcn.com/docs/components/button#cursor */ button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; } /* Disable the default cross-fade on root (header/footer/chrome stay static) */ ::view-transition-old(root), ::view-transition-new(root) { animation: none; } ::view-transition-old(.fade-out) { --tw-exit-blur: 3px; --tw-exit-opacity: 0; animation: var(--duration-exit) ease-in forwards exit; } ::view-transition-new(.fade-in) { --tw-enter-blur: 3px; --tw-enter-opacity: 0; animation: var(--duration-enter) ease-out var(--duration-exit) both enter; } ::view-transition-old(.slide-down) { --tw-exit-opacity: 0; --tw-exit-translate-y: 10px; animation: var(--duration-exit) ease-out both exit; } ::view-transition-new(.slide-up) { --tw-enter-opacity: 0; --tw-enter-translate-y: 10px; animation: var(--duration-enter) ease-in var(--duration-exit) both enter; } ::view-transition-new(.slide-from-right) { --tw-enter-opacity: 0; --tw-enter-translate-x: 60px; animation: var(--duration-move) ease-in-out both enter; } ::view-transition-old(.slide-to-left) { --tw-exit-opacity: 0; --tw-exit-translate-x: -60px; animation: var(--duration-exit) ease-in both exit; } ::view-transition-new(.slide-from-left) { --tw-enter-opacity: 0; --tw-enter-translate-x: -60px; animation: var(--duration-move) ease-in-out both enter; } ::view-transition-old(.slide-to-right) { --tw-exit-opacity: 0; --tw-exit-translate-x: 60px; animation: var(--duration-exit) ease-in both exit; } ::view-transition-old(.nav-forward) { --tw-exit-opacity: 0; --tw-exit-translate-x: -60px; animation: var(--duration-exit) ease-in both exit; } ::view-transition-new(.nav-forward) { --tw-enter-opacity: 0; --tw-enter-translate-x: 60px; animation: var(--duration-move) ease-in-out both enter; } ::view-transition-old(.nav-back) { --tw-exit-opacity: 0; --tw-exit-translate-x: 60px; animation: var(--duration-exit) ease-in both exit; } ::view-transition-new(.nav-back) { --tw-enter-opacity: 0; --tw-enter-translate-x: -60px; animation: var(--duration-move) ease-in-out both enter; } ::view-transition-group(.morph) { animation-duration: var(--duration-move); } ::view-transition-image-pair(.morph) { animation-name: via-blur; } ::view-transition-group(.text-morph) { animation-duration: var(--duration-move); } ::view-transition-old(.text-morph) { display: none; } ::view-transition-new(.text-morph) { animation: none; object-fit: none; object-position: left top; } ::view-transition-old(.scale-out) { --tw-exit-opacity: 0; --tw-exit-scale: 85%; animation: var(--duration-exit) ease-in exit; } ::view-transition-new(.scale-in) { --tw-enter-opacity: 0; --tw-enter-scale: 85%; animation: var(--duration-enter) ease-out var(--duration-exit) both enter; } ::view-transition-group(persistent-nav), ::view-transition-group(persistent-footer) { animation: none; z-index: 100; } ::view-transition-old(persistent-nav) { display: none; } ::view-transition-new(persistent-nav), ::view-transition-old(persistent-footer), ::view-transition-new(persistent-footer) { animation: none; } @media (prefers-reduced-motion: reduce) { ::view-transition-old(*), ::view-transition-new(*), ::view-transition-group(*) { animation-delay: 0s !important; animation-duration: 0s !important; } } } /* Prose */ .markdown { @apply prose prose-neutral dark:prose-invert prose-sm prose-hr:border-foreground/20 prose-headings:font-semibold prose-headings:text-primary prose-headings:tracking-tight prose-p:text-foreground/90 prose-strong:text-primary prose-li:text-foreground/80 prose-a:text-primary prose-a:font-medium prose-a:underline prose-a:underline-offset-4 prose-blockquote:[&_p]:text-foreground/75 prose-blockquote:*:before:content-none prose-blockquote:*:after:content-none prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-[0.9em] prose-code:before:content-none prose-code:after:content-none max-w-none [&_table]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)]; }