/* Reset, document defaults, semantic type */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: var(--font-root-size);
}

body {
  font-family: var(--font-family-body);
  font-size: var(--font-body-size);
  font-weight: var(--font-body-weight);
  line-height: var(--font-body-line-height);
  letter-spacing: var(--font-body-letter-spacing);
  color: var(--color-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.material-symbols-outlined {
  display: block;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::selection {
  background-color: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-text);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Headings */
h1, .text-h1, .hero__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-heading-one-size);
  line-height: var(--font-heading-one-line-height);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--font-heading-one-letter-spacing);
  color: var(--color-heading);
}

h2,
.text-h2,
.section-header__title,
.cta-banner__title,
.insight-card__title,
.insights-panel__title,
.about-dual-card__title,
.doc-when-implement__title,
.op-shift__title,
.insight-detail-article__h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-heading-two-size);
  line-height: var(--font-heading-two-line-height);
  font-weight: var(--font-heading-two-weight);
  letter-spacing: var(--font-heading-two-letter-spacing);
  color: var(--color-text);
}

h3,
.text-h3,
.card__title,
.content-item__title,
.numbered-list__title,
.footer__heading,
.process-card__title,
.solution-card__title,
.doc-flow-step__title,
.testimonial-card__headline,
.hww-stage-card__title,
.op-shift__definition-title,
.op-dark-card__title,
.op-build-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-heading-three-size);
  line-height: var(--font-heading-three-line-height);
  font-weight: var(--font-heading-three-weight);
  letter-spacing: var(--font-heading-three-letter-spacing);
  color: var(--color-heading);
}

h4, .text-h4,
h5, .text-h5,
h6, .text-h6,
.footer__logo {
  font-family: var(--font-family-heading);
  font-weight: var(--font-heading-weight);
  color: var(--color-heading);
}

h4, .text-h4 {
  font-size: var(--font-heading-four-size);
  line-height: var(--font-heading-four-line-height);
  letter-spacing: var(--font-heading-four-letter-spacing);
}

h5, .text-h5 {
  font-size: var(--font-heading-five-size);
  line-height: var(--font-heading-five-line-height);
  letter-spacing: var(--font-heading-five-letter-spacing);
}

h6, .text-h6,
.footer__logo {
  font-size: var(--font-heading-six-size);
  line-height: var(--font-heading-six-line-height);
  letter-spacing: var(--font-heading-six-letter-spacing);
}

/* Body text (explicit classes; other elements inherit from body) */
.text-body,
.check-list__item,
.card__text,
.content-item__text,
.process-card__text,
.accordion__content {
  color: var(--color-body);
}

.section-header__subtitle {
  font-size: var(--font-body-size);
  font-weight: var(--font-section-subtitle-weight);
  margin-left: 0;
}

.btn {
  font-family: var(--font-family-body);
  font-size: var(--font-button-size);
  line-height: var(--font-button-line-height);
  letter-spacing: var(--font-button-letter-spacing);
  font-weight: var(--font-button-weight);
}

.navbar__link,
.navbar__dropdown-toggle,
.navbar__signin,
.navbar__dropdown-link {
  font-size: var(--font-navbar-size);
  font-weight: var(--font-navbar-weight);
  text-transform: capitalize;
}

.footer__link,
.footer__copyright {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  letter-spacing: var(--font-button-letter-spacing);
}
