@layer theme, base, components, utilities;
@layer base {
/*! cc-app-theme: base.css, element defaults in the theme's colors */
/* Apps link it from the Theme Manager (/kit/css/base.css, CONTRACT.md "Linking the kit and a
 * theme"), which serves it inside the base layer, after the theme's tokens.css. */

html {
  background-color: var(--cc-page);
  color: var(--cc-fg);
  font-family: var(--cc-font-sans);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cc-page);
  color: var(--cc-fg);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--cc-heading);
}

a {
  color: var(--cc-link);
  text-underline-offset: 0.15em;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--cc-line);
}

::placeholder {
  color: var(--cc-muted);
  opacity: 1;
}

::selection {
  background-color: var(--cc-accent);
  color: var(--cc-on-accent);
}

/* One focus ring everywhere, for keyboard users (WCAG 2.4.7, 2.4.11). */
:focus-visible {
  outline: var(--cc-focus-width) solid var(--cc-focus);
  outline-offset: 2px;
}

}
