<?php
Kirki::add_section( 'faith_blog_typography_settings', array(
    'title'          => esc_html__( 'Typography Settings', 'faith-blog' ),
    'description'    => esc_html__( 'Customize the typography of your website.', 'faith-blog' ),
    'panel'          => 'faith_blog_global_panel',
) );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'body_typography',
	'label'       => esc_html__( 'Body Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '400',
		'font-size'      => '1rem',
		'line-height'    => '1.6',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'body',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h1_typography',
	'label'       => esc_html__( 'H1 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '2.5rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h1',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h2_typography',
	'label'       => esc_html__( 'H2 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '2rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h2',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h3_typography',
	'label'       => esc_html__( 'H3 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.75rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h3',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h4_typography',
	'label'       => esc_html__( 'H4 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.5rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h4',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h5_typography',
	'label'       => esc_html__( 'H5 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.25rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h5',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'h6_typography',
	'label'       => esc_html__( 'H6 Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'h6',
		],
	],
] );

Kirki::add_field( 'faith_blog_config', [
	'type'        => 'typography',
	'settings'    => 'widgets_title_typography',
	'label'       => esc_html__( 'Widget Title Typography', 'faith-blog' ),
	'section'     => 'faith_blog_typography_settings',
	'default'     => [
		'font-family'    => 'Josefin Sans',
		'variant'        => '700',
		'font-size'      => '1.5rem',
		'line-height'    => '1.4',
		'letter-spacing' => '0px',
		'color'          => '#222222',
		'text-transform' => 'none',
		'text-align'     => 'left',
	],
	'transport'   => 'auto',
	'output'      => [
		[
			'element' => 'aside.widget-area  .widget .widget-title, aside.widget-area .widget .widgettitle, aside.widget-area .widget.widget_block .wp-block-group__inner-container>h2',
		],
	],
] );