/**
 * base.css — Console element-level defaults
 *
 * Adapted from @sovereigns/ui-tokens' base.css. Depends on tokens.css for
 * variable values. Console's own styles.css already owns the top-level
 * html/body/#app rules (background, text color, font stack, min-height —
 * see its header comment), so this file does NOT redeclare those; it only
 * adds the generic resets ui-tokens ships that styles.css doesn't have yet
 * (button/input font inheritance, link color, mono-element font-family,
 * a visible focus ring). Safe to load before or after styles.css.
 */

* {
    box-sizing: border-box;
}

button {
    font: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

code,
pre,
kbd,
samp,
.font-mono {
    font-family: var(--font-mono);
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* Subtle focus outline using the accent — visible without being loud.
   Console's own password/text inputs already have a bespoke focus ring
   (box-shadow, see styles.css); this covers everything else (links,
   buttons, future components) so keyboard nav is never invisible. */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}
