/*
Theme Name: Aksavara
Theme URI: https://aksavara.com
Author: CV Aksavara Publishing
Description: Landing page Aksavara Publishing — serasi dengan tema jurnal (journal.aksavara.com): kertas hangat, tinta biru tua, huruf Source Serif 4 dan Inter, satu warna identitas per jurnal. Tema blok: teks, menu, dan bagian beranda dapat diubah di Tampilan → Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aksavara
*/

/* Gaya tambahan yang tidak bisa dinyatakan di theme.json */

:root {
	--aks-radius: 10px;
	--aks-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Warna identitas jurnal */
.aks-j--atma { --j: var(--wp--preset--color--atma); }
.aks-j--arta { --j: var(--wp--preset--color--arta); }
.aks-j--wiyata { --j: var(--wp--preset--color--wiyata); }
.aks-j--wicara { --j: var(--wp--preset--color--wicara); }

.aks-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aks-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--wp--preset--color--bronze);
}

.aks-gold-italic em {
	font-style: italic;
	color: var(--wp--preset--color--arta);
}

/* ---------------------------------------------------------------- Header */
.aks-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(251 250 247 / 0.86);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.admin-bar .aks-sticky {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.aks-logo img {
	display: block;
	height: 42px;
	width: auto;
}

@media (max-width: 600px) {
	.aks-logo img {
		height: 32px;
	}
}

.aks-sticky .wp-block-navigation a:hover,
.aks-sticky .wp-block-navigation a:focus {
	color: var(--wp--preset--color--accent);
}

/* ---------------------------------------------------------------- Hero */
.aks-hero {
	position: relative;
	overflow: hidden;
}

.aks-hero__cols {
	align-items: center !important;
}

.aks-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 0;
	padding: 18px 0 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--rule);
	font-size: 13px;
	color: var(--wp--preset--color--ink-2);
}

.aks-facts li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aks-facts li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
}

/* Tumpukan sampul jurnal */
.aks-covers {
	position: relative;
	height: 440px;
	max-width: 460px;
	margin: 0 auto;
}

.aks-cover {
	position: absolute;
	top: 30px;
	left: 50%;
	width: 236px;
	height: 330px;
	margin-left: -118px;
	display: flex;
	flex-direction: column;
	padding: 22px 22px 20px;
	border-radius: var(--aks-radius);
	background: var(--j);
	color: #fbfaf7;
	text-decoration: none;
	box-shadow: 0 1px 2px rgb(23 25 30 / 0.12), 0 18px 40px -18px rgb(23 25 30 / 0.45);
	transition: transform .6s var(--aks-ease), box-shadow .6s var(--aks-ease);
	overflow: hidden;
}

.aks-cover::after {
	/* tepi kertas: garis tipis di kiri seperti punggung jurnal */
	content: "";
	position: absolute;
	inset: 0 auto 0 14px;
	width: 1px;
	background: rgb(255 255 255 / 0.18);
}

.aks-cover__brand {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	opacity: .75;
}

.aks-cover__initial {
	margin-top: auto;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 96px;
	line-height: .9;
	font-weight: 400;
	opacity: .22;
}

.aks-cover__name {
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 34px;
	line-height: 1;
}

.aks-cover__meaning {
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 15px;
	opacity: .8;
}

.aks-cover__sub {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgb(255 255 255 / 0.28);
	font-size: 11.5px;
	line-height: 1.4;
	opacity: .85;
}

.aks-cover:nth-child(1) { transform: translate(-126px, 36px) rotate(-12deg); }
.aks-cover:nth-child(2) { transform: translate(-44px, 10px) rotate(-4deg); }
.aks-cover:nth-child(3) { transform: translate(40px, 6px) rotate(4deg); }
.aks-cover:nth-child(4) { transform: translate(122px, 28px) rotate(11deg); }

@media (hover: hover) {
	.aks-covers:hover .aks-cover:nth-child(1) { transform: translate(-160px, 30px) rotate(-15deg); }
	.aks-covers:hover .aks-cover:nth-child(2) { transform: translate(-58px, 0) rotate(-5deg); }
	.aks-covers:hover .aks-cover:nth-child(3) { transform: translate(54px, -4px) rotate(5deg); }
	.aks-covers:hover .aks-cover:nth-child(4) { transform: translate(156px, 22px) rotate(14deg); }

	.aks-covers .aks-cover:hover {
		z-index: 5;
		box-shadow: 0 2px 4px rgb(23 25 30 / 0.14), 0 30px 60px -20px rgb(23 25 30 / 0.55);
	}
}

