@tailwind base; @tailwind components; @tailwind utilities; /* Plain black and white. Light by default, dark when the device asks for it. One system font. No animation. */ @layer base { :root { --background: 0 0% 100%; --foreground: 0 0% 7%; --card: 0 0% 100%; --card-foreground: 0 0% 7%; --popover: 0 0% 100%; --popover-foreground: 0 0% 7%; --primary-foreground: 0 0% 100%; --secondary: 0 0% 95%; --secondary-foreground: 0 0% 7%; --muted: 0 0% 95%; --muted-foreground: 0 0% 35%; --accent: 0 0% 94%; --accent-foreground: 0 0% 7%; --destructive: 0 70% 40%; --destructive-foreground: 0 0% 100%; --border: 0 0% 85%; --input: 0 0% 75%; --ring: 0 0% 7%; --radius: 0.375rem; --ash: #555555; --mist: #222222; --link: #111111; --soft: rgb(0 0 0 / 0.07); --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --font-display: var(--font-sans); --font-mark: var(--font-sans); --pm-share-accent: currentColor; --pm-share-line: currentColor; --pm-share-glow: transparent; --pm-share-glow-hover: transparent; color-scheme: light; } @media (prefers-color-scheme: dark) { :root { --background: 0 0% 7%; --foreground: 0 0% 95%; --card: 0 0% 9%; --card-foreground: 0 0% 95%; --popover: 0 0% 10%; --popover-foreground: 0 0% 95%; --primary-foreground: 0 0% 7%; --secondary: 0 0% 14%; --secondary-foreground: 0 0% 95%; --muted: 0 0% 14%; --muted-foreground: 0 0% 68%; --accent: 0 0% 15%; --accent-foreground: 0 0% 95%; --border: 0 0% 24%; --input: 0 0% 32%; --ring: 0 0% 95%; --ash: #aaaaaa; --mist: #dddddd; --link: #f2f2f2; --soft: rgb(255 255 255 / 0.1); color-scheme: dark; } } * { @apply border-border; } html { background: hsl(var(--background)); } body { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; } a { text-decoration-thickness: 1px; text-underline-offset: 3px; } :focus-visible { outline: 2px solid hsl(var(--foreground)); outline-offset: 2px; } } @layer components { /* Page column */ .page { @apply mx-auto w-full max-w-[720px] px-4 pb-20 pt-10 md:pt-14; } /* Kept for the sign-in and account pages */ .label { @apply text-sm font-semibold uppercase tracking-wide text-[var(--ash)]; } .label > i { display: none; } .display-title { @apply text-4xl font-bold leading-tight; } .ghost-link, .text-link { @apply underline; } .crumbs { @apply mb-6 text-[15px] text-[var(--ash)]; } .crumbs a { @apply underline; } /* Plain link lists on the home, area and field pages */ .plain-list { @apply my-4 list-none space-y-3 p-0; } .plain-list a { @apply font-semibold underline; } .plain-list p { @apply m-0 text-[16px] text-[var(--ash)]; } /* Lesson text, layered on @tailwindcss/typography */ .lesson { @apply prose max-w-none text-foreground; font-size: 18px; line-height: 1.7; --tw-prose-body: hsl(var(--foreground)); --tw-prose-headings: hsl(var(--foreground)); --tw-prose-links: hsl(var(--foreground)); --tw-prose-bold: hsl(var(--foreground)); --tw-prose-bullets: hsl(var(--foreground)); --tw-prose-counters: hsl(var(--foreground)); --tw-prose-quotes: hsl(var(--foreground)); --tw-prose-code: hsl(var(--foreground)); --tw-prose-th-borders: hsl(var(--border)); --tw-prose-td-borders: hsl(var(--border)); --tw-prose-hr: hsl(var(--border)); } .lesson h2 { @apply mt-12 text-2xl font-bold; } .lesson h3 { @apply text-xl font-bold; } .lesson :not(pre) > code { @apply rounded bg-[var(--soft)] px-1 py-0.5 font-normal before:content-none after:content-none; } .lesson pre { @apply rounded-md border border-border bg-[var(--soft)] text-foreground; } /* Inline SVG diagrams draw in currentColor so they follow light and dark */ .diagram svg { @apply block h-auto w-full; color: hsl(var(--foreground)); } .diagram .soft { fill: var(--soft); } }