/* Element defaults. Nothing here knows about a component. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cuc-bg);
    color: var(--cuc-text);
    font-family: var(--cuc-font);
    font-size: var(--cuc-text-base);
    line-height: var(--cuc-leading);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0 0 var(--cuc-space-4);
    line-height: var(--cuc-leading-tight);
    font-weight: 700;
}

h1 { font-size: var(--cuc-text-hero); }
h2 { font-size: var(--cuc-text-3xl); }
h3 { font-size: var(--cuc-text-xl); }

p { margin: 0 0 var(--cuc-space-4); color: var(--cuc-muted); }

a { color: var(--cuc-primary); text-decoration: none; transition: color var(--cuc-transition); }
a:hover { color: var(--cuc-primary-hover); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

/* Styled rather than removed. A dark theme with invisible focus rings is
   unusable by keyboard, and this is the cheapest accessibility decision in the
   whole front-end. */
:focus-visible {
    outline: 2px solid var(--cuc-primary);
    outline-offset: 3px;
    border-radius: var(--cuc-radius-sm);
}

.cuc-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: var(--cuc-space-3) var(--cuc-space-4);
    background: var(--cuc-primary);
    color: var(--cuc-primary-ink);
    z-index: 100;
}
.cuc-skip:focus { left: var(--cuc-space-4); top: var(--cuc-space-4); }

.cuc-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
