/*
Theme Name:   Humayro
Theme URI:    https://humayro.com
Description:  Child theme GeneratePress untuk Humayro.com: ringan, mudah dibaca, tanpa page builder.
Author:       Humayro
Template:     generatepress
Version:      1.0.0
Text Domain:  humayro
*/

@font-face {
	font-family: "Lexend";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/lexend-latin-600.woff2") format("woff2");
}

/* Metric-matched fallback so the swap to Lexend does not shift layout. */
@font-face {
	font-family: "Lexend Fallback";
	src: local("Arial");
	size-adjust: 108%;
	ascent-override: 92%;
	descent-override: 23%;
}

:root {
	--hm-teal: #1c8088;
	--hm-teal-light: #2aaebb;
	--hm-teal-dark: #17585e;
	--hm-ink: #0b1a1d;
	--hm-text: #1a1a1a;
	--hm-muted: #5f6b6d;
	--hm-line: #dbe7e8;
	--hm-bg: #ffffff;
	--hm-bg-soft: #f3f8f8;
	--hm-radius: 8px;
	--hm-font-head: "Lexend", "Lexend Fallback", system-ui, sans-serif;
	--hm-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--hm-wrap: 1180px;
	--hm-read: 720px;
	--hm-gap: 24px;
}

/* ---------- Base ---------- */

body {
	background: var(--hm-bg);
	color: var(--hm-text);
	font-family: var(--hm-font-body);
	font-size: 17px;
	line-height: 1.7;
}

h1, h2, h3, h4,
.main-navigation .main-nav ul li a,
.hm-label, .hm-more, .hm-tagline {
	font-family: var(--hm-font-head);
	font-weight: 600;
}

