@import './tokens.css'; /* Self-hosted faces. The first viewport requests nothing from another host. */ @import './fonts.css'; @layer base { *, *::before, *::after { box-sizing: border-box; } html { -webkit-text-size-adjust: 100%; } body { margin: 0; min-height: 100dvh; background-color: var(--dr-surface-base); color: var(--dr-text-primary); font-family: var(--dr-font-body); /* Inherited, so a heading styled in a component takes the same width as one styled here. Only Cabin carries a width axis, and the other faces pin theirs, so this reaches chrome and nothing else. */ font-stretch: var(--dr-font-stretch-heading); font-size: var(--dr-text-base); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } h1, h2, h3, h4, h5, h6 { font-family: var(--dr-font-heading); font-weight: 600; letter-spacing: 0.01em; color: var(--dr-heading); text-wrap: balance; } p { text-wrap: pretty; } a { color: var(--dr-text-link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dr-transition-fast); } a:hover { color: var(--dr-text-link-hover); } /* Browser surfaces belong to the design system too. */ ::selection { background: var(--dr-editor-selection-bg); color: var(--dr-text-primary); } :focus-visible { outline: var(--dr-focus-ring); outline-offset: var(--dr-focus-ring-offset); } /* The caret is a machined part: warm gold on dark, dark gold in Safe Mode. */ * { caret-color: var(--dr-cursor); } * { scrollbar-color: var(--dr-scrollbar-thumb) transparent; scrollbar-width: thin; } ::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--dr-scrollbar-thumb); border: 3px solid var(--dr-surface-base); border-radius: var(--dr-radius-sm); } ::-webkit-scrollbar-thumb:hover { background: var(--dr-scrollbar-thumb-hover); } /* Numerals in readouts line up, always. */ .tnum { font-family: var(--dr-font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; } /* An uppercase label in the chrome voice. It names a thing, and it never decorates a heading. */ .label { font-family: var(--dr-font-heading); font-weight: 600; font-size: var(--dr-text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dr-text-secondary); } .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } /* Reduced motion cuts spatial travel while keeping non-spatial colour cooling. */ *:not(.heat-sent, .heat-cooling), *:not(.mark)::before, *:not(.mark)::after { transition-duration: 0.001ms !important; } } }