/*
 * Minimal base styles (v1), optional
 * https://design.tanzschule-happyfeet.ch/v1/base.css
 *
 * Needs tokens.css. Every selector is wrapped in :where() so it has zero
 * specificity: any rule in your app overrides it, whatever the load order.
 * Heading sizes are deliberately left to each app.
 */

:where(*, *::before, *::after) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

:where(body) {
  font-family: var(--font-body);
  font-variant-ligatures: none;
  color: var(--blue-1);
  background: var(--blue-6);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

:where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(img, svg, video) {
  display: block;
  max-width: 100%;
}

:where(h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
  hyphens: auto;
}

:where(a) {
  color: inherit;
}

/* Script font for decorative headings: <h1 class="hf-script">Happy Feet</h1> */
:where(.hf-script) {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

:where(.hf-condensed) {
  font-family: var(--font-condensed);
}
