/*
 * GameKit — shared base for the 7Sage games.
 *
 *   <link rel="stylesheet" href="/lesson-widgets/_shared/kit.css" />
 *
 * Brings in the app's fonts and its colour variables, then sets a reset
 * and base text. A game writes its own layout and its own look on top.
 *
 * Colours come from colors.gen.css, the same Figma tokens the app uses,
 * so --color-content-base or --color-surface-base match the rest of
 * 7Sage. Both files are written by `mix parse_figma_colors`.
*/

@import url("/fonts/lexend.css");
@import url("/fonts/fraunces.css");
@import url("./colors.gen.css");

:root {
  --font-sans: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/*
 * The game owns the whole iframe. The background stays transparent so
 * the host page shows through and the game sits on it.
*/
html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
}

body {
  font-family: var(--font-sans);
  color: var(--color-content-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a {
  color: var(--color-content-focus);
}

strong {
  font-weight: 600;
}

/*
 * Keyboard focus stays visible everywhere, a game should restyle the
 * ring rather than removing it.
*/
:focus-visible {
  outline: 2px solid var(--color-content-focus);
  outline-offset: 2px;
}
