@import 'tailwindcss';
@import "tw-animate-css";
@import "shadcn-svelte/tailwind.css";
@import "@fontsource-variable/instrument-sans/wdth.css";
@import "@fontsource-variable/jetbrains-mono";
@custom-variant dark (&:is(.dark *));
:root {
--app-sans: 'Instrument Sans Variable', ui-sans-serif, system-ui, sans-serif;
--app-display: 'Instrument Sans Variable', ui-sans-serif, system-ui, sans-serif;
--app-display-stretch: 88%;
--app-mono: 'JetBrains Mono Variable', ui-monospace, monospace;
--background: #ffffff;
--foreground: #13285c;
--card: #ffffff;
--card-foreground: #13285c;
--popover: #ffffff;
--popover-foreground: #13285c;
--primary: #1d4ed8;
--primary-foreground: #ffffff;
--secondary: #eaf1fd;
--secondary-foreground: #13285c;
--muted: #eaf1fd;
--muted-foreground: #4a5b7c;
--accent: #eaf1fd;
--accent-foreground: #13285c;
--destructive: oklch(0.577 0.245 27.325);
--border: #d6e2f7;
--input: #d6e2f7;
--ring: #3b82f6;
--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);
--radius: 0.625rem;
--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);
}
.dark {
--background: oklch(0.145 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);
--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);
}
@theme inline {
--font-sans: var(--app-sans);
--font-display: var(--app-display);
--font-mono: var(--app-mono);
/* Motion: enter fast and settle (snappy), exit faster (exit). Hovers 150ms, enters 200ms, exits 150ms. */
--ease-snappy: cubic-bezier(0.2, 0, 0, 1);
--ease-exit: cubic-bezier(0.4, 0, 1, 1);
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card);
--color-foreground: var(--foreground);
--color-background: var(--background);
--radius-sm: calc(var(--radius) * 0.6);
--radius-md: calc(var(--radius) * 0.8);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) * 1.4);
--radius-2xl: calc(var(--radius) * 1.8);
--radius-3xl: calc(var(--radius) * 2.2);
--radius-4xl: calc(var(--radius) * 2.6);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
th {
font-weight: inherit;
}
/* The site navbar is fixed and 4rem tall; keep anchor targets out from under it. */
html {
scroll-padding-top: 4rem;
}
body {
@apply bg-background text-foreground;
}
@media (prefers-reduced-motion: reduce) {
*,
::before,
::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
transition-duration: 1ms !important;
}
}
html {
@apply font-sans;
font-kerning: normal;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
/* Type scale: tracking tightens as size grows; narrowed display sizes get gentler negative tracking so counters don't close up. */
@utility type-display {
font-family: var(--font-display);
font-stretch: var(--app-display-stretch);
font-weight: 560;
font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.5rem);
line-height: 0.98;
letter-spacing: -0.022em;
text-wrap: balance;
}
@utility type-title {
font-family: var(--font-display);
font-stretch: var(--app-display-stretch);
font-weight: 560;
font-size: clamp(1.875rem, 1.45rem + 1.4vw, 2.5rem);
line-height: 1.05;
letter-spacing: -0.018em;
text-wrap: balance;
}
@utility type-figure {
font-family: var(--font-display);
font-weight: 560;
font-size: 2rem;
line-height: 1.1;
letter-spacing: -0.015em;
font-variant-numeric: tabular-nums;
}
@utility type-lead {
font-size: 1.1875rem;
line-height: 1.55;
letter-spacing: -0.003em;
text-wrap: pretty;
}
@utility type-heading {
font-size: 1.0625rem;
font-weight: 560;
line-height: 1.4;
letter-spacing: -0.005em;
text-wrap: balance;
}
@utility type-body {
font-size: 1rem;
line-height: 1.6;
text-wrap: pretty;
}
@utility type-wordmark {
font-family: var(--font-display);
font-stretch: var(--app-display-stretch);
font-weight: 600;
font-size: clamp(5rem, 1rem + 19vw, 19rem);
line-height: 0.78;
letter-spacing: -0.045em;
}
@utility type-small {
font-size: 0.875rem;
line-height: 1.25rem;
letter-spacing: 0.002em;
text-wrap: pretty;
}
@utility type-nav {
font-size: 0.875rem;
font-weight: 400;
line-height: 1.25rem;
letter-spacing: 0.002em;
}
@utility type-brand {
font-family: var(--font-display);
font-size: 1.125rem;
font-weight: 600;
line-height: 1.75rem;
letter-spacing: -0.012em;
}
@utility type-mark {
font-family: var(--font-mono);
font-size: 0.875em;
font-weight: 500;
}
/* AsciiOcean's 8x15px cell grid is sized against this; change both together. */
@utility type-code {
font-family: var(--font-mono);
font-size: 0.8125rem;
line-height: 1.7;
font-variant-ligatures: none;
}
/* Segmented options are 30 px tall inside a 36 px control; their tap area covers the control's full height. */
fieldset > label:has(> input.sr-only) {
position: relative;
}
fieldset > label:has(> input.sr-only)::after {
content: '';
position: absolute;
inset: -3px -1px;
}
/* Small links and chips keep their drawn size but get a tap area of at least 32 px. */
@utility tap-target {
position: relative;
&::after {
content: '';
position: absolute;
inset: -7px -2px;
}
}
/* Protected paths on the caisson map: asks first is slate hatching, never edited is red hatching. */
@utility hatch-ask {
background-image: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--muted-foreground) 40%, transparent) 0 1px, transparent 1px 5px);
}
@utility hatch-never {
background-image: repeating-linear-gradient(-45deg, color-mix(in oklab, var(--destructive) 55%, transparent) 0 1px, transparent 1px 5px);
}
/* Labels inside the caisson repository map, where a cell can be a few characters wide. */
@utility type-cell {
font-family: var(--font-mono);
font-size: 0.6875rem;
line-height: 1rem;
font-variant-ligatures: none;
}
@utility type-ascii {
font-family: var(--font-mono);
font-size: 13px;
line-height: 15px;
}
/* Error-page drawings scale with the viewport so the widest scene (about 90 columns) always fits the content width. */
@utility type-scene {
font-family: var(--font-mono);
font-size: clamp(6px, 1.45vw, 22px);
line-height: 1.1;
}
@utility type-ui {
font-size: 0.875rem;
font-weight: 500;
line-height: 1.25rem;
letter-spacing: 0.002em;
text-wrap: pretty;
}
/* Segmented options are 30 px tall inside a 36 px control; their tap area covers the control's full height. */
fieldset > label:has(> input.sr-only) {
position: relative;
}
fieldset > label:has(> input.sr-only)::after {
content: '';
position: absolute;
inset: -3px -1px;
}
/* Small links and chips keep their drawn size but get a tap area of at least 32 px. */
@utility tap-target {
position: relative;
&::after {
content: '';
position: absolute;
inset: -7px -2px;
}
}
/* Team portraits drawn in ASCII. Cells run about 1.9 times taller than wide, the ratio scripts/ascii-portrait.py samples at. */
@utility type-portrait {
font-family: var(--font-mono);
font-size: 4.6px;
line-height: 5.26px;
font-variant-ligatures: none;
}