/*
 * IsleIQ base styles.
 */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--iq-bg-page);
  color: var(--iq-text-primary);
  font-family: var(--iq-font-body);
  font-size: var(--iq-text-base);
  line-height: var(--iq-leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--iq-teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color var(--iq-duration-fast) var(--iq-ease);
}

a:hover {
  color: var(--iq-teal-900);
}

:focus-visible {
  outline: 3px solid var(--iq-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--iq-mint-100);
  color: var(--iq-navy);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.35rem;
}

li + li {
  margin-top: 0.35rem;
}

hr {
  height: 1px;
  margin: var(--iq-space-10) 0;
  border: 0;
  background: var(--iq-border);
}

iframe {
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: var(--iq-z-modal);
  top: var(--iq-space-4);
  left: var(--iq-space-4);
  width: auto;
  height: auto;
  padding: var(--iq-space-3) var(--iq-space-4);
  clip: auto;
  background: var(--iq-navy);
  color: var(--iq-white);
  border-radius: var(--iq-radius);
}

.iq-site {
  background: var(--iq-bg-page);
}

.iq-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iq-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.iq-ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.iq-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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