.aks-cover:focus-visible {
	z-index: 5;
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

@media (max-width: 781px) {
	.aks-covers {
		height: 300px;
		max-width: 340px;
	}

	.aks-cover {
		width: 170px;
		height: 238px;
		margin-left: -85px;
		padding: 16px;
	}

	.aks-cover__initial { font-size: 64px; }
	.aks-cover__name { font-size: 24px; }
	.aks-cover__sub { display: none; }

	.aks-cover:nth-child(1) { transform: translate(-80px, 30px) rotate(-11deg); }
	.aks-cover:nth-child(2) { transform: translate(-28px, 10px) rotate(-4deg); }
	.aks-cover:nth-child(3) { transform: translate(26px, 6px) rotate(4deg); }
	.aks-cover:nth-child(4) { transform: translate(78px, 24px) rotate(10deg); }
}

/* ---------------------------------------------------------------- Jurnal (kartu sampul) */
.aks-jgrid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 781px) {
	.aks-jgrid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.aks-jcard {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--aks-radius);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--rule);
	overflow: hidden;
	transition: transform .4s var(--aks-ease), box-shadow .4s var(--aks-ease), border-color .4s;
}

.aks-jcard:hover {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--rule-2);
	box-shadow: 0 22px 44px -26px rgb(23 25 30 / 0.35);
}

/* Band = illustrated cover in the journal colour (same as the portal at journal.aksavara.com) */
.aks-jcard__band {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 168px;
	padding: 22px 24px !important;
	background: var(--j);
	color: #fbfaf7;
	overflow: hidden;
}

.aks-jcard__band > * {
	margin-block: 0 !important;
}

.aks-jcard__art {
	position: absolute;
	top: 0;
	right: 0;
	width: 72%;
	height: 100%;
	color: #fbfaf7;
	pointer-events: none;
	transition: transform .8s var(--aks-ease);
}

.aks-jcard:hover .aks-jcard__art {
	transform: translateX(-8px) scale(1.03);
}

.aks-jcard__name {
	position: relative;
	margin: 0 !important;
	font-size: 38px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	color: #fbfaf7 !important;
}

.aks-jcard__name a {
	color: inherit !important;
	text-decoration: none;
}

.aks-jcard__name a::after {
	/* seluruh pita sampul dapat diklik */
	content: "";
	position: absolute;
	inset: -200px -2000px -200px -200px;
	z-index: 1;
}

.aks-jcard__tagline {
	position: relative;
	max-width: 80%;
	margin-top: 10px !important;
	font-size: 13px;
	line-height: 1.4;
	opacity: .88;
}

.aks-jcard__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 22px 22px !important;
}

.aks-jcard__body > * {
	margin-block: 0 !important;
}

.aks-jcard__title {
	margin-bottom: 8px !important;
	font-size: 19px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
}

.aks-jcard__desc {
	margin-bottom: 14px !important;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--preset--color--ink-2);
}

.aks-jcard__links {
	position: relative;
	z-index: 2; /* di atas tautan kartu */
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: auto !important;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--rule);
	font-size: 13.5px;
}

.aks-jcard__links a {
	color: var(--j);
	text-decoration: none;
	font-weight: 600;
}

.aks-jcard__links a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------- Alur naskah */
.aks-steps {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	counter-reset: aks-step;
}

.aks-step {
	position: relative;
	padding-top: 58px;
	counter-increment: aks-step;
}

.aks-step::before {
	content: counter(aks-step, decimal-leading-zero);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 15px;
	z-index: 1;
}

.aks-step:not(:last-child)::after {
	/* garis penghubung */
	content: "";
	position: absolute;
	top: 21px;
	left: 42px;
	right: -28px;
	height: 1px;
	background: linear-gradient(90deg, var(--wp--preset--color--ink) 0, var(--wp--preset--color--rule-2) 100%);
}

@media (max-width: 781px) {
	.aks-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.aks-step {
		padding: 0 0 26px 62px;
	}

	.aks-step:not(:last-child)::after {
		top: 42px;
		bottom: 0;
		left: 21px;
		right: auto;
		width: 1px;
		height: auto;
		background: var(--wp--preset--color--rule-2);
	}
}

