/**
 * @file
 * Reset and baseline styles for Wares Point Theme.
 */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--wp-bg-body);
  color: var(--wp-text);
  font-family: var(--wp-font-body);
  font-size: var(--wp-font-size-body, 1.0625rem);
  line-height: var(--wp-line-height-body, var(--wp-line-height-normal, 1.65));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--wp-color-link, var(--wp-tan-dark));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--wp-transition-fast), text-decoration-color var(--wp-transition-fast);
}

a:hover,
a:focus {
  color: var(--wp-color-link-hover, var(--wp-brown-deep));
  text-decoration-thickness: 2px;
}

a:active {
  color: var(--wp-color-link-active, #6B4D24);
}

a:visited {
  color: var(--wp-color-link-visited, #705530);
}

:focus-visible {
  outline: 3px solid var(--wp-color-link, var(--wp-tan-dark));
  outline-offset: 3px;
}

/* Accessibility: respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
