/// Адаптивный пресет для заголовка chapter
/// @group Typography
///
/// @param {Bool} $margins [true] - Флаг, добавлять отступы или нет
/// @param {Number} $weight [700] - Жирность текста
///
/// @output Подставляет значения `t()` для разных брейкпоинтов
///
/// @example scss
///   .block {
///     @include chapter;
///   }
///

@mixin chapter($margins: true, $weight: 700) {
    @include t(48, $margins);
    font-weight: $weight;

    @media screen and (max-width: $screen-lg-max), screen and (max-height: $screen-lg-height-max) {
        @include t(40, $margins);
    }

    @media screen and (max-width: $screen-md-max) {
        @include t(36, $margins);
    }

    @media screen and (max-width: $screen-sm-max) {
        @include t(32, $margins);
    }

    @media screen and (max-width: $screen-xs-max) {
        @include t(28, $margins);
    }

    @media screen and (max-width: $screen-xxs-max) {
        @include t(24, $margins);
    }
}