/* ---------------------------------------------------------------- Layanan (bento) */
.aks-bento {
	display: grid !important;
	grid-template-columns: 1.25fr 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 18px;
}

.aks-bento > *,
.aks-jgrid > *,
.aks-steps > * {
	/* grid gap handles spacing; drop WordPress's block-gap margin on 2nd+ children */
	margin-block: 0 !important;
}

.aks-tile {
	border-radius: var(--aks-radius);
	border: 1px solid var(--wp--preset--color--rule-2);
	background: rgb(255 255 255 / 0.55);
	padding: 24px !important;
	transition: border-color .3s, background-color .3s;
}

.aks-tile:hover {
	border-color: var(--wp--preset--color--ink-2);
	background: var(--wp--preset--color--white);
}

.aks-tile--main {
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.aks-tile--main:hover {
	background: var(--wp--preset--color--accent-2);
	border-color: var(--wp--preset--color--accent-2);
}

.aks-tile--main h3,
.aks-tile--main a {
	color: var(--wp--preset--color--paper) !important;
}

.aks-tile--main p {
	color: var(--wp--preset--color--rule);
}

.aks-tile--wide {
	grid-column: span 2;
}

@media (max-width: 781px) {
	.aks-bento {
		grid-template-columns: minmax(0, 1fr);
	}

	.aks-tile--main,
	.aks-tile--wide {
		grid-row: auto;
		grid-column: auto;
	}
}

.aks-badge {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 14px !important;
	padding: 3px 9px;
	border: 1px solid var(--wp--preset--color--rule-2);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-2);
}

.aks-badge--active {
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
}

/* ---------------------------------------------------------------- Tentang */
.aks-about {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.aks-about__motif {
	position: absolute;
	right: -60px;
	bottom: -80px;
	width: min(560px, 70vw);
	z-index: -1;
	pointer-events: none;
}

.aks-principle {
	border-top: 1px solid rgb(255 255 255 / 0.16);
}

/* ---------------------------------------------------------------- Berita */
/* Nothing published yet: the query shows its "no results" block — hide the whole section */
.aks-newsblock:has(.wp-block-query-no-results) {
	display: none;
}

.aks-news .wp-block-post-template {
	gap: 36px 28px;
}

.aks-postcard .aks-thumb {
	margin: 0 0 8px;
	border-radius: var(--aks-radius);
	overflow: hidden;
	background: var(--wp--preset--color--paper-2);
}

.aks-postcard .aks-thumb img {
	transition: transform .6s var(--aks-ease);
}

.aks-postcard:hover .aks-thumb img {
	transform: scale(1.03);
}

/* Placeholder when a post has no featured image */
.aks-thumb--empty a {
	display: flex;
	align-items: flex-end;
	aspect-ratio: 16 / 9;
	padding: 18px 20px;
	color: #fff;
	text-decoration: none;
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 14px),
		radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 74, .35), transparent 60%),
		var(--aks-thumb, var(--wp--preset--color--accent));
}

.aks-thumb--opini {
	--aks-thumb: var(--wp--preset--color--bronze);
}

.aks-thumb--empty span {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1;
	opacity: .92;
}

.aks-news .wp-block-post-title a {
	text-decoration: none;
}

.aks-news .wp-block-post-title a:hover {
	text-decoration: underline;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Alat bantu penulis (beranda) */
.aks-tools {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 781px) {
	.aks-tools {
		grid-template-columns: minmax(0, 1fr);
	}
}

.aks-tools > * {
	margin-block: 0 !important;
}

.aks-tool {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px !important;
	border-radius: calc(var(--aks-radius) * 1.6);
	transition: transform .4s var(--aks-ease), box-shadow .4s var(--aks-ease);
}

.aks-tool > * {
	margin-block: 0 !important;
}

.aks-tool:hover {
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -30px rgb(23 25 30 / 0.45);
}

.aks-tool__icon {
	width: 44px;
	height: 44px;
}

.aks-tool--guide {
	border: 1px solid var(--wp--preset--color--rule);
	background:
		radial-gradient(90% 120% at 100% 0%, rgb(201 162 74 / 0.16) 0%, transparent 60%),
		var(--wp--preset--color--paper-2);
}

.aks-tool--guide .aks-tool__icon {
	color: var(--wp--preset--color--bronze);
}

.aks-tool__topics {
	margin: 0;
	padding: 0 !important;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--rule-2);
}

