/* Global base styles. Tokens and fonts are imported before this file. */ :root { color: var(--color-text); font-family: var(--font-text); font-size: 100%; font-feature-settings: "cv11" 1, "ss01" 0; line-height: var(--line-height-body); background-color: var(--color-canvas); color-scheme: dark; font-synthesis: none; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; accent-color: var(--color-action); scrollbar-color: var(--color-border-hover) transparent; } *, *::before, *::after { box-sizing: border-box; } /* Sticky and fixed chrome must not hide the target of an in-page jump or of * a programmatic scroll into view. */ html { scroll-padding-block: calc(var(--header-height) + var(--chrome-inset) * 2 + var(--space-2)) var(--space-4); } /* The candidate cabinet has a bottom tab bar below 1024px. */ @media (width < 64rem) { html { scroll-padding-bottom: 5rem; } } body { min-width: 20rem; min-height: 100vh; margin: 0; font-size: var(--font-size-m); background-color: var(--color-canvas); } ::selection { color: var(--color-on-accent); background: var(--color-accent); } h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; } /* Headings speak in JetBrains Mono, the voice of the product. Paragraphs, * meta, and form text stay in Inter: long mono text tires the eye. */ h1, h2, h3, h4 { font-family: var(--font-mono); font-weight: var(--font-weight-medium); letter-spacing: -0.01em; line-height: var(--line-height-snug); text-wrap: balance; } strong, b { font-weight: var(--font-weight-bold); } code, kbd, samp { font-family: var(--font-mono); } button, input, select, textarea { font: inherit; color: inherit; } img, svg { display: block; max-width: 100%; } hr { height: 0; margin: 0; border: 0; border-top: var(--line-thin) solid var(--color-divider); } /* * Native form controls. Screens style their fields with module classes; these * element rules give every field the same dark capsule and padding. The html * prefix and the :not() list give them the specificity (0,1,2): above a * module rule such as ".field input" or ".input", below a state rule such as * ".field input[aria-invalid]" or ".input:focus-visible". Borders stay with * the modules, which use --color-border-strong and the danger color. */ html :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select) { min-height: var(--control-height); padding-inline: var(--space-4); border-radius: var(--radius-pill); color: var(--color-text); background-color: var(--color-surface); } html textarea:not([hidden]) { padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); color: var(--color-text); background-color: var(--color-surface); } /* A drawn chevron replaces the light native arrow. */ html select:not([multiple]) { max-width: 100%; padding-inline-end: var(--space-7); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%), linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%); background-position: right 1.35rem center, right 1rem center; background-repeat: no-repeat; background-size: 0.35rem 0.35rem, 0.35rem 0.35rem; } select option { color: var(--color-text); background-color: var(--color-surface-elevated); } :is(input, textarea)::placeholder { color: var(--color-text-muted); opacity: 1; } :is(input, select, textarea):hover:not([readonly], :disabled, :focus, [aria-invalid="true"]) { border-color: var(--color-text-secondary); } input[type="checkbox"], input[type="radio"] { width: 1.125rem; height: 1.125rem; flex: none; accent-color: var(--color-action); } /* A read-only field during a pending request stays readable but quiet. */ :is(input, textarea)[readonly] { color: var(--color-text-secondary); } :is(input, select, textarea, button):disabled { cursor: not-allowed; opacity: 0.55; } details > summary { cursor: pointer; } /* One focus indicator for every interactive element. */ :focus-visible { outline: var(--focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--focus-ring-offset); } :focus:not(:focus-visible) { outline: none; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }