/*
    forma-base.css — Element-level defaults: body typography, link colors and the focus ring.
*/

/* ── Typography defaults ── */
html,
body {
    font-family: var(--font-family);
}

body {
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-prose);
    color: var(--text-primary-color);
}

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

/* One focus ring for every control; :where() carries no specificity, so a component's inward ring outranks it. */
:where(:focus-visible) {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Under forced colors the ring is an outline in the system highlight. */
@media (forced-colors: active) {
    :where(:focus-visible) {
        outline: 2px solid Highlight;
        outline-offset: 2px;
    }
}

@media (hover: hover) {
    a:hover {
        color: var(--link-hover-color);
    }
}
