/**
 * @file plugins/themes/wawasanTheme/styles/typography.css
 *
 * Copyright (c) 2026 Balai Diklat Keagamaan Jakarta
 * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
 *
 * @brief Local @font-face declarations and dual-font typographic hierarchy.
 */

/* 1. Editorial Serif Typeface — Lora (SIL OFL 1.1) */
@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lora-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Lora";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lora-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Lora";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lora-700.woff2") format("woff2");
}

@font-face {
	font-family: "Lora";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lora-700italic.woff2") format("woff2");
}

/* 2. Interface Sans-Serif Typeface — Open Sans (SIL OFL 1.1 / Apache 2.0) */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/open-sans-700.woff2") format("woff2");
}

@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/open-sans-700italic.woff2") format("woff2");
}

/* 3. Base Interface Typography */
body[class^="pkp_page_"] {
	font-family: var(--wawasan-font-sans);
	font-size: var(--wawasan-text-base);
	line-height: 1.6;
	color: var(--wawasan-color-text-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 4. Editorial Serif Headings & Scholarly Titles */
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main .page h1,
.obj_article_details > .page_title,
.obj_article_summary > .title,
.current_issue > h2,
.homepage_about > h2 {
	font-family: var(--wawasan-font-editorial);
	color: var(--wawasan-color-text-primary);
	letter-spacing: -0.015em;
}

.pkp_structure_main h1,
.obj_article_details > .page_title {
	font-size: var(--wawasan-text-2xl);
	line-height: 1.3;
	font-weight: 700;
}

.obj_article_details > .subtitle {
	font-family: var(--wawasan-font-editorial);
	font-size: var(--wawasan-text-lg);
	line-height: 1.45;
	color: var(--wawasan-color-text-secondary);
	margin-top: var(--wawasan-space-xs);
}

.pkp_structure_main h2,
.current_issue > h2,
.homepage_about > h2 {
	font-size: var(--wawasan-text-xl);
	line-height: 1.35;
	font-weight: 700;
}

.obj_article_summary > .title {
	font-size: var(--wawasan-text-lg);
	line-height: 1.42;
	font-weight: 700;
}

/* 5. Interface Sans-Serif for Structural Labels, Metadata, Controls & Sidebars */
.pkp_site_name,
.pkp_site_nav_menu,
.pkp_navigation_primary,
.pkp_navigation_user,
.cmp_breadcrumbs,
.cmp_button,
.cmp_button_wire,
.obj_galley_link,
.pkp_block .title,
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3,
.obj_article_details .main_entry .item .label,
.obj_article_details .entry_details .item .label,
.obj_article_summary .meta {
	font-family: var(--wawasan-font-sans);
}

/* 6. Monospace for DOIs & Identifiers */
.obj_article_details .item.doi .value a,
.obj_issue_toc .pub_id.doi .id a {
	font-family: var(--wawasan-font-mono);
	font-size: var(--wawasan-text-sm);
}