h1, h2, h3, h4 {
	color: var(--hm-ink);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

a {
	color: var(--hm-teal);
}

a:hover,
a:focus {
	color: var(--hm-teal-dark);
}

:focus-visible {
	outline: 3px solid var(--hm-teal-light);
	outline-offset: 2px;
}

img {
	height: auto;
}

.hm-wrap {
	max-width: var(--hm-wrap);
	margin-inline: auto;
	padding-inline: 16px;
}

.hm-muted {
	color: var(--hm-muted);
	font-weight: 400;
}

/* ---------- Top bar ---------- */

.hm-topbar {
	background: var(--hm-ink);
	color: #c4d6d8;
	font-size: 13px;
}

.hm-topbar__inner {
	align-items: center;
	display: flex;
	gap: 16px;
	min-height: 36px;
}

.hm-topbar__date {
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	margin: 0;
	padding-right: 16px;
}

.hm-topbar__links {
	display: flex;
	gap: 16px;
}

.hm-topbar a {
	color: #fff;
	text-decoration: none;
}

.hm-topbar a:hover,
.hm-topbar a:focus {
	color: var(--hm-teal-light);
}

.hm-topbar__links a {
	font-family: var(--hm-font-head);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
}

.hm-social {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
}

.hm-social a {
	align-items: center;
	display: flex;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.hm-social svg {
	display: block;
}

/* ---------- Header & navigation (GeneratePress markup) ---------- */

.site-header {
	background: var(--hm-bg);
	border-bottom: 1px solid var(--hm-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .site-header {
	top: 32px;
}

.inside-header {
	align-items: center;
	max-width: var(--hm-wrap);
	padding: 8px 16px;
}

.main-title {
	margin: 0;
	line-height: 0;
}

.main-title a,
.main-title svg {
	display: block;
	height: 36px;
	width: auto;
}

/* Tagline under the logo: two short lines, roughly as wide as the logo,
   so the seven-item menu still fits beside it on 1024px screens. */
.hm-header-tagline {
	color: var(--hm-teal);
	font-family: var(--hm-font-head);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	margin: 4px 0 0;
	white-space: nowrap;
}

.hm-header-tagline span {
	display: block;
}

.main-navigation,
.main-navigation ul ul {
	background: transparent;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-bar-item > a {
	color: var(--hm-ink);
	font-size: 14px;
	line-height: 56px;
	padding-inline: 10px;
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li[class*="current-menu-"]:hover > a {
	background: transparent;
	color: var(--hm-teal);
}

.main-navigation ul ul {
	background: var(--hm-bg);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	box-shadow: 0 8px 24px rgba(11, 26, 29, 0.08);
	width: 230px;
}

.main-navigation .main-nav ul ul li a {
	font-family: var(--hm-font-body);
	font-weight: 500;
	line-height: 1.4;
	padding: 10px 16px;
}

.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus,
.main-navigation .menu-bar-item > a,
.main-navigation .menu-bar-item > a:hover {
	background: transparent;
	color: var(--hm-ink);
	min-height: 48px;
}

/* ---------- Content shell ---------- */

.site-content {
	padding: 0;
}

.one-container .container {
	background: transparent;
	max-width: var(--hm-wrap);
	padding: 0;
}

.one-container .site-content {
	padding: 0 16px;
}

.one-container .site-main {
	margin: 0;
	padding-block: 24px 48px;
}

/* ---------- Shared bits ---------- */

.hm-label {
	color: var(--hm-teal);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.hm-meta {
	color: var(--hm-muted);
	font-size: 14px;
	margin: 0;
}

.hm-tagline {
	color: var(--hm-teal);
	font-size: 13px;
	letter-spacing: 0.14em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.hm-section-title {
	font-size: 22px;
	margin: 0;
}

.hm-section {
	margin-top: 48px;
}

.hm-section__head {
	align-items: baseline;
	border-bottom: 2px solid var(--hm-ink);
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--hm-gap);
	padding-bottom: 8px;
}

.hm-section > .hm-section-title {
	border-bottom: 2px solid var(--hm-ink);
	margin-bottom: var(--hm-gap);
	padding-bottom: 8px;
}

.hm-more {
	font-size: 14px;
	text-decoration: none;
}

.hm-breadcrumb {
	color: var(--hm-muted);
	font-size: 14px;
	margin-bottom: 12px;
}

.hm-breadcrumb a {
	color: var(--hm-muted);
	text-decoration: none;
}

.hm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.hm-chips a {
	background: var(--hm-bg-soft);
	border: 1px solid var(--hm-line);
	border-radius: 999px;
	color: var(--hm-teal-dark);
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	padding: 12px 16px;
	text-decoration: none;
}

.hm-chips a:hover {
	background: var(--hm-teal);
	border-color: var(--hm-teal);
	color: #fff;
}

/* Search form (GeneratePress searchform.php) */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	font-size: 16px;
	min-height: 48px;
	padding: 0 16px;
	width: 100%;
}

.search-form .search-submit,
button,
input[type="submit"] {
	background: var(--hm-teal);
	border: 0;
	border-radius: var(--hm-radius);
	color: #fff;
	min-height: 48px;
	padding: 0 20px;
}

.search-form .search-submit:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--hm-teal-dark);
	color: #fff;
}

/* ---------- Cards & grids ---------- */

.hm-grid {
	display: grid;
	gap: var(--hm-gap);
	grid-template-columns: 1fr;
}

.hm-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hm-card__media {
	aspect-ratio: 3 / 2;
	background: var(--hm-bg-soft);
	border-radius: var(--hm-radius);
	display: block;
	overflow: hidden;
}

.hm-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	width: 100%;
}

.hm-card__media--empty {
	align-items: flex-end;
	background: linear-gradient(160deg, var(--hm-teal-light), var(--hm-teal-dark) 55%, var(--hm-ink));
	color: #fff;
	display: flex;
	font-family: var(--hm-font-head);
	font-size: 20px;
	font-weight: 600;
	padding: 20px;
	text-decoration: none;
}

.hm-card__media--empty:hover {
	color: #fff;
}

.hm-card:hover .hm-card__media img {
	transform: scale(1.03);
}

.hm-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hm-card__title {
	font-size: 18px;
	margin: 0;
}

.hm-card__title a {
	color: var(--hm-ink);
	text-decoration: none;
}

.hm-card__title a:hover {
	color: var(--hm-teal);
}

.hm-card__summary {
	color: var(--hm-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.hm-card--lead .hm-card__title {
	font-size: 26px;
}

.hm-card--lead .hm-card__summary {
	font-size: 16px;
}

.hm-card--compact .hm-card__title {
	font-size: 16px;
}

.hm-latest {
	display: grid;
	gap: var(--hm-gap);
}

/* ---------- Home ---------- */

.hm-banner {
	margin: 8px auto 0;
	max-width: 728px;
}

.hm-banner a,
.hm-banner img {
	border-radius: var(--hm-radius);
	display: block;
	width: 100%;
}

.hm-popular ol {
	counter-reset: hm-pop;
	display: grid;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-popular li {
	align-items: start;
	counter-increment: hm-pop;
	display: flex;
	gap: 16px;
}

.hm-popular li::before {
	color: var(--hm-teal-light);
	content: counter(hm-pop);
	font-family: var(--hm-font-head);
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	min-width: 1.2em;
}

/* ---------- Archive ---------- */

.hm-archive-header {
	margin-bottom: 32px;
}

.hm-archive-title {
	font-size: 30px;
	margin: 0;
}

.hm-archive-desc {
	color: var(--hm-muted);
	margin-top: 8px;
	max-width: 65ch;
}

.hm-archive-desc p {
	margin: 0;
}

.hm-archive-header .search-form {
	margin-top: 16px;
}

.hm-pagination {
	margin-top: 40px;
}

.hm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.hm-pagination .page-numbers {
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	color: var(--hm-ink);
	min-width: 48px;
	padding: 12px 14px;
	text-align: center;
	text-decoration: none;
}

.hm-pagination .page-numbers.current,
.hm-pagination a.page-numbers:hover {
	background: var(--hm-teal);
	border-color: var(--hm-teal);
	color: #fff;
}

.hm-pagination .dots {
	border: 0;
}

.hm-empty,
.hm-404 {
	max-width: var(--hm-read);
}

.hm-404 .hm-section-title {
	margin-top: 40px;
}

/* ---------- Article ---------- */

.hm-article,
.hm-related,
.comments-area {
	margin-inline: auto;
	max-width: var(--hm-read);
}

.hm-article__title {
	font-size: 30px;
	margin: 0;
}

.hm-article__lead {
	color: var(--hm-muted);
	font-size: 19px;
	line-height: 1.55;
	margin: 12px 0 0;
}

.hm-article__meta {
	border-bottom: 1px solid var(--hm-line);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 16px;
	padding-bottom: 16px;
}

.hm-article__media {
	margin: 24px 0 0;
}

.hm-article__media img {
	aspect-ratio: 16 / 9;
	border-radius: var(--hm-radius);
	display: block;
	object-fit: cover;
	width: 100%;
}

.hm-article__media figcaption {
	color: var(--hm-muted);
	font-size: 13px;
	margin-top: 8px;
}

.hm-prose {
	font-size: 18px;
	margin-top: 28px;
	overflow-wrap: break-word;
}

.hm-prose h2 {
	font-size: 24px;
	margin: 1.8em 0 0.6em;
	scroll-margin-top: 90px;
}

.hm-prose h3 {
	font-size: 20px;
	margin: 1.5em 0 0.5em;
	scroll-margin-top: 90px;
}

.hm-prose blockquote {
	background: var(--hm-bg-soft);
	border-left: 4px solid var(--hm-teal);
	border-radius: 0 var(--hm-radius) var(--hm-radius) 0;
	font-style: normal;
	margin: 1.5em 0;
	padding: 16px 20px;
}

.hm-prose img {
	border-radius: var(--hm-radius);
}

.hm-prose iframe,
.hm-prose video {
	max-width: 100%;
}

.hm-prose :is(p, li)[dir="rtl"],
.hm-prose [lang="ar"] {
	font-size: 1.35em;
	line-height: 2;
}

.hm-toc {
	background: var(--hm-bg-soft);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	margin: 1.5em 0;
	padding: 12px 20px;
}

.hm-toc summary {
	cursor: pointer;
	font-family: var(--hm-font-head);
	font-weight: 600;
	min-height: 32px;
}

/* Headings are often numbered by the author already, so the list carries no markers. */
.hm-toc ol {
	font-size: 16px;
	list-style: none;
	margin: 8px 0 4px;
	padding: 0;
}

.hm-toc li {
	margin: 6px 0;
}

.hm-toc .hm-toc__l3 {
	padding-left: 1.2em;
}

.hm-article__footer {
	border-top: 1px solid var(--hm-line);
	display: grid;
	gap: 16px;
	margin-top: 40px;
	padding-top: 20px;
}

.hm-tags {
	font-size: 14px;
	margin: 0;
}

.hm-tags a {
	background: var(--hm-bg-soft);
	border-radius: 4px;
	display: inline-block;
	margin: 2px;
	padding: 4px 10px;
	text-decoration: none;
}

.hm-share {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hm-share__label {
	color: var(--hm-muted);
	font-size: 14px;
}

.hm-share a {
	align-items: center;
	border: 1px solid var(--hm-line);
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	line-height: 1;
	min-height: 44px;
	padding: 0 16px;
	text-decoration: none;
}

.hm-related {
	margin-top: 56px;
}

.hm-related .hm-section-title {
	border-bottom: 2px solid var(--hm-ink);
	margin-bottom: var(--hm-gap);
	padding-bottom: 8px;
}

.hm-related .hm-grid--3 {
	grid-template-columns: 1fr;
}

/* ---------- Static pages (GeneratePress content-page.php) ---------- */

.page .inside-article {
	margin-inline: auto;
	max-width: var(--hm-read);
	padding: 0;
}

.page .entry-title {
	font-size: 32px;
	margin-bottom: 16px;
}

.page .entry-content {
	font-size: 18px;
}

.hm-lead {
	color: var(--hm-muted);
	font-size: 20px;
	line-height: 1.55;
}

.hm-channels {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

.hm-channels a {
	align-items: baseline;
	border: 1px solid var(--hm-line);
	border-left: 4px solid var(--hm-teal);
	border-radius: var(--hm-radius);
	color: var(--hm-muted);
	display: flex;
	gap: 12px;
	min-height: 48px;
	padding: 12px 16px;
	text-decoration: none;
}

.hm-channels a:hover {
	background: var(--hm-bg-soft);
}

.hm-channels strong {
	color: var(--hm-ink);
	font-family: var(--hm-font-head);
	min-width: 6.5em;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--hm-ink);
}

.hm-footer {
	color: #c4d6d8;
	font-size: 15px;
	padding: 48px 0 24px;
}

.hm-footer a {
	color: #e6f2f3;
	text-decoration: none;
}

.hm-footer a:hover {
	color: var(--hm-teal-light);
}

.hm-footer__grid {
	display: grid;
	gap: 32px;
}

.hm-footer__logo svg {
	display: block;
	height: 44px;
	width: auto;
}

.hm-footer .hm-tagline {
	color: var(--hm-teal-light);
	margin-top: 12px;
}

.hm-footer__title {
	color: #fff;
	font-size: 15px;
	margin: 0 0 12px;
}

.hm-footer__nav ul {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hm-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 13px;
	margin-top: 32px;
	padding-top: 16px;
}

.hm-footer__bottom p {
	margin: 0;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
	.hm-grid--3,
	.hm-related .hm-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hm-latest {
		grid-template-columns: repeat(2, 1fr);
	}

	.hm-latest .hm-card--lead {
		grid-column: 1 / -1;
	}

	.hm-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.hm-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.hm-related .hm-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.hm-latest {
		grid-template-columns: repeat(3, 1fr);
	}

	.hm-latest .hm-card--lead {
		display: grid;
		gap: var(--hm-gap);
		grid-column: 1 / -1;
		grid-template-columns: 1.5fr 1fr;
	}

	.hm-latest .hm-card--lead .hm-card__body {
		justify-content: center;
	}

	.hm-article__title {
		font-size: 38px;
	}

	.hm-popular ol {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	/* Phones: links and icons only. */
	.hm-topbar__date {
		display: none;
	}
}

@media (max-width: 768px) {
	/* Logo left, search + menu toggle right; the opened menu drops to full width. */
	.inside-header {
		align-items: center;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		padding-block: 6px;
		text-align: left;
	}

	.inside-header::before,
	.inside-header::after {
		display: none;
	}

	/* Beats GP's `.inside-header > :not(:last-child):not(.main-navigation)` margin. */
	.site-header .inside-header > .site-branding {
		margin: 0;
	}

	.main-navigation {
		margin: 0;
		width: auto;
	}

	/* GP pins the mobile search icon absolutely over the toggle; line them up instead. */
	.main-navigation .inside-navigation {
		align-items: center;
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-end;
	}

	.main-navigation.toggled .inside-navigation {
		flex-wrap: wrap;
	}

	.main-navigation .menu-toggle {
		flex: 0 0 auto;
		order: 1;
		width: auto;
	}

	.main-navigation .mobile-bar-items {
		order: 2;
		position: static;
	}

	.main-navigation .main-nav {
		order: 3;
	}

	.main-navigation.toggled {
		flex-basis: 100%;
	}

	.main-navigation.toggled .main-nav {
		border-top: 1px solid var(--hm-line);
		flex-basis: 100%;
		order: 3;
	}

	.main-title a,
	.main-title svg {
		height: 34px;
	}

	.hm-header-tagline {
		font-size: 11px;
		margin-top: 3px;
	}

	.main-navigation .main-nav ul li a {
		font-size: 16px;
		line-height: 48px;
	}

	.main-navigation .main-nav ul ul {
		border: 0;
		box-shadow: none;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-card__media img {
		transition: none;
	}
}