.aks-tool__topics li {
	border-bottom: 1px solid var(--wp--preset--color--rule-2);
}

.aks-tool__topics a {
	display: flex;
	justify-content: space-between;
	padding: 9px 0;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	text-decoration: none;
}

.aks-tool__topics a::after {
	content: "→";
	color: var(--wp--preset--color--bronze);
	transition: transform .2s;
}

.aks-tool__topics a:hover::after {
	transform: translateX(3px);
}

.aks-tool__actions {
	margin-top: auto !important;
	padding-top: 6px;
}

.aks-tool--check {
	background:
		radial-gradient(80% 110% at 100% 0%, rgb(201 162 74 / 0.22) 0%, transparent 60%),
		var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--paper);
}

.aks-tool--check h3 {
	color: var(--wp--preset--color--paper) !important;
}

.aks-tool--check p {
	color: var(--wp--preset--color--rule);
}

.aks-tool--check .aks-tool__icon {
	color: var(--wp--preset--color--gold);
}

.aks-tool__search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
}

.aks-tool__search input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 13px 16px;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.08);
	color: var(--wp--preset--color--paper);
	font: inherit;
}

.aks-tool__search input::placeholder {
	color: rgb(251 250 247 / 0.6);
}

.aks-tool__search input:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

.aks-tool__search button {
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform .25s var(--aks-ease), background-color .25s;
}

.aks-tool__search button:hover,
.aks-tool__search button:focus-visible {
	background: #dcb75e;
	transform: translateY(-1px);
}

.aks-tool__note {
	color: rgb(251 250 247 / 0.65) !important;
}

/* ---------------------------------------------------------------- Panduan */
.aks-guides .aks-guide-card {
	height: 100%;
	padding: 20px 22px;
	border: 1px solid var(--wp--preset--color--rule);
	border-top: 3px solid var(--wp--preset--color--accent);
	border-radius: var(--aks-radius);
	background: var(--wp--preset--color--white);
	transition: transform .3s var(--aks-ease), box-shadow .3s var(--aks-ease);
}

.aks-guides .aks-guide-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -22px rgb(23 25 30 / 0.4);
}

.aks-guides .aks-guide-card > * {
	margin-block: 0 !important;
}

.aks-guides .aks-guide-card .wp-block-post-title {
	margin-bottom: 8px !important;
}

.aks-guides .aks-guide-card .wp-block-post-title a {
	text-decoration: none;
}

.aks-guide-note {
	color: var(--wp--preset--color--muted);
}

/* ---------------------------------------------------------------- CTA */
.aks-cta {
	border-radius: calc(var(--aks-radius) * 1.6);
	background:
		radial-gradient(120% 140% at 100% 0%, rgb(201 162 74 / 0.18) 0%, transparent 55%),
		var(--wp--preset--color--paper-2);
}

/* ---------------------------------------------------------------- Footer */
.aks-footer a {
	color: inherit;
	text-decoration: none;
}

.aks-footer a:hover,
.aks-footer a:focus {
	text-decoration: underline;
}

.aks-footer .aks-logo img {
	filter: brightness(0) invert(1);
	opacity: 0.92;
}

/* ---------------------------------------------------------------- Tombol */
.wp-element-button,
.wp-block-button__link {
	border-radius: 999px !important;
	transition: background-color .25s, color .25s, transform .25s var(--aks-ease);
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper) !important;
}

/* ---------------------------------------------------------------- Muncul saat di-scroll (hanya bila JS aktif dan animasi diizinkan) */
@media (prefers-reduced-motion: no-preference) {
	.aks-js .aks-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .8s var(--aks-ease), transform .8s var(--aks-ease);
	}

	.aks-js .aks-reveal.is-in {
		opacity: 1;
		transform: none;
	}

	.aks-js .aks-covers .aks-cover {
		animation: aks-deal .9s var(--aks-ease) both;
	}

	.aks-js .aks-covers .aks-cover:nth-child(2) { animation-delay: .08s; }
	.aks-js .aks-covers .aks-cover:nth-child(3) { animation-delay: .16s; }
	.aks-js .aks-covers .aks-cover:nth-child(4) { animation-delay: .24s; }

	@keyframes aks-deal {
		from { opacity: 0; translate: 0 40px; }
		to { opacity: 1; translate: 0 0; }
	}
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

html {
	scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
