:where(html) {
  box-sizing: border-box;
}

:where(*, *::before, *::after) {
  box-sizing: inherit;
}

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

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

:where(img) {
  height: auto;
}

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

:where(button) {
  cursor: pointer;
}

:where(a) {
  color: inherit;
  text-decoration: none;
}

:where(a:hover) {
  color: var(--soleil-color-accent);
}

:where(h1, h2, h3, h4, h5, h6) {
  line-height: var(--soleil-heading-line-height);
  margin-block: 0 0.7em;
}

h1 { font-size: var(--soleil-h1-size); font-weight: var(--soleil-h1-weight); }
h2 { font-size: var(--soleil-h2-size); font-weight: var(--soleil-h2-weight); }
h3 { font-size: var(--soleil-h3-size); font-weight: var(--soleil-h3-weight); }
h4 { font-size: var(--soleil-h4-size); font-weight: var(--soleil-h4-weight); }
h5 { font-size: var(--soleil-h5-size); font-weight: var(--soleil-h5-weight); }
h6 { font-size: var(--soleil-h6-size); font-weight: var(--soleil-h6-weight); }

:where(a, button, input, textarea, select, [tabindex]):focus,
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: none;
}

/* Theme and WooCommerce buttons keep their normal borders, but never gain a
   browser/plugin-generated outline or focus ring on click or keyboard focus. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"], a.button, .soleil-button, [role="button"]):is(:focus, :focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.soleil-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--soleil-button-height);
  padding: 10px 20px;
  color: var(--soleil-button-text);
  background: var(--soleil-button-bg);
  border: 1px solid transparent;
  border-radius: var(--soleil-button-radius);
  font-weight: 600;
  text-align: center;
}

.soleil-button:hover,
.soleil-button:focus-visible {
  color: var(--soleil-button-text);
  background: var(--soleil-button-hover);
}

.soleil-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--soleil-color-background);
  border: 1px solid var(--soleil-color-accent);
}

.soleil-skip-link:focus {
  top: 12px;
}
