/**
 * @license EUPL-1.2+
 * Copyright Gemeente Amsterdam
 */

@use "../../common/hyphenation" as *;
@use "../../common/resets" as *;
@use "../../common/text-rendering" as *;

.ams-paragraph {
  @include reset-p;

  box-sizing: border-box;
  color: var(--ams-paragraph-color);
  font-family: var(--ams-paragraph-font-family);
  font-size: var(--ams-paragraph-font-size);
  font-weight: var(--ams-paragraph-font-weight);
  line-height: var(--ams-paragraph-line-height);

  @include hyphenation;
  @include text-rendering;
}

.ams-paragraph--large {
  font-size: var(--ams-paragraph-large-font-size);
  line-height: var(--ams-paragraph-large-line-height);

  /* stylelint-disable-next-line plugin/use-baseline -- Unbalanced line lengths in non-supporting browsers are acceptable */
  text-wrap: var(--ams-paragraph-large-text-wrap);
}

.ams-paragraph__b {
  font-weight: inherit;
}

.ams-paragraph--small {
  font-size: var(--ams-paragraph-small-font-size);
  line-height: var(--ams-paragraph-small-line-height);
}

.ams-paragraph__small {
  font-size: inherit;
}

.ams-paragraph--inverse {
  color: var(--ams-paragraph-inverse-color);
}
