:root { color-scheme: light dark; /* White graph paper; blue ballpoint for everything drawn, red pen for what matters most. */ --paper: oklch(0.985 0.004 250); --grid: oklch(0.925 0.02 245); --grid-major: oklch(0.875 0.032 245); --ink: oklch(0.43 0.15 266); --text: oklch(0.29 0.08 266); --quiet: oklch(0.47 0.07 262); --pencil: oklch(0.8 0.025 255); --red: oklch(0.54 0.19 27); /* Your machine's side of the figure: its tunnel, its name, its label. Text needs the deeper colour; lines can be brighter. */ --orange: oklch(0.56 0.14 50); --orange-line: oklch(0.64 0.165 52); /* A second home's side, between the orange and the red pen. */ --rust: oklch(0.54 0.165 38); --rust-line: oklch(0.6 0.18 38); --focus: var(--ink); --font: 'B612', 'B612 fallback', system-ui, sans-serif; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; /* 1.25 steps, the largest fluid. */ --t-xs: 0.75rem; --t-sm: 0.8125rem; --t-base: 1rem; --t-lg: 1.25rem; --t-xl: 1.5625rem; --t-display: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem); /* One square of the paper is --s-5. */ --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2.25rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem; --page: 72rem; --gutter: clamp(1rem, 0.4rem + 3vw, 3rem); --ease-out: cubic-bezier(0.25, 1, 0.5, 1); } @media (prefers-color-scheme: dark) { :root { /* Cyanotype: Prussian-blue paper, chalky off-white ink, coral for the red pen. */ --paper: oklch(0.31 0.08 257); --grid: oklch(0.365 0.078 254); --grid-major: oklch(0.42 0.08 252); --ink: oklch(0.93 0.02 235); --text: oklch(0.95 0.014 235); --quiet: oklch(0.83 0.04 240); --pencil: oklch(0.52 0.07 250); --red: oklch(0.79 0.12 35); --orange: oklch(0.79 0.14 60); --orange-line: var(--orange); --rust: oklch(0.72 0.16 42); --rust-line: var(--rust); } } /* Arial resized to B612's widths and line metrics, so text doesn't jump when B612 arrives. */ @font-face { font-family: 'B612 fallback'; src: local('Arial'); size-adjust: 110%; ascent-override: 87%; descent-override: 23%; line-gap-override: 0%; } *, *::before, *::after { box-sizing: border-box; } html { background-color: var(--paper); /* Squares of 24px, a stronger line every fifth, centred on the page so the column's edges sit on lines. */ background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: 0 0, calc(50% + 60px) 0, 0 0, calc(50% + 12px) 0; color: var(--text); font-family: var(--font); font-size: 100%; line-height: 1.5; font-kerning: normal; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } @media (prefers-color-scheme: dark) { html { line-height: 1.58; letter-spacing: 0.012em; } } body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; } h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; } h1, h2, h3 { text-wrap: balance; font-weight: 700; } p { text-wrap: pretty; } a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; } a:hover { text-decoration-thickness: 2px; } :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; } code, kbd, samp, pre { font-family: var(--mono); font-size: 0.9375em; font-variant-ligatures: none; } button { font: inherit; color: inherit; } ::selection { background: color-mix(in oklch, var(--ink) 22%, transparent); } /* Drafting lettering: small tracked capitals. */ .label { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; } .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }