/* ==========================================================================
   Base Styles & Reset (nova.css)
   ========================================================================== */

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

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--ac-font-family);
  background: var(--ac-bg);
  color: var(--ac-text);
  scroll-behavior: smooth;
}

html[dir="rtl"], body.rtl {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"], body.ltr {
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  font-family: var(--ac-font-family);
  background-color: var(--ac-bg);
  color: var(--ac-text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ac-trans-fast), background var(--ac-trans-fast);
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ac-ink);
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.ac-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
}